One CI step. Every pull request that changes a model, an engine version, a chat template or a serving launch is checked before it goes live: the exact weights and code, a prompt that renders the same, an adapter that applies, a launch that starts and fits. A refusal turns the check red, with the fix.
name: release gate
on: pull_request
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: { node-version: 20 }
- run: npx -y neurarch gate . # exit 1 on Refuse
Free without limit. Read only: nothing is run, and no model files leave the runner. How the gate works.
For PyTorch training code there is a separate PR bot that traces the model and posts its memory, fit and cost on the pull request: PR bot docs.
A pinned model can change upstream after you pinned it: the chat template renders a different prompt, the weight hashes move, a commit is erased from main, the licence changes, a host dates the model for retirement. A daily scheduled job, npx neurarch watch . --github-issue, compares the repository's pins with the change record at /changes and opens or updates one issue per model, with the events, their sources and the files that pin it. It exits 0 whatever it finds; --fail-on turns chosen kinds red. The daily record starts on 2026-10-18; older rows come from Hub git history where the Hub still has it. Ships in the next npm release after 0.5.3. How watch works.
name: neurarch watch
on:
schedule:
- cron: '17 6 * * *'
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
watch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: { node-version: 22 }
- run: npx -y neurarch@latest watch . --github-issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}