Skip to content

Decide the pre-Claim Pickup dispatch guarantee after model counterexample #1068

Open

Description

@JacobStephens2

Finding

PR #1067, implementing #881, found that the literal promise "at most one Run or Spec run dispatched per Ready generation" does not hold before a Claim is made. This is an existing protocol finding, not a product-code change in that PR.

Counterexample in GLOSSARY terms:

  1. Pickup host A selects a Ready issue at Claim-application count 0, acquires its origin reservation, and refreshes Ready and the unchanged count.
  2. A dispatches a Run. That Run fails during preparation, interruption checking or Claim creation before a label mutation succeeds.
  3. A releases its reservation. The issue is still Ready; its Claim count is still 0.
  4. Pickup host B selects/reserves/refreshes that same Ready generation and dispatches a second Run.

No Claim was made and no paid implementation work needs to have started in A. This disproves the stated dispatch property; it does not demonstrate simultaneous implementation sessions. A crash at the same boundary, followed by confirmed-dead reservation deletion by the Day shift, admits the same order.

Evidence

The model preserves separate dispatch and Claim actions. At PR head b93e63a, this command produces a 14-step counterexample and exits 101:

cargo test --locked --test pickup_model assert_requested_property -- --ignored --exact --nocapture

The source dispatches before calling into Run startup:

The separate claimed-dispatch property passes bounded exploration of 70,197 states with three hosts. Removing either the Claim-count comparison or empty create lease breaks that narrower property. The PR retains the literal property and a positive regression for its counterexample; a green normal suite is explicitly not proof of the literal guarantee.

Why the Day shift must decide

#881 explicitly prohibits product-code changes and requires reporting a counterexample rather than weakening the model/property. The Day shift must decide whether to change Pickup to consume a Ready generation before dispatch, or deliberately define the intended guarantee at successful Claim handling / implementation work instead of the earlier dispatch boundary. That is a product/spec decision outside this verification-only task. No promise is changed and no product fix is included in PR #1067.

This issue carries only needs-triage; it has no blocking links and pauses no work.

Activity

  1. added
    needs-triage
    on Oct 22, 2026
  2. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Triage: ready for a human

    PR #1067 merged and #881 is closed. The model test keeps both properties: "one dispatch per Ready generation" fails, "one claimed dispatch" holds. Choosing the guarantee is a coordination-protocol decision that the issue reserves for the Day shift. A failed pre-Claim dispatch being retried by another host arguably helps, so the narrower guarantee may be right.

    Next step: either consume the Ready generation before dispatch, or define the guarantee at the Claim and update ADR 0017 and the model.

  3. added
    enhancement
    ready-for-human
    and removed
    needs-triage
    on Oct 25, 2026
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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions