Skip to content

Fail closed when the delegated check runner changes during execution - #1287

Closed
eowca wants to merge 2 commits into
mainfrom
lean178/1282-unverified-runner
Closed

eowca wants to merge 2 commits into
mainfrom
lean178/1282-unverified-runner

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Fail closed when the delegated check runner changes during execution

Context and goal

  • Goal: A runner change leaves the operator with a clear rerun instruction and a nonzero check exit.
  • Problem: A check can report PASS even when a runner upgrade prevents it from producing a receipt that ready can use.
  • Context: The local coordinator fingerprints the delegated runner and invalidates the fingerprint if it changes during execution.

Closes #1282

Acceptance

  • A successful delegated stage with missing or changed runner identity yields a nonzero check exit and explains how to rerun from the task worktree with a stable, readable runner.
  • Keep recorded stage results and reject the unverified receipt. A stable rerun restores readiness without automatically retrying stages.

Notes

Keep coordinator-owned fingerprints and the existing receipt predicate. Preserve stage exit codes so an operator can distinguish execution success from receipt verification.

The offline runner-retarget regression failed before the fix because check returned 0.

Base

Base: fa78ebb

Validation

(no loopzero check run recorded)


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

Review

  • primary, claude, 8411718, approve

Architecture-Review: unchanged; the coordinator still owns runner fingerprinting and readiness still verifies the receipt.
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 84117182e4c8986cbe51dc7696502c66c6cb7931, 18.1s: approve (0 critical, 0 important, 1 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
assert run(capsys, *args, "check")[0] == 1


def test_check_refuses_unverified_receipt_after_runner_retarget(wt, gh, capsys, head, tmp_path):

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: Only the mid-run retarget case is tested, not a runner that is missing from the start

The acceptance criteria cover two cases: runner identity that is missing, and runner identity that changes. The new test only covers the change during execution. A runner whose identity can't be resolved at the start also goes through the new branch, because settings_fingerprint returns None when runner_executable is None (sandbox.py:300). I checked by reading the code, not by running it. A small parametrized case where the configured runner can't be resolved from the start, but the stage still reports exit 0, would lock in that behaviour too. This doesn't block the change.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1381, which carries the runner receipt fix onto current main with a fresh primary approval and passing local checks.

@eowca eowca closed this Nov 26, 2026
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.

Report when a runner change prevents a usable check receipt

1 participant