Skip to content

fix(admission): fail closed on verdict fields (#14603) - #14674

Merged
EffortlessSteven merged 8 commits into
mainfrom
ripr-coding/14603-verdict-closed-grammar
Nov 17, 2026
Merged

EffortlessSteven merged 8 commits into
mainfrom
ripr-coding/14603-verdict-closed-grammar

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Parse an explicit VERDICT: line as a decision field with a closed whole-value grammar.
  • An APPROVE-led value that is not exactly APPROVE with 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.
  • A Verdict table 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, so BLOCK, REPAIR_REQUIRED, CHANGES_REQUESTED, Needs work, Denied, Unsafe and NO all refuse in the review body and the description scan. GFM permits an omitted leading pipe, so Verdict | BLOCK refuses and Verdict | Value stays a neutral header.
  • Replay the recorded fix(classify): prose words in a string literal no longer link tests (#13843) #13896 review through the real admission CLI and preserve marker-only and REPAIR_REQUIRED behavior.

Swarm / Source Boundary

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

Source-of-truth Links

Proposal: #14603 closed positive verdict grammar.
Spec: existing docs/CI.md source-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

  • Other: admission gate parser and its tests.

Production delta:

  • None; trusted CI admission only.

Evidence/support delta:

  • Explicit verdict fields fail closed by construction instead of relying on a negative-word list.

Single acceptance criterion:

Non-goals:

  • No workflow, label route, PR branch, reviewer-trust, native-review precedence, or PR-description carrier change.
  • No changelog fragment: the coordinator explicitly limited this emergency repair to the parser and its tests.
  • No broader ADR or free-prose parser rewrite.

Support-tier Impact

  • none

Claim/proof notes:

  • The change affects admission policy, not product support tiers.

Policy Impact

  • CI lane
  • file policy

Ledger or exception notes:

  • Existing non-Rust allowlist entry for review_disposition.py is unchanged; no new programming file is added.
  • cargo fmt --check on the workspace reports pre-existing formatting drift in untouched xtask/examples files. 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 --check

Result, failures, or skipped proof:

Claim Boundary

  • May be claimed: explicit verdict fields use the stated closed grammar and unknown values cannot inherit a ready marker.
  • Must not be claimed: arbitrary prose is fully understood, or hosted qualification has passed before its exact-head run completes.
  • Compatibility boundary: commentary on the verdict line, including APPROVE <sha> — explanation, is neutral (no attestation, no refusal); use VERDICT: APPROVE <sha> and put the explanation on another line to attest.

Rollback

  • Revert this PR to restore the previous admission parser and tests; no stored state or settings migration exists.

Spec-Test-Code Traceability

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

  • LEM impact: none.
  • Workflows touched: none; the trusted admission module changes only.
  • Branch protection impact: none.
  • Failure mode caught: a BLOCK/ABSTAIN/unknown verdict after a ready marker counted as a positive attestation.
  • Cheaper signal considered: existing module self-test and real-CLI suite; no new hosted lane.
  • Required lanes affected: existing admission and Result readers become stricter after the trusted module lands.
  • Advisory lanes affected: none.
  • On-demand/release lanes affected: none.
  • Labels that alter behavior: none changed by this PR.
  • Artifact families affected: recorded review fixture only.
  • Rollback path: protected source revert.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason. (none added)
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason. (none added)
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented. (none)

Gates

  • Focused parser self-test and real-CLI admission suite.
  • Trusted admission bundle controls.
  • Hosted exact-head qualification (not requested by this worker).

Devin Review

Source review: REVIEW_INCOMPLETE 704ccf8

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 145 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 7d0ab0ea-8b39-4bfe-a220-0486f4a27dce
Commits

Reviewing files that changed from the base of the PR and between 9623caf and c15ca4e.

Files selected for processing: 3

  • .github/actions/pr-candidate-admission/review_disposition.py
  • docs/CI.md
  • tools/repo-policy/tests/review_disposition_admission.rs

Summary by CodeRabbit

  • Updates
    • Review verdicts now require an exact APPROVE value, optionally followed by a valid head identifier, to count as approval. Blocking or ambiguous values are handled as non-approvals.
    • Verdict table headers no longer count as decisions, and rows with multiple non-empty values are treated as ambiguous. Pull-request descriptions containing verdict fields or rows are recognized during review-state checks.
  • Documentation
    • Updated CI guidance to describe verdict fields, table rows, and readiness-marker requirements.
  • Tests
    • Expanded coverage for verdict formats, ambiguous values, and pull-request descriptions.

Walkthrough

The change adds explicit verdict parsing for review comments and pull-request descriptions. Exact APPROVE values can be positive; other values, ambiguous table rows, and detected blockers affect admission checks. Documentation and tests cover the parsing rules.

Changes

Verdict-Based Review Admission

Layer / File(s) Summary
Verdict grammar and parsing
.github/actions/pr-candidate-admission/review_disposition.py, tools/repo-policy/tests/review_disposition_admission.rs
Verdict fields and table rows now distinguish exact APPROVE values, negative dispositions, and neutral values. Tests cover optional head annotations, ambiguous rows, blockers, and header rows.
Admission checks and documented rules
.github/actions/pr-candidate-admission/review_disposition.py, tools/repo-policy/tests/review_disposition_admission.rs, docs/CI.md
Readiness and pull-request body checks now account for verdict outcomes and ignore recognized table headers. Tests and documentation describe these checks.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Merge Risk: Moderate · previous review 9623c

The change tightens CI admission so that only an exact APPROVE verdict admits a review. Several valid inputs still slip past it: a Verdict table row without a leading pipe, an unknown value like APPROVE_PENDING, and a Verdict row with a non-listed state above a delimiter. Each can admit a head that should be refused. Fix these narrow parser gaps and add matching tests before merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(admission): fail closed on verdict fields (#14603)" matches the main change. The changeset replaces the blocker-word approach with a closed positive grammar for explicit verdict fields …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The PR description is thorough and follows most of the template. It states a clear summary and scope, fills in the Swarm / Source Boundary checkbox, the Source-of-truth Links, Candidate Relationships,…
Full details: Title check

Explanation

The title "fix(admission): fail closed on verdict fields (#14603)" matches the main change. The changeset replaces the blocker-word approach with a closed positive grammar for explicit verdict fields in the trusted admission parser, so the title names the primary behavior change. The title is concise, uses a conventional prefix, and includes an issue reference. The title is a little narrow because it omits the table-row and PR-description competition handling, which is expected for a title.

Full details: Description check

Explanation

The PR description is thorough and follows most of the template. It states a clear summary and scope, fills in the Swarm / Source Boundary checkbox, the Source-of-truth Links, Candidate Relationships, Scope Classification (production delta, evidence delta, single acceptance criterion, non-goals), Support-tier Impact, Policy Impact, a Proof block with commands and results, Claim Boundary, Rollback, Spec-Test-Code Traceability, Static Language Check, CI Economics, and Engineering Check. The Gates section is only partly ticked: the hosted exact-head qualification item is intentionally left unchecked and explained. Minor gaps remain: the Source-of-truth Links 'Spec' line points to existing documentation without a new spec, and the Gates list does not map to the template's per-command checklist (it uses a summarized focused-suite entry instead of the individual cargo and xtask gates). The Proof section also reports a Windows driver-path failure at 704ccf8 and a cargo fmt --check drift that is not resolved, which the author documents. None of these prevent a reviewer from deciding the change, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the verdict line,
“APPROVE” must fit the rule just right.
A table header makes no claim,
A blocker changes the outcome’s name.
Tests hop through each parsing case,
And docs keep every rule in place.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Copy link
Copy Markdown
Member Author

Cross-candidate disposition handoff for the existing owner, not a source approval or policy-change authorization. Source inspection bound to #14674 head c68725d63ec6b4872a6f670af16c302c6fa5cd22, base 6cb98defb6ad25fe919585d5d94ac032d11552ff, and queued #14595 head f2c3c5a7a7c3221de874403032d0931c756d3319.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Disposition recorded for this head (c68725d6): the source review approves it with no blocking findings, but one review thread is open — Devin's doc gap at review_disposition.py:362-364, where docs/CI.md still calls later-line handling free-prose best-effort and does not state the closed grammar. That gap is inside #14603's acceptance, so the PR is not admitted yet.

Repair dispatched to the coding lens that owns the branch: docs/CI.md only, then a fresh review at the new head. Qualification follows that review.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Slice added to this head: a table-row Verdict field

The base review thread on review_disposition.py:364 (Devin, unresolved) asked for docs/CI.md to state the closed grammar. Keep that change. This adds the parser half it exposed.

Finding (verified at c68725d6):

SOURCE_REVIEW_READY
| Field | Value |
| --- | --- |
| Verdict | BLOCK |

comment_body_ready(...) returns True and comment_body_negative(...) returns False. VERDICT_FIELD only matches verdict: followed by :, and STATE_LINE's table-row alternative only matches a cell holding a state token, so a table-row verdict is ignored entirely.

Required change: a | Verdict | <value> | row is the same typed field as VERDICT: <value>. APPROVE (optionally a short or full head SHA) may constrain a ready marker exactly as the VERDICT: form does; BLOCK, ABSTAIN, empty, mixed and unrecognized values are negative and refuse. Same rule for the PR-description competing-field scan if it applies there.

Scope: .github/actions/pr-candidate-admission/review_disposition.py, tools/repo-policy/tests/review_disposition_admission.rs, docs/CI.md. No other file on this branch.

Proof to report back: the new Rust fixture test proving the body above is refused and not positive; cargo test -p repo-policy --test review_disposition_admission (exact command you run); verifier exit 0; the new head SHA. Reply to the Devin thread with the parser lines you changed. Do not edit labels, request queue entry, or merge.

Write the test first, from the body above, so the failure is demonstrated before the fix.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Scope correction on this head.

  • Table-row verdict shape: dropped. The review treats it as out of scope, so the 07:57Z extension is withdrawn rather than carried.
  • docs/CI.md statement: still in scope. The Devin thread PRRT_kwDOSiSx0c63adei closes with that edit, not by being left open. Re-dispatched to the coding lens as a docs-only change on this branch.

The review's APPROVE at c68725d6 stands; this is a documentation gap, not a source finding. The head will move once, then need a fresh review and a routed run before it can be admitted.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Landing precondition: carrier sweep

#14674's whole-value rule refuses a VERDICT: field whose value is not exactly APPROVE or APPROVE <sha>. Earlier positive carriers on this repo end with an em-dash prose suffix on the same line, so they will refuse once this lands.

That is a migration cost, not a defect in the rule. The canonical form is line 1 SOURCE_REVIEW_READY, line 2 exactly VERDICT: APPROVE <40-hex head>, explanation on later lines.

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 merge_group run re-reads the disposition against the group base, so an old carrier would fail the Result job for every queued PR at once after this lands.

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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Carrier sweep, executed against the changed parser

I ran this rather than reading it. review_disposition.py at c68725d6 was imported directly, and comment_body_ready was applied to the latest marker-bearing review body of every open PR labelled merge-ready, and separately to all 58 merge-queue entries.

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 zero

Negative 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 comment_body_ready_negative agrees. The file's own self_test passes. So zero regressions is the reader discriminating, not a code path that never ran.

Limits

Read-only. No workflow executed, no merge_group run observed against this parser, no local build. The bodies are the committed review objects as returned by the API; the parser is the file as committed at c68725d6.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Carrier audit against this parser at c68725d6 (independent review, read-only). Two carrier shapes that my own reviews use are refused, and one durability gap strands a positive verdict. Concrete instances, each at an unchanged head:

1. Trailing prose after the SHA on the VERDICT: line. POSITIVE_VERDICT_VALUE.fullmatch requires the whole value to be approve plus an optional 7-40 hex SHA, so VERDICT: APPROVE <40hex> - no blocking findings on this head. is read as a negative verdict line and the whole body is refused:

  • #13719 at 0aed0bdd, #13856 at 7c8378b8, #13924 at d81c3924.

2. VERDICT: as the first line. comment_body_ready requires the first substantive line to be a marker line, and positive_line accepts only SOURCE_REVIEW_READY / REVIEW_READY, so a body that opens with the verdict field is refused:

  • #13752 at d6da3e97, #13830 at 71d13eb5, #13872 at 5c82106a, #13937 at 5c5c6d41, #14293 at a56228fe, #14663 at 8f18d6b7.

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 VERDICT: APPROVE <head> - no blocking findings on this head., which is exactly shape 2 plus shape 1's tail, so every review written to that template is refused.

3. Durability gap. _latest_by_login replaces an author's earlier review with their newest one, and a thread reply creates a newer empty COMMENTED review. The stated fallback can only refuse (it ends in pull_allows_source_attestation), so once a reply lands the only remaining route is the PR-body Source review: SOURCE_REVIEW_READY <40hex> line. #14674 at c68725d6 is in this state: two ready reviews at that head, then an empty reply, and no body attestation line. #14545 and #14392 were in the same state this beat.

Repaired this beat, both accepted by this parser and by current main: #14545 carrier restated at 5af0bd43; #14392 fresh delta review at 5114dc57 (delta is one doc line: the rerun receipt example now shows FILE_FACT generation 1.60, matching seam_cache.rs:1406).

Two notes for the author. #14436 passes only through its body attestation line, not through a review. #14392's body attestation is pinned to 2cd01b61, so it does not cover 5114dc57.

Recommendation: treat the PR-body Source review: SOURCE_REVIEW_READY <40hex> line as the primary carrier and keep it at the current head, because no thread reply voids it. The mechanism itself is already recorded in #14550, #14568 and #14606; this comment adds the concrete stranded instances and the shape-1 fullmatch boundary, which those do not name.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Durability gap tracked as #14693: an empty COMMENTED review replaces the author's earlier carrier, so any reply kills the attestation.

Do not add the PR-body Source review: line at c68725d6. A push makes that line stale by construction and a stale line refuses, so adding it now would be worse than leaving it off. It goes in at the final head, after the docs repair and the re-review, and it must be the only filled Source review: line in the body.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Documentation repair pushed at 7fb205876a6dc1de63b6ee25a5fe05eab9b2c127. Only docs/CI.md changed; code, tests, workflows, labels and the PR body are unchanged.

Added at docs/CI.md:110-116: a VERDICT: field is recognized at line start after the allowed list/quote/heading/emphasis/code prefix; whole-value APPROVE with optional 7–40 hex head SHA admits; BLOCK, ABSTAIN, empty, mixed and unknown values refuse; APPROVE is not a readiness carrier and still needs the separate first-line marker.

Verified against review_disposition.py:85 (STATE_LINE_PREFIX), :96-104 (VERDICT_FIELD and POSITIVE_VERDICT_VALUE), :273-278 (typed value parsing), :315-343 (ready/negative evaluation), and :347-366 (negative disposition and fenced handling). git diff --check is clean.

No hosted-qualification claim; follow-up review owns the Devin thread disposition.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Docs repair published at 7fb20587.

docs/CI.md:110-116 now states the closed grammar: recognition only at line start after the same list/quote/heading/emphasis/code prefix, whole-value APPROVE with an optional 7–40 hex head SHA to admit, BLOCK/ABSTAIN/empty/mixed/unrecognized refuse, and an APPROVE field is not a readiness carrier. No code, tests, workflows or PR-body changes.

Review dispatched at this head, scoped to whether the doc matches the parser rather than to the coder's summary. The Devin thread PRRT_kwDOSiSx0c63adei is still open and closes with that verdict.

One landing precondition remains after the review: the PR-body Source review: line at the final head, because an empty reply review erases the carrier (#14693).

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_PREFIX as 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.fullmatch accepts 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_ready still requires positive_line on 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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_PREFIX as 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.fullmatch accepts 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_ready still requires positive_line on 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

Copy link
Copy Markdown
Member Author

Qualification requested at 7fb20587.

  • Exact-head review is APPROVE (5903979345) with zero open threads. The Devin thread PRRT_kwDOSiSx0c63adei is resolved against docs/CI.md:110-116, and the review confirmed the doc sentence matches the parser rather than the coder's summary.
  • The PR-body Source review: line is in at this head, so the attestation survives an empty reply review (admission: an empty COMMENTED review replaces the author's carrier, so any reply kills the attestation #14693) — which is exactly what happened once already when the thread reply created an empty review.
  • merge-ready added → routed run 43588205336.

Not admitted until the run is green.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Pre-enqueue coordination at H 3c47818235573a7e9b4b7703db29a026bdf14e51: exact-head source reviews 5909515620/5909582495 are present, and qualification 43687766552 is running. Please preserve the previously recorded #14740-first composition hold: #14740 remains open/queued at 17d7ab15, so current source approval and CI do not establish the carrier-before-neutral composition required by 6887885345. Reconcile with its landed result, then review/validate the actual composed head before enqueue; do not restart the active run merely for this note.

The PR description also still says Source review: REVIEW_INCOMPLETE 704ccf82.... Please reconcile that stale carrier/status with the authoritative exact-head disposition when updating the handoff; do not promote an old-head attestation or treat a body edit as resolving the composition gate. No enqueue, rerun, label change, or approval performed here.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY
3c47818

Copy link
Copy Markdown
Member Author

Qualification receipt at unchanged H 3c47818235573a7e9b4b7703db29a026bdf14e51: run 43687766552 passed Rust gates, all four shards and verifier, but required Result 132741945166 failed at 07:43:04 UTC. Its recorded inputs are ADMISSION_STATUS: admitted, hosted gates/tests success, ELIGIBILITY_RESULT: skipped, and runner query HTTP 401 (REASON: runner_api_failed, hosted fallback target). Thus this is not a Rust/test failure and the aggregate is not green; the skipped live eligibility is independently material to the Result predicate.

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.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 15, 2026

Copy link
Copy Markdown
Member Author

Fresh admission/composition checkpoint: native timeline records this PR entering the merge queue at 2026-11-15 09:06:44 UTC, still H 3c47818235573a7e9b4b7703db29a026bdf14e51. Replacement qualification 43691532772 has now passed, including required Result 132750124069. That resolves the previous run's aggregate failure, not the separately recorded #14740-first composition condition.

#14740 remains open/queued at 17d7ab159de2594a5b249d5abd4afc4755f6e054; no updated owner disposition or actual composed-head proof was found after 6890992935/6891298902. Please reconcile this admission with the existing carrier-before-neutral requirement in 6887885345 and retain exact composed-head review/controls before landing. Queue order alone is not evidence that those semantics were reviewed together. This is a factual coordination receipt, not an approval or request for another CI run. No queue, label, source or CI mutation performed here.

Copy link
Copy Markdown
Member Author

Dependency milestone verified: #14740 has merged as 1ca2136e558598124fa64dc6ff55185bdbb2fa66; native group 43714661579 passed gates, all shards/verifier and required Result 132825874585. This PR remains queued at unchanged H 3c47818235573a7e9b4b7703db29a026bdf14e51.

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.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 15, 2026

Copy link
Copy Markdown
Member Author

Recovery-state update to 6895124581: this PR was removed from the native queue at 2026-11-15 17:47:04 UTC. H remains 3c47818235573a7e9b4b7703db29a026bdf14e51; fresh GitHub REST reports mergeable=false, mergeable_state=dirty. No #14674 group appears among the latest 100 merge-group runs inspected. This is a conflict/composition recovery step, not grounds to retry unchanged CI or enqueue.

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.

@github-actions

Copy link
Copy Markdown
Contributor

merge-ready is set, but this PR conflicts with main (head 3c478182), so GitHub creates no test-merge ref and no qualification run can start. 1. Merge main into the branch and resolve the conflicts. 2. Remove and re-apply merge-ready to request admission and qualification only. 3. After qualification is green, enqueue the PR through the native queue route; re-applying the label does not enqueue it.

Copy link
Copy Markdown
Member Author

Fresh composition checkpoint for the existing recovery owner: #14756 at d134507f5548299f71c799237d3ea1c80c59f71c now has active native merge-group run 43777158992, while this PR remains unchanged at 3c47818235573a7e9b4b7703db29a026bdf14e51 and conflicts with main. Earlier coordination specified #14740 → #14674 → #14756; do not assume that historical landing order still describes the eventual composition.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py runs its own self_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 == True for 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 plus VERDICT: APPROVE <sha> admits; APPROVE / BLOCK, APPROVE | BLOCK, BLOCK | approve and APPROVE, but the docs need work all refuse.
  • | Verdict | BLOCK, Verdict | REPAIR_REQUIRED and | 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 because verdict_row_is_label requires a full label match, not a prefix.
  • without_verdict_table_headers runs before every scan in comment_body_ready, comment_body_negative and body_attests_head, and fenced VERDICT: BLOCK is still caught through negation_hit, so the header filter does not open a fenced bypass.
  • _strip_negated_verdict_words is 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:

  1. The SHA in a marker-path VERDICT: line is parsed and discarded. verdict_disposition accepts APPROVE <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 by commit_id == head in reviews_allow_source_attestation, so a stale SHA cannot admit a stale head — but docs/CI.md says 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.
  2. A lone | Verdict | Notes | row with no delimiter row below it is scored as a negative verdict, not a header. verdict_table_header requires 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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant