Vendor the Mail peer v1 contract files and set the interim status lines #52

Closed
opened 2026-11-03 21:55:30 +00:00 by piers · 2 comments
Owner

Outcome

The People Mind image that #49 certifies carries wire-conformance tests against the canonical Mail peer v1 contract files, and the status lines say what is true after PR #51.

Context

Parent: dev/people-mind-mcp#49. This is a child of that issue, not a blocker of it.

The #49 grill (2026-11-04) split the parts of #49 that need no ruling into this issue. ADR 0009 Amendment 1 says the rc for the packaged pair is cut after these tests land. The amendment is on branch docs/grill-49-50-amendments (a493728); dispatch after it is on main.

The People wire models are hand-written (tests/test_mailpeer.py:347). The contract allows vendoring "only the pinned contract material needed for local tests if necessary, retaining its origin and license" (docs/contracts/mail-peer-v1.md:23). That condition is met.

Scope

  1. Set the status line of docs/contracts/mail-peer-v1.md (line 3) and of docs/adr/0009-shared-mind-contract-and-recovery.md (line 3) to: "consumer adopted at 24c0c17 (C01 to C10 and synthetic I01, I03, I04); packaged-pair I01 and I02 pending (#49)".
  2. Vendor from dev/mail-mind-mcp contracts/mind-v1 at 21e279da85eab618ef8c76bc8211daaa23e0ca52 into tests/contracts/mind-v1/: schema.json, requests.schema.json and the seven files in fixtures/. Do not vendor conformance.py, README.md or recovery.md.
  3. Add tests/contracts/mind-v1/ORIGIN with the source repository URL and the full commit, and tests/contracts/mind-v1/LICENSE with Mail Mind's MIT notice. The copyright holders of the two repos differ.
  4. Add jsonschema to the dev dependency group in pyproject.toml and update uv.lock.
  5. Add tests/test_contract_conformance.py:
    • every request the People client builds validates against requests.schema.json;
    • every vendored fixture validates against schema.json and parses with the People wire models without loss of a field the consumer reads.
  6. Add the comment # protocol = "mail-people/1.0" # default; set "legacy-text" only for Mail servers without v1 tools beside the request_timeout_seconds comment in deploy/k8s/overlays/example/config.toml (line 40).

Acceptance criteria

  • make check passes, including the new test file.
  • The vendored files are byte-identical to the pin: git -C <mail-mind-mcp> show 21e279da:contracts/mind-v1/<file> equals each copy.
  • The fixture tests are named and documented as wire conformance only, not recovery conformance (docs/contracts/mail-peer-v1.md:21).

