Vendor the Mail peer v1 fixtures and round-trip them through the peer models #58
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#58
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?
Outcome
People Mind carries the seven Mail peer v1 fixtures from the pinned Mail Mind commit, and a test proves that each one validates against the vendored
schema.jsonand survives a lossless round trip through thepeer.*models.Context
Parent: dev/people-mind-mcp#52. The #52 architect gate (2026-11-04) split #52 into two slices, because the full issue needs 17 written files and the spec ceiling is 16.
Refs #52) vendorsschema.json,requests.schema.json,ORIGINandLICENSEintotests/contracts/mind-v1/, and addstests/test_contract_conformance.pywith the request wire-conformance tests.Both slices must land before rc.7 is cut (ADR 0009 Amendment 1, item 1).
Scope
The pin is
21e279da85eab618ef8c76bc8211daaa23e0ca52indev/mail-mind-mcp. A local copy is at/Users/piers/src/mailmind-mcp. The fixture names were read at the pin on 2026-11-04 (git ls-tree):contracts/mind-v1/fixtures/intotests/contracts/mind-v1/fixtures/. Usegit cat-file blob, notgit show.busy.jsonchanges.jsonevidence.jsonexpired-cursor.jsoninfo.jsonno-evidence.jsonsnapshot.jsontests/test_contract_conformance.pywithtest_wire_every_fixture_validates_and_round_trips. For each fixture it:schema.json;peer.*model chosen by itstype;model_dump(mode="json", by_alias=True) == fixture, so no field the consumer reads is lost.ORIGIN. Slice A writes it without a file list, so that this slice can add files.Acceptance criteria
git -C <mailmind> cat-file blob 21e279da…:contracts/mind-v1/fixtures/<name> | cmp - tests/contracts/mind-v1/fixtures/<name>exits 0. The PR body quotes the commands and exit codes.tests/contracts/mind-v1/fixtures/holds exactly the seven files above.python3 -m pytest.make checkpasses.Closes #<this issue>andCloses #52, because this slice completes #52.Filed under: operator word "ruling leans accepted" sha256:74398dc59a44 (#52 #53 #54 gate)
⏸ SVD architect gate: dev/people-mind-mcp#58 vendor-the-mail-peer-v1-fixtures-and-round-trip-them-through
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 effortmediumRun:
20261103T234408Z-53815731Held because: CLEAN but 2 open risk(s) (2 verification) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
git ls-treeat the pin (issue body, 2026-11-04), and the #52 gate confirmed the commit resolves on the architect side. Check: lean step 0git -C /Users/piers/src/mailmind-mcp ls-tree --name-only 21e279da85eab618ef8c76bc8211daaa23e0ca52 contracts/mind-v1/fixtures/lists exactly the seven names, and the PR body quotes sevencmpexit-0 results. Dispatch halts otherwise. [verification]uv run python3 -m pytest tests/test_contract_conformance.py -q. If any fails, dispatch halts with the fixture name and the error, and does not edit mailpeer.py or loosen the test; a model fix becomes a new issue. [verification]Change: Step 0: from /Users/piers/src/mailmind-mcp at pin 21e279da…, run
git ls-tree --name-onlyon contracts/mind-v1/fixtures/ and confirm it lists exactly the seven names; halt otherwise and do not clone. Copy each fixture withgit cat-file blob <pin>:contracts/mind-v1/fixtures/<name> > tests/contracts/mind-v1/fixtures/<name>and verify it withcmp. In tests/test_contract_conformance.py, add FIXTURE_DIR, a sorted FIXTURES tuple and RESPONSE_MODELS: dict[str, type[peer.Model]] (info/changes/snapshot/evidence/error → peer.Info/Changes/Snapshot/Evidence/PeerError) after PIN (line 25). Add@pytest.mark.parametrize("name", FIXTURES) def test_wire_every_fixture_validates_and_round_trips(name: str) -> None, placed between the malformed-request test (104) and the ORIGIN test (115). The test asserts the directory listing equals FIXTURES, validates the fixture against the root schema.json withjsonschema.validators.validator_for(schema)(schema)(the idiom at lines 32-33 and 87-88), and assertsRESPONSE_MODELS[fixture["type"]].model_validate(fixture).model_dump(mode="json", by_alias=True) == fixture. Also replace the stale 'slice B (#58)' docstring sentence on line 5. Parametrisation mirrors tests/test_mailpeer.py:347. Do not touch src/, ORIGIN, LICENSE, the schemas, pyproject or uv.lock. If a real fixture fails the round trip, halt and report it; do not edit mailpeer.py.Files:
tests/contracts/mind-v1/fixtures/busy.json·tests/contracts/mind-v1/fixtures/changes.json·tests/contracts/mind-v1/fixtures/evidence.json·tests/contracts/mind-v1/fixtures/expired-cursor.json·tests/contracts/mind-v1/fixtures/info.json·tests/contracts/mind-v1/fixtures/no-evidence.json·tests/contracts/mind-v1/fixtures/snapshot.json·tests/test_contract_conformance.pyDecision: accept the 2 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-03-vendor-the-mail-peer-v1-fixtures-and-round-trip-them-through.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-fixtures-and-round-trip-them-through.mdspec-verify-dispatch Half B for dev/people-mind-mcp#58 vendor-the-mail-peer-v1-fixtures-and-round-trip-them-through completed integration verify.
4240392f9e4240392: ci/woodpecker/pr/validation pending. Local checks green (11/11 module tests, 383 passed full suite, ruff and mypy clean). One PR-metadata blocker: body lacksCloses #52and the seven cmp results.Closes #52to the PR body (the spec requires bothCloses #58andCloses #52), quote the sevencmpcommands with theirexit=0results, and state that the test is wire conformance only, not recovery conformance.Closes #52to the PR body (the spec requires bothCloses #58andCloses #52), quote the sevencmpcommands with theirexit=0results, and state that the test is wire conformance only, not recovery conformance.; no denial signature; evidence: PR #62 body ends with onlyCloses #58; it says "all seven cmp checks passed" but quotes no commands, and has no wire-only statement.Co-Authored-By: gpt-6.1-soltrailer, which is not the expected PR attribution line; cosmetic.Closes #52to the PR body (the spec requires bothCloses #58andCloses #52), quote the sevencmpcommands with theirexit=0results, and state that the test is wire conformance only, not recovery conformance.; edit the PR title or body by hand, then re-run integrate or run the own-execution gate.spec-verify-dispatch Half B for dev/people-mind-mcp#58 vendor-the-mail-peer-v1-fixtures-and-round-trip-them-through completed integration verify.
4240392f9e4240392: ci/woodpecker/pr/validation success (1/1 required check green). Local: 7 fixtures cmp-identical to pin, 11 conformance tests pass, ruff, ruff format and mypy clean, 383 passed in full suite.codex-svd ship --run-id 20261104T003724Z-029715c4 --confirm-merge)