Skip to content

fix(review-gate): count a PASS written above the tip line or inline (tip SHA) - #916

Closed
HugoXK wants to merge 1 commit into
mainfrom
agent/915-gate-shapes
Closed

HugoXK wants to merge 1 commit into
mainfrom
agent/915-gate-shapes

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Fixes #915.

What changed

Red tests only in this PR; the fix to .github/scripts/review_gate.py follows in a later commit. tests/test_process_review_gate.py now pins the two shapes the owner's agent writes — Verdict: PASS above the Tip SHA: line (#774) and Verdict: PASS (tip b0a30224) with no Tip SHA: line (#776/#782) — and keeps the bar where it is: a 7-hex tip that is not the head stays NOT PASS, a tip in another comment stays NOT PASS, and an evidence-less PASS counts only as weak: no Ran:/Not run:. The old rejection of a PASS without Ran:/Not run: is replaced by that marker. One changelog fragment.

At this tip the gate still reads both shapes as "says nothing at this tip", so the three shape tests fail as intended.

Verification at the tip

Tip SHA: ce1cf9e75c9a38cb9e154b253bebda6d5e1a5384

Ran:

  • python3 -m pytest tests/test_process_review_gate.py -q → 12 passed, 3 failed (the red: test_a_pass_without_evidence_counts_but_is_marked_weak, test_a_verdict_above_the_tip_line_counts, test_a_verdict_carrying_its_tip_inline_counts)
  • python3 -m tools.changelog_fragments check → 64 fragments OK
  • python3 -m pytest tests/test_changelog_fragments.py -q → 45 passed

Not run:

  • full pytest -q — never finishes on this host (killed at 84% after 28 minutes), so the touched gate file and the changelog check are run directly
  • mkdocs build --strict — no docs/ or mkdocs.yml change

@HugoXK HugoXK changed the title fix(review-gate): count a PASS written above the tip line or inline as (tip &lt;sha&gt;) fix(review-gate): count a PASS written above the tip line or inline as (tip <sha>) Nov 9, 2026
@HugoXK HugoXK changed the title fix(review-gate): count a PASS written above the tip line or inline as (tip <sha>) fix(review-gate): count a PASS written above the tip line or inline (tip SHA) Nov 9, 2026
@HugoXK HugoXK closed this Nov 9, 2026
The gate counts a PASS only when one report carries a Tip SHA line naming the
head and a Verdict at or after it, so on 2026-11-09 #774/#776/#782 read as
"says nothing at this tip" while the owner's agent had a PASS at the right tip.
These tests pin both shapes (Verdict above the tip line, and an inline
`Verdict: PASS (tip <sha>)`), keep a short sha that is not the head NOT PASS,
keep the tip and its verdict in one report body, and mark an evidence-less PASS
`weak: no Ran:/Not run:` instead of dropping it. Red on main: the three shape
tests fail; the fix follows separately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants