Change feed with named Consumers and ack #15
Labels
No labels
boundary:crosses
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #6. Records: ADR 0003 (
docs/adr/0003-kit-boundary-and-shared-code-timing.md), ADR 0007 (docs/adr/0007-store-encryption-and-backup.md), ADR 0010 ("One event log").What to build
messages_changesandmessages_changes_ack: a pulled change feed over the one event log.Acceptance criteria
Blocked by
Filed under: operator word "go" sha256:4cd0e21a9a07
messages-people/1.0with the evidence scope #16⏸ SVD architect gate: dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack
Status: CLEAN after 1 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
substrate· dispatch efforthighRun:
20261113T113334Z-7462bb1dHeld because: CLEAN but 4 open risk(s) (1 verification · 3 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
at, pruned at the end of each successful sync pass. Should it be 30 days or the Mail Mind shared value? Should it be amended into ADR 0010 before dispatch (an architect-only edit)? [decision]ack_seq=N(no epoch) tonext_cursor=<changes,epochtag,seq>, always non-empty, so that the ack carries the epoch (ADR 0007). Is that Kit footer-dialect change acceptable under ADR 0003? Iscursor-expired, plus the description's 'start again with no cursor', a sufficient restart signal, or does the architect want a dedicatedepoch-changedcode? [decision]behind-retention:line, no rows, and a next_cursor at the floor, logged as code=ok. The alternative is a coded errorbehind-retentionplus a jump-to-floor. Which does the architect want? [decision]del m<id> c<chat>for a Source deletion that sync applied. [verification]Change: Mirror the read-tool shape: views.recent (views.py:273-286) → views.changes/views.ack; ReadTools.messages_recent (server.py:310-317) → messages_changes / messages_changes_ack; reading() (store.py:295-314) → acking() on the _positions_only connection. Retention: sync.prune_events is called in _run_pass's final transaction (sync.py:225-226) with store.cutoff(store.EVENTS_RETENTION_DAYS). That is a NEW store.cutoff(days) built on a factored _stamp() beside now() (store.py:139-140). store.now() keeps its zero-argument signature because tests/test_sync.py:352-357 patches it with a zero-argument fake that sync_once reaches. Kit feed_footer becomes next_cursor=.
Files:
src/messages_mind_mcp/kit/page.py·src/messages_mind_mcp/store.py·src/messages_mind_mcp/sync.py·src/messages_mind_mcp/views.py·src/messages_mind_mcp/server.py·src/messages_mind_mcp/cli.py·tests/conftest.py·tests/test_feed.py·tests/test_server.py·tests/test_kit.py·tests/test_log_scan.py·tests/test_sync.py·README.md·SECURITY.mdDecision: accept the 4 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-13-change-feed-with-named-consumers-and-ack.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-13-change-feed-with-named-consumers-and-ack.md[feeder]keys, the client limits and the codes in the README #32spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
dae5828129python3 -m pytestlacks tiktoken; ran tests throughuv run, which provisions it.codex-svd ship --run-id 20261113T121751Z-9eb8d793 --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
e533cb4354codex-svd ship --run-id 20261113T230400Z-f2e5d663 --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
8dde60f085codex-svd ship --run-id 20261113T230400Z-f2e5d663 --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
8dde60f0858dde60f: ci/woodpecker/pr/validation green. Local: 677 passed, ruff, ruff format and mypy clean. No build manifest.codex-svd ship --run-id 20261113T230400Z-f2e5d663 --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
67d94102a1codex-svd ship --run-id 20261113T230400Z-f2e5d663 --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
fa0a0832edcodex-svd ship --run-id 20261113T230400Z-f2e5d663 --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
fdd7cf3ca4python3 -m pytestfails collection in this host environment (No module named 'tiktoken'; project deps missing). Collection and the full run useduv run python3 -m pytest, as the spec prescribes, and worked.codex-svd ship --run-id 20261113T230400Z-f2e5d663 --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#15 change-feed-with-named-consumers-and-ack completed integration verify.
3e65d495eauv run --offlinein the worktree .venv.3e65d49.codex-svd ship --run-id 20261113T230400Z-f2e5d663 --confirm-merge)