Checkwright v0.38.0
2026-11-25
Checkwright catches reproducible classes of unsupported claims in coding-agent delivery before merge, and this release lets four guard hooks run for one user outside any repository and gives a supervisor a brief lint and a range form of the gate-tamper check. It also lets a foreign run name its sandbox and the drift report read an outside tool’s KPI series.
In brief
| Section | Entries | Who acts |
|---|---|---|
| New and tightened gates | 3 | everyone: these may red on upgrade |
| Knob changes | 2 | if you set knobs |
| Gate-authoring changes | 0 | if you write or shadow gates |
| Platforms | 0 | if you install on a listed platform |
| Behavior changes | 8 | if you depend on a listed behavior |
escalation-guard,wakeup-guard,agent-budget-guardandagent-dispatch-guardnow install for one user withinit --user <member>and run with no repository.check-brief-authoritylints an agent brief against rules you name, andcheck-gate-tamper --rangejudges the commits an agent handed back one by one.--foreign-run --sandbox <policy>sets an adapter’s confinement per run, and akpi-<name>.seriesfile puts an outside tool’s numbers in the drift report.- You must act on one red if you vendor delegation-kit:
check-gate-substrate-paritynamescheck-brief-authorityuntil yourgates.listregisters it or declares it unregistered.
New and tightened gates
check-amendment-queue— a queue path that is a dangling symlink now refuses at exit 2 (not a file), where it read as an absent queue and passed as not applicable. Nothing to do unless a queue link in your tree dangles: repoint it, or remove it to read the queue as absent.check-brief-authority— new in delegation-kit: reads the agent briefs named as its operands against the rule filesDELEGATION_KIT_BRIEF_RULESnames, and reds a line granting an authority aforbidrule names that nounlessrule excuses, and a brief no line of which matches arequirerule. A no-operand run, the battery’s, is a clean skip, and an empty knob arms no rule. Nothing to do; to lint a brief before dispatching it, copytemplates/brief-rules.list, name the copy in the knob, register the gate and run it over the brief.check-gate-substrate-parity— reds after upgrading through assertion I, which holds every gate the binary carries for a kit you vendor to be registered in yourgates.listor declared# unregistered:there. If you vendor delegation-kit, the newcheck-brief-authorityis such a gate: register it, since its battery run is a clean skip, or declare# unregistered: check-brief-authority — <reason>.
Knob changes
DELEGATION_KIT_BRIEF_RULES— new: a whitespace list of the rule filescheck-brief-authorityreads, each lineforbid,unlessorrequireand one POSIX ERE; default empty, which arms no rule. A file the knob names that is absent, or a line with another directive, no pattern or a malformed pattern, stops the gate at exit 2.DELEGATION_KIT_FOREIGN_SANDBOX— new: indexed, each element<adapter>/<policy>=<word>, the word an adapter’s@SANDBOX@becomes for a run under that policy; default empty, which leaves every adapter’s confinement literal. The knob table validator refuses a malformed element, an unconfigured adapter, a pair bound twice and an empty, whitespace-bearing or-word. It holds an adapter with an element to carrying@SANDBOX@in its open form and, where it has one, its resume form, and an adapter with none to carrying it in neither. Nothing to do; to let one adapter serve both modes at their own confinement, put@SANDBOX@in its forms and bind itsauditandsweeppolicies.
Gate-authoring changes
None.
Platforms
None.
Behavior changes
escalation-guard,wakeup-guard,agent-budget-guard,agent-dispatch-guard— each now runs outside any repository:--knobs <file>andinit --user <member>accept them, where--knobsrefused at exit 2 and a registration firing with no repository printed the no-tree notice and allowed the call. There every path knob must be absolute, and a relative one takes the member’s own route:wakeup-guardstill denies and names the fault in its denial, the budget guard readsSTALE, the dispatch guard leaves D5 unenforced with its note, andescalation-guarddeclines. Nothing to do in a repository; to run one for your user,init --user <member>.init --user— the printed registration now carries the member’smatcherfor a before-tool-call member, and the knob file carries a log knob only for a member keeping a log (DELEGATION_KIT_STOP_LOGforsubagent-stop-liveness,GUARD_KIT_WAKEUP_LOGforwakeup-guard). Nothing to do for an existingsubagent-stop-livenessinstall.--hook <member> --observe— an observedsession-contextnow logswould=advise reason=withheldfor its plain-text brief, where it loggedwould=error. Nothing to do.check-todo-task-liveness,check-deprecation-task— an absent queue file (CANON_KIT_QUEUE_FILE) now reads not applicable and exits 0 with a clean line naming the path, where each refused at exit 2 (queue file not found) before scanning, so aTODO(task:)or deprecation marker on the surface goes unresolved there; a queue path naming anything but a file still refuses (not a file). Nothing to do; a tree tracking work outside the queue grammar can now register both gates.check-gate-tamper— gains a range form,checkwright-gates check-gate-tamper --range <base>..<head>, judging each non-merge commit the range spans against its first parent by the same two assertions, naming an offending commit asin commit <id>and counting the merges it skips on the clean line. The index form the battery and the pre-commit hook run is unchanged, and theagent-executiontemplate’s verify bullet now points a supervisor at the range form. Nothing to do; to check commits an agent handed back, run the range form over them.- delegation-kit
--foreign-runand--foreign-resume, delegation-kit/templates/delegation-config.knobs — the template gains the knob’s commented element shape.--foreign-runtakes--sandbox <policy>, the run’s mode word where it names none, and resolves it throughDELEGATION_KIT_FOREIGN_SANDBOXinto an adapter’s@SANDBOX@. A policy the adapter cannot apply, or one named on an adapter whose confinement is literal, isFAILED (sandbox: …)before anything is cloned, and--budgetrefuses--sandbox. Both verdict lines gainsandbox=<policy|->afterclass=, andsession.txtgainssandbox=andconfine=, read as-from a session an earlier build opened, so a resume keeps the confinement its session opened with. Nothing to do unless you parse either line by position: read it by key. - drift-kit
--emit drift-report— a KPI dir may holdkpi-<name>.series, a data file an outside tool writes: alabel:,section:andsource:header, optionalunit:andtrend:, then one dated point per line. The binary reads it, never runs it, and renders its latest point with the delta since the one before and anexternal: <source>, as of <date>, <age>d oldmark; a malformed file reads onen/a (series line <n>: <defect>)lead row and the report still exits 0. A.shor.ps1of the same name in one dir wins over it. The enforcement map now credits a KPI that resolves to a.ps1or.seriesfile by that file, where a consumer.ps1shadowing a bundled member was credited to drift-kit. Nothing to do; to report an outside series, write the file into a KPI dir (a gitignored one, named inDRIFT_KIT_KPI_DIRS, if the tool rewrites it) and name it inkpis.list. --usage-poll,--statuslineand--usage-verdict— withDELEGATION_KIT_CRED_FILEempty, take the credentials file from the directory of aDELEGATION_KIT_USAGE_FILEspelled with backslashes alone on Windows, where they appended/.credentials.jsonto the whole usage path and found no credentials there. Nothing to do.
Upgrading
Replace the vendored kit directories wholesale at v0.38.0, or run checkwright update. Regenerate your generated artifacts; each freshness gate that reds prints its own regen command. Then run the full battery.
The allowed reds. Every gate under New and tightened gates above may red, and its bullet names what clears it. On a tree that vendors delegation-kit, expect check-gate-substrate-parity’s assertion I naming check-brief-authority: add it to your gates.list, where its battery run is a clean skip, or declare it # unregistered: check-brief-authority — <reason>. check-amendment-queue reds only a queue path that is a dangling link; repoint or remove it.
The behavior changes above are declared for reading, not a mechanical scan. If a gate reds that this note does not name, the upgrade smoke was supposed to catch it first — open an issue, because that is a defect in the release rather than work for you.