Sync: watermarks, Backfill, Edits and Unsends against the fake Feeder #12
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#12
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 0001 (
docs/adr/0001-service-and-read-only-scope.md), ADR 0004 (docs/adr/0004-source-mac-and-feeder-network-face.md), ADR 0006 (docs/adr/0006-retention-deletion-and-forget.md).What to build
The
syncworker. It is the only client of the Feeder and the only writer of the Mirror.syncreads through a read-only Source interface, so a second Source kind can be added later with no change to the store or the tools.messages_status: last sync, newest message time and Backfill progress.Acceptance criteria
synckeeps its positions, reports the failure on the health endpoint and the api keeps serving.Blocked by
Filed under: operator word "go" sha256:4cd0e21a9a07
svc-agent-writer referenced this issue2026-11-12 20:18:16 +00:00
svc-agent-writer referenced this issue2026-11-12 20:18:16 +00:00
svc-agent-writer referenced this issue2026-11-12 20:18:17 +00:00
svc-agent-writer referenced this issue2026-11-12 22:29:50 +00:00
svc-agent-writer referenced this issue2026-11-13 00:55:17 +00:00
Two facts from the slices that are now built. Both bind this slice.
The Mirror needs three additions to hold what
feeder-v1serves (pull request #29).reply_to, aguidornull.addorremove.The store of #7 has no column for them. The section "What
syncmust do" ofcontracts/feeder-v1/README.mdlists the duties of this slice. One of them needs a lookup: a hard-deletion record holdsguid_hash, the SHA-256 of aguid, sosyncmatches it by the hash of eachguidthat the Mirror holds.GET /healthz/syncalready exists on the api (#17, merged).last_sync_at(store.SYNC_LAST_AT).okwhen a sync ended in the last 900 seconds (server.SYNC_STALE_SECONDS), and503otherwise.503today.This slice writes
last_sync_atat the end of each pass. Its poll interval must fit the 900 s limit, or this slice changes the limit and states why.⏸ SVD architect gate: dev/messages-mind-mcp#12 sync-watermarks-backfill-edits-and-unsends-against-the-fake
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
substrate· dispatch efforthighRun:
20261113T050330Z-1c4188afHeld because: CLEAN but 7 open risk(s) (1 verification · 6 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
Change: Six changes:
Add a SYNC_FAILED_AT key next to SYNC_LAST_AT (store.py:91-95). The existing open_writer loop (store.py:198-231) migrates v1 stores forward in place.
Deletions, Reconcile and event envelopes are out of scope.
Files:
src/messages_mind_mcp/store.py·src/messages_mind_mcp/source.py·src/messages_mind_mcp/sync.py·src/messages_mind_mcp/config.py·src/messages_mind_mcp/startup.py·src/messages_mind_mcp/cli.py·src/messages_mind_mcp/server.py·src/messages_mind_mcp/views.py·config.example.toml·README.md·SECURITY.md·tests/test_sync.py·tests/test_store.py·tests/test_config_cli.pyDecision: accept the 7 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-sync-watermarks-backfill-edits-and-unsends-against-the-fake.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-13-sync-watermarks-backfill-edits-and-unsends-against-the-fake.mdspec-verify-dispatch Half B for dev/messages-mind-mcp#12 sync-watermarks-backfill-edits-and-unsends-against-the-fake completed integration verify.
9a43a9ec7ecodex-svd ship --run-id 20261113T053602Z-adcfca98 --confirm-merge)[feeder]keys, the client limits and the codes in the README #32