Skip to content

fleet queue: #10626 remainders — filing-time state re-check + criterion-6 deployment measurement #12966

Open

Description

@dezren39

Remainders of #10626 (claim-path staleness check, landed in PR #11799 and verified on main 2026-11-23 by lane GG — see the verification record on #10626). Two items were deliberately not part of that landing:

1. Filing-time state re-check (proposal step 5 of #10626)

Packet generators stamp payload.issue.state_checked_at (pm-stack console/dispatch write it), but nothing reads the stamp: a packet whose state_checked_at is older than a small bound (proposal: 1h) is not re-verified at enqueue. The claim-path check is the safety net and catches the class at claim, so this is source-side hygiene, not a correctness hole: generators should re-verify issue state at enqueue or stamp the packet so the claim path checks it first.

2. Criterion-6 deployment measurement

#10626 acceptance criterion 6: within 7 days of deployment, the daily work-failures recompute shows pre_done completions for tasks created after the fix trending to ~0, replaced by staleness_autocomplete events that consumed no session. The 7-day window runs from the queue broker running the #11799 code (broker generation 4, deployed 2026-11-22, is the first confirmed build carrying it). When the window elapses, run the recompute, cite the pre_done trend + interception count on #10626, and close it.

Neither item blocks #10626's implemented criteria (1–5, verified). This issue is the tracking home for both remainders so #10626 can close on the measurement.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    state: claim
    lane: archer, worker: muse (Lane HE)

    Claiming slice 1 of this issue: the filing-time state re-check (proposal step 5 of #10626). Packet generators stamp payload.issue.state_checked_at but nothing reads it; I will wire the read side so a packet whose stamp is older than the bound is re-verified (staleness probe) rather than trusted. Criterion-6 measurement (item 2) is not due until ~2026-11-29 and stays open here.

  3. added a commit that references this issue on Nov 23, 2026
  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    state: done (item 1 of 2)
    lane: archer, worker: muse (Lane HE)

    Item 1 (filing-time state re-check) is landed — PR #12991 merged, merge commit fe850a8300affb562359e07cfb7e2d59b25b626f, head 82176bfb7a9 SHA-guarded; the new code is re-read on origin/main.

    What it does: enqueue (verb_enqueue) now reads the stamp the generators already write, payload.issue.state_checked_at. When the stamp is older than FILING_RECHECK_AFTER (1h — the bound proposal step 5 of #10626 names), the broker re-verifies the packet's linked work through the same probe/cache/backoff the claim-time check uses, and a landed verdict retires the fresh row in place: already_done result with the staleness evidence and a staleness_autocomplete event (via: enqueue_staleness_check), so the criterion-6 measurement counts filing interceptions too. A fresh stamp is trusted with zero lookups; a missing or unparsable stamp files exactly as before; staleness_check: false and FLEET_STALENESS_CHECK=0 opt out of both halves. Dedupe-hit and work-identity-collision returns are untouched (nothing was filed). retire_stale gained the via as a parameter — the claim path passes its existing value unchanged.

    Verification: cargo test -p fleet-queue --features queue-broker staleness — 15 passed / 0 failed, including 4 new tests (stamp source; age gate — 15 min trusted, 3h re-checked, garbage/future fail open; filing verdict — old stamp + landed = tier 1, fresh/missing stamp = probe never called, old stamp + still open = files live; source-order test pinning the re-check after the enqueue INSERT). Full fleet-queue suite: 520 ok / 0 failed at last read, one unrelated pre-existing sqlite-replica generated-sequences proptest still running long under load. cargo fmt --check clean on the three touched files.

    This issue stays open for item 2 — the criterion-6 seven-day deployment measurement (window from broker generation 4, deployed 2026-11-22; due ~2026-11-29): run the daily work-failures recompute, cite the pre_done trend + interception count on #10626, and close both there.

  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    state: reopened — correction
    lane: archer, worker: muse (Lane HE)

    Reopening: the close at 06:34:06Z was a GitHub auto-close accident, not a verdict. My PR #12991 commit message contained the sentence "Does not close #12966" and GitHub's parser matched the closing keyword inside the negation (the same failure mode recorded on #787 earlier tonight). Item 1 is landed (see the record above); item 2 — the criterion-6 seven-day deployment measurement, due ~2026-11-29 — is still outstanding, and this issue is its tracking home. It should close only when that measurement is recorded on #10626.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions