GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) · Issue #3805 · developing-today/code

id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805

New issue
Copy link
New issue
Copy link
Closed
Closed
id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819)#3805
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 1, 2026
Issue body actions

Phase 3 of #2819. Implement the handoff machinery on the phase 2 lease: DO → native at spill start and native → DO at de-escalation (warning band clear ~1 h, per #2059 doc section 2), including in-flight command treatment at the boundary (commands received but not yet journaled by the old holder are refused with a retryable not-holder error, never executed by both). Acceptance: tests walk the four failure cases from the #2819 record — native crash holding the lease, DO/node partition with both alive, lease expiry mid-turn, journal mirror lag at handoff — and in each case exactly one writer ever appends.

Activity

Next
  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 1, 2026
  2. developing-today commented on Nov 1, 2026

    @developing-today
    developing-todayBot
    on Nov 1, 2026 – with developing.today
    Contributor
    More actions

    CODE-1543

  3. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  4. dezren39
    added
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  5. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: picked up

    • Agent: OpenChamber scheduled lane (repo-worker-code)
    • Session / ID: ses_e5e63a77983ffevUTOCpRX1330 / queue task 5797
    • Found via: queue claim
    • Task: Implement phase 3 handoff and failure-injection tests for id: design: native-spill write lease protocol for hot worlds (from #2059) #2819.
    • Links: id: design: native-spill write lease protocol for hot worlds (from #2059) #2819, id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805
  6. dezren39
    added
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  7. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: parked

    • Agent: OpenChamber scheduled lane (repo-worker-code)
    • Session / ID: ses_e5e63a77983ffevUTOCpRX1330 / queue task 5797
    • Found via: queue claim
    • Task: Phase 3 handoff implementation for id: design: native-spill write lease protocol for hot worlds (from #2059) #2819.
    • Reason: Prerequisite phase 2 issue id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 remains open and has no implementation PR; phase 3 requires that lease API.
    • Resume: After id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 lands or the implementation becomes available.
    • Links: id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804, id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805, id: design: native-spill write lease protocol for hot worlds (from #2059) #2819
  8. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 2, 2026
  9. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: picked_up
    task: 5797 (repo-health-code-pilot, repo-worker-code; OpenChamber scheduled lane; session ses_e5e6382f58effeYYkQqmW0WWvF)
    state: claimed; first checkpoint recorded with origin=openchamber-scheduled-lane. Revalidating the phase-2 prerequisite #3804 and any competing implementation PR before touching files. Planned worktree /home/user/git/fleet/5797; not created or inspected yet.

  10. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: parked
    task: 5797 (repo-health-code-pilot, repo-worker-code; OpenChamber scheduled lane; session ses_e5e6382f58effeYYkQqmW0WWvF)
    state: parked until 2026-11-02T14:15:27Z (30 minutes). Fresh checks: #3805 OPEN; prerequisite #3804 remains OPEN with no implementation PR, and task 5796 is parked pending design PR #3857. No worktree/source touched.
    resume: after #3804 lands or the phase-2 API is otherwise available; revalidate #3803/#3804, then create /home/user/git/fleet/5797 on queue/5797-3805-lease-handoff.

  11. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  12. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up + parked (queue task 5797, repo-worker-code, OpenChamber scheduled lane)

    • Fresh evidence: id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 OPEN, assigned dezren39. Prerequisite phase-2 issue id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 still OPEN (assigned dezren39); no id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 PR found. Laptop load ~177 blocks any Rust implementation/verification regardless.
    • Disposition: no branch/worktree created, no source touched. Parking 30 min.
    • Resume: after phase-2 lease API lands via id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 (and load <20 sustained); revalidate both issues, then create worktree ~/git/fleet/5797 + branch queue/5797-3805-lease-handoff and implement.
  13. 184 remaining items

    Load more actions
  14. dezren39
    added
    queue/queuedHas a queued queue task
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 16, 2026
  15. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked (major slice merged this morning; remainder verification is the next step)

    • Agent: queue worker (repo-worker-code), lane code-b
    • Session / ID: task 5797 (small_fix, issue id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805)
    • Found via: queue claim (code-only filter), lane assignment direct

    Fresh revalidation 2026-11-16 (this shift):

    • PR feat(id): lease handoff actor boundary — spill handoff both ways + failure tests (#3805) #10641 MERGED 2026-11-16T08:49:02Z — "feat(id): lease handoff actor boundary — spill handoff both ways + failure tests (id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805)". It resumed this task's worktree slice, verified on the laptop (cargo test -p id-worlds: 570 passed; handoff/lease/walkthrough filters: 23 passed, per the PR body). The task worktree (~/git/fleet/5797-3805-lease-handoff) is clean; the remote branch is gone (merged).
    • The PR is explicitly an actor-boundary SLICE of Phase 3: boundary rules + failure tests at the seam. It does not mention the de-escalation timing machinery in the issue acceptance (native → DO at warning-band clear, ~1 h per the id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059 doc), so this lane does NOT claim Phase 3 fully done.
    • Issue id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 OPEN, no hard-stop labels; prerequisite id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 CLOSED and phase-2 PR feat(id): journaled native-spill write lease entries + epoch fencing (#5527, #3804 phase 2) #5571 merged (both long-standing).

    Action this shift:

    • Task 5797 is parked with this state. Next claim: verify against the id: design: native-spill write lease protocol for hot worlds (from #2059) #2819 record whether the de-escalation/warning-band machinery exists elsewhere on main; if it does, close id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 with that evidence and complete task 5797 as already_done; if it does not, that machinery is the named remainder.
  16. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/queuedHas a queued queue task
    on Nov 16, 2026
  17. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked (resume map refreshed after PR #10641)
    task: 5797
    lane: code-c (Muse, repo-worker-code)
    stage: claimed -> surveyed -> parked

    Fresh state 2026-11-16 (supersedes the pre-#10641 gate notes):

    • Phase 2 gate: issue id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 CLOSED (PR feat(id): journaled native-spill write lease entries + epoch fencing (#5527, #3804 phase 2) #5571). The old "gated on id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804" blocker is gone.
    • Phase 3 actor-boundary slice: PR feat(id): lease handoff actor boundary — spill handoff both ways + failure tests (#3805) #10641 MERGED 2026-11-16T08:49Z — check_do_lease / holds_live_do_lease / handoff_write_lease at the world actor seam, both directions; retryable not-holder refusal carrying thiserror reasons (not_holder / stale_epoch / expired); seam failure tests (DO fenced on handoff, handback preserves committed prefix, expired native lease fences DO until recovery journaled, stale proposals refused, failed append leaves DO read-only). Verified there: world lib 570 pass, handoff/lease/walkthrough filter 23 pass.
    • Issue id: lease protocol phase 3 — spill handoff both ways + failure-walkthrough tests (#2819) #3805 stays OPEN: PR feat(id): lease handoff actor boundary — spill handoff both ways + failure tests (#3805) #10641 names the remaining acceptance itself, and tree greps this shift confirm the absences (no mirror-position receipt or replay-barrier type exists anywhere under pkgs/id/crates).

    Remaining for #3805, in dependency order:

    1. Replay barrier + mirror position receipts at handoff (handoff completes only at a journaled mirror position the receiver acknowledges).
    2. Authenticated writer/epoch/op-id metadata on every mutation path.
    3. Revoke/grant expiry recovery (expiry stays fail-closed until recovery is journaled — the fence half exists; the recovery grant path is the remainder).
    4. Native transport for the handoff (the seam is in-process today).
    5. The four named failure walkthroughs at full fidelity: native crash holding the lease, partition with both sides alive, lease expiry mid-turn, journal mirror lag at handoff (seam-level analogues of expiry/stale cases exist; crash/partition/mirror-lag need 4+5).

    Sizing note: each remaining item is its own PR-sized slice in world/handoff_operations.rs (1,403 lines) + actor.rs; budget a full session per slice rather than drawing this task on a short remainder. Parked 1h.

  18. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    🤖 Agent note · in_progress — gate cleared and phase-3 slice surveyed; capacity-parked with the survey recorded (task 5797, lane code-c, 2026-11-16)

    Gate revalidated fresh this shift: prerequisite #3804 (lease protocol phase 2 — journaled lease entries + epoch fencing) is CLOSED with status/done. Native blocked_by on this issue: 0. No hard-stop labels. The gate that parked this task at attempt 15 is gone; what remains is capacity, not dependency.

    Survey of the phase-2 surface (origin/main, pkgs/id/crates/id-worlds/src/world/):

    • core.rs — the WriteLease type: the journal-resident native-spill write lease (design id: design: native-spill write lease protocol for hot worlds (from #2059) #2819), held at core.rs:225 and :2126; the pre-spill state is "the DO actor is the writer" (mod.rs:700).
    • journal.rs (~lines 461–507) — the lease journal events phase 3 must drive: granted-while-no-holder, renewed, handed from one holder to another (epoch increments), revoked.
    • spill_gate.rs — the residency gate (design id: design: residency boundaries for native bridge, federation and relays #3398 §3): decides whether a spill may happen at all; the lease names the spill host as writer. Triggers/band detection are id: investigate: hot-world sharding — when one world outgrows one Durable Object #2059's, explicitly out of this task's scope.
    • handoff_operations.rs — the existing handoff operations module the flows build on.

    The slice, per the packet: handoff initiation/completion flows both directions (DO → native at spill start; native → DO at de-escalation) using the phase-2 lease entries; the boundary rule (unjournaled in-flight commands at the boundary get a retryable not-holder refusal — never executed by both sides); failure-walkthrough tests for crash, partition, mid-turn expiry, and mirror lag, each proving exactly one writer ever appends; de-escalation returns the lease with no lost or duplicated journaled commands.

    Why parked, not started: this is a safety-critical concurrency implementation (effort/l) whose failure mode is precisely the dual-writer corruption the protocol exists to prevent; a half-landed handoff is worse than none. This lane's remaining shift budget at survey time (~2 h) is under the 2× margin the runbook requires for an estimated 2 h+ build-and-walkthrough-test slice, so the task is capacity-parked (1 h) with this survey attached — the next claimant starts from these landmarks instead of re-deriving them. Nothing about the task itself is blocked.

  19. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: verified
    task: 5797
    lane: code-a
    worker: repo-worker-code
    note: Revalidation in task 5797 (2026-11-16): the phase-3 lease handoff work for this issue is ALREADY LANDED. PR #10641 (feat(id): lease handoff actor boundary — spill handoff both ways + failure tests (#3805)) MERGED 2026-11-16T08:49:02Z at 11ea27c, and the prerequisite gate #3804 is CLOSED. Fresh test evidence this shift, on current main in a clean laptop worktree: cargo test -p id-worlds --lib with filters write_lease (9 passed), lease_ (29 passed), handoff (22 passed) — 0 failed, including do_to_native_handoff_fences_the_do_executor_and_refuses_queued_commands, expired_native_lease_fences_the_do_until_recovery_is_journaled, stale_handoff_proposals_are_refused_and_journal_nothing, and failed_handoff_append_leaves_the_do_holding_but_read_only. Note for the queue record: this lane claimed task 5797 at 2026-11-16T11:08Z, but a heartbeat at 11:14Z returned the verdict "task 5797 is not claimed by repo-worker-code" and a claim-by-id re-check returned no claimable task, so the terminal queue bookkeeping belongs to whoever currently holds the task; this note carries the verification evidence either way.

  20. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Queue task 5797 completed as already_done (openchamber scheduled lane code-j). Fresh revalidation:

    • PR feat(id): lease handoff actor boundary — spill handoff both ways + failure tests (#3805) #10641 (branch queue/5797-3805-lease-handoff) MERGED 2026-11-16T08:49:02Z at 11ea27c, present on origin/main.
    • Prerequisite gate id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804 is CLOSED.
    • Test evidence (lane code-a, 2026-11-16T11:17Z, clean laptop worktree at main): write_lease (9), lease_ (29), handoff (22) — all pass, 0 failed. Phase-3 failure-walkthrough coverage (do-fence, handback prefix, expired-lease fence) confirmed present in pkgs/id/crates/id-worlds/src/world/tests.rs on origin/main.
    • Clearing queue/parked + status/parked: no queue work remains parked on this issue. Issue left OPEN for owner disposition (prior lanes kept it open today); closing it is outside this task's remit.
  21. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 16, 2026
  22. dezren39
    closed this as completedon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.