Skip to content

review_gate: count a PASS written above the tip line or inline (tip SHA) #915

Closed as not planned

Description

@HugoXK

Implementation: AgentDescent (ours) — PR follows in this session; do not pick up.

Lane: AgentDescent Dev-1 (core); lead: AgentDescent Lead.

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> (#774 a1af3a5), and Verdict: PASS (tip <short hex>) with no Tip SHA: line (#776 b0a3022, #782 e154f35).

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.

Activity

  1. added
    area:ci
    agent-working
    chore
    on Nov 9, 2026
  2. changed the title [-]review_gate: count a PASS written above the tip line or inline as (tip &lt;sha&gt;)[/-] [+]review_gate: count a PASS written above the tip line or inline (tip SHA)[/+] on Nov 9, 2026
  3. HugoXK commented on Nov 9, 2026

    @HugoXK
    CollaboratorAuthor

    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.

  4. removed
    agent-working
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cichore

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions