Skip to content

id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904

Closed

Description

@dezren39

Phase 5 of #3870 (journaled region-seam export/import, design #2818, doc doc/2026-11-01_design_id2818.md in PR #3875, §8 packet 5). GATED on Phase 4 (coordinator/recovery) landing.

Scope: Client/operations surface + gated enablement.

  • Explicit transit/stuck status: typed ENTITY_IN_TRANSIT-style response with handoff_id + retryable flag (design §4 shape); stuck = in-transit with no coordinator-observed progress for 60s (operator classification, not an ownership state).
  • Fail-closed entity reads/writes while in transit; no durable client write queue; stale-route response after completion pointing at the new owner epoch.
  • Metrics/alerting on handoff age/reason.
  • Feature-gated end-to-end acceptance: full no-duplication / no-silent-loss suite from design §7 across injected failure points before enabling by default.

Acceptance: #3870's full acceptance list verified end-to-end behind the feature gate; handoffs remain disabled by default until the suite passes.

Parent: #3870. Design: #2818.

Activity

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

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  3. added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 1, 2026
  4. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  5. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  6. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 1, 2026
  7. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  8. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed on Nov 1, 2026
  9. 534 remaining items

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — hard gate unlanded

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    state: parked
    task: 5867
    lane: code-f
    issue: #3904

    Parked awaiting dependency (3600s). Fresh check by lane code-f (task 5867, taken direct per #8187): phase issue #3903 is still OPEN — and itself status/blocked — so phase 5 of #3870 cannot proceed; the gate state is unchanged from this morning's note on this issue (comment 6776396265), which this note updates rather than duplicates. Resume condition: #3903 lands/closes; then revalidate the full phase chain per the packet before starting.

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — lane code-u, task 5867 (small_fix, issue #3904, #3870 phase 5). Claimed this shift and parked for 30 minutes without starting work: (1) the execution-lane assignment has opencode session ses_e5e3bd1fb35ffefCeAvx5C0Rv0 already BOUND — per the runbook a bound row never flips; that session owns this task. (2) The packet's HARD GATE is unlanded: phase issue #3903 (phase 4 — coordinator state machine + recovery) was re-verified OPEN this shift, and phase 5 must not start until #3903's fix PR merges and the issue closes. Labels already read queue/parked + status/parked + work/assigned, consistent with the park. Resume: bound session proceeds once #3903 lands; a fresh claim should re-verify both facts.

  13. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · correction — lane code-u, task 5867 (issue #3904). The park verb's broker transition for this task is handed_off, not parked: because lane row's opencode session ses_e5e3bd1fb35ffefCeAvx5C0Rv0 is bound, the broker handed the task to that session's claimant (verified in the queue list: task 5867, status handed_off). My previous note's substance stands — I did no work on it, the bound session owns it, and hard gate #3903 is still OPEN — only the transition name differs.

  14. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — bound session owns it; hard gate #3903 still open

  15. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 5867
    lane: code-p

    Parked by lane code-p without working the task, for two independent reasons verified fresh 2026-11-10:

    1. Ownership: the execution-lane row for task 5867 (row 256) is assigned to opencode WITH a bound session (ses_e5e3bd1fb35ffefCeAvx5C0Rv0). Per the fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187 rule, a row with a session already bound never flips to direct — that session owns the task.
    2. Gate: predecessor issue id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 is still OPEN (status/blocked, queue/blocked), and task 5867's own packet progress gates all work on id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 landing: "Proceed only after phase issue id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 lands; then revalidate full phase chain per packet."

    Resume condition: issue #3903 closes AND the bound-session ownership resolves (the bound session resumes it, or the binding is cleared by the monitor so a lane can take it direct). Parked 1800s.

  16. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · dep-blocked on issue #3903 (hard gate, fresh check)

  17. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 5867
    issue: #3904
    pr: null

    Lane code-c claimed task 5867 in this shift. Fresh revalidation: issue #3904 OPEN, no hard-stop labels. The phase-4 hard gate has now CLEARED: issue #3903 CLOSED and its PR #9000 merged this shift (merge commit 7904547, task 5866 fixed_merged) — the previous dep-block reason no longer applies.

    However, the execution-lane assignment for task 5867 is a pre-#8187 legacy opencode row with a session already bound (session_id ses_e5e3bd1fb35ffefCeAvx5C0Rv0, assigned 2026-11-02). Lane code-c attempted the #8187 direct flip with --exclusion-reason; the assignment did not flip (still opencode, exclusion_reason null), which per runbook section 1b means the bound session owns this task. Parking task 5867 for 30 minutes naming the bound session; the claiming lane after the park should re-check the assignment — if the bound session is dead, escalate the stale binding rather than building a competing implementation.

  18. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 5867
    issue: #3904
    pr: null

    Lane code-c re-claimed task 5867 after the previous park expired and re-checked the execution-lane assignment: still the legacy opencode row with session ses_e5e3bd1fb35ffefCeAvx5C0Rv0 bound, and the #8187 direct flip still does not take (assignment unchanged, exclusion_reason null). Per runbook section 1b the bound session owns task 5867, so lane code-c parks it again for 30 minutes naming that session. The phase-4 gate remains cleared (#3903 closed, PR #9000 merged); lane ownership is the only blocker. See note 6840259257 for the full first-park record.

  19. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    Conductor reconciliation (2026-11-13): fresh GitHub read confirms predecessor #3903 CLOSED by merged PR #9000 (merge 7904547). Task 5867 had a claimed queue row whose lane ledger still pointed to terminal session ses_e5e3bd1fb35ffefCeAvx5C0Rv0. I used the supported queue-only checkpoint/park recovery path; fresh lane read now has session_id=null and the task is PARKED. No worker session, branch, or source edits were created. Per Drew’s no-relaunch instruction it remains parked for a fresh claim; keep handoffs disabled until the full #3870 no-loss/no-duplication suite passes.

  20. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: picked_up
    task: 5867
    lane: code-c
    Gate revalidated fresh 2026-11-13: issue #3904 OPEN, no hard-stop labels, no status/needs-triage. HARD GATE NOW SATISFIED: predecessor issue #3903 is CLOSED and its implementation PR #9000 MERGED at 2026-11-13T00:32:40Z (merge 7904547); phase 3 issue #3902 also CLOSED. Prior progress records claiming the gate is unmet are stale.
    Next: implement phase 5 client/operations surface in a fleet worktree (feature gate default-off, fail-closed in-transit routing, stale-route response with new owner epoch, age/reason ops observability, end-to-end no-loss/no-duplicate acceptance suite) on top of the phase 4 Coordinator in pkgs/id/crates/id-worlds/src/world/coordinator.rs, which is currently not wired to any client surface.

  21. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked
    task: 5867
    lane: code-c
    Phase 5 implemented and PARKED as a CI wait on PR #9175 (branch queue/5867-3904-phase5-client-ops, head c3230b4). Gate was satisfied fresh this shift: issue #3903 CLOSED, PR #9000 MERGED 7904547.
    What landed: new world::handoff_operations surface over the phase-4 Coordinator - feature gate disabled by default (begin refuses, journals nothing), fail-closed reads+writes in transit with typed EntityInTransit, typed StaleRoute carrying the new owner epoch, ops snapshot with per-handoff age/reason + stuck count (60s threshold); Coordinator::tracked_entities added.
    Verified on the laptop worktree: cargo test -p id-worlds = 756 passed / 0 failed (7 new tests incl. the end-to-end no-loss/no-duplicate acceptance suite with duplicate receipt delivery + journal replay); clippy clean for the new module.
    Park reason: PR #9175 checks 12 pending / 0 failing after 5 min (fleet Actions stall) and no Codex review posted yet. Resume: when checks settle green-or-baseline and Codex findings (if any) are dispositioned, merge PR #9175 and complete task 5867 as fixed_merged; issue #3904 closes on merge of the phase-5 acceptance (handoffs stay disabled by default - enablement is a separate explicit operator act).

  22. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Blocked-until checker: condition fired on 2026-11-14.

    Gate: developing-today/code#9175 (pr-merged)
    Evidence: developing-today/code#9175 state=MERGED merged_at=2026-11-14T06:28:07Z (need pr-merged)
    Action: queue task(s) 5867 released to queued (fleet-queue events kind=condition_fired, worker blocked-until); labels synced to queue/queued.
    Registry item: br-blocked-review-gate-01-3

  23. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  24. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Phase 5 complete — closing with evidence.

    Implementation: PR #9175 MERGED 2026-11-14T06:28Z (merge db524b4, squash of c3230b4 + ca16812). Gate satisfied: phase-4 issue #3903 CLOSED, PR #9000 merged 7904547.

    Diff matches scope (3 files, +1415, all in pkgs/id/crates/id-worlds/src/world/): new handoff_operations.rs — HandoffOperations over the phase-4 Coordinator; feature gate disabled by default (begin refuses, journals nothing); fail-closed reads/writes in transit with typed EntityInTransit; typed StaleRoute carrying the new owner epoch; ops snapshot with per-handoff age/reason + stuck count (60s threshold); Coordinator::tracked_entities(). Acceptance suite covers full crossing with duplicate receipt delivery + journal replay (no completion without durable import, no source writes after export, exactly one completion/owner transition).

    Tests/CI: pre-merge lane verification cargo test -p id-worlds = 756 passed / 0 failed with the new acceptance tests; clippy clean for the new module. Merge-commit CI reds (cargo-check/clippy/rustfmt/test-unit/mcpx e2e shards) are pre-existing main failures — identical set fails on the pre-merge parent 0197398, not caused by this PR. Handoffs remain disabled by default; enablement is an explicit operator act.

    Task 5867 (repo-health-code-pilot, lane code-g).

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

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions