Repository navigation
verify --run-check: the tool runs the commands of a Gate itself - #68
Merged
Merged
Conversation
The job was a shell in `wait`. After a TERM to its group, bash as sh exits 0 in about 3 of 100 runs, because its child dies first. The leader of the group is now a sleep (exec), which always ends with the signal. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
In ci_mode local the coordinator proved its own local run with a typed line, so the record held what a model claims. The owner now lists named command lines under `checks` in AUTHORITY.md. `verify --run-check <name>` makes a new work tree of exactly the commit of the done, runs each check there without a shell and with a cut-down environment, keeps the logs, and writes the local-run line itself (`tool-run <host>: ...`). A typed line must not start with that word. A check that fails is the refusal check-failed and nothing is written. It is no sandbox, and it proves only the command part of a Gate. A check whose program is a file of the PR gets a warning unless a protected path covers it. Not for a headless coordinator. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A review found that the run and the verify read the ticket twice: a done that arrived while the checks ran could get the line of the older commit. The checks now run inside verify, for the done that the command loaded, after every refusal that needs no run (the writer, the status, a protected path) and only for a head that is the commit of the done. The head is read again after the run. Also from the review: - a typed text cannot look like a line of the tool in any spelling, and a note of verify cannot carry a local-gate line (an older gap); - the checks get no input, a TERM, INT or HUP removes the work tree, git replace refs are off, the log root is private, and a host without a home is refused; - a program with .. is a parse error, and every word of a command line that is an unprotected file of the checkout gets a warning; - the spec names the limits: the code of the PR can read the files of the user, also the signing key, and the coordinator chooses the host. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Member
Author
|
An independent review of the first commit found a race (a |
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first piece of an unattended line that the owner approved: a machine runner for command Gates.
Why. In
ci_mode: localthe coordinator proves its own local run with a typed line (--local-run "<host>: <command> rc=0, log <path>"). A model types it, so the record holds a claim. On the measured board no ticket has the Gateci; each Gate is a command list that a model reruns by hand.What.
checksinAUTHORITY.md(default branch, owner-only): a block list of<name>: <command line>.verify <n> --run-check <name>(repeatable,--work-dir): the tool fetches the commit of thedone, makes a new git work tree of exactly that commit, runs each named check there without a shell and with a cut-down environment, and keeps the logs undercheck-runsin the state dir.verifygoes on as with--local-run, and the tool writes the line:tool-run <host>: <name> rc=0 <s>s; clean checkout of <sha>; logs <dir>. A typed--local-runtext must not start withtool-run(local-gate-invalid).check-failedwith the log and its last lines; nothing is written. An unknown name:check-unknown.protected_pathscovers the file.headless-scope). Opening that is a separate owner decision.Limits, stated in the spec. It is no sandbox: the command is code of the PR and runs as the user of the host. It proves the command part of a Gate only.
Also in this PR. One commit makes the TERM test of a detached job independent of the shell: bash as
shexits 0 in about 3 of 100 runs after a group TERM, which failed two local gate runs today. Product code is unchanged there.Tests: unit tests (the
checksparser, the word splitter, the picker, the line, the origin check), and a component test with a real git repo and the real binary (pass with three checks, a failing check, the refusals before any run).🤖 Generated with Claude Code