Skip to content

Explain wrong-head, dirty, failed, and changed-plan check receipts #1468

Done

Description

@eowca

Current message

not ready: run loopzero check at this head

At

def _check_report_problem(
the same reason covers a missing receipt, an older head, a dirty receipt, a failed stage, and a different ordered command list. A check repeated on the same dirty checkout or against the same deterministic failing stage does not clear readiness. #1294 fixed the fingerprint-only variants, and #1382 documented how to produce a compatible receipt. This issue covers the earlier guard.

Reproducer

Run loopzero ready with one of these synthetic receipts: a clean passing report for another SHA, an exact-head dirty report, an exact-head report with a failing stage, or a passing report whose commands differ from the current workflow. The configured workflow and remote PR can be held constant. Each variant returns the same reason from _check_report_problem.

Proposed wording

  • “Check receipt is for . Run loopzero check at .”
  • “Check receipt was recorded in a dirty worktree. Run git status --short, settle the changes, then run loopzero check.”
  • “Check receipt records a failed stage. Fix the failure, then run loopzero check. Retry unchanged only if the failure was transient.”
  • “The receipt's check plan differs from the trusted workflow. Run loopzero check with the current workflow.”

Acceptance

  • Readiness distinguishes those causes, with an explicit command or blocking decision for each. A missing receipt still asks for a current check.
  • Interrupted or incomplete receipts can resume a check without implying their results passed.
  • Preserve fingerprint-specific remedies, receipt format, validation and exit behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions