Phase A: the Feeder, the Mirror and the read surface (0.1.0) #6

Open
opened 2026-11-12 20:18:14 +00:00 by svc-agent-writer · 0 comments

Tracking umbrella for Phase A of Messages Mind: the Feeder on the Source Mac, the Mirror with its sync, the read tools, the change feed, the peer producer and a signed image. Never dispatched as a unit; the work lives on the sub-issues below.

Decision records: GLOSSARY.md, SECURITY.md and ADR 0001 to 0010 in this repo. ADR 0011 adds the single-host shape (pull request #24). Vault record: DD-467 (private).

Skuld veto override: primarily for Grok Bot (operator, 2026-11-12).

Scope

  • The Feeder (Swift, feeder/): a signed, read-only program on the Source Mac. It reads the Messages history through the MessagesCore library, applies the deny list and Redaction, and answers the service over one private-network address with a bearer token.
  • The service (Python): sync pulls from the Feeder and is the only writer of the Mirror. api serves eleven tools over Streamable HTTP: five read tools, two change-feed tools and four peer tools.
  • The Mirror: one SQLCipher file with full-text search. No copy of message text leaves its volume.
  • Release: a signed image with a bill of materials, and a Feeder bundle that the owner signs.

Out of scope for Phase A: semantic search, wakes, attachment text, the People Mind consumer (Phase B and C in the README roadmap). There is never a send path.

Phase A acceptance

  1. Read-only. A write token file stops the service at startup. The Feeder build fails if a send path or a write to the Messages history appears.
  2. The boundary holds. With a deny list and the code fixtures loaded, no Feeder response on any operation holds a denied row or a fixture code.
  3. Sync is exact. Against the fake Feeder, a Backfill and a live run mirror every offered row. An Edit, an Unsend, a move to Recently Deleted, a hard deletion and a deny-list change each reach the Mirror. A Rebuild starts a new epoch and skips every Tombstone.
  4. Token budget. The whole tool list costs at most 2,500 tokens. Row and page budgets are measured by a tokenizer in the test suite.
  5. Evidence carries no text. A serialisation test proves that no peer response holds message text. The evidence token is refused on every read tool.
  6. Logs. A fixture run's log output holds no Handle, no name and no word of a message.
  7. Recovery. Rows P01 to P09 of the shared mind contract's recovery matrix are recorded for this producer.
  8. Supply chain. The image is pinned by digest, built with hash-enforced installs, scanned, described by a bill of materials and signed.
  9. Live. On the owner's instance, a hosted agent answers three questions about recent messages in one call each, and the newest message time in messages_status stays within the freshness target for 24 hours. Recorded at the gate, not in CI.

Sub-issues

  • #7 Package scaffold, config, the Kit and the encrypted store, with the validation pipeline
  • #8 The feeder-v1 contract, its fixtures and a fake Feeder
  • #9 Feeder: the read service on MessagesCore with one private-network address
  • #10 Feeder policy: the deny list, Redaction and what never leaves the Mac
  • #11 Feeder bundle, LaunchAgent and the release scripts
  • #12 Sync: watermarks, Backfill, Edits and Unsends against the fake Feeder
  • #13 Deletion, Reconcile, Forget and Rebuild
  • #14 Read tools with compact transcript rows and tokenizer budgets
  • #15 Change feed with named Consumers and ack
  • #16 Peer producer for messages-people/1.0 with the evidence scope
  • #17 HTTP face hardening and log discipline
  • #18 Containerfile, compose and a kustomize base with a NetworkPolicy
  • #19 Release pipeline: bill of materials, scans and a signed image
  • #20 Create the cosign key pair and the pipeline secret
  • #21 Sign the Feeder and install it on the Source Mac
  • #22 Phase A gate: the owner's live instance and a hosted agent
  • #25 Single-host install: native sync and api on one Mac
  • #26 Install the single-host test instance with synthetic messages
  • #31 Sync: the api must not read the Feeder token
  • #32 Sync: state the [feeder] keys, the client limits and the codes in the README
  • #33 Startup: each verb opens only the secret files that it uses
  • #38 Sync: the start-time failures and tombstones-schema-ahead exit inconsistently
  • #40 Change feed: any read-token holder can move any Consumer's position
  • #42 Secret files: harden the open-recording tests and read_secret_file
  • #52 Deploy: close the test gaps and two hardening items from the PR #51 reviews
  • #54 Change feed: close the decisions, hardening items and test gaps from the PR #53 reviews
  • #56 Single-host install: close the decisions, hardening items and test gaps from the PR #55 reviews
  • #58 Feeder: close the hardening items and test gaps from the PR #57 reviews
  • #60 Deletion follow-ups from the #13 reviews: Forget guards, lock codes and documents
  • #62 Feeder follow-ups from the #58 reviews: scan gaps, the D1 stall and test gaps
  • #64 Deploy follow-ups from the #52 reviews: the rendered checker, the SECURITY record and the CI guard
  • #65 Change feed slice B: legend cap, Python pin, config inode, NUL paths and the #54 notes
  • #68 Change feed follow-ups from the #54 reviews: lock-wait docs, ack test gaps and notes
  • #69 Startup secret check: compare the salt and every secret pair in normalised form

Milestones

Phase A has two milestones. The first is the smaller one, and it comes first.

  • M1: one Mac. The Owner's instance in the single-host shape of ADR 0011 (docs/adr/0011-deployment-shapes-split-and-single-host.md), with the Feeder, sync and the api on the Source Mac. It needs #12 (done), #31, #13, #25, #9, #10, #11, #26 and #21. #13 is in this milestone because, without it, a message that the Owner deletes stays in the Mirror.
  • M2: the Phase A gate. #22, with everything that M1 does not hold: #32, #33, #15, #16, #18, #19 and #20.

Blocked by

  • none

Filed under: operator word "go" sha256:4cd0e21a9a07

Tracking umbrella for Phase A of Messages Mind: the Feeder on the Source Mac, the Mirror with its sync, the read tools, the change feed, the peer producer and a signed image. Never dispatched as a unit; the work lives on the sub-issues below. Decision records: `GLOSSARY.md`, `SECURITY.md` and ADR 0001 to 0010 in this repo. ADR 0011 adds the single-host shape (pull request #24). Vault record: DD-467 (private). Skuld veto override: primarily for Grok Bot (operator, 2026-11-12). ## Scope - **The Feeder** (Swift, `feeder/`): a signed, read-only program on the Source Mac. It reads the Messages history through the `MessagesCore` library, applies the deny list and Redaction, and answers the service over one private-network address with a bearer token. - **The service** (Python): `sync` pulls from the Feeder and is the only writer of the Mirror. `api` serves eleven tools over Streamable HTTP: five read tools, two change-feed tools and four peer tools. - **The Mirror**: one SQLCipher file with full-text search. No copy of message text leaves its volume. - **Release**: a signed image with a bill of materials, and a Feeder bundle that the owner signs. Out of scope for Phase A: semantic search, wakes, attachment text, the People Mind consumer (Phase B and C in the README roadmap). There is never a send path. ## Phase A acceptance 1. **Read-only.** A write token file stops the service at startup. The Feeder build fails if a send path or a write to the Messages history appears. 2. **The boundary holds.** With a deny list and the code fixtures loaded, no Feeder response on any operation holds a denied row or a fixture code. 3. **Sync is exact.** Against the fake Feeder, a Backfill and a live run mirror every offered row. An Edit, an Unsend, a move to Recently Deleted, a hard deletion and a deny-list change each reach the Mirror. A Rebuild starts a new epoch and skips every Tombstone. 4. **Token budget.** The whole tool list costs at most 2,500 tokens. Row and page budgets are measured by a tokenizer in the test suite. 5. **Evidence carries no text.** A serialisation test proves that no peer response holds message text. The evidence token is refused on every read tool. 6. **Logs.** A fixture run's log output holds no Handle, no name and no word of a message. 7. **Recovery.** Rows P01 to P09 of the shared mind contract's recovery matrix are recorded for this producer. 8. **Supply chain.** The image is pinned by digest, built with hash-enforced installs, scanned, described by a bill of materials and signed. 9. **Live.** On the owner's instance, a hosted agent answers three questions about recent messages in one call each, and the newest message time in `messages_status` stays within the freshness target for 24 hours. Recorded at the gate, not in CI. ## Sub-issues - [x] #7 Package scaffold, config, the Kit and the encrypted store, with the validation pipeline - [x] #8 The `feeder-v1` contract, its fixtures and a fake Feeder - [x] #9 Feeder: the read service on `MessagesCore` with one private-network address - [ ] #10 Feeder policy: the deny list, Redaction and what never leaves the Mac - [ ] #11 Feeder bundle, LaunchAgent and the release scripts - [x] #12 Sync: watermarks, Backfill, Edits and Unsends against the fake Feeder - [x] #13 Deletion, Reconcile, Forget and Rebuild - [x] #14 Read tools with compact transcript rows and tokenizer budgets - [x] #15 Change feed with named Consumers and ack - [ ] #16 Peer producer for `messages-people/1.0` with the evidence scope - [x] #17 HTTP face hardening and log discipline - [x] #18 Containerfile, compose and a kustomize base with a NetworkPolicy - [ ] #19 Release pipeline: bill of materials, scans and a signed image - [ ] #20 Create the cosign key pair and the pipeline secret - [ ] #21 Sign the Feeder and install it on the Source Mac - [ ] #22 Phase A gate: the owner's live instance and a hosted agent - [x] #25 Single-host install: native sync and api on one Mac - [ ] #26 Install the single-host test instance with synthetic messages - [x] #31 Sync: the api must not read the Feeder token - [x] #32 Sync: state the `[feeder]` keys, the client limits and the codes in the README - [x] #33 Startup: each verb opens only the secret files that it uses - [ ] #38 Sync: the start-time failures and `tombstones-schema-ahead` exit inconsistently - [x] #40 Change feed: any read-token holder can move any Consumer's position - [ ] #42 Secret files: harden the open-recording tests and `read_secret_file` - [x] #52 Deploy: close the test gaps and two hardening items from the PR #51 reviews - [x] #54 Change feed: close the decisions, hardening items and test gaps from the PR #53 reviews - [ ] #56 Single-host install: close the decisions, hardening items and test gaps from the PR #55 reviews - [x] #58 Feeder: close the hardening items and test gaps from the PR #57 reviews - [ ] #60 Deletion follow-ups from the #13 reviews: Forget guards, lock codes and documents - [ ] #62 Feeder follow-ups from the #58 reviews: scan gaps, the D1 stall and test gaps - [ ] #64 Deploy follow-ups from the #52 reviews: the rendered checker, the SECURITY record and the CI guard - [ ] #65 Change feed slice B: legend cap, Python pin, config inode, NUL paths and the #54 notes - [ ] #68 Change feed follow-ups from the #54 reviews: lock-wait docs, ack test gaps and notes - [ ] #69 Startup secret check: compare the salt and every secret pair in normalised form ## Milestones Phase A has two milestones. The first is the smaller one, and it comes first. - **M1: one Mac.** The Owner's instance in the single-host shape of ADR 0011 (`docs/adr/0011-deployment-shapes-split-and-single-host.md`), with the Feeder, `sync` and the api on the Source Mac. It needs #12 (done), #31, #13, #25, #9, #10, #11, #26 and #21. #13 is in this milestone because, without it, a message that the Owner deletes stays in the Mirror. - **M2: the Phase A gate.** #22, with everything that M1 does not hold: #32, #33, #15, #16, #18, #19 and #20. ## Blocked by - none Filed under: operator word "go" sha256:4cd0e21a9a07
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/messages-mind-mcp#6
No description provided.