GeezerVison is showing github.com — id: implement ID messaging and relay protocol v1 (design #2036) · Issue #5534 · developing-today/code
id: implement ID messaging and relay protocol v1 (design #2036) #5534DescriptionImplementation of an ID design that has not landed yet (partial implementation as of the 2026-11-04 inventory).
Design issue: #2036
Design doc: doc/2026-11-01_design_id2036.md (in developing-today/code)
Acceptance, in brief: the v1 relay protocol as specified in the design, interoperating with the landed messaging layer.
Current state: messaging/envelope layer landed; the v1 relay protocol as specified is not fully landed.
The design documents govern. If implementation shows the design is wrong or incomplete, file a design amendment rather than silently diverging.
Scope: pkgs/id and its tests. Filed 2026-11-04 under Drew's order to begin work on all not-implemented ID designs. Inventory: workspace/goals/keep-the-four-repos-healthy/files/id-design-implementation-inventory-2026-11-04.md (in the fleet workspace). Activitydeveloping-today commented on Nov 4, 2026 dezren39 commented on Nov 4, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 4, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: task 9601 · repo-fleet-monitor run 2026-11-04 20:12 CST
- Found via: monitor reconciliation
- Task: Claim-evaporation repair: the queue task is queued and unclaimed (its previous claim's lease expired at stage
handed_off without complete/park/block), while this issue still carried claimed/assigned labels. Labels have been reset to the truth (queue/queued + status/needs-triage); the task's dead attempt cap was also repaired this run (max_attempts 6 → 12) so it can be claimed again.
- Expectation: the next lane to claim task 9601 resumes from the task's checkpoint (stage
handed_off).
- Links: queue task 9601 (repo-health-code-pilot)
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 23, 2026 🤖 Agent note · parked: lane oc-code-08, queue task 21485
dezren39 commented on Nov 23, 2026 🤖 Agent note · claimed — lane felix, queue task 21485
- Done check (fresh, against main
1ca64230f): all four phase trackers are CLOSED (id: protocol v1 phase 1 — session header + segment checkpoint event kind (#2036) #3794, id: protocol v1 phase 2 — PoC: intermittent-signature live stream for collaborative editing (#2036) #3795, id: protocol v1 phase 3 — relay envelope + hop records over iroh-gossip for chained messages (#2036) #3796, id: protocol v1 phase 4 — retention and compaction for the event store (#2036) #3797). The messaging/envelope layer and the phase-3 relay pieces are on main (chained_message, relay_gate, relay_ingest, graph_frontier, federation B20–B22). Two production slices are in open PRs from lane oc-code-02: id: LocalEvents::compact — the node's retention seam (#5534, #2036 §4.6) #13480 (LocalEvents::compact, the phase-4 production caller) and id: production ForwardingSink for chained-relay fan-out (#5534) #13746 (production ForwardingSink).
- Slice I am taking (named, distinct from oc-code-08's parked serve-wiring slice): the structural prerequisite both open PRs and the parked slice name as the blocker — resolve the single-opener event-store constraint.
LocalEvents owns EventStore by value; GraphFrontier needs SharedEventStore<EventStore>, and the store directory is single-opener, so id serve cannot build both today. I will convert LocalEvents to hold the node's store as SharedEventStore<EventStore> (the share-the-store option), keep its public API and behaviour unchanged, and add LocalEvents::shared_store() so serve can build a GraphFrontier over the very store LocalEvents writes. This does not do the CHAINED_RELAY_ALPN serve-router wiring itself — that stays oc-code-08's slice, unblocked by this one.
- Coordination: PR id: LocalEvents::compact — the node's retention seam (#5534, #2036 §4.6) #13480 touches
local_events.rs too (adds compact). My PR will note the merge interaction; if id: LocalEvents::compact — the node's retention seam (#5534, #2036 §4.6) #13480 lands first I will merge main in and adapt the one call site rather than rebase.
- Evidence: remote fleet-command runs only, with executed counts and new tests named in the completion comment.
dezren39 commented on Nov 23, 2026 🤖 Agent note · slice complete — lane felix, queue task 21485
PR: #13835 — LocalEvents holds the node store through SharedEventStore (unmerged; Felix reviews and merges).
What it does: the structural prerequisite named by PR #13746 and oc-code-08's parked serve-wiring slice. LocalEvents.store: EventStore → SharedEventStore<EventStore>; all internal uses go through the handle (read lock for reads — one lock for the whole log() walk — and the inherent ingest for writes). New LocalEvents::shared_store() hands out a clone of the handle, so id serve can build the relay gate's GraphFrontier over the very store LocalEvents writes. sync_session now runs over the sync module's RangeStore seam (sync::run generalized; new sync_over_shared entry), locking per step and never across an await — a session no longer blocks the node's other store users behind network waits, and the future stays Send for the serve router. One API exception, documented on the PR: document_references now returns anyhow::Result like the rest of the type (the shared handle's poisoned-lock failure does not fit StoreError); its one production caller only matches Ok/Err.
Evidence (remote, run 45280393099, success): cargo test -p id-events --lib — 371 passed / 0 failed / 2 ignored; cargo test -p id-sync --lib graph_frontier — 8 passed / 0 failed; cargo test -p id-store --test store_traits — 12 passed / 0 failed; cargo check -p id-cli --all-targets clean. Both new tests verified by name in the log: test_shared_store_handle_reads_and_feeds_the_same_store (handle ⇄ LocalEvents, both directions) and frontier_reads_the_store_local_events_opened (frontier authorizes members, refuses non-members, from the LocalEvents-opened store, undisturbed by a LocalEvents write). The failed first run (45279089735) is recorded on the PR — the write-guard form was not Send; the seam-based form is the fix, not a workaround.
Remainder of #5534 after this slice: (1) the serve-side CHAINED_RELAY_ALPN wiring itself — oc-code-08's parked slice, now unblocked on the store question (its other ready condition was PR #13480 merging); (2) PR #13480 (LocalEvents::compact) and PR #13746 (ForwardingSink) still open — #13480 touches local_events.rs, so whichever of #13480/#13835 merges second adapts one call site (self.store.compact(..)), noted on both PRs. The umbrella stays open for those. dezren39 commented on Nov 24, 2026
Slice landed: PR #14030 merged to main as 6d0eb6b — id serve now serves CHAINED_RELAY_ALPN behind the graph relay gate (acceptance 2/3). Unauthorized traffic is refused at the boundary by the GraphFrontier-backed RelayGate over the nodes shared event store; fan-out uses an empty peer set until serve has a peer-discovery view (recorded in the PR as the remainder).
Included prerequisite fix (same PR, first commit): the missed #13480/#13835 merge adaptation — LocalEvents::compact through a new SharedEventStore::write seam. Without it main was E0599-broken for everything depending on id-events.
Verification (laptop fallback path; no Rust CI runs on PR branches in this repo — docs workflows + CodeRabbit/Proof only):
cargo test -p id-sync --lib: 254 passed / 0 failed (includes new boundary test relay_ingest::tests::chained_relay_alpn_refuses_non_member_and_delivers_member_with_graph_frontier, verified by name; sensitivity shown by ALPN change failing)
cargo test -p id-events --lib compact: 16 passed / 0 failed
cargo check -p id-cli --all-targets: clean (warnings only, pre-existing)
- PR scope: 6 files, slice + fix + docs note only; non-closing; umbrella stays open.
developing-today-fleet commented on Nov 26, 2026
Triage re-check (code-i, 2026-11-26): relay work advanced since the last record. PR #13746 (production ForwardingSink) MERGED 2026-11-24; PR #14030 (serve CHAINED_RELAY_ALPN behind graph relay gate) MERGED 2026-11-24 — acceptance 2/3 done per the completion note. Remainder: serve fan-out uses an empty peer set until serve has a peer-discovery view (recorded on #14030). No new packet from this triage; the next relay slice (peer-discovery view) belongs to installment planning, not coverage triage. Umbrella stays open. developing-today-fleet commented on Nov 27, 2026 🤖 Triage verdict · lane oc-code-01 (queue task 25340, 2026-11-27)
developing-today-fleet commented on Nov 27, 2026 Triage re-check (oc-code-05, 2026-11-27): PR #14242 (peer-discovery fan-out for chained relay) merged at 02:03Z as 67b4eea. The earlier note saying it was open is superseded; the umbrella #5534 remains OPEN for any further relay/peer-lifecycle criteria. No new implementation task is being created here: the results-first plan explicitly keeps “Messaging and relay protocol v1” in Later until the Track B exit test passes (planning/plans/2026-11-21_results-first.md, row 97). Keep #5534 high priority/in-review and resume only at that named trigger; do not duplicate the closed phase packets or merged slice. developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · 2052-K parked — SUSTAIN bravo lane (queue task 25340, 2026-11-26)
- Premise + ownership check: read issue + all 97 comments. Issue OPEN, labels status:in-review / priority/high / epic/id-program — no held, user/*, or Drew-gated labels. No other live claim found.
- Fresh verification: PR id serve: fan relay frames out to discovered peers #14242 id serve: fan relay frames out to discovered peers #14242 MERGED 2026-11-27T02:03:20Z, merge commit 67b4eea (peer-discovery fan-out for chained relay). Prior merged slices id: LocalEvents::compact — the node's retention seam (#5534, #2036 §4.6) #13480, id: production ForwardingSink for chained-relay fan-out (#5534) #13746, id: LocalEvents holds the node store through SharedEventStore (#5534) #13835, feat(id): serve graph-gated chained relay ALPN #14030 stand.
- Disposition: park queue task 25340. The results-first plan (planning/plans/2026-11-21_results-first.md, row 97, cited in comment 7208284749) keeps Messaging/relay in Later until the Track B exit test passes. No duplicate implementation packet is appropriate before that trigger.
- Wake / ready condition: Track B exit test passes; then re-assess id: implement ID messaging and relay protocol v1 (design #2036) #5534 relay/peer-lifecycle remainder against merged PR id serve: fan relay frames out to discovered peers #14242 and design id: design: ID messaging/relay protocol v1 #2036.
developing-today-fleet commented on Nov 28, 2026
Triage re-check — no change, parking (lane code-i, queue task 25340).
Fresh verification: #5534 OPEN, labels status:in-review / priority/high / epic/id-program; updatedAt 2026-11-27T03:02:04Z = last parked note, no new activity since. Merged slices stand (#13480, #13746, #13835, #14030, #14242 merged 02:03Z as 67b4eea); no new PR for #5534 merged since. Results-first plan row 97 still gates Messaging/relay on Track B exit test passing. Verdict stands: return to queue for real work at that trigger, not a small fix. No code changed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|