Filed under: operator word "accept/agree. yes. go" sha256:f76d6cac557a (#49 #50 grill)

## Outcome The People Mind image that #49 certifies carries wire-conformance tests against the canonical Mail peer v1 contract files, and the status lines say what is true after PR #51. ## Context Parent: dev/people-mind-mcp#49. This is a child of that issue, not a blocker of it. The #49 grill (2026-11-04) split the parts of #49 that need no ruling into this issue. ADR 0009 Amendment 1 says the rc for the packaged pair is cut after these tests land. The amendment is on branch `docs/grill-49-50-amendments` (`a493728`); dispatch after it is on `main`. The People wire models are hand-written (`tests/test_mailpeer.py:347`). The contract allows vendoring "only the pinned contract material needed for local tests if necessary, retaining its origin and license" (`docs/contracts/mail-peer-v1.md:23`). That condition is met. ## Scope 1. Set the status line of `docs/contracts/mail-peer-v1.md` (line 3) and of `docs/adr/0009-shared-mind-contract-and-recovery.md` (line 3) to: "consumer adopted at `24c0c17` (C01 to C10 and synthetic I01, I03, I04); packaged-pair I01 and I02 pending (#49)". 2. Vendor from dev/mail-mind-mcp `contracts/mind-v1` at `21e279da85eab618ef8c76bc8211daaa23e0ca52` into `tests/contracts/mind-v1/`: `schema.json`, `requests.schema.json` and the seven files in `fixtures/`. Do not vendor `conformance.py`, `README.md` or `recovery.md`. 3. Add `tests/contracts/mind-v1/ORIGIN` with the source repository URL and the full commit, and `tests/contracts/mind-v1/LICENSE` with Mail Mind's MIT notice. The copyright holders of the two repos differ. 4. Add `jsonschema` to the `dev` dependency group in `pyproject.toml` and update `uv.lock`. 5. Add `tests/test_contract_conformance.py`: - every request the People client builds validates against `requests.schema.json`; - every vendored fixture validates against `schema.json` and parses with the People wire models without loss of a field the consumer reads. 6. Add the comment `# protocol = "mail-people/1.0" # default; set "legacy-text" only for Mail servers without v1 tools` beside the `request_timeout_seconds` comment in `deploy/k8s/overlays/example/config.toml` (line 40). ## Acceptance criteria - `make check` passes, including the new test file. - The vendored files are byte-identical to the pin: `git -C <mail-mind-mcp> show 21e279da:contracts/mind-v1/<file>` equals each copy. - The fixture tests are named and documented as wire conformance only, not recovery conformance (`docs/contracts/mail-peer-v1.md:21`). Filed under: operator word "accept/agree. yes. go" sha256:f76d6cac557a (#49 #50 grill)
Collaborator

⏸ SVD architect gate: dev/people-mind-mcp#52 vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s

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 standard · dispatch effort medium

Run: 20261103T221217Z-b7b3277d

Held because: CLEAN but 4 open risk(s) (3 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. Approve the re-slice and file slice B. The full #52 writes 17 files (over the 16 ceiling), and the seven fixtures/ names at pin 21e279da cannot be confirmed here: the Mail Mind checkout is unreadable and the forge is denied. Sibling Mail Mind specs (other bases) name six: info, changes, snapshot, evidence, no-evidence, busy (.json). The seventh is unknown. Question: should slice B (vendor the 7 fixtures, then extend tests/test_contract_conformance.py with fixture schema validation plus a lossless round-trip through peer.* models) become a child issue, produced by a session that can list the pin? Or does the architect prefer a different split? Both slices must land before the #49 rc (ADR 0009 Amendment 1 item 1). [decision]
  2. The pinned Mail Mind source must be reachable at dispatch: git -C /Users/piers/src/mailmind-mcp cat-file -e 21e279da85eab618ef8c76bc8211daaa23e0ca52^{commit}, or a clone of https://git.groupthink.asia/dev/mail-mind-mcp.git. Check: the PR body quotes cmp exit 0 for tests/contracts/mind-v1/schema.json, requests.schema.json and LICENSE against git cat-file blob 21e279da…:<path>. Lean step 0 halts if neither source works. [verification]
  3. The per-tool structure of requests.schema.json is unseen this session. Check: the PR body states how test_wire_every_client_request_validates_against_requests_schema selects each tool's subschema (never a permissive root oneOf), and that the non-vacuity mutation is rejected. If no mail_peer_info request is defined, the PR says so and the test asserts the captured arguments are {}. [verification]
  4. Mail Mind LICENSE must exist at the pin and be MIT with a copyright holder different from People Mind's root LICENSE. The issue asserts this, but it could not be read this session. Check: git -C $MM cat-file -p 21e279da:LICENSE shows the MIT notice. Dispatch halts if the file is absent. [verification]

Change: Slice A of #52, re-sliced because the full issue writes 17 files (ceiling 16) and the seven fixture names cannot be confirmed in this sandbox.

  1. Replace line 3 of docs/contracts/mail-peer-v1.md and of docs/adr/0009 with the interim status text.
  2. Copy schema.json, requests.schema.json and LICENSE byte-exact with git -C $MM cat-file blob 21e279da…:<path> and check each with cmp. Write ORIGIN with the URL and full commit.
  3. Append "jsonschema>=4.18" to the dev group at pyproject.toml:23. Add a mypy override mirroring pyproject.toml:51-61, because jsonschema has no py.typed. Run uv lock with uv 0.12.17.
  4. Add tests/test_contract_conformance.py, named and documented as wire conformance only. Wrap MailpeerSource._call (mailpeer.py:274) to capture the exact request dicts. Drive one real pass against FakePeer, mirroring tests/test_mailpeer.py:373-381 (imported like test_carddav_radicale.py:12), with snapshot paging so both null and non-null cursors occur. Validate each request against its tool's subschema in requests.schema.json. Add a non-vacuity mutation test, check_schema on both schemas, and an ORIGIN-commit-equals-documented-pin test.
  5. Add the protocol comment after config.toml:40.
    The PR uses Refs #52. Fixtures and fixture tests are slice B.

Files: docs/contracts/mail-peer-v1.md · docs/adr/0009-shared-mind-contract-and-recovery.md · deploy/k8s/overlays/example/config.toml · pyproject.toml · uv.lock · tests/contracts/mind-v1/schema.json · tests/contracts/mind-v1/requests.schema.json · tests/contracts/mind-v1/ORIGIN · tests/contracts/mind-v1/LICENSE · tests/test_contract_conformance.py

Decision: 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):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-03-vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-03-vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s.md

### ⏸ SVD architect gate: dev/people-mind-mcp#52 vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s **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 `standard` · dispatch effort `medium` **Run:** `20261103T221217Z-b7b3277d` **Held because:** CLEAN but 4 open risk(s) (3 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. Approve the re-slice and file slice B. The full #52 writes 17 files (over the 16 ceiling), and the seven fixtures/ names at pin 21e279da cannot be confirmed here: the Mail Mind checkout is unreadable and the forge is denied. Sibling Mail Mind specs (other bases) name six: info, changes, snapshot, evidence, no-evidence, busy (.json). The seventh is unknown. Question: should slice B (vendor the 7 fixtures, then extend tests/test_contract_conformance.py with fixture schema validation plus a lossless round-trip through peer.* models) become a child issue, produced by a session that can list the pin? Or does the architect prefer a different split? Both slices must land before the #49 rc (ADR 0009 Amendment 1 item 1). [decision] 2. The pinned Mail Mind source must be reachable at dispatch: `git -C /Users/piers/src/mailmind-mcp cat-file -e 21e279da85eab618ef8c76bc8211daaa23e0ca52^{commit}`, or a clone of https://git.groupthink.asia/dev/mail-mind-mcp.git. Check: the PR body quotes cmp exit 0 for tests/contracts/mind-v1/schema.json, requests.schema.json and LICENSE against `git cat-file blob 21e279da…:<path>`. Lean step 0 halts if neither source works. [verification] 3. The per-tool structure of requests.schema.json is unseen this session. Check: the PR body states how test_wire_every_client_request_validates_against_requests_schema selects each tool's subschema (never a permissive root oneOf), and that the non-vacuity mutation is rejected. If no mail_peer_info request is defined, the PR says so and the test asserts the captured arguments are {}. [verification] 4. Mail Mind LICENSE must exist at the pin and be MIT with a copyright holder different from People Mind's root LICENSE. The issue asserts this, but it could not be read this session. Check: `git -C $MM cat-file -p 21e279da:LICENSE` shows the MIT notice. Dispatch halts if the file is absent. [verification] **Change:** Slice A of #52, re-sliced because the full issue writes 17 files (ceiling 16) and the seven fixture names cannot be confirmed in this sandbox. 1. Replace line 3 of docs/contracts/mail-peer-v1.md and of docs/adr/0009 with the interim status text. 2. Copy schema.json, requests.schema.json and LICENSE byte-exact with `git -C $MM cat-file blob 21e279da…:<path>` and check each with cmp. Write ORIGIN with the URL and full commit. 3. Append "jsonschema>=4.18" to the dev group at pyproject.toml:23. Add a mypy override mirroring pyproject.toml:51-61, because jsonschema has no py.typed. Run `uv lock` with uv 0.12.17. 4. Add tests/test_contract_conformance.py, named and documented as wire conformance only. Wrap MailpeerSource._call (mailpeer.py:274) to capture the exact request dicts. Drive one real pass against FakePeer, mirroring tests/test_mailpeer.py:373-381 (imported like test_carddav_radicale.py:12), with snapshot paging so both null and non-null cursors occur. Validate each request against its tool's subschema in requests.schema.json. Add a non-vacuity mutation test, check_schema on both schemas, and an ORIGIN-commit-equals-documented-pin test. 5. Add the protocol comment after config.toml:40. The PR uses `Refs #52`. Fixtures and fixture tests are slice B. **Files:** `docs/contracts/mail-peer-v1.md` · `docs/adr/0009-shared-mind-contract-and-recovery.md` · `deploy/k8s/overlays/example/config.toml` · `pyproject.toml` · `uv.lock` · `tests/contracts/mind-v1/schema.json` · `tests/contracts/mind-v1/requests.schema.json` · `tests/contracts/mind-v1/ORIGIN` · `tests/contracts/mind-v1/LICENSE` · `tests/test_contract_conformance.py` **Decision:** 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`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-03-vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-03-vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s.md`</sub>
Collaborator

spec-verify-dispatch Half B for dev/people-mind-mcp#52 vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s completed integration verify.

  • PR: #60
  • Branch: feat/svd-dev-people-mind-mcp-52-vendor-the-mail-peer-v1-contr-c6015f35
  • Commit: e6c58dfb22
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: False
  • Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/73/pipeline/19/1
  • Checks: PR #60 head e6c58df: ci/woodpecker/pr/validation pending. Local make check steps (ruff, format, mypy, pytest) green. One PR metadata blocker: the body has a trailing Closes #52.
  • Blocker: PR metadata: remove the trailing Closes #52 line from the PR body (keep Refs #52); slice B (#58) is outstanding and Closes would auto-close #52
  • Blocker cause: work for PR metadata: remove the trailing Closes #52 line from the PR body (keep Refs #52); slice B (#58) is outstanding and Closes would auto-close #52; no denial signature; evidence: PR #60 body ends with "Closes #52" while the spec requires "Refs #52" (not Closes) and also contains "Refs #52. Slice B (#58) ... remains outstanding."
  • Warning: Merge is a hand merge pinned to the gated head: the PR touches deploy/k8s/overlays/example/config.toml, so ship refuses it as T4 (register dev/stables#1845).
  • Warning: The PR body does not state how each tool's subschema is selected (Open Risk 3); the test docstring and helper show it uses the $defs/ ref.
  • Warning: Slice B (#58, fixtures and response round-trips) is outstanding and must land before the #49 rc.
  • Rework: 0 round(s), outcome metadata-hold
  • Escalation: PR metadata blocker(s) hold the run without code rework: PR metadata: remove the trailing Closes #52 line from the PR body (keep Refs #52); slice B (#58) is outstanding and Closes would auto-close #52; edit the PR title or body by hand, then re-run integrate or run the own-execution gate.
  • Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
spec-verify-dispatch Half B for dev/people-mind-mcp#52 vendor-the-mail-peer-v1-contract-files-and-set-the-interim-s completed integration verify. - PR: https://git.groupthink.asia/dev/people-mind-mcp/pulls/60 - Branch: feat/svd-dev-people-mind-mcp-52-vendor-the-mail-peer-v1-contr-c6015f35 - Commit: e6c58dfb229e504278b5da4f4717418815f6e751 - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: False - Check ci/woodpecker/pr/validation: pending https://ci.groupthink.asia/repos/73/pipeline/19/1 - Checks: PR #60 head e6c58df: ci/woodpecker/pr/validation pending. Local make check steps (ruff, format, mypy, pytest) green. One PR metadata blocker: the body has a trailing `Closes #52`. - Blocker: PR metadata: remove the trailing `Closes #52` line from the PR body (keep `Refs #52`); slice B (#58) is outstanding and Closes would auto-close #52 - Blocker cause: work for PR metadata: remove the trailing `Closes #52` line from the PR body (keep `Refs #52`); slice B (#58) is outstanding and Closes would auto-close #52; no denial signature; evidence: PR #60 body ends with "Closes #52" while the spec requires "Refs #52" (not Closes) and also contains "Refs #52. Slice B (#58) ... remains outstanding." - Warning: Merge is a hand merge pinned to the gated head: the PR touches deploy/k8s/overlays/example/config.toml, so ship refuses it as T4 (register dev/stables#1845). - Warning: The PR body does not state how each tool's subschema is selected (Open Risk 3); the test docstring and helper show it uses the $defs/<tool> ref. - Warning: Slice B (#58, fixtures and response round-trips) is outstanding and must land before the #49 rc. - Rework: 0 round(s), outcome metadata-hold - Escalation: PR metadata blocker(s) hold the run without code rework: PR metadata: remove the trailing `Closes #52` line from the PR body (keep `Refs #52`); slice B (#58) is outstanding and Closes would auto-close #52; edit the PR title or body by hand, then re-run integrate or run the own-execution gate. - Decision: resolve the blockers above and rerun integrate, or park this PR for a human?
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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/people-mind-mcp#52
No description provided.