Repository navigation
feat(source-control): trust own-agent filings admission admits in the merge gate - #17093
Conversation
… merge gate The merge gate read every lanes App filing as an untrusted spec, so a pull request built from one waited for a person even after intake admitted it. The gate now trusts a linked issue when an identity on admission's own-agents list wrote it, no other account edited its body, it carries exactly one well-formed source label, and a listed human or the lanes App sized it small or medium. The list comes from the default branch's admission rules. The predicates are mirrored in Python, since the gate runs no node, and a test runs them beside admit.mjs to keep the two in step. github-actions[bot] never counts, even when the list names it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntake The own-agent sync test covered identities, body text and source labels but not how the Size field's setter is chosen. It now runs resolve-config's own event fold beside counted_size over the same event tables. The fold is lifted from the module's source because importing the module needs ajv, which a checkout without its npm install lacks. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ch cap Admission holds an own-agent filing for a listed human when its last run's patch went over the scan job's size cap, but the merge gate still trusted that filing. The gate now mirrors admit.mjs patchCapStopped: the lanes App's scan-refused-patch stop counts until a listed human next adds agent-ready. The parity test runs both rules over the same comments and events. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… name Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Held as a draft until the owner decides how the gate reads an issue's size, whether later label or size changes send the PR to a person, and how the ADR change is recorded. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane run report
Failed GitHub API calls
|
|
claude-review reviewed Code review: merge gate trusts own-agent filings that intake admission admitsI read every hunk of all 11 changed files. I found nothing to block or flag. What changed.
The live reads run under the Actions token and are cached once per Reader, with read times noted for What I checked against the code at head:
What the tests cover (I did not run them). The new Closing issue. The PR names none ("No related issue"), so there are no acceptance criteria to check. I found no embedded directives in the PR context. Loosened checks. The trusted-spec branch lets more PRs merge with no person. That widens a person-approval / bot-author hold, which the criterion counts as a friction hold, so it raises no finding. The security side belongs to the separate security lane. The changed Path-scoped rules. I read the rules matching the changed paths ( Spend. The change adds up to four GitHub API reads per bot-filed linked issue that no earlier rule trusts, under the Actions token. It starts no billed charge. Loosened-check verdict: fail (default; the prompt gave no Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: no findingsI read every hunk of all 11 changed files and checked the changed gate against admission's code and the merge holds that still run after it. The change. No untrusted actor reaches it.
It is no wider than admission. Untrusted text is still held elsewhere. Admission's other security refusals, the
It fails closed. A malformed list, a missing Size field config, or any failed read raises The gate does not check admission's per-producer source cap or whether admission actually admitted the issue. The cap limits throughput, not trust, and every security condition admission applies is either mirrored here or enforced by the holds above. The documentation changes (the ADR 0111 Consequences bullet, the pr-pipeline convention and the changelog fragments) describe the new code. They remove no instruction that a mechanism no longer enforces. The diff touches no plugin manifest, workflow, token request, trusted-actor list, kill switch or trusted-trigger check. critical-findings: 0 |
…ed pull requests Record #17091, #17093 and ci-workflows#1136 as landed, state that the merge gate now trusts admitted own-agent filings, and say that no lane produces telemetry yet because the receiver is off by default. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: no commit on this branch names a work item; the change carries out the merge-gate consequence ADR 0111 recorded.
Summary
The merge gate read every lanes App filing as an untrusted spec, so a pull request built from an own-agent filing waited for a person even after intake admission admitted it. The gate now trusts a linked issue that meets admission's own-agent rule, so such a pull request can merge with no person.
Fix
babysit_verify_evidence.pyadds an own-agent branch to the trusted-spec check. A linked issue counts only when all of these hold, each read live at judgment:own-agentslist in the default branch's admission rules wrote it. github-actions[bot] never counts, even when the list names it.source: <producer>label.scan-refused-patch) since a listed human last addedagent-ready.A filing short of any condition reads
verify:untrusted-spec, so a label or Size change after a pass sends the pull request to a person. A failed read readsverify:unreadable.The predicates are mirrored in Python because the gate runs no node. The pr-pipeline convention, ADR 0111's Consequences bullet and both changelog fragments describe the new rule.
Verification
Readermethods read-only against live issue perf\(harness-ops\): reduce plugins sync's remaining wall clock and digest size - part 4 of 4 #12544 with a maintainer'sghlogin: the admission rules, the issue query, the Size field values and field events, and the comment and event listings all returned the shapes the gate parses, and its Size read returnedsmall. That login is not the CI token, so this proves the query shapes and not the CI token's permission.source:label, so no live filing has passed the whole rule. The passing path is covered by the stubbed tests only.CI Statusjob'sGITHUB_TOKENhas noissuesscope. The REST reads of the issue's field values, comments and events each answered 200 with no authentication on this public repository. The GraphQL field-event read under that token is not proven; if it fails, the own-agent pull request readsverify:unreadableandCI Statusholds it. The twopr-mergejobs that judge candidates holdissues: read.verify:unreadableholds the one pull request being judged: the gate moves on to the next candidate, and a queued lanes App entry is refused by the merge queue's ownCI Statusread.verify:unreadableinstead ofverify:untrusted-specwhile a new read fails, and returns toverify:untrusted-speconce the read succeeds. Both refusals hold the pull request.test_babysit_own_agent_spec_trust.pyis new. It covers each admission condition and runs the gate's predicates besideadmit.mjsandresolve-config.mjsunder node over the same inputs. It and the five changed gate test files pass locally.CI Statusreads the verdict reader from main; the CI test lanes and both AI review lanes, because a draft skips them.Related
🤖 Generated with Claude Code