Repository navigation
fix(admission): fail closed on verdict fields (#14603) - #14674
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 5 minutes. View limit details
Summary by CodeRabbit
WalkthroughThe change adds explicit verdict parsing for review comments and pull-request descriptions. Exact ChangesVerdict-Based Review Admission
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk:
|
|
Candidate \c68725d63ec6b4872a6f670af16c302c6fa5cd22\ is published for exact-head review. Local evidence: the new self-test and real-CLI #13896 replay were red before the parser fix and pass after; full admission suite 10/10; trusted-bundle controls 7/7; \git diff --check\ clean. \cargo xtask ci-policy\ is still running after two long local attempts (first exceeded 15 minutes without a report); no pass is claimed. Offline \check-pr-shape\ timed out after 2 minutes under the same load, so its result is NOT_ESTABLISHED. No merge-ready label or qualification request was made. |
|
Cross-candidate disposition handoff for the existing owner, not a source approval or policy-change authorization. Source inspection bound to #14674 head Keep #14595's existing queue disposition unchanged. Its owner explicitly retained the bounded repair and deferred closed grammar to #14603 (comment 6859633591); this PR's replacement proposal remains undecided, not accepted supersession. Before disposition/qualification, please reconcile:
No new writer, code change, rerun, dequeue, merge, protection change, or review approval performed by this coordination. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE c68725d — no blocking findings on this head.
Exact head c68725d (base 8342ae8). Delta is the admission parser, its self-tests, the real-CLI test, and the recorded #13896 fixture.
The closed grammar holds: VERDICT: after list, quote, heading, emphasis, code and task-list wrappers is parsed; only whole-value APPROVE with an optional 7–40 hex SHA is positive; BLOCK, ABSTAIN, empty, mixed and unknown values are negative. A fenced VERDICT: BLOCK refuses, a later VERDICT: BLOCK overrides an earlier APPROVE, and inline commentary after APPROVE refuses. An APPROVE field is not a carrier: a body with only VERDICT: APPROVE still needs a separate ready marker. Existing marker, native-review, trust and PR-description paths are unchanged.
Non-blocking: a table-row verdict (| Verdict | BLOCK |) is not recognized by VERDICT_FIELD because STATE_LINE_PREFIX has no |, so a body with SOURCE_REVIEW_READY and that row reads ready. The existing STATE_LINE table pattern handles state tokens but not verdict fields. This is outside the PR's stated VERDICT:-line scope, so it is a follow-up, not a blocker.
Limits: no local run; the receipt's self-test and real-CLI results are the execution evidence, and the source trace above is from the commit.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE c68725d
No blocking findings on this head.
Exact head c68725d (base 8342ae8). Delta is the admission parser, its self-tests, the real-CLI test, and the recorded #13896 fixture.
The closed grammar holds: VERDICT: after list, quote, heading, emphasis, code and task-list wrappers is parsed; only whole-value APPROVE with an optional 7-40 hex SHA is positive; BLOCK, ABSTAIN, empty, mixed and unknown values are negative. A fenced VERDICT: BLOCK refuses, a later VERDICT: BLOCK overrides an earlier APPROVE, and inline commentary after APPROVE refuses. An APPROVE field is not a carrier: a body with only VERDICT: APPROVE still needs a separate ready marker. Existing marker, native-review, trust and PR-description paths are unchanged.
Non-blocking: a table-row verdict (| Verdict | BLOCK |) is not recognized by VERDICT_FIELD because STATE_LINE_PREFIX has no |, so a body with SOURCE_REVIEW_READY and that row reads ready. The existing STATE_LINE table pattern handles state tokens but not verdict fields. This is outside the PR's stated VERDICT:-line scope, so it is a follow-up, not a blocker.
Limits: no local run; the receipt's self-test and real-CLI results are the execution evidence, and the source trace above is from the commit.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE c68725d
No blocking findings on this head.
Exact head c68725d (base 8342ae8). Delta is the admission parser, its self-tests, the real-CLI test, and the recorded #13896 fixture.
The closed grammar holds: VERDICT: after list, quote, heading, emphasis, code and task-list wrappers is parsed; only whole-value APPROVE with an optional 7-40 hex SHA is positive; BLOCK, ABSTAIN, empty, mixed and unknown values are negative. A fenced block verdict refuses, a later block verdict overrides an earlier approve, and inline commentary after approve refuses. An approve field is not a carrier: a body with only an approve field still needs a separate ready marker. Existing marker, native-review, trust and PR-description paths are unchanged.
Non-blocking: a table-row verdict (| Verdict | BLOCK |) is not recognized by VERDICT_FIELD because STATE_LINE_PREFIX has no |, so a body with a ready marker and that row reads ready. The existing table pattern handles state tokens but not verdict fields. This is outside the PR's stated VERDICT:-line scope, so it is a follow-up, not a blocker.
Limits: no local run; the receipt's self-test and real-CLI results are the execution evidence, and the source trace above is from the commit.
|
Disposition recorded for this head ( Repair dispatched to the coding lens that owns the branch: |
Slice added to this head: a table-row Verdict fieldThe base review thread on Finding (verified at
Required change: a Scope: Proof to report back: the new Rust fixture test proving the body above is refused and not positive; Write the test first, from the body above, so the failure is demonstrated before the fix. |
|
Scope correction on this head.
The review's APPROVE at |
Landing precondition: carrier sweep#14674's whole-value rule refuses a That is a migration cost, not a defect in the rule. The canonical form is line 1 Before this PR is admitted, the review lens must repost the canonical carrier for every open PR that is merge-ready or in the merge queue and whose latest positive verdict uses the old prose-suffix form. Queued PRs matter most: their Sweep requested from the review lens now, scoped to merge-ready and queued PRs, and only where the head has not moved since the old verdict. |
Carrier sweep, executed against the changed parserI ran this rather than reading it. Result: 96 PRs have a marker-bearing review; 95 pass under the new rule and 0 regress against the base reader.
Why the zero is a real zeroNegative control: appended an em-dash prose suffix to a canonical verdict line in a body that passes. The base reader still accepts it; the changed reader refuses it, and LimitsRead-only. No workflow executed, no |
|
Carrier audit against this parser at 1. Trailing prose after the SHA on the
2.
All nine are positive source verdicts of mine on those heads, not negative ones. The routine's own verdict template says to open the body with 3. Durability gap. Repaired this beat, both accepted by this parser and by current main: Two notes for the author. Recommendation: treat the PR-body |
|
Durability gap tracked as #14693: an empty Do not add the PR-body |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE c68725d
Reviewed head: c68725d. This replaces the empty-body review posted after the full review, which erased the marker; the source evidence is unchanged and is restated here.
Exact head c68725d (base 8342ae8). Delta is the admission parser, its self-tests, the real-CLI test, and the recorded #13896 fixture.
The closed grammar holds: a verdict field after list, quote, heading, emphasis, code and task-list wrappers is parsed; only whole-value APPROVE with an optional 7-40 hex SHA is positive; BLOCK, ABSTAIN, empty, mixed and unknown values are negative. A fenced block verdict refuses, a later block verdict overrides an earlier approve, and inline commentary after approve refuses. An approve field is not a carrier: a body with only an approve field still needs a separate ready marker. Existing marker, native-review, trust and PR-description paths are unchanged.
Non-blocking: a table-row verdict is not recognized by the verdict field pattern because the state-line prefix has no pipe, so a body with a ready marker and that row reads ready. The existing table pattern handles state tokens but not verdict fields. This is outside the PR's stated verdict-line scope, so it is a follow-up, not a blocker.
Limits: no local run; the receipt's self-test and real-CLI results are the execution evidence, and the source trace above is from the commit.
|
Documentation repair pushed at Added at Verified against No hosted-qualification claim; follow-up review owns the Devin thread disposition. |
|
Docs repair published at
Review dispatched at this head, scoped to whether the doc matches the parser rather than to the coder's summary. The Devin thread One landing precondition remains after the review: the PR-body |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE 7fb2058
No blocking findings on this head.
Exact head 7fb2058 (base main). The delta is docs/CI.md only (+7/-2).
The doc sentence matches the parser I ran at this head:
- Recognition: the verdict field regex uses the same
STATE_LINE_PREFIXas state lines, so it is read only at line start after list (bulleted, numbered, task), quote, heading, emphasis or code markers. I confirmed positive for the bare label, and for the label after-,>,#,**and a leading backtick. - Whole value:
POSITIVE_VERDICT_VALUE.fullmatchaccepts only APPROVE, optionally followed by whitespace and a 7-40 hex SHA. A bare approve, a 7-hex annotation and a 40-hex annotation admit; a block value, an abstain value, an empty value, a mixed value, an unrecognized value and an approve with trailing prose all refuse. That is exactly the doc's list. - Carrier:
comment_body_readystill requirespositive_lineon the first substantive line, so a body with only an approve field and no readiness marker refuses. The doc's "not a readiness carrier" sentence is accurate.
One edge case the doc does not claim and the parser does not admit: backticks wrapped around the label, because the trailing backtick lands in the captured value. The doc says "prefix", not "wrapped label", so this is not an overstatement.
The Devin thread PRRT_kwDOSiSx0c63adei asked for exactly this documentation; docs/CI.md:110-116 now states it, so I am resolving the thread.
Limits: static only; no build or test run. The doc check is a direct run of the parser module at this head.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE 7fb2058
No blocking findings on this head.
Exact head 7fb2058 (base main). The delta is docs/CI.md only (+7/-2).
The doc sentence matches the parser I ran at this head:
- Recognition: the verdict field regex uses the same
STATE_LINE_PREFIXas state lines, so it is read only at line start after list (bulleted, numbered, task), quote, heading, emphasis or code markers. I confirmed positive for the bare label, and for the label after-,>,#,**and a leading backtick. - Whole value:
POSITIVE_VERDICT_VALUE.fullmatchaccepts only APPROVE, optionally followed by whitespace and a 7-40 hex SHA. A bare approve, a 7-hex annotation and a 40-hex annotation admit; a block value, an abstain value, an empty value, a mixed value, an unrecognized value and an approve with trailing prose all refuse. That is exactly the doc's list. - Carrier:
comment_body_readystill requirespositive_lineon the first substantive line, so a body with only an approve field and no readiness marker refuses. The doc's "not a readiness carrier" sentence is accurate.
One edge case the doc does not claim and the parser does not admit: backticks wrapped around the label, because the trailing backtick lands in the captured value. The doc says "prefix", not "wrapped label", so this is not an overstatement.
The Devin thread PRRT_kwDOSiSx0c63adei asked for exactly this documentation; docs/CI.md:110-116 now states it, so I am resolving the thread.
Limits: static only; no build or test run. The doc check is a direct run of the parser module at this head.
|
Qualification requested at
Not admitted until the run is green. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE 3c47818 — no blocking findings on this head.
Exact head 3c47818235 (base d71a057f83). This is the terminal verdict for my earlier BLOCK at a7e01c80; both findings are repaired, and the repair is stronger than what I asked for.
B1 (no leading pipe) is repaired. VERDICT_TABLE_LABEL (review_disposition.py:104) now makes the leading pipe optional (^[ \t]*\|?). Probe at this head: comment_body_ready("SOURCE_REVIEW_READY\nVerdict | BLOCK") returns False and comment_body_negative returns True; the same holds for Verdict | REPAIR_REQUIRED | and Verdict | REVIEW_INCOMPLETE |. The description carrier refuses the same rows. The Rust integration test adds the no-leading-pipe body and description cases (review_disposition_admission.rs:1338-1341, :1381-1397).
B2 (SOURCE_REVIEW_BLOCKED) is repaired, and the header rule is now fail-closed. verdict_table_header (:385) keeps a row unless verdict_row_is_label (:372) matches a known column label, so an unrecognised value is a real verdict rather than a dropped header. Probe: | Verdict | SOURCE_REVIEW_BLOCKED |, | Verdict | REVIEW_INCOMPLETE |, | Verdict | NOT_READY |, | Verdict | WITHDRAWN |, | Verdict | SUPERSEDED |, | Verdict | REPAIR_REQUIRED |, | Verdict | CHANGES_REQUESTED |, | Verdict | BLOCK | and | Verdict | ABSTAIN | all refuse; | Verdict | Value |, | Verdict | Result | and | Verdict | Notes | above a delimiter row admit as headers; | Verdict | Needs work |, | Verdict | Denied |, | Verdict | Unsafe | and | Verdict | NO | refuse. That is the right direction: an unknown value fails closed.
The APPROVE-led grammar holds. APPROVE, APPROVE <sha> — no blocking findings on this head and APPROVE — no code change needed admit; APPROVE / BLOCK, APPROVE — BLOCK, APPROVE; changes requested, APPROVE. But the build is red., APPROVE, but the docs need work and APPROVE — tests fail refuse. VERDICT:, VERDICT: ABSTAIN, VERDICT: BLOCK, - **Verdict:** ABSTAIN and a fenced VERDICT: BLOCK refuse.
Threads: all resolved at this head. Merge: git merge-tree --write-tree origin/main 3c47818235 is clean.
Qualification this head still lacks: the hosted Rust lanes are still running. Ripr Rust Small on GitHub Hosted / Rust gates and all four Rust tests shard N of 4 are pending; Admit PR Candidate, Route Ripr Rust Small, Detect Docs-Only Surface, vscode surface, GitGuardian and Graphite pass. The verdict is source-only until those lanes finish.
Evidence: module --self-test at this head exits 0; probes run with python -I against the head file; no build, no checkout, no merge, no thread changes. Head pinned 3c47818235 and unchanged at post time.
|
Pre-enqueue coordination at H The PR description also still says |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
3c47818
|
Qualification receipt at unchanged H Replacement run 43691532772 is already active, so no additional retry is requested. Please record the existing retry's reason/outcome and investigate eligibility if it repeats, rather than repeatedly refreshing unchanged runs. The #14740-first composition hold in 6890992935 still applies even if the replacement passes. No CI or queue operation performed here. |
|
Fresh admission/composition checkpoint: native timeline records this PR entering the merge queue at 2026-11-15 09:06:44 UTC, still H #14740 remains open/queued at |
|
Dependency milestone verified: #14740 has merged as The prerequisite is now landed, so the existing owner can complete the previously required composition check against that actual result: preserve #14740's standalone carrier before #14674's neutral branch, verify benign/hedged standalone controls and table/description negatives, and retain exact composed-head review/evidence before landing. Prior isolated qualification is not that composition receipt. Preserve the documented #14756-last selection ordering. No new writer, CI run, queue action or review attestation performed here. |
|
Recovery-state update to 6895124581: this PR was removed from the native queue at 2026-11-15 17:47:04 UTC. H remains Existing owner retains reconciliation with landed #14740: preserve carrier-before-neutral semantics, negative/table/description controls and #14756-last ordering from the prior handoff. Publish the repaired head with exact-head independent review and validation before normal qualification/re-admission. No alternate writer, source, CI or queue mutation performed here. |
|
|
|
Fresh composition checkpoint for the existing recovery owner: #14756 at Please reconcile the repair against the actual landed/current #14756 state and preserve the previously requested composed controls: benign versus hedged/conditional standalone reviews must select correctly without reviving an earlier approval, with negative-tail and table/description controls retained. This is an integration-evidence request, not a new approval or instruction to interrupt an active group. No queue, CI or source changes made here. |
main independently added the `VERDICT:` first-line carrier (#8157) and the neutral-marker / chatter screening (#14728) in the same region this branch rewrites for the closed Verdict-field and table grammar, so the merge conflicted in review_disposition.py. Keep both behaviours rather than dropping either: - the branch's verdict_disposition / verdict_table_value / verdict_table_header / without_verdict_table_headers screening; - main's MARKER_NEUTRAL_TAIL, marker_line_neutral, VERDICT_APPROVE_LINE / VERDICT_BLOCK_LINE, _verdict_first_line, comment_body_verdict_ready / _negative, CHATTER_BODIES, EXACT_HEAD_REVIEW, comment_body_chatter; - comment_body_negative now strips Verdict table headers, skips a neutral first marker line, refuses on `verdict_disposition(line) is False`, and keeps main's #14728 remainder/blocker rules. Proof: repo-policy package suite green (149 + 21 + 17 + 15 tests and the rest, 0 failed), including verdict_fields_use_a_closed_positive_grammar, table_verdict_rows_use_the_same_closed_grammar, verdict_first_line_carries_or_refuses_the_attestation, issue_14728_stated_marker_selection_and_neutral_tail and issue_8157_narrative_false_positive_controls; review_disposition.py --self-test and candidate_admission.py --self-test exit 0.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact-head review of #14674 at c15ca4e.
Identity. Three files: review_disposition.py +276/-28, docs/CI.md +14/-2, tools/repo-policy/tests/review_disposition_admission.rs +183/-4. Merge commit on main; git merge-tree --write-tree against current main exits 0 at tree 4aad73348e.
The composed gate refuses at least everything main's gate refuses. I ran main's review_disposition.py and the branch's copy side by side over 1,677 bodies (the union of both self-test corpora plus adversarial verdict/table/negation shapes), 784 two-review pairs, and 69 description-carrier bodies. Across comment_body_ready, comment_body_negative, body_attests_head and reviews_allow_source_attestation: 306 tightenings, 0 loosenings. Every difference is main admitting and the branch refusing, or main not seeing a negative and the branch seeing one. No input main refuses is admitted by the branch.
The 28 deleted lines are relocated, not dropped. BODY_COMPETING_FIELD still carries the disposition alternation, extended with verdict; the all(positive_line(...) or not (STATE_LINE.match(...) or negation_hit(...))) predicate is replaced by the explicit loop, and the differential shows the loop is never looser; strip_negated_verdict_word's inner replace moved to _strip_negated_verdict_words; comment_body_negative's STATE_LINE.match line is extended with verdict_disposition(line) is False, not removed. comment_body_negative is stricter in 306 cases and looser in none, so it still fails closed.
Trusted-copy design still holds. routed-rust.yml checks out PR_BASE_SHA (the group base for queue entries) into .admission-trusted, verifies each of the four action files against the trusted SHA's blob, and runs the action from that copy. The PR's own diff cannot weaken the gate that admits it. docs/CI.md's sentence — "the PR base for pull requests, the group base for queue entries; the script is covered by the bundle hash check" — is accurate, and the new verdict-grammar text matches the code.
Self-tests. Branch review_disposition.py --self-test exit 0; candidate_admission.py --self-test exit 0. I did not run the Rust tests; the Coder's cargo test -p repo-policy claim is accepted as a claim, not repeated.
Non-blocking. A bare BLOCK line after a marker is still admitted by both gates (pre-existing, outside this PR's verdict-field scope). The later-line VERDICT: APPROVE <sha> SHA is not compared to the head; only the first-line VERDICT: APPROVE <sha> carrier is head-bound, which is consistent with the docs' "not a readiness carrier" sentence but makes the "head SHA" wording slightly stronger than the code. The refutation-after logic can over-refuse an APPROVE-led value whose next sentence mentions a reversed block; main has the same behavior, so it is not a regression.
Not checked: no cargo build or test by me; the hosted lanes on this head are the final evidence.
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE c15ca4e — no blocking findings on this head.
Base-only refresh of my APPROVE at 3c478182. The new head c15ca4e95d is a merge of origin/main into the branch: all 128 non-merge commits in 3c478182..c15ca4e9 are already ancestors of origin/main, so the candidate's own diff is unchanged.
Checks at this head: 15 success, 1 neutral, 5 skipped. Static review only; no build or test run.
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE c15ca4e — no blocking findings on this head.
Static review of the three-file change set (review_disposition.py, docs/CI.md, review_disposition_admission.rs, 473+/34-) at this head, plus execution of the changed Python module itself outside the repo. All prior review threads on this PR are resolved (Devin documentation thread, graphite's Verdict header fail-open, and the three CodeRabbit findings).
Evidence I actually ran:
- The head
review_disposition.pyruns its ownself_test()clean, including every new #14603 case. - I re-ran the real grammar against the exact house review shape this campaign posts:
VERDICT: APPROVE <40-hex> — no blocking findings on this head.→comment_body_verdict_ready == Truefor the pinned head,comment_body_negative == False,comment_body_ready == False. So the #8157 first-line carrier still admits the campaign's verdict reviews at this head; the new grammar does not convert them into negatives. - A marker body plus
VERDICT: BLOCK <sha>refuses; marker plusVERDICT: APPROVE <sha>admits;APPROVE / BLOCK,APPROVE | BLOCK,BLOCK | approveandAPPROVE, but the docs need workall refuse. | Verdict | BLOCK,Verdict | REPAIR_REQUIREDand| Verdict | Needs work |above a delimiter row are kept and refuse;| Verdict | Notes |/| Verdict | Value |/Verdict | Value\n--- | ---are dropped as headers and admit;| Verdict | REPAIR_REQUIRED |above a delimiter is kept becauseverdict_row_is_labelrequires a full label match, not a prefix.without_verdict_table_headersruns before every scan incomment_body_ready,comment_body_negativeandbody_attests_head, and fencedVERDICT: BLOCKis still caught throughnegation_hit, so the header filter does not open a fenced bypass._strip_negated_verdict_wordsis a faithful parameterized extraction of the old nested closure (before_clause/next_sentence/ refutation logic unchanged), so the #14592 behaviour on non-verdict lines survives.
Non-blocking notes:
- The SHA in a marker-path
VERDICT:line is parsed and discarded.verdict_dispositionacceptsAPPROVE <7-40 hex>but never compares the value with the head; only the separate first-line carrier (comment_body_verdict_ready) compares it. Handler bodies are still bound bycommit_id == headinreviews_allow_source_attestation, so a stale SHA cannot admit a stale head — butdocs/CI.mdsays the value must be "APPROVE, with an optional 7-40 hexadecimal head SHA, to admit", which reads as if the SHA were verified. It is not, on the marker path. - A lone
| Verdict | Notes |row with no delimiter row below it is scored as a negative verdict, not a header.verdict_table_headerrequires the delimiter row, so a malformed table refuses. That is fail-closed and consistent, just not the "header" reading a reader might expect.
Limits: no cargo build or Rust test run, so review_disposition_admission.rs is verified by inspection only; the Python self-test and the ad-hoc grammar probes above were executed against the head file, not through the admission CLI. No checkout, no label or queue action. I did not confirm hosted Rust gates ran on this SHA.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
VERDICT: APPROVE c15ca4e
Replacement carrier for review 5925403803, whose verdict line carried trailing prose and so did not bind the head. The substantive review is unchanged: static review of the three-file change set (review_disposition.py, docs/CI.md, review_disposition_admission.rs, 473+/34-) at this head, with the executed evidence recorded there.
Reviewed head: c15ca4e
- No findings remain open; zero unresolved threads.
Summary
VERDICT:line as a decision field with a closed whole-value grammar.APPROVEwith an optional 7–40 hex head SHA is neutral: it neither attests nor refuses, so it cannot veto the marker; a value that also names an alternative disposition or a blocker phrase still refuses.Verdicttable row above a GFM delimiter row is a header only when its value cell is a known non-disposition column label (Value,Notes,Result,Detail,State,Status,Check,Field,Description,Comment). Every other value is a real verdict and refuses, soBLOCK,REPAIR_REQUIRED,CHANGES_REQUESTED,Needs work,Denied,UnsafeandNOall refuse in the review body and the description scan. GFM permits an omitted leading pipe, soVerdict | BLOCKrefuses andVerdict | Valuestays a neutral header.REPAIR_REQUIREDbehavior.Swarm / Source Boundary
Source-of-truth Links
Proposal: #14603 closed positive verdict grammar.
Spec: existing
docs/CI.mdsource-review attestation contract; no documentation change in this bounded patch.ADR: #14611 owns the longer-term carrier ADR, not this emergency parser repair.
Plan item: #11566 queue reliability.
Governing issue or accepted claim: #14603; orchestrator assignment on the live #13896 fail-open carrier.
Acceptance delta (one sentence): A ready review with a non-APPROVE explicit verdict refuses, an APPROVE-led explanation is neutral, and a separate ready marker plus canonical APPROVE still admits.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): ripr-coding/14603-verdict-closed-grammar
Stack parent or prerequisite PR (if any): none.
Proposed replacement of PR (if any; not yet accepted): #14595, whose blocker-word list is subsumed by this closed grammar.
Acceptance retained from a replaced candidate (if any): the recorded #13896 BLOCK replay and canonical APPROVE positive control are retained.
Accepted winner and losing candidate disposition (when decided): undecided; orchestrator owns disposition of queued #14595. #14653's generic labelled-state handling is separate and does not conflict semantically.
Scope
.github/actions/pr-candidate-admission/review_disposition.py: typed verdict-field parsing and self-tests.tools/repo-policy/tests/review_disposition_admission.rs: real-CLI verdict controls.tools/repo-policy/tests/fixtures/review_verdicts/refuse-pr13896-5892179853.md: recorded failing review.Scope Classification
Production delta:
Evidence/support delta:
Single acceptance criterion:
Non-goals:
Support-tier Impact
Claim/proof notes:
Policy Impact
Ledger or exception notes:
review_disposition.pyis unchanged; no new programming file is added.cargo fmt --checkon the workspace reports pre-existing formatting drift in untouchedxtask/examplesfiles. This patch adds only a focused Rust test block and does not repair or reformat unrelated files.Proof
python -I .github/actions/pr-candidate-admission/review_disposition.py --self-test cargo test -p repo-policy --test review_disposition_admission python3 -I .github/actions/pr-candidate-admission/test_trusted_bundle.py --self-test cargo xtask ci-policy git diff --checkResult, failures, or skipped proof:
3c478182(cargo test -p repo-policy --test review_disposition_admission).3c478182:APPROVE <sha> — BLOCK on the docs,— tests failand— not readyare ready=false/negative=true;— no blocking findingsis false/false; a quoted approving verdict line is narration and admits; the house form attests through its marker;APPROVE / BLOCK,BLOCK,ABSTAIN,MAYBEand empty values still do not attest; the recorded fix(classify): prose words in a string literal no longer link tests (#13843) #13896 fixture still refuses.3c478182: 43 entries, 0 refusals under both main's script and this one, so no queued head is newly refused. init --agents: skip DETAIL only when missing= is one code value; rows count extra facts (#14298) #14536 and fix(pr-review): name the promoted required input on the markdown Missing input line (#14628) #14650 now carry later ready markers at their current heads, so their older blocks are stale and admit correctly. The house formVERDICT: APPROVE <sha> — no blocking findings on this head.is positive; a quoted approving verdict line is not a negative;APPROVE / BLOCK,BLOCK,ABSTAIN,MAYBEand empty values still do not attest; the recorded fix(classify): prose words in a string literal no longer link tests (#13843) #13896 fixture still refuses.e845174ff5: the house marker shape (VERDICT: APPROVE <sha> — no blocking findings on this head.) is neutral, so it no longer vetoes the marker;APPROVE / BLOCK,APPROVE — tests fail,BLOCK,ABSTAINand an empty value still refuse; aVerdictheader row states nothing. Live check: the 15 heads named in the review (ci: read mergeability once per head in the staleness watchdog #14695, fix(agent-brief): fold a return_value twin into its same-line error_variant seam (#14702) #14708, fix(classify): a bare assert! on the changed bool field of a returned record pins it (#14701) #14706, fix(process): await Linux group quiescence before reaping #14503, fix(rust): explain include placement refusal (#14116) #14723, feat(repair): recover an interrupted focused finish with the original claim (#13203 slice B, recovery) #13697, mcp: trim fixed per-session context in instructions and descriptions (#14461) #14475, init --agents: skip DETAIL only when missing= is one code value; rows count extra facts (#14298) #14536, feat(kani): retain run-owned machine observations without claim promotion #14545, perf(check): Hidden rows state a long shared reason once (#14308) #14714, perf(repair): name the predicate stub route in one short clause (#14308) #14720, perf(json-terse): code related-test oracle and why strings through the legend (#13673) #14718, fix(classify): read only the one changed comparison of a compound predicate's boundary (#9637) #14710, test(agent): pin whole-journey byte budget (#13673) #13898, fix(cli): name a directory passed where a file belongs without the host errno (#14694) #14697) all exit 0 with this script, where 13 exited 1 at704ccf82bd.jqis on PATH (python -I .github/actions/pr-candidate-admission/test_trusted_bundle.py --self-test); withoutjqthe four shell-step cases fail at exit 127, so that is an environment limit, not a control result.704ccf82bd: the two reviewed fail-open rows admit at2b905031and refuse here.| Verdict | BLOCKwithout its trailing pipe returns ready at the old head and refuses at this one;| Verdict | APPROVE <sha> | BLOCK |does the same; the same PR-description row attests at the old head and does not here. The pipe form and a plainAPPROVErow are unchanged. Controls: module self-test,table_verdict_rows_use_the_same_closed_grammar, and the PR-description competition cases.Claim Boundary
APPROVE <sha> — explanation, is neutral (no attestation, no refusal); useVERDICT: APPROVE <sha>and put the explanation on another line to attest.Rollback
Spec-Test-Code Traceability
docs/CI.mdattestation contract.--self-test,verdict_fields_use_a_closed_positive_grammar, and the recorded fix(classify): prose words in a string literal no longer link tests (#13843) #13896 fixture..github/actions/pr-candidate-admission/review_disposition.py.Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
Source review: REVIEW_INCOMPLETE 704ccf8