Skip to content

Explain why readiness rejected a local check receipt - #1498

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/1470-check-receipt-messages
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/1470-check-receipt-messages

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain why readiness rejected a local check receipt

Context and goal

  • Goal: Readiness gives a specific remedy for an unusable local check receipt.
  • Problem: Missing, stale, dirty, failed and changed-plan reports all produce the same retry instruction.
  • Context: The existing validation and fingerprint remedies already enforce the receipt requirements.

Closes #1470

Acceptance

  • Wrong-head, dirty, failed, changed-plan and incomplete receipts have different actionable messages. A missing receipt still requests a current check.
  • Fingerprint-specific messages, exit codes, accepted receipt conditions and receipt format remain unchanged.

Notes

  • The existing invalid-receipt test reproduced the generic message for all five variants. The focused receipt suite passed after the wording change, with zero net test lines.
    The existing architecture already defines each receipt requirement. Only the diagnostic changes.

Base

main @ 504a97a

Validation

Recorded for 84277f2c276f

  • 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

  • primary, codex, a42ca77, request_changes
  • delta, codex, 84277f2, approve

Architecture-Review: unchanged; receipt predicates and their precedence are preserved.
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 codex on a42ca7733a193326f3427cd30e5c1185b9404e6b, 34.4s: request_changes (0 critical, 2 important, 0 suggestion)

Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: c1a5281cf82521fb73c40df1b7eee10ca17cae9068f7f3dc5719ab1341e20c84

Comment thread src/loopzero/cli.py Resolved
Comment thread src/loopzero/cli.py Resolved
Architecture-Review: unchanged; the existing checkpoint marker and check receipt validation are preserved.
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 delta review by codex on 84277f2c276f873313f1a00bea9c1e00a38b17e9, 19.9s: approve (0 critical, 0 important, 1 suggestion)

Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 16639afc70cf9f8f7fc725bbb9a550969449e5af70a77f4c4861945ab28abacd

Comment thread tests/test_cli.py
assert code == 1 and "run loopzero check at this head" in out
assert code == 1 and f"not ready: {reason}" in out
assert "receipt accepted:" not in out

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: Assert the remedy for each rejected receipt

The parameterized test checks each rejection reason, but it would still pass if the recovery instructions disappeared. Add a short expected action to each case, such as git status --short for a dirty receipt and resume with the current workflow for a checkpoint, so the test covers the actionable part of the message.

@eowca
eowca marked this pull request as ready for review November 26, 2026 07:06
@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 0a1defc at 07:16 UTC

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

So far

  • ✅ Entered the queue Thu 26 Nov, 07:06 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1600
  • ✅ Merged 07:16 · 0a1defc · 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 0a1defc into main Nov 26, 2026
18 checks passed
@eowca
eowca deleted the lean178/1470-check-receipt-messages branch November 26, 2026 07:16
@mergify mergify Bot removed the queued label 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.

Tell agents which command to resume after a source-check wait expires

1 participant