Repository navigation
Document how to produce a readiness receipt when checks run remotely - #1382
Conversation
Architecture-Review: unchanged; the coordinator still owns receipt production and readiness still verifies the fingerprint. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on ea3e50d17a6c2f0a6812029d4f8fb8f45fe69db9, 30.3s: 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.
| # Whole-job transport preserves the producer's fields. | ||
| receipt.write_text(json.dumps(payload)) | ||
| assert run(capsys, "ready")[0] == (0 if worker == "matching" else 1) | ||
|
|
There was a problem hiding this comment.
suggestion: Rejected transfer cases do not check the rejection reason
For the legacy and different-path cases, the test only checks that ready exits 1. It never checks that the receipt was rejected for the fingerprint. If ready failed for another reason, such as an unrelated blocker or a changed command list, the test would still pass. Then neither the PATH case nor the legacy case would prove what the task claims. Smallest fix: capture out and assert the exact messages that test_ready_requires_clean_successful_local_report_at_head already checks (lines 3016-3018). Those are not ready: check receipt is missing its settings fingerprint. for legacy and not ready: check receipt has an incompatible settings fingerprint. for different-path.
|
|
||
|
|
||
| @pytest.mark.parametrize("worker", ["legacy", "different-path", "matching"]) | ||
| def test_ready_checks_transferred_whole_job_receipt(wt, gh, capsys, head, tmp_path, monkeypatch, worker): |
There was a problem hiding this comment.
suggestion: New test mostly repeats existing receipt-predicate tests
test_ready_requires_clean_successful_local_report_at_head already covers the legacy (deleted settings_sha256) and matching cases. test_ready_requires_receipt_from_current_check_environment already covers a settings change that leads to an incompatible fingerprint followed by a fresh check. The only new behaviour here is that an inherited PATH difference changes the fingerprint. Also, the 'transport' step (lines 3069-3075) reads checks.json and writes it back unchanged in the same worktree, so nothing is actually transferred. Smaller option: add a different-path case to the existing parametrized test. That keeps one copy of the predicate checks and avoids drift between the two.
| host requires one. On miki, run this from the task worktree. | ||
|
|
||
| ```sh | ||
| HEAVY_SLOT_REMOTE_HOSTS="$HOME/.cache/intelflo-scratch/locks/no-remote-hosts.json" "$HOME/.cache/intelflo-scratch/locks/heavy-slot.sh" loopzero check |
There was a problem hiding this comment.
suggestion: Host-specific miki command in the general setup guide
The acceptance criteria require the exact miki command. But this repo's docs elsewhere link out to consumer runbooks for host procedures (see docs/CODE-HEALTH.md). Hard-coding $HOME/.cache/intelflo-scratch/locks/heavy-slot.sh and HEAVY_SLOT_REMOTE_HOSTS in SETUP.md ties loop-zero's general guide to one host's private path. If that host's lock layout changes, SETUP.md will be out of date and no code here will flag it. Consider labelling the block clearly as a miki-only example, or linking to the host-config runbook that owns the path.
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by claude on 4fcf2301361b78908004f7a6d61a482ef75e028e, 7.0s: approve (0 critical, 0 important, 0 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.
…b-receipt-replacement
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Document how to produce a readiness receipt when checks run remotely
Context and goal
Closes #1280
Acceptance
Notes
Supersedes #1291. This branch carries forward the reviewed fix onto current main for a fresh primary review.
The reported worker revision was unavailable. An older producer explains a missing field and current producers can still differ by effective PATH.
Offline probe with the actual 9f74958 producer and the host receiver preserved the missing field. Current producer receipts transferred by the same receiver were rejected with a different PATH and accepted with matching PATH. The portable CLI tests exercise these three cases without the host adapter.
Base
Base: 72f087e
Validation
Recorded for
57883ccf8cc0uv 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