Skip to content

Document how to produce a readiness receipt when checks run remotely - #1382

Merged
mergify[bot] merged 3 commits into
mainfrom
lean178/1280-whole-job-receipt-replacement
Nov 26, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
lean178/1280-whole-job-receipt-replacement

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Document how to produce a readiness receipt when checks run remotely

Context and goal

  • Goal: Operators can produce a receipt that local ready accepts while delegating check execution.
  • Problem: A whole-job remote worker can pass its checks and deliver a receipt that ready rejects because the fingerprint is absent or incompatible.
  • Context: The worker produces the receipt. The local receiver preserves its fields. Ready validates the receipt against effective coordinator settings.

Closes #1280

Acceptance

  • Document the local coordinator, trusted stage runner, and local slot fallback including the exact miki command.
  • Explain when whole-job receipts can transfer, and link the existing owner queue conditions without treating required CI as a replacement receipt.
  • Exercise a legacy receipt, a current receipt with a different inherited PATH, and a matching receipt offline without changing the trust boundary.

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 57883ccf8cc0

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

Architecture-Review: unchanged; the coordinator still owns receipt production and readiness still verifies the fingerprint.
Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread tests/test_cli.py Outdated
# 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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread tests/test_cli.py Outdated


@pytest.mark.parametrize("worker", ["legacy", "different-path", "matching"])
def test_ready_checks_transferred_whole_job_receipt(wt, gh, capsys, head, tmp_path, monkeypatch, worker):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread SETUP.md
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@eowca
eowca marked this pull request as ready for review November 26, 2026 02:37
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as b8abab8 at 02:49 UTC

9 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 02:40 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1421
  • ✅ Merged 02:49 · b8abab8 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit b8abab8 into main Nov 26, 2026
11 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1280-whole-job-receipt-replacement branch November 26, 2026 02:50
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.

Document the readiness route for whole-job remote checks

1 participant