Repository navigation
Conversation
Architecture-Review: unchanged; status uses readiness's existing receipt verifier without changing any gate. Co-Authored-By: Codex <noreply@openai.com>
…eceipt # Conflicts: # tests/test_cli.py
Architecture-Review: unchanged; the test still sends the signal when the gh child starts. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on f41fe7240eda28012d166dd625a38de33087a418, 31.1s: approve (0 critical, 0 important, 3 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.
| print(f"dirty: {'yes' if worktree.is_dirty(wt) else 'no'}") | ||
| dirty = worktree.is_dirty(wt) | ||
| print(f"dirty: {'yes' if dirty else 'no'}") | ||
| checked = not dirty and _current_check_report(wt, config, head) is not None |
There was a problem hiding this comment.
suggestion: Receipt is verified twice when a PR exists
When a PR exists, cmd_status checks the receipt once through _current_check_report to print the status line. Then _readiness (cli.py:286-287) loads the same receipt again and recomputes sandbox.settings_fingerprint. If a check runner is configured, that also re-hashes the runner executable. The two results should agree, but the work is duplicated, and the line and the readiness reason could drift if either path changes later. Smallest fix: compute _load_report plus _check_report_problem once in status and pass the result to _readiness through an optional parameter. Alternatively, accept the extra cost, since status is not a hot path.
| dirty = worktree.is_dirty(wt) | ||
| print(f"dirty: {'yes' if dirty else 'no'}") | ||
| checked = not dirty and _current_check_report(wt, config, head) is not None | ||
| print(f"local checks: {'passed' if checked else 'no reusable pass'}", flush=True) |
There was a problem hiding this comment.
suggestion: New label breaks the aligned status columns
Every other status line pads its label to a 10-character column (dirty: , pr: , ready: ). local checks: is wider and misaligns the output. Consider a shorter label that fits the column, such as checks: passed or local: passed, and update the test strings to match. This is cosmetic only.
| assert sum(1 for c in gh.calls if c["argv"][:2] == ["api", reviews_key()[4:]]) == 1 | ||
|
|
||
|
|
||
| @pytest.mark.parametrize("receipt", ["pass", "missing", "partial", "failed", "stale", "fingerprint"]) |
There was a problem hiding this comment.
suggestion: Clean-tree dirty receipt is not covered in the no-PR test
The acceptance criteria include rejecting dirty worktrees and dirty receipts. test_status_full covers a dirty worktree only with a PR present. The new parametrized test has no case for a receipt whose "dirty": true on a clean tree. Adding a "dirty" parameter that sets report["dirty"] = True would cover the report.dirty branch of _check_report_problem on the no-PR path.
|
Owner queue route for |
|
@Mergifyio queue |
❌ Left the queue ·
|
|
Parked at the approved head. Mergify candidate #1441 measured 13,886 test lines against |
|
Closing on Lean's decision from the test-line supply audit (#575 (comment)): this PR's test and source cost on a full cap outweighs its measured benefit. The approved work stays in the branch history. Reopen or replace it only with new evidence of a material, measured saving or failure. |
Show reusable local checks in status
Context and goal
Fixes #1301
Replaces #1316 after a merge conflict in the status tests required a fresh review.
Acceptance
Base
Base: 2ef0b72
Notes
The offline no-PR replay failed on main because the local line was absent at lookup. The focused status suite passes with the fix, covering receipt rejection and pending hosted CI.
Validation
Recorded for
462bb6b991ab(not current head) (unverified, runloopzero check)uv 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