Repository navigation
Judge review eligibility only on the leading machine block - #1215
Conversation
Eligibility, readiness coverage and the review-budget count now read the review marker only from the first line of the publisher's leading machine block. Marker text quoted in model-written findings no longer voids a genuine review that the budget already counts; a retired pair marker in the leading block is still rejected. Closes #1105 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
loopzero primary review by codex on 4a6f269d361812dd0265673a20ba2955e3a507e5, 29.9s: request_changes (0 critical, 1 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 8f623f33f264433c6a735827778fe1beb5e50ed47489f0aa4dedfa2bc19dc772
| assert cli.eligibility.eligible_review([review], head, (LOGIN,)) is review | ||
| assert cli.eligibility.readiness_review( | ||
| [review], head, (LOGIN,), repo=REPO, number=7, base_branch="main") is review | ||
| assert cli._pr_markers([review], head, (LOGIN,)) == [cli.Marker(head, "primary", "COMMENTED")] |
There was a problem hiding this comment.
suggestion: Exercise the budget counter with two markers inside the leading block
The new budget assertion also passes with the old whole-body search because the genuine marker comes first. Add a case with a second review marker on the next machine-block line and assert that _pr_markers returns an empty list and both eligibility readers return None. This pins the boundary that distinguishes duplicate metadata from a quoted marker.
Publication recovery now matches reviews on other commits only by the review marker opening their leading block, so a marker quoted in another review's findings no longer blocks or conflicts with a repost. A test pins that a second marker inside the leading block voids the review. Refs #1105 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
loopzero delta review by codex on e633fbf32938b9e5cc598c88b4d7aa80d36eda03, 20.4s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Findings without a file location:
- suggestion: Remove the unused CLI marker-regex alias — Switching recovery to
eligibility.leading_markerremoves the last production use ofcli.REVIEW_MARKER_RE. Only two assertions intests/test_cli.pystill use the alias. Point them atrunners.REVIEW_MARKER_REand remove the CLI alias.
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 4eae5d5677602299cbbf7633b58b8dc52c3e51200b836d92f2a55b0a147635f8
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Judge review eligibility only on the leading machine block
Context and goal
<!-- loopzero:... -->lines written by the publisher, starting with the review marker that names the head and review kind. Everything after that block is a summary and model prose.Closes #1105
Acceptance
source=pair._pr_markers),eligible_reviewandreadiness_reviewread the same marker: the first line of the leading block, with exactly one review marker in that block.github.review_payloadswith a suggestion quoting a marker and asserts eligibility, readiness coverage and the budget count.Notes
loopzero review --repost) also matched markers quoted in reviews on other commits; it now uses the leading marker for that cross-commit match (regression test fails at the reviewed head). Added the suggested test that a second review marker inside the leading block voids the review and is not counted.tests/test_cli.py::test_review_marker_quoted_in_prose_neither_voids_nor_hides_a_reviewfails on pre-fix source (eligible_reviewreturns None) and passes after.Base
main @ b0ab7dd
Base: b0ab7dd
Validation
Recorded for
e633fbf32938uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review