You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
review_gate: count a PASS written above the tip line or inline (tip SHA) #915
area:ciCI workflows, release, packaging and the repo process (.github/, AGENTS.md)choreCI, tooling, process or release work; no change to what the package does
review_gate.decide() counts a reviewer PASS only when one report carries a Tip SHA: naming the head and a Verdict: at or after that line (.github/scripts/review_gate.py). The owner's agent writes PASSes in two other shapes, so on 2026-11-09 all three queued T3 PRs sat at their correct tips while the gate read "says nothing at this tip": Verdict: PASS above Tip SHA: <40 hex> (#774a1af3a5), and Verdict: PASS (tip <short hex>) with no Tip SHA: line (#776b0a3022, #782e154f35).
Add to .github/scripts/review_gate.py:
Parse the tip from a Verdict: PASS (tip <hex>) line when the report has no Tip SHA: line.
Find the Verdict: when it sits above the last Tip SHA: line, as long as both are in the same report body and no other Tip SHA: line sits between them.
Take the tip only from that same body: a 7-40 hex sha counts when it is a prefix of the head (today's comparison stays); a sha that is not a prefix, a missing sha, or a tip that only appears in a different comment stays NOT PASS (no cross-body stitching).
Keep every present rule: tip must name the head, login must be in reviewers, the author rule, newest report wins, a later FAIL at the same tip still vetoes.
A PASS with a tip but no Ran:/Not run: still counts, but the result dict and render() mark it weak: no Ran:/Not run:, so an evidence-less PASS is visible rather than silent. weak: no Ran:/Not run: is the only wording for it; "counted PASS" means a strong PASS that lists both Ran: and Not run:.
Tests for: Verdict-above-Tip, Verdict-with-inline-tip, a 7-hex tip that is not a prefix → NOT PASS, tip-in-another-comment → NOT PASS, weak flag present.
Update the module docstring to the new rule.
Acceptance: gate tests green; the three 2026-11-09 bodies now decide PASS at their tips; a 7-hex tip that is not a prefix still decides NOT PASS; changelog fragment.
changed the title [-]review_gate: count a PASS written above the tip line or inline as (tip <sha>)[/-][+]review_gate: count a PASS written above the tip line or inline (tip SHA)[/+]on Nov 9, 2026
agent/915-gate-shapes at ce1cf9e; draft PR #916 carries the red tests and the changelog fragment. At that tip tests/test_process_review_gate.py is 12 passed, 3 failed — the three shape tests in this issue. The review_gate.py fix follows in a later commit.
area:ciCI workflows, release, packaging and the repo process (.github/, AGENTS.md)choreCI, tooling, process or release work; no change to what the package does
Activity
[-]review_gate: count a PASS written above the tip line or inline as (tip <sha>)[/-][+]review_gate: count a PASS written above the tip line or inline (tip SHA)[/+]HugoXK commentedon Nov 9, 2026
agent/915-gate-shapesatce1cf9e; draft PR #916 carries the red tests and the changelog fragment. At that tiptests/test_process_review_gate.pyis 12 passed, 3 failed — the three shape tests in this issue. Thereview_gate.pyfix follows in a later commit.fix(review-gate): count a PASS above the tip line, on a bare Tip: lab…