Skip to content

id: lease protocol phase 2 — journaled lease entries + epoch fencing in the world journal (#2819) #3804

Open

Description

@dezren39

Phase 2 of #2819. Implement in pkgs/id (world_store.rs / world journal): the lease entries from the phase 1 doc, a monotonic lease epoch recorded in the journal, and fencing on append — a writer appends only while presenting the current epoch from the latest LeaseGranted entry; an ex-holder append after revocation/expiry is rejected and journaled as a rejected attempt (audit), never applied. Acceptance: tests cover grant/renew/revoke, ex-holder append rejection, and epoch monotonicity across reopen/replay of the JSONL journal.

Activity

  1. 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
    Contributor
  3. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · state: picked up

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

    @dezren39
    MemberAuthor

    🤖 Agent note · state: parked

  6. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  7. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  8. 46 remaining items

  9. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task: 5796
    lane: 7b47536b-c162-444c-be8a-3a9538cc4cb5
    state: picked_up
    note: Resumed queue task 5796 after verifying #3804 is OPEN, no competing PR exists, and design PR #3857 is MERGED. Existing dedicated worktree /home/user/git/fleet/5796 is clean on queue/5796-3804-lease-epoch. I will verify its base against current origin/main before making changes.

  10. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  11. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task: 5796
    lane: 7b47536b-c162-444c-be8a-3a9538cc4cb5
    state: blocked
    note: Blocked as packet_defect before source edits. The merged #2819 design assigns schema, logical position, epoch/bootstrap/replay/checkpoint/compaction to phase 1 #3803, but fresh GitHub shows #3803 was design-doc-only and is closed after #3857; current main has no lease entries and WorldJournal::append has no writer/epoch context. The #3804 packet omits these foundations and other required safety mechanics, so implementing it as written would not satisfy the design. Resume after the phase plan/packet is reconciled and the missing foundation/gate is explicit. Branch queue/5796-3804-lease-epoch remains clean at 6e12642; no source changes.

  12. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: blocked (packet defect)
    task: 6881 (repo-health-code-pilot, repo-worker-code; OpenChamber scheduled lane c8b9355e-319a-4640-8096-7ad19480d151)
    state: #3804 is OPEN but its phase-2 packet omits a hard prerequisite; no source edits/worktree changes.
    verified: Fresh #3804 OPEN/status/blocked+queue/blocked; #2819 design OPEN; #3803 CLOSED with design PR #3857 MERGED. Current main doc/2026-11-01_design_id2819.md assigns journal schema/positions, lease bootstrap/replay/checkpoint/compaction to phase 1 #3803. Search of pkgs/id/src finds no LeaseGranted, LeaseRevoked, lease_epoch, or JournalRecord. WorldJournal append remains fn append(&mut self, entry: &JournalEntry), with no writer/epoch context.
    blocker: Phase 2 acceptance assumes lease journal entries and epochs can be appended/fenced, but phase 1 was design-only and the required record schemas/positions/replay/checkpoint foundation is absent. Packet omits this hard dependency and shared API boundary; implementing only its stated tests cannot satisfy the merged design.
    resume: after the phase plan is reconciled and the missing phase-1 implementation foundation is implemented or an explicit alternative dependency is documented, re-triage and route the right work.
    labels: status/blocked + queue/blocked retained; no work/assigned label present.
    bookkeeping: sandbox backlog and sweep log deferred to fleet reconciliation.

  13. added
    queue/queuedHas a queued task in the Supabase agent queue
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  14. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 6881 (triage, blocked, priority 40) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  15. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: gate_moved
    task: 6822 (repo-health-code-pilot, repo-worker-code; OpenChamber scheduled lane)
    state: dependency dispositioned
    verified: Parent design PR #3857 merged 2026-11-02T14:24:27Z; phase-1 issue #3803 closed 2026-11-02T14:25:16Z; the decision-ready lease protocol is on main at doc/2026-11-01_design_id2819.md. The #2819 design gate has moved.
    current blocker: #3804 remains OPEN and blocked for the separate phase-2 packet defect already documented by triage task 6881; this is not a remaining #2819 design-gate blocker. Keep it blocked until its phase plan/packet is reconciled. No #3804 implementation work was started by task 6822.

  16. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  17. added a commit that references this issue on Nov 4, 2026
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)queue/blockedQueue or user escalation statequeue/queuedHas a queued task in the Supabase agent queuesource/creatorFiled by the new-issue-creator jobstatus/blockedQueue or user escalation statetask/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