The fix step writes a patch on the scan's pinned commit, builds and tests it in the worker container, has Opus review it and keeps it as a local commit that is never pushed. Land opens a plain pull request through write.ts; urgent findings can take the advisory route with a private fork. Merges are found by polling. Publish releases the advisory with an optional CVE request.
Stages call claimForWork when their work on an item really starts (fix issues after triage, fix-up, conflict merge and CI fix before their model call or push, single merge before safe-merge, batch when members are put in). The planner only decides unassign: kept while the item is on the path to merge, released otherwise, including members of a batch that failed to open its PR. The step is renamed unassign; one item failing no longer fails the repo's job; a partial index serves the audit lookups.
The planner emits assign and unassign actions from the item's assignees and the audit; one assign step carries them out with a live re-read of the assignees. The per-stage claim and release calls in fix-up, fix issues, merge and batch are removed.
push_outcomes records the required-check result before and after each fix-up, conflict, CI fix and fix-issue push.
A push that turned the checks red makes the CI fix work on the pushed head first. A push stage pauses itself when
2 of its last 10 pushes broke a check; the merge path pauses when main CI turns red because of a merge of ours or a
post-merge review finds a defect. An operator resumes a stage with autocraft pipeline resume or the Pipeline page.
Item and repo writes no longer accept a PR grant; a push refuses an ask or rerun grant. Claude steps write a usage row only when a call answered. The runner checks the group and claims the job in one transaction. A duplicate close computes a missing text hash and skips when the text changed. A batch PR with no members is not in scope. safe-merge refuses an empty --head.
A wanted PR whose gate check fails at its reviewed head is triaged from the failed step logs.
Format-only failures are fixed from a build task's formatter diff without a model, infra failures
get one rerun per head, code failures get a Sonnet patch checked by Opus. Pushes follow the
fix-up path; closed branches get the patch as a comment where comments are approved. At most two
tries per head, recorded in ci_fixes and read by the merge queue's push chain.
The checks job records Actions runs held for approval at reviewed heads; the queue shows them as ci-approval. A new ci-approve step approves them for repos an operator allowed, with a daily limit of 30 PRs.