GeezerVison is showing github.com — id: build: durable multiplayer note checkpoints and merges · Issue #3819 · developing-today/code
id: build: durable multiplayer note checkpoints and merges #3819DescriptionParent: #2048 (ID Zettelkasten design). Phase 3 — depends on #3814 (stable note identity/revision graph) and Drew's explicit answer to Q2 on #2048 (shared-write authority).
Bridge the existing live ProseMirror session to durable note revisions. Key sessions by stable note ID rather than filename; keep live steps/cursors as transient transport; on save/checkpoint publish a signed immutable revision with the current note ID and parent head(s). A stale/offline edit must not overwrite another writer: retain concurrent heads and require an explicit merge revision. Do not make one web process's in-memory collaboration state the replicated source of truth.
Gate: before implementing any shared-write authorization, re-read #2048 Q2. Use the selected policy; if Drew has not answered, park without changing authorization behavior. Do not infer write permission from friendly-name resolution or the reader's writer-set projection. No cross-store resolver work (that remains #2259).
Acceptance:
- Reopening a note by stable ID recovers its latest known revision and history across server restart/replica sync.
- A normal live session can checkpoint to a signed revision; ephemeral steps/cursors are not emitted as permanent events. Covered by PR test(id-web): cover note checkpoint restart and forks #14623; focused Fleet run 45493556312 passed (7 passed, 0 failed).
- Concurrent/offline sessions create separate heads; an explicit merge names its parents; no last-writer-wins data loss in the tested paths. Covered by PR test(id-web): cover note checkpoint restart and forks #14623; focused Fleet run 45493556312 and full id-web suite run 45496785776 passed.
- The chosen group/write policy is tested at the boundary and is separate from viewer-specific visibility.
- Existing filename-based document editing remains compatible during migration; tests cover old and new paths.
Activitydeveloping-today commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 agent-note:v1 — queued, parent #2048 phase 3; queue task 5826, dedupe repo-health:v1:fix:developing-today/code:issue:3819. Resume only after #3814 lands and Drew answers shared-write authority Q2 on #2048; then persist signed checkpoints and explicit concurrent merges. Filed by repo-worker-code, OpenChamber scheduled lane, 2026-11-01T16:54Z. dezren39 commented on Nov 1, 2026 🤖 Agent note · parked — claimed early; both start gates in the packet are unmet
- Agent: queue worker (repo-worker-code), lane F (repo-queue-worker-shift-f)
- Session / ID: queue task 5826 (small_fix, Phase 3 of id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048), claimed 2026-11-01T17:40Z, parked per the packet's own instruction ("if claimed early, park with those resume conditions")
- Found via: queue claim; gate check against fresh GitHub + queue state
- Gate evidence (fresh, 2026-11-01):
- Resume conditions (both required): (1) id: build: stable note identity and revision graph #3814 is merged/closed with the Phase 1 note-identity + revision-graph model landed; (2) Drew's answer to Q2 is recorded on id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048. On resume, implement per the packet: stable note IDs for collaboration sessions, signed revision checkpoints with parent heads, explicit merges for concurrent heads, transient live steps/cursors, and the access-boundary + legacy-filename tests.
- Escalation note: Q2 is already surfaced on id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 with options and a recommendation by task 5733; this park does not re-ask it — it only records that Phase 3 cannot start until the answer lands.
dezren39 commented on Nov 1, 2026 dezren39 commented on Nov 24, 2026
Queue task 21483 (slice 1, restart recovery by stable ID) premise-checked: already landed in PR #12708 (773a306a014), per the 2026-11-22T23:17:58Z outcome above. No duplicate work done; claim closed as already-landed. Remaining items (policy replica sync needing a design note, wire-level restart tests) are not in this slice and need a new task. Issue stays open. dezren39 commented on Nov 24, 2026
Agent note — triage (lane oc-code-05, 2026-11-24)
dezren39 commented on Nov 24, 2026 🤖 Agent note · triaged (second pass, lane code-h) — merged slices recorded; remainder gated on #2048 Q2
- Agent: repo-worker-code, lane code-h
- Task: queue 22437 (triage of id: build: durable multiplayer note checkpoints and merges #3819)
- Fresh check (2026-11-24,
gh issue view): id: build: durable multiplayer note checkpoints and merges #3819 is OPEN, last updated 2026-11-24 07:59Z. Merged slices: feat(id): note checkpoint core + note-ID collab session keying (#3819 Phase 3 slice 1) #10808, feat(id-web): collab note-session wiring — WS note resolution + checkpoint publish on session end (#3819 slice 2) #10831, Phase 3 slice 4: client-driven note checkpoints + cold-open hydration (#3819) #10843, feat(id): note access boundary at checkpoint time (#3819 Phase 3 slice 3) #10846, id: note policies survive a checkpoint-log rebuild (#3819) #12637, id: note policies survive a real host restart — persist + restore the checkpoint snapshot (#3819) #12708, id-web: resolve note group grants against the group log (#3819) #11732.
- Verdict: the remaining items are (a) policy replica sync, which needs a design note first, and (b) wire-level restart tests, a small follow-on. The shared-write gate on id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 Q2 still applies, so no authorization change is made here. Nothing is routed in this triage, because the replica-sync design is a new design task that the triage timebox does not cover. Left open for those two items.
dezren39 commented on Nov 24, 2026 Second-pass verdict (task 22437, verified fresh 2026-11-24 against origin/main 9b621f3)
Verdict: real and current; implementation slices landed, one test slice outstanding.
- Issue id: build: durable multiplayer note checkpoints and merges #3819 is OPEN with no hard-stop labels; dependency id: build: stable note identity and revision graph #3814 is CLOSED.
- Q2 shared-write gate resolved 2026-11-03 (write-grant holders may append revisions); Q3 decided; id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 CLOSED. No authorization change in what follows.
- Landed: feat(id): note checkpoint core + note-ID collab session keying (#3819 Phase 3 slice 1) #10808, feat(id-web): collab note-session wiring — WS note resolution + checkpoint publish on session end (#3819 slice 2) #10831, Phase 3 slice 4: client-driven note checkpoints + cold-open hydration (#3819) #10843, feat(id): note access boundary at checkpoint time (#3819 Phase 3 slice 3) #10846, id: note policies survive a checkpoint-log rebuild (#3819) #12637, id: note policies survive a real host restart — persist + restore the checkpoint snapshot (#3819) #12708, id-web: resolve note group grants against the group log (#3819) #11732.
- Gap confirmed fresh: prior wire-test PR test(id-web): wire-level note checkpoint integration tests (#3819 Phase 3 slice 4) #10852 closed unmerged 2026-11-16 and no checkpoint wire-test file exists on main. Post-test(id-web): wire-level note checkpoint integration tests (#3819 Phase 3 slice 4) #10852 slices (id: note policies survive a checkpoint-log rebuild (#3819) #12637/id: note policies survive a real host restart — persist + restore the checkpoint snapshot (#3819) #12708) changed the snapshot API, so this is fresh tests against current main, not a rebase.
- Routed follow-on: queue task #22907 — feature slice 4, wire-level note checkpoint + restart/reconstruction tests (checkpoint publish, reseed-then-chain, concurrent-head merge naming), test-only, no auth change.
- Not routed: policy replica sync still needs a design note first (separate design task, out of this packet's scope).
Task 22437 completes as verify-and-route. dezren39 commented on Nov 24, 2026
Picked up by repo-worker-code — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code posts progress markers; after 30 minutes of silence any other worker may pick this up.) dezren39 commented on Nov 24, 2026
Completed by repo-worker-code (outcome: done). Second-pass verify-and-route: impl slices landed, routed slice-4 wire-test task #22907
Disposition: verdict merged_verified, checked_at 2026-11-24T09:20:04Z -- the record below passed the broker's offline disposition gate at completion time. The record's follow_up names task 22907: only the broker can check it against the queue, so it is recorded here UNCHECKED -- the broker runs check_successor_task on it when it returns.
{
"checked_at": "2026-11-24T09:20:04Z",
"source": "fleet gh readback",
"issue": {
"number": 3819,
"state": "open",
"state_reason": null,
"closed_at": null,
"closed_by": null
},
"pulls": [
{
"number": 10846,
"state": "merged",
"is_draft": false,
"merged_at": "2026-11-16T18:09:26Z"
},
{
"number": 10831,
"state": "merged",
"is_draft": false,
"merged_at": "2026-11-16T16:50:47Z"
},
{
"number": 10808,
"state": "merged",
"is_draft": false,
"merged_at": "2026-11-16T15:25:08Z"
}
],
"verdict": "merged_verified",
"follow_up": {
"task_id": 22907,
"reason": "verify-and-route: impl slices landed, routed slice-4 wire tests #22907"
}
}
dezren39 commented on Nov 24, 2026 Wire-level checkpoint/restart slice is complete in PR #14623, now ready for review.
- Focused Fleet test run 45493556312: 7 passed, 0 failed.
- Full
id-web Fleet run 45496785776: 749 passed, 0 failed; 1 doctest passed and 1 ignored.
- Test-only; no authorization or runtime behavior changed.
The remaining policy replica-sync design work is separate and still needs its design note; this issue remains open for that work. dezren39 commented on Nov 24, 2026 PR #14623 merged on 2026-11-24 as 017d22fdcaa86b2a2f6ac65f362698ed800bca82.
Verified on Fleet before merge:
- Focused
note_checkpoint test: 7 passed, 0 failed (run 45493556312).
- Full
id-web suite: 749 passed, 0 failed; 1 doctest passed and 1 ignored (run 45496785776).
This completes the wire-level checkpoint/restart/fork test slice. The broader issue stays open and parked for the separate policy replica-sync design; #5535 already records revalidation after #3819 lands/closes. No authorization behavior changed. developing-today-fleet commented on Nov 27, 2026
Triage re-check (lane oc-code-07): #3819 still OPEN, no new comments since the 2026-11-24 merge note; wire-test slice PR #14623 remains the last landed slice and the replica-sync design remainder still belongs to #5535. No code changed. Parking this reconciliation claim with a timed re-check; revalidate the remainder before any new test slice. developing-today-fleet commented on Nov 28, 2026 Triage re-check — still OPEN, remainder unchanged (2026-11-28, queue task 25359)
Fresh verification this run:
Verdict: park with a timed re-check; revalidate the #5535 design state before any new test slice.
developing-today-fleet commented on Nov 28, 2026
Triage recheck — lane oc-code-01, 2026-11-28 ~03:05Z. Verdict unchanged: keep open, remainder on #5535.
developing-today-fleet commented on Nov 28, 2026
Triage re-check — lane code-g, 2026-11-28 ~03:30Z. Verdict unchanged: keep open, remainder on #5535.
Fresh verification this run:
Task 25359 checkpointed and parked with timed re-check (not_before 2026-11-29T04:00Z — set 24h out to stop the sub-hour claim churn); resume by revalidating the #5535 design state before any new test slice.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|