Write v2 docs, log privacy test and release 0.14.0 #197
Labels
No labels
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/mail-mind-mcp#197
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?
Part of epic #187. Documents write v2 and releases 0.14.0.
Read
docs/adr/0013-trash-forward-and-draft-edits.mdfirst. Describe what the code does at the head ofmain; do not copy the ADR.What to build
SECURITY.md: what a leaked write token can do after this change, from the Consequences of ADR 0013.mail_trashandmail_draft_edit, theforward_idargument, thetrash_per_daycap and its count in messages, and an upgrade note for schema v18. Add the line "the first start on schema v18 rebuilds theactionstable once" to both "first start on schema" lists. Add a rollback note: a 0.13.0 image runs on a v18 file, and its worker refuses the new kinds.config.example.toml:trash_per_dayin[writes].CLAUDE.mdand the glossary: the new tools and kinds.4a. ADR 0006 §10: add one bullet that points to ADR 0013 for JMAP draft edits: import the new draft, then destroy the old Email under the
$draftand blob id guard; the undo uses the same order. This is the only ADR edit in this issue. Put it in its own PR, because the runner refuses to merge a PR that touchesdocs/adr/.mailmind apistarts,mail_actionslists every row, andmail_flagstill queues. State the result in the PR. The schema tests only simulate the older reader.Acceptance criteria
make checkpasses.Out of scope
Any behaviour change. Any starbase deployment change: a host that carries a write token with
mail_trashneeds its own ADR 0023 amendment in starbase. CI files.Blocked by
⏸ SVD architect gate: dev/mail-mind-mcp#197 write-v2-docs-log-privacy-test-and-release-0-14-0
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:
20261112T225223Z-3ebcb716Held because: CLEAN but 6 open risk(s) (1 sequencing · 2 verification · 3 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
99b976c) landed as an agent PR. Question: does the architect approve the version bump inside this dispatch PR (the lean assumes yes; the tag push stays operator-only), or should it split into a separate operator commit after the docs/test PR merges? [decision]mailmind apistarts,mail_actionslists every row (trash/edit kinds included), andmail_flagstill queues. Record the result in the PR body's 'Pre-release owner check' section, which the agent leaves unfilled. [verification]c01ef13v18,1481d94IMAP trash,05ef02cforward,ce95248JMAP trash,3eda710IMAP edit,9081beaJMAP edit. Their tracker state was not in the issue-context snapshot, so the drain must confirm they are closed before dispatch. [sequencing — blocked by #192, #193, #194, #195, #196]make checkwas not run in Half-A (the target repo is read-only, and pip-audit needs network). The dispatcher must record the pristine-basemake checkresult before the first edit and show that the only change in the test set is the two new passing tests. [verification]Change: Docs describe code at
9081bea. SECURITY.md: rewrite the 'Reversible writes only', 'Write limits' (five→seven tools; trash_per_day counts messages; edits share drafts_per_day), 'Audit' and 'Untrusted content' rows (lines 13-18), and add a 'Leaked write token' row from the ADR 0013 Consequences. README: write tools table (181-191), with forward_id on mail_draft and new mail_draft_edit and mail_trash rows; caps paragraph; the [writes] row at :225; a 0.14.0 upgrade note after :54 in the shape of the :46/:50 notes (v17→v18, the writer rebuilds the actions table once per store.py:3779-3804, an older reader opens it, a 0.13.0 worker refuses the new kinds as invalid_argument); the exact v18 line appended to both 'first start on schema' lists (:123, :308); 'never send or permanently delete' at :318. config.example.toml: comments only, naming mail_draft_edit and mail_trash (trash_per_day already at :57). CLAUDE.md lines 7/18/25/26 plus one Conventions bullet. GLOSSARY: Action, Trash action and Draft edit entries in the Blade/Mind shape. server.py: instructions :143-148 name mail_draft_edit; the module docstring :1-9 names the new tools. outbox.py docstring: forward composition plus one untrusted-fields sentence. No function body changes. Log privacy: test_write_calls_log_no_mail_content in tests/test_write_tools.py, using serve()/worker() :79-120 at INFO and scanning str(r.dict) for sentinels as at tests/test_attachments.py:424-425; test_worker_apply_logs_no_mail_content in tests/test_actions.py, using runner()/run_action()/seed_live_draft (:355, :445, :630) at DEBUG for forward draft, edit and trash. A leak is reported in deviations, not fixed. Release: mirror99b976c, with 0.14.0 in pyproject:3, init:3, uv.lock:1299 (uv lock, one-line diff only), deployment.yaml:57/94/118 and kustomization:12. The PR body carries an unfilled item-7 owner checklist. No tag, no docs/adr/ edits.Files:
SECURITY.md·README.md·config.example.toml·CLAUDE.md·GLOSSARY.md·src/mail_mind_mcp/server.py·src/mail_mind_mcp/outbox.py·tests/test_write_tools.py·tests/test_actions.py·pyproject.toml·src/mail_mind_mcp/__init__.py·uv.lock·deploy/k8s/base/deployment.yaml·deploy/k8s/overlays/example/kustomization.yamlDerived artifacts:
pyproject.tomlDecision: accept the 6 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-12-write-v2-docs-log-privacy-test-and-release-0-14-0.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-12-write-v2-docs-log-privacy-test-and-release-0-14-0.md✅ SVD architect gate: dev/mail-mind-mcp#197 write-v2-docs-log-privacy-test-and-release-0-14-0
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
unclassified· dispatch effortunclassifiedRun:
20261112T225223Z-3ebcb716Files:
SECURITY.md·README.md·config.example.toml·CLAUDE.md·GLOSSARY.md·src/mail_mind_mcp/server.py·src/mail_mind_mcp/outbox.py·tests/test_write_tools.py·tests/test_actions.py·pyproject.toml·src/mail_mind_mcp/__init__.py·uv.lock·deploy/k8s/base/deployment.yaml·deploy/k8s/overlays/example/kustomization.yamlDerived artifacts:
pyproject.tomlWrite-set divergence: present table wins. 0 sourceHashes vs 26-row table.
Decision: dispatch this spec (
svd:go)?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-12-write-v2-docs-log-privacy-test-and-release-0-14-0.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-12-write-v2-docs-log-privacy-test-and-release-0-14-0.mdspec-verify-dispatch Half B for dev/mail-mind-mcp#197 write-v2-docs-log-privacy-test-and-release-0-14-0 completed integration verify.
81e5f65656codex-svd ship --run-id 20261112T230845Z-3a4c1438 --confirm-merge)Status 2026-11-13: items 1–6 and 8 merged in #209 (
ff20725, 0.14.0). Item 4a merged in #207 (eba520d). The integration suite (GreenMail and Stalwart) is green after #208.Open before the
v0.14.0tag (item 7, owner only). Run the realgit.groupthink.asia/dev/mail-mind-mcp:0.13.0image against a copy of a v18 mirror:mailmind apistarts.mail_actionslists every row, includingtrashandeditkinds.mail_flagstill queues.This issue closes when the check passes.
Item 7 owner check, 2026-11-13: passed. Run on the real
git.groupthink.asia/dev/mail-mind-mcp:0.13.0image (digesta3633c1565a1), against a v18 store built by 0.14.0 code with applied draft, edit and trash rows.mailmind apistarts. Withtrash_per_dayin[writes], 0.13.0 refuses the config (config_error, extra inputs not permitted). Without the key, it starts with no schema error. The README rollback note now says to remove the key first (#210).mail_actionslists every row, includingeditandtrash(0.13.0 shows their detail asof=None).mail_flagstill queues:action=4 kind=flag state=queued.All items are done: #207, #208, #209, #210. Closing. The
v0.14.0tag is the operator's step.