Repository navigation
Surface recoverable saved reviews before retrying - #1127
Conversation
Architecture-Review: unchanged; existing receipt validation and explicit repost still govern publication. Co-Authored-By: Codex <noreply@openai.com>
0050bc4 to
db11fe5
Compare
There was a problem hiding this comment.
loopzero primary review by claude on db11fe54778c4df18e735c6e08c82b3a6d03d8d1, 38.9s: approve (0 critical, 0 important, 2 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| result = _load_review(wt, head, kind, publication=publication) | ||
| candidates, excluded = _repost_reviewer_families(wt, config, head, result) | ||
| if result.fallback and not _published_fallback(result.fallback, candidates, excluded): | ||
| return False |
There was a problem hiding this comment.
suggestion: Recoverability check copies the repost path's fallback and evidence checks
_has_recoverable_review repeats two checks from cmd_review: the _published_fallback check (line 751) and the codex_evidence repo/pr/publisher comparison (line 781). The repost path also checks the saved publication in two different ways. _load_review(..., publication=...) uses exact dict equality, while lines 737-743 re-read the file and compare it field by field. If one copy changes later, plain retry can call a receipt recoverable while --repost rejects it, or the reverse. That would bring back the dead end or the double-review this PR fixes. Smallest fix: move the fallback-form and evidence-context checks into one shared helper (for example, extend _repost_reviewer_families to also check _published_fallback) and call it from both paths.
| if args.model is None and args.effort is None and _has_recoverable_review( | ||
| wt, config, head, kind, publication_context, | ||
| ): | ||
| raise CliError(f"saved {kind} review for {head[:12]}; run `loopzero review --repost`") |
There was a problem hiding this comment.
suggestion: Refusal message doesn't say how to get a fresh review on purpose
When a valid receipt exists, a plain loopzero review stops and only points to --repost. The only documented ways to get a fresh review are --model or --effort, but the error doesn't mention them. Someone who wants to discard the saved result has to read the code to find out. Smallest fix: add to the message, e.g. "...; or pass --model/--effort to run a fresh review".
|
@Mergifyio queue |
❌ Left the queue ·
|
|
No description provided. |
|
@Mergifyio queue |
❌ Left the queue ·
|
|
No description provided. |
|
@Mergifyio queue |
❌ Left the queue ·
|
|
No description provided. |
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
A plain review retry now identifies a usable saved result for the selected round, head, PR and publisher, then points to
loopzero review --repost. Explicit reviewer overrides and invalid or unrelated receipts still allow a fresh review.The regression test interrupts immediately before publication, verifies that plain retry preserves the receipt, then replays it through
--repostwith one model launch and one review publication.Closes #1092
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review
Validation
Recorded for
23981113d785uv 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 0