Peer producer for messages-people/1.0 with the evidence scope #16

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

Parent: #6. Records: ADR 0010 (docs/adr/0010-messages-people-peer-profile.md), and the shared mind contract in dev/mail-mind-mcp: ADR 0010 and contracts/mind-v1/ with its recovery.md.

Human act

ruling: the operator approves dispatch and reads the diff before merge, because this slice fixes the closed list of fields that reach People Mind, and message text must never be among them (CONV-40)

What to build

The four peer tools and the profile contract under contracts/messages-people-v1/: messages_peer_info, messages_peer_changes_v1, messages_peer_snapshot_v1 and messages_peer_evidence_v1. They are reached with the evidence token.

  • A filtered view of the one event log, with no text in it.
  • Envelope. Each record carries its date, the flag that says whether the Owner sent it, and its Transport. A Handle is typed. A received record carries from only. A sent record carries to, the Members of the Chat when the record was written.
  • Cap. to holds at most 1,024 Handles. A record over the cap returns record_too_large; the producer never truncates.
  • Event kinds. add and del only. A Source deletion, a row that leaves through the deny list and a Forget each emit del. An Edit and an Unsend emit nothing. A changed date emits del and then add.
  • Evidence. For one Handle: the count the Owner sent and the count the Owner received, with the first and last date of each, per Transport, and nothing else.
  • Content. Each peer tool returns the same content as structured data and as text, as the shared contract requires.

Acceptance criteria

  • A serialisation test over every peer response refuses any field outside the closed list, and a fixture run finds no word of any fixture body in any peer response.
  • Fixtures cover a group at the cap, a group over the cap, an Edit, an Unsend, a changed date and a Forget.
  • The page bounds and the byte stop match the mail profile; a test proves both.
  • The producer rows P01 to P09 of the shared contract's recovery.md are exercised and recorded for this producer. The shared conformance checks pass where they apply to a profile that is not mail.
  • The tool list budget of 2,500 tokens holds with all eleven tools.

Blocked by

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

Authority pointer — mind-spec-v0.1.0

The shared contract authority is now mind-spec mind-spec-v0.1.0 at 5a610a5e530f439a3e28078e0c6f369645946ceb, with the recovery acceptance matrix and accepted authority-transfer ADR0003. This pointer supersedes earlier shared-authority references to Mail while preserving their historical decisions. The transfer changes ownership, not the existing Mail wire profiles. The Messages ADR0010 profile, evidence-only access, closed text-free fields, operator dispatch/review ruling, dependencies and producer acceptance criteria remain unchanged. This is an authority reference update only; it does not complete or dispatch this issue.

Parent: #6. Records: ADR 0010 (`docs/adr/0010-messages-people-peer-profile.md`), and the shared mind contract in `dev/mail-mind-mcp`: ADR 0010 and `contracts/mind-v1/` with its `recovery.md`. ## Human act ruling: the operator approves dispatch and reads the diff before merge, because this slice fixes the closed list of fields that reach People Mind, and message text must never be among them (CONV-40) ## What to build The four peer tools and the profile contract under `contracts/messages-people-v1/`: `messages_peer_info`, `messages_peer_changes_v1`, `messages_peer_snapshot_v1` and `messages_peer_evidence_v1`. They are reached with the evidence token. - **A filtered view of the one event log**, with no text in it. - **Envelope.** Each record carries its date, the flag that says whether the Owner sent it, and its Transport. A Handle is typed. A received record carries `from` only. A sent record carries `to`, the Members of the Chat when the record was written. - **Cap.** `to` holds at most 1,024 Handles. A record over the cap returns `record_too_large`; the producer never truncates. - **Event kinds.** `add` and `del` only. A Source deletion, a row that leaves through the deny list and a Forget each emit `del`. An Edit and an Unsend emit nothing. A changed date emits `del` and then `add`. - **Evidence.** For one Handle: the count the Owner sent and the count the Owner received, with the first and last date of each, per Transport, and nothing else. - **Content.** Each peer tool returns the same content as structured data and as text, as the shared contract requires. ## Acceptance criteria - A serialisation test over every peer response refuses any field outside the closed list, and a fixture run finds no word of any fixture body in any peer response. - Fixtures cover a group at the cap, a group over the cap, an Edit, an Unsend, a changed date and a Forget. - The page bounds and the byte stop match the mail profile; a test proves both. - The producer rows P01 to P09 of the shared contract's `recovery.md` are exercised and recorded for this producer. The shared conformance checks pass where they apply to a profile that is not mail. - The tool list budget of 2,500 tokens holds with all eleven tools. ## Blocked by - #15 - #13 Filed under: operator word "go" sha256:4cd0e21a9a07 ## Authority pointer — mind-spec-v0.1.0 The shared contract authority is now [mind-spec mind-spec-v0.1.0 at 5a610a5e530f439a3e28078e0c6f369645946ceb](https://git.groupthink.asia/dev/mind-spec/src/commit/5a610a5e530f439a3e28078e0c6f369645946ceb/contracts/mind-v1/README.md), with the [recovery acceptance matrix](https://git.groupthink.asia/dev/mind-spec/src/commit/5a610a5e530f439a3e28078e0c6f369645946ceb/contracts/mind-v1/recovery.md) and [accepted authority-transfer ADR0003](https://git.groupthink.asia/dev/mind-spec/src/commit/5a610a5e530f439a3e28078e0c6f369645946ceb/docs/adr/0003-contract-authority-transfer.md). This pointer supersedes earlier shared-authority references to Mail while preserving their historical decisions. The transfer changes ownership, not the existing Mail wire profiles. The Messages ADR0010 profile, evidence-only access, closed text-free fields, operator dispatch/review ruling, dependencies and producer acceptance criteria remain unchanged. This is an authority reference update only; it does not complete or dispatch this issue.
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#16
No description provided.