GeezerVison is showing github.com — id(chat): implement durable IRC-shaped group channels and signed messages · Issue #3799 · developing-today/code
id(chat): implement durable IRC-shaped group channels and signed messages #3799DescriptionParent design: #2051 (ID chat v1), with investigation inputs #2049/#2050 and hosted-bridge constraints from #2058.
Implement the durable, IRC-shaped channel core selected by #2051. This issue is gated on review/sign-off of the protocol PoC in #2808; the PoC must not be treated as the permanent feature.
Scope
- Use the signed group ID as the canonical channel identity and the existing group log/policy for channel membership, roles, and history. Names and nicknames are local client aliases, not a global registry.
- Add a versioned
chat.message.v1 signed event in the channel group. The event body carries bounded text plus optional {kind, hash, author, hint?} object references; only blob and event are v1 link kinds. Use the existing signed event/event-store/sync path; do not add a chat ALPN or bridge-assigned ordering.
- Use the channel's group history policy for new-member history. Keep world chat behavior intact. Presence and typing are explicitly out of this issue (see id(chat): presence heartbeat protocol over gossip (ephemeral, TTL-based) #2809); attachment multi-provider retrieval remains in id: holder discovery for blob hashes — provider table, gossip announcements, wire the blob gate #2260/id: PoC — multi-provider chunk-range retrieval in the get path (swarm scheduler over iroh-blobs) #2261.
- Authenticate message authors with the existing signing identity in the event, not the transport peer or a server-assigned world participant number. The Iroh EndpointId is a routing/connection identity, not a substitute for the event signature.
Acceptance criteria
- Two independent members can create/join a channel and exchange signed message events; signatures, channel/group binding, replay, duplicate delivery, and out-of-order delivery are tested.
- Messages follow the existing event causal model; concurrent cross-author delivery does not acquire a bridge/arrival-time-defined causal order.
- Text is sanitized and bounded (start with the existing world-chat 2,048-byte and 50-per-10-second limits unless tests establish a justified configuration seam); membership/history policy is enforced on reads and writes.
- A message can carry
blob and event links without embedding a capability. Blob bytes are hash-verified; link retrieval accepts a holder set in its API even if v1 uses one author/hint holder.
- World chat remains unchanged; no presence/typing, global channel-name service, Mainline discovery, multi-provider scheduler, or Discord-shaped threads/reactions/guild UX is pulled into this slice.
- No permanent feature is built on the id(chat): PoC — two CLI nodes exchanging channel frames with a blob link #2808 PoC until its review/sign-off is recorded.
Activitydeveloping-today commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
335a5d1f-bfc1-4831-99ea-850c8939a727 — an OpenCode session on the laptop, working the task directly (no further handoff)
- Session / ID: ses_e5e3a05b7ecffek0uaCEHp46VA / task 7409
- Found via: atomic queue claim
- Fresh check: id(chat): implement durable IRC-shaped group channels and signed messages #3799 OPEN, no hard-stop labels. Gate id(chat): PoC — two CLI nodes exchanging channel frames with a blob link #2808 CLOSED/completed. PR feat(id): chat.message.v1 message shape + causal projection (#3799) #3941 MERGED (0b3719e). PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 MERGED 2026-11-08 (b64288a) — the sibling-ownership condition this task parked on is gone.
- Expectation: verify each acceptance criterion against current
main, then close with evidence or file the precise remainder.
- Links: id(chat): implement durable IRC-shaped group channels and signed messages #3799, id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950, PR feat(id): chat.message.v1 message shape + causal projection (#3799) #3941, PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965
dezren39 commented on Nov 10, 2026 agent-note:v1 — state: handed_off (task 7409, lane code-y)
dezren39 commented on Nov 11, 2026 agent-note:v1 — task 7409 triage, 2026-11-11 UTC
Fresh remote main 10d1088676d34108a8cf5d3feebcef5de362cfe2: #2808 is signed off; #3941 and #3965 merged, but #3799 remains open. pkgs/id/src/event_store/chat.rs:198-235 selects the reader join across all groups and chooses the earliest; an earlier causally connected join elsewhere can admit pre-join channel history. Fix: scope selection to the requested group and correct membership epoch, with regression tests for cross-group causal ancestry, remove/re-add, and non-member denial.
pkgs/id/src/chat.rs has holder and hash-verification helpers, but no production link-retrieval callers were found; verify and wire holder-set retrieval separately. Recent/Causal conservatively use FromJoin (chat.rs:441-460), as previously rescoped. Multi-provider discovery/scheduling #2260/#2261 is explicitly out of scope.
Task 7409 is already claimed; no duplicate child filed. Separate enqueue blocked by required --worker opencode-claimant constraint: installed repo-queue enqueue rejects --worker. No terminal action taken. dezren39 commented on Nov 11, 2026 🤖 Agent note · done — triage verdict: IMPLEMENTED on main; closing with evidence (task 7409, lane any-a)
- Agent: repo-queue-worker lane any-a (task 7409, fresh triage at current main per the 2026-11-03 coverage packet)
- Gate state: the issue's stated gate is satisfied — the protocol PoC id(chat): PoC — two CLI nodes exchanging channel frames with a blob link #2808 is CLOSED and the parent design id: design: ID chat v1 #2051 is CLOSED.
- What landed, mapped to the acceptance criteria:
chat.message.v1 signed event + causal projection: PR feat(id): chat.message.v1 message shape + causal projection (#3799) #3941 (MERGED, commit 0b3719e "feat(id): chat.message.v1 message shape + causal projection (id(chat): implement durable IRC-shaped group channels and signed messages #3799)"); pkgs/id/src/chat.rs (742 lines) defines ChatMessage with bounded text and ChatLink references of kinds blob/event only, hash verification (ChatLink::verify_blob), and a holder-set API (ChatLink::holders).
- Store wiring, membership/history enforcement, rate admission: commit fcd740a "feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950)" on main; visible_history in chat.rs enforces the group history policy, SendRate/ChatRateConfig implements the send-rate admission.
- Completion fixes: e6ac552 "fix(id): complete chat v1 port — Codex fixes chunking/NFC/causal ancestors + P1 membership gate" on main.
- Delivery semantics: project() folds delivered records dropping duplicates by event ID; the module's tests cover out-of-order delivery with duplicates (chat.rs test at line 623) among 22 in-module tests.
- Verification this claim:
cargo test --lib chat (pkgs/id) at current main — 75 passed, 0 failed.
- Coordination note: this queue row carries a legacy bound opencode lane assignment (session ses_e5e37c9240dffeuwc7g50Ef53o, last executed 2026-11-11T01:46Z); the broker served the task to this lane three times after bound-session parks, so the triage was executed here and is recorded on the task. No code changes were needed under this claim — the work pre-dates it; the issue simply never closed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|