The runner sends SIGTERM to the job process alone. The job refuses new writes (WritesStoppedError, so a
resumed run makes them), waits up to 7 s for the writes it has begun (tracked from begin() to finish()
in write.ts), saves its usage, then stops the rest of its process group and exits 143. SIGKILL to the
group still follows 10 s after the SIGTERM.
For a resumed job, comments, reviews, issues, PRs, issue transfers, CI run approvals and reruns,
pushes and the advisory writes first look for the successful audit row of the job's earlier run with
the same action, target and write key (a hash of the text, the run id, the commit or the head and
base) and return its recorded result instead of writing again.
A labels job whose writes the pacer refuses labels nothing and was queued
again on every input change. The labels lane reads the same budget the
writer checks (pipelineWriteWait, the read-only half of tryBegin) and
leaves out a repo whose label writes would wait past the writer's bound;
the planner wakes when the window frees and the stage says until when.
A pass-scoped settings snapshot (src/settings-read.ts) answers every settings read of the
synchronous part of detectAutopilot; writes made during the pass go through writeSetting and
deleteSetting, which keep it current. The snapshot is dropped when the pass ends.
A merged PR files its held issue unless the bound merge path ended before the merge time, so a pre-approval the merge itself cancels no longer drops it. Rows are bound to the press's own path: the pre-approval it created (runPipelineStep returns its id) or the decision's answer history count, so a new answer or pre-approval never revives one. createIssue treats an unsent request (failed app-token mint) as a clear failure and marks a write held back by pacing; pacing counts no try. A row left in filing is settled from its audit row. held_followups moves to its own topic outside the planner input, so row writes keep the failure backoff.
- The commenter's write permission is read through the app installation (appPermission), which writes repo_permissions, so a
maintainer's pre-approval stays alive under refreshSettlers; an access GitHub cannot read is retried, and a command that
expires that way is answered once ("could not check your access; comment again").
- The comment's creation time is stored. A PR is pre-approved only at the head it had then: a force push, a later commit date or
a later first check suite on the head refuses it ("the PR changed after your comment; comment again"), and preapproveMerge
takes the pinned head. On an issue, the closing PR is queued only when it is older than the comment and unchanged since.
- A comment older than 5 minutes at delivery queues nothing; before acting the comment is read again by id and must exist, have
the same author and still hold the same command.
- A login never bound, a viewer, and a non-operator on a quiet PR get no answer; nothing is answered on a quiet PR. Unexpected
errors are answered with a fixed text; only an answer to someone the queue rule lets queue skips the comment approval.
- github_commands gets an index on (state, reply) and the runner prunes settled rows after 30 days; parseCommand skips indented
code and HTML comments across lines.
Checks that failed on the default branch at the batch's base too rebuild the batch on a newer head or wait. The failed
logs' compiler errors and panics are blamed at the batch tip; the members they point at (some, at most 3) are tested in
batches of their own and the rest rebuilt without them, so a wrong trace costs a round, not a hold, and the batch size
stays. Nothing traced: the failed runs are rerun once (ci_reruns, ci_rerun_at), and only results newer than the rerun
count. Then the split as before. A red combined-tree build is traced from its build log the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A write that fails before any request goes out (the GitHub App's installation token could not be minted) returns sent: false. The fix-up, conflict and CI fix steps record such a comment as comment-unsent instead of the final comment-failed; the planner asks again 10 minutes after the first and an hour after the second, and a third unsent comment is final. Existing comment-failed rows with an installation-token reason become comment-unsent.
- History counts per GitHub account: a PR row with an id counts for that id, an id-less row for the
account the login is bound to, and for nobody while the login is unbound. The sync no longer binds a
login that has id-less merged or closed PRs; the backfill binds it from the history's own author.
A failed binding pass shows as the author-ids health warning.
- An allow override stores the account it was given to (looked up when set) and counts only for it;
a deny holds for any account under the login, in any letter case. The outside-author limits read
the same per-account standing.
- The pipeline's own Fix, main CI fix and security fix PRs keep their own tier only while the head is
a commit the pipeline pushed to its own branch (own_commits), or reached from one only through its
own later pushes; otherwise a person is asked.
- Removing or demoting an operator revokes their org setup links, and a link works only while its
creator is an operator. Removal drops Discord links and codes in any letter case.
- Decision alerts to maintainers need a repo permission read within a day.
- A cached author permission is not used for another account under the login, nor once its refresh
has failed too often or for too long.
- Pushes to new branches and new PRs need the grant of a step that opens the pipeline's own PRs;
security fix writes carry their own grant kind.
- Installation tokens for a write are minted for the write's repository (a transfer's also for its target); reads across repos and pushes to a contributor's fork keep the installation-wide token. Reading the app's keys checks the secrets file's mode like every other reader.
- The app's git credential helper is set for https://github.com only, after every configured helper is dropped.
- jev children get only the search path, home, locale, temp, cache, TLS and proxy variables and Jev's own.
- Git on the cached clones names the repository with GIT_DIR, runs with safe.bareRepository=explicit and reads attributes from the empty tree.
- The sandbox denies /proc and the credential directory in the absolute (//path) form as well.
- The scrub hides hex keys that are not digests, URL user:password, three-part dotted tokens and credentials inside hex or base64.
- The dashboard unit sees the settings file, releases, the bare repo and .local read-only.
- post-receive resolves the pushed commit once and the hook deploys that commit; the image build runs pnpm installs without install scripts.