GeezerVison is showing github.com — id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) · Issue #3950 · developing-today/code
id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950DescriptionFollow-on slice of #3799 (ID chat v1 core). The first slice landed in PR #3941 (merged 0b3719e): pkgs/id/src/chat.rs — the chat.message.v1 body shape, bounded sanitized text, blob/event links, and the causal projection (after + backlink parents, dedupe, no arrival-defined order), with unit tests.
This issue owns the remainder of #3799's acceptance criteria:
- Wire
chat.message.v1 into the signed event store/sync path: a record conversion that normalizes extensions.after + header backlink into ChatRecord (the shape PR feat(id): chat.message.v1 message shape + causal projection (#3799) #3941's projection consumes).
- Membership and channel history policy enforcement on reads and writes, using the channel group's existing policy (
crate::groups::policy): non-member writes refused at admission; new-member history follows the group history policy on reads.
- Send-rate admission: the world-chat limits as the starting configuration (50 messages per 10 seconds per author; 2,048-byte text cap already enforced by the message shape), with a justified configuration seam if tests motivate one.
- Integration test: two independent members create/join a channel and exchange signed
chat.message.v1 events; signatures, channel/group binding, replay, duplicate delivery, and out-of-order delivery are covered (duplicate + out-of-order are already proven at the projection level by PR feat(id): chat.message.v1 message shape + causal projection (#3799) #3941's unit tests — this test proves them through the store).
Out of scope (unchanged from #3799): presence/typing (#2809), attachment multi-provider retrieval (#2260/#2261), any change to world chat behavior.
Filed by queue worker lane D from task 5794, per the phased pattern: one issue per slice, #3799 stays the parent record. Activitydezren39 commented on Nov 1, 2026 Picked up by Lane A queue worker for task 5893. Verified fresh: issue #3950 OPEN with no hard-stop labels, PR #3941 merged (0b3719e), no competing PR or branch for issue #3950. Implementing the chat v1 core remainder in pkgs/id: record conversion into ChatRecord, membership/history policy enforcement, send-rate admission, and the two-member store integration test.
dezren39 commented on Nov 1, 2026 Implemented by Lane A queue worker for task 5893: PR #3965 (branch queue/5893-3950-chat-v1-remainder @ 72d54bd) — ChainExt chat field + EventStore::chat_records/group_policy/chat_timeline + LocalEvents::send_chat with roster admission and the SendRate limiter (50 per 10s, ChatRateConfig seam). Laptop tests: cargo test -p id --lib chat = 41 passed (two-store exchange with duplicate + out-of-order delivery, non-member write/read refusal, rate burst/refusal, group binding); full lib suite 1491 passed with one pre-existing failure (store_traits sqlite lock test — sqlx 0.9.0 lock edges from PR #632; this diff touches no manifest or lock).
Task 5893 is parked 20m, not for CI: the merge waits on the Codex review of PR #3965, which has not run yet. Resume: read and disposition the Codex findings on PR #3965, merge it, and complete task 5893 as fixed_merged.
dezren39 commented on Nov 1, 2026 🤖 Agent note · picked up — OpenChamber scheduled lane
- Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
- Session / ID: task 5893 (repo-health-code-pilot)
- Found via: atomic queue claim
- Fresh state: issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 OPEN; PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 OPEN at 72d54bd, authored by dezren39 (Drew), on exact task branch queue/5893-3950-chat-v1-remainder.
- Disposition: Drew-owned PR hard stop; no review details, edits, tests, or merge will be touched.
- Resume condition: ownership boundary resolves or task explicitly rerouted; then revalidate.
- Links: id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 · feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 8, 2026
🤖 Agent note · handed off
dezren39 commented on Nov 8, 2026 🤖 Agent note · parked
- Agent: queue worker (repo-worker-code), lane code-w
- Session / ID: task 13371
- Found via: queue claim (direct execution lane)
- Task: Shepherd PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 (issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 3) — assessed for landing this shift; parking with the precise remaining work.
- Fresh evidence (2026-11-08): PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 OPEN, head 990bab5, no hard-stop labels; 4 commits on merge-base 8a8d509, now 1309 commits behind current origin/main (4834a3e). A trial cherry-pick of the 4 commits onto current main in a throwaway laptop worktree conflicted in 25 files (pkgs/id/src/attestation.rs, chain.rs, chat.rs, event_store/ingest.rs, event_store/mod.rs, event_store/sync.rs, idset.rs, local_events.rs, log_sync.rs, store_traits.rs, plus 15 test files) — the pkgs/id tree has been restructured since this branch was written, so the PR needs a port/reimplementation onto the current structure, not a mechanical rebase. The trial was aborted and the throwaway worktree removed; PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 itself is untouched.
- Remaining work (resume condition): (1) port the chat v1 remainder (store wiring, membership/history enforcement, rate admission) onto the current pkgs/id structure; (2) disposition all four Codex findings on the final head — P2 comments 4437276309 (wire encoding vs 512-byte canonical limit), 4437276319 (NFC normalization before signing), 4437276331 (causal paths through non-chat events), and P1 comment 4471198623 (enforce chat author membership on received events); (3) targeted pkgs/id tests in CI, then merge under the standing criteria and close issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950.
- Links: PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965, issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950, issue Unowned PR batch from branch disposition (2026-11-07) #7297
developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-y
- Session / ID: task 12136
- Found via: queue claim
- Task: task 12136 (triage) for issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 assigned to the opencode execution lane per runbook §1b; handing off to the laptop opencode claimant, which launches a bound session. Verified fresh this shift: issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 is OPEN with no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit absent). Attempts 4/6.
- Expectation: claimant launches the bound opencode session; that session drives task 12136 to its terminal state.
- Links: issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950
developing-today commented on Nov 8, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane code-v
- Session / ID: task 13371
- Found via: queue claim (direct lane; resume after park)
- Task: Porting PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 single real commit 72d54bd onto current main 09547d3 in worktree ~/git/fleet/13371-3950 (branch queue/13371-3950-chat-v1-port). Fresh trial: 57 conflict hunks across 24 files — most are small additive struct-field merges, unlike the earlier 4-commit (incl. merges) trial. Resolving by intent, then targeted tests, Codex disposition, and merge-or-park.
- Links: task 13371 (repo-health-code-pilot), PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965, issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950
developing-today commented on Nov 8, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-u
- Session / ID: task 12136
- Found via: queue claim
- Task: Triage issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 (chat v1 core remainder); revalidated fresh — issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit / user/review absent); PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 OPEN, non-draft, no labels. Note: authorship by dezren39 is NOT a hold per the 2026-11-07 runbook rule, superseding the earlier parked finding on task 12136.
- Expectation: effort/l; handed off to the opencode claimant, which launches the bound session to drive task 12136 to its terminal state.
- Links: PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965; issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-f
- Session / ID: task 12136
- Found via: queue claim
- Task: Handing task 12136 (re-triage of issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 — id(chat) chat v1 core remainder, re-queued under the triage doctrine after the done-task-only audit) to the opencode claimant per execution-lane assignment (row 3927, assigned_lane opencode). Issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 re-verified open this shift with no hard-stop labels.
- Expectation: effort/l; done = claimant session bound to task 12136 confirms issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 is real and current, annotates it, and converts it to a fix packet (or validates it invalid with evidence)
- Links: issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950; audit issue queue: no reconciliation between open issues and queue coverage — non-creator filings never get queue items #7016
developing-today commented on Nov 8, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-v
- Session / ID: task 13371
- Found via: queue claim (pr_shepherd, direct lane)
- Task: Issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 is complete: PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 was ported onto current main and merged as b64288a (head e6ac552). The port cherry-picked the single real commit 72d54bd (57 conflict hunks in 24 files resolved by intent), carried the three Codex P2 fixes that only existed inside PR-branch merge bd403f5 (header text chunking, NFC normalization, causal chat ancestors — each with its tests), and fixed the remaining Codex P1 4471198623 (chat events membership-gated at their causal position in event-store resolution; reply 4507125276 on PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965).
- Tests (laptop, pkgs/id): cargo check --all-targets PASS; full lib suite 2443 passed / 2 failed — the 2 failures (world::tests::schedule_tests) are pre-existing on clean main, verified failing at both the port base 09547d3 and current main eb76bd8, unrelated to this change. New/fixed-area tests pass, incl. test_chat_from_a_non_member_does_not_apply and test_chat_records_keep_causal_order_across_a_non_chat_event. PR CI did not run (fleet-wide runner backlog); merged under the standing merge authority after local verification.
- Links: task 13371 (repo-health-code-pilot), PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965, issue Unowned PR batch from branch disposition (2026-11-07) #7297
dezren39 commented on Nov 8, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-p
- Session / ID: task 12136
- Found via: queue claim
- Task: Triage task 12136 for issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 — revalidation verdict: already_done. Issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950 is CLOSED (COMPLETED at 2026-11-08T17:35:56Z); PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965 is MERGED at 2026-11-08T17:35:55Z, merge commit b64288a, per task 13371 closing note (comment 6724773246). No further work owed.
- Expectation: task 12136 outcome already_done; my claim was no longer held when checkpointing (checkpoint_task: task 12136 is not claimed by repo-worker-code — consistent with monitor close-out for a closed issue), so this note is the durable outcome record; no fallback claim taken on a closed issue.
- Links: PR feat(id): chat v1 core remainder — store wiring, membership/history enforcement, rate admission (#3950) #3965, issue id(chat): chat v1 core remainder — membership/history enforcement, store integration, rate admission (follow-on of #3799) #3950
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|