Skip to content

id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572

In progress

Description

@dezren39

Summary

Implement spill v2 phase 1 from the #5787 design (doc/2026-11-08_design_id5787.md, §1–§2): the spill pool and automatic holder failover for the #2819 lease protocol.

Scope

  • Grantor-side pool roster and per-grant eligibility (authenticated, reachable, caught up within the bound).
  • Reader-then-holder join: a node becomes grant-eligible only after serving as a read replica within the catch-up bound across the design's observation window.
  • Deterministic selection policy (caught-up first, healthy/least-loaded, stickiness, identity tie-break) and minimum-tenure flap protection.
  • Automatic failover sequence: fence (expiry or journaled revoke) → select → grant at epoch+1 → replay barrier → resume; DO self-grant when no successor is eligible.
  • holder-lost retryable result for commands in flight during failover; command-level dedupe posture unchanged from v1.
  • Owns the id: design: spill v2 — native spill pools, lease failover and multi-holder fencing (extends #2819) #5787 Q2 evidence duty: measure failover detection/grant/replay times (extending the id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 failure walkthroughs) before any proposal to change the 30s/10s term/renewal defaults.

Trigger / gating

Do not start until trigger T1 fires: v1 phases #3804 and #3805 have landed (journaled lease entries, epoch fencing, both handoffs proven). Design: #5787. Depends on: #3805.

Acceptance

  • Failover oracle cases from the design §7 pass deterministically (holder death with/without eligible successor, reconnect of a fenced holder, failover vs handback race, grant storm).
  • No grant is ever issued before the predecessor epoch is fenced; epochs stay a single per-world monotonic chain.
  • Failover measurements recorded on this issue (the Q2 deciding evidence).

Activity

  1. added
    app/id
    on Nov 8, 2026
  2. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor
  3. added
    priority/low
    effort/l
    status/waiting-dependency
    meta/enriched
    on Nov 8, 2026
  4. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Intake review

    — fleet monitor intake (repo-fleet-monitor), 2026-11-08

  5. added
    queue/queued
    task/triage
    on Nov 8, 2026
  6. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · triaged — real, gated on trigger T1 (unmet); parked

  7. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor
  8. added
    queue/parked
    status/parked
    and removed
    queue/queued
    on Nov 9, 2026
  9. 137 remaining items

  10. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Verification recheck — lane code-h (2026-11-28)

    Keep OPEN; sole remainder is Q2(b) game-day evidence, gated on a deployed environment. No code change.

    Fresh verification against current origin/main (b3bfbc1df81), in worktree branch code-h/7572-spill-v2-phase1-slice1 (verification only, no commits):

    Next action: run the game-day holder-death failover in a deployed test environment and record the detection/grant/replay timeline here.

  11. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Verification recheck — lane oc-code-03 (2026-11-28)

    Keep OPEN; sole remainder is Q2(b) game-day evidence, gated on a deployed environment. No code change.

    Fresh verification against current origin/main (cd95dab372d, detached verify worktree, no commits):

    Next action: run the game-day holder-death failover in a deployed test environment and record the detection/grant/replay timeline here.

  12. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor
    \n\n## Verification recheck — lane oc-code-01 (priority draw)\n\n**Keep OPEN; sole remainder is Q2(b) game-day evidence, gated on a deployed environment. No code change.**\n\nFresh verification against current `origin/main` (`61026d4e8d7`), in worktree branch `oc-code-01/7572-verify-oracles` (verification only, no commits):\n\n- Trigger T1 fired: #3804 / #3805 CLOSED. All eight F1 slices still MERGED. No open PR references this issue.\n- Acceptance 1 (failover oracle §7 cases, deterministic): **pass** — `cargo test -p id-worlds --lib spill_` → 35 passed, 0 failed (via `~/tools/fleet-build-lock`, run from `pkgs/id`), incl. `every_failover_plan_fences_and_advances_one_global_epoch_chain` and `failover_and_handback_races_have_one_serialized_winner`.\n- Acceptance 2 (fence before grant; single monotonic epoch chain): **pass** — `execution_journals_fence_then_grant_and_names_the_barrier` green; `cargo test -p id-worlds --lib holder` → 10 passed, 0 failed.\n- Acceptance 3 (Q2 measurements): part (a) pinned (`q2_failover_measurements_pin_the_design_bounds`, `failover_measurements_match_the_q2_design_bounds` green); part **(b) outstanding** — requires a real or game-day holder-death failover timeline recorded here. No deployed game-day environment is available to this lane, so no evidence fabricated and no code changed. Lease defaults stay 30s/10s.\n\nNote: my seat checkout was ~5000 commits stale and lacked `spill_pool.rs`; all evidence above is from a fresh worktree at current main, not the stale checkout.\n\nNext action: run the game-day holder-death failover in a deployed test environment and record the detection/grant/replay timeline here.
  13. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    1622-L verification recheck — delta PRESS queue-draw-2 (continuation), 2026-11-28 ~22:43Z. Drawn via fleet agent next — rung: shortlist (push empty, queue rung: no task claimable). No queue task id issued, so this note is the disposition of record.

    Premise + ownership check firsthand: issue + ALL 85 comments read. No live claim (last claim released by any-o 2026-11-28T00:30-06:00), no held/user labels. State unchanged since oc-code-01's recheck at 08:49:40Z (updated_at matches): all eight F1 slices merged, acceptance 1–2 hold, Q2(a) pinned; sole remainder is Q2(b) game-day evidence, gated on a deployed environment — no code change exists for this lane. Keep OPEN. Concurring with today's rechecks by oc-code-03, any-o, code-h, and oc-code-01.

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    0137-F verification recheck — alpha DRIVE queue draw (shortlist rung rank 3), 2026-11-29 ~01:45 CST.

    Drawn via fleet agent next (rung: shortlist; queue rung empty — no task claimable). Fresh firsthand verification by this lane:

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Drawn via fleet agent next (shortlist rung, rank 3), 2026-11-29 ~02:19 CST. Premise check: concur with the standing verdict (most recently lane 0137-F at 2026-11-29T07:42Z, ~35 min ago) — all implementation slices merged, acceptance 1–2 pass, sole remainder is Q2(b) game-day evidence gated on a deployed environment. No landable code slice exists in this item. Keep OPEN; this lane pulls its next item.

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane 0640-I drew this via fleet agent next, 2026-11-29 ~06:40 CST. Premise check: concur with the standing verdict (most recently lane felix at 2026-11-29T08:17Z) — trigger T1 has fired (#3804, #3805 closed), implementation slices merged, acceptance 1–2 pass; sole remainder is Q2(b) game-day evidence gated on a deployed environment, which is not producible from this seat. No landable code slice exists in this item. Keep OPEN; this lane pulls its next item.

  17. added
    status/blocked
    on Nov 29, 2026
  18. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — CEN-C05, 2026-11-29 (Drew's full issue census)

    State re-verified firsthand (three independent lane checks today concur): trigger T1 has fired (#3804, #3805 closed), all five implementation slice PRs are merged (#14749, #14991, #15041 et al.), and acceptance criteria 1–2 pass.

    • Sole remainder, named: the Q2(b) game-day evidence — failover measurements from a deployed environment. That evidence cannot be produced from an agent seat; it needs a deployed spill environment and a scheduled game-day.
    • Added status/blocked with this note — the issue carried no status label, so lanes kept drawing it via fleet agent next and re-verifying the same no-slice verdict (three times today alone).

    priority/high stands: when a deployed environment exists, this evidence is the deciding input for the 30s/10s term/renewal defaults.

  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  20. added
    priority/low
    and removed
    priority/high
    on Nov 29, 2026
  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Priority validation 2026-11-29 (Felix): priority/high → priority/low — implementation is complete; the sole remainder is a deployed-environment game-day evidence run (venue-gated, not time-sensitive work), and this restores the priority/low band Drewry personally set, which a census dedup pass had displaced.

  22. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: none material.

    Strengths: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; ## Acceptance section plus explicit trigger gating present.

    Blocker: trigger T1 stated in the body: v1 phases #3804 and #3805 must land first — do not start until T1 fires.

    Actions taken: Verified complete — no changes needed.

    Priority: priority/low retained — matches the work's urgency as evidenced on the issue; no band change.

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

    app/ideffort/lepic/id-programkind/enhancementmeta/enrichedpriority/lowstatus/blocked

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions