Accept ADR 0013: Trash, forward drafts and draft edits; keywords declined #188
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#188
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.
What to build
Write
docs/adr/0013-trash-forward-and-draft-edits.md. It amends ADR 0004 (the reversible write path). Use the format of the other ADRs indocs/adr/: Status, Context, Decision, Consequences. Set the status toproposed. The owner accepts it in review. Write no application code in this issue.The ADR must rule on each item below. The epic's "Implementation Decisions" section gives the recommended ruling for each one. Follow it unless the code shows it cannot work. If it cannot, state why in the ADR.
mail_trashand a new action kindtrash.mail_movekeeps refusing Trash and Junk. Permanent deletion, emptying Trash and Junk as a target stay forbidden.trashrole, whether or not the mirror includes that mailbox. Zero or several such mailboxes isunsupported.not_found.trash_per_day, default 20, counted in messages. Every other cap still counts requests. State how the store counts messages for this kind.mail_trashcarries the destructive hint.mail_draftgainsforward_id, exclusive withreply_to_id. The quoted block, the subject default, no threading headers, the size cut with a marker. No attachment bytes; one line names the attachments that are not included.mail_draft_editand a new action kindedit. The target rule, the guard, the order (write the new draft, then remove the old one), the new draft id on both sources, the undo, and the count againstdrafts_per_day.Acceptance criteria
proposedand rules on all eleven items.make checkpasses.docs/adr/only.Blocked by
None.
⏸ SVD architect gate: dev/mail-mind-mcp#188 accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword
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:
20261112T025545Z-cf2d7b33Held because: CLEAN but 4 open risk(s) (1 verification · 3 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
make checkin the dispatch worktree on the pristine base before the first edit and again after the edit, and confirm the same pass result. The CI lane .woodpecker/validation.yaml re-runs it on the PR. [verification]Change: Docs-only. Step 0: dispatch reads epic #187 'Implementation Decisions' (tea/forge API) and halts if unreadable. Then write docs/adr/0013-trash-forward-and-draft-edits.md mirroring docs/adr/0004-reversible-write-path.md:1-45 (H1 '# ADR 0013: …', 'Status: proposed', ## Context / ## Decision with numbered bold-lead rulings / ## Consequences), one ruling per issue item 1-11, each consistent with the verified code facts: FORBIDDEN_TARGET_ROLES outbox.py:26 kept at server.py:1588, actions.py:296, jmap.py:857; trash role resolved by the worker from the server list because store mailboxes are mirrored-only (jmap.py:568-569, ingest.py:213); partial trash undo differs from the all-or-nothing move undo (actions.py:184-188/325, jmap.py:885-886); Trash is unmirrored by default (config.py:40), delete_uids writes changes+peer del (store.py:1434-1460), record_move returns False for unknown rows (store.py:1983-1998); cap counting via SUM(json_array_length(params,'$.refs')) beside enqueue_action (store.py:3289-3317); destructiveHint constants at server.py:96-100; forward quotes the trim_quoted body_text (ingest.py:388, jmap.py:1113) under MAX_BODY_CHARS outbox.py:29; the draft-edit guard mirrors _undo_draft (actions.py:388-402, jmap.py:925-932); keywords closed set outbox.py:20-25; schema v17→v18 because of the actions CHECK constraint rebuild (store.py:178-200), older reader still opens via >= wait (store.py:832-845). Add exactly one line under ADR 0004 line 3 linking ADR 0013 as an amendment (git diff --numstat → 1 0).
Files:
docs/adr/0013-trash-forward-and-draft-edits.md·docs/adr/0004-reversible-write-path.mdDecision: 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):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-accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-12-accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword.md✅ SVD architect gate: dev/mail-mind-mcp#188 accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword
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:
20261112T025545Z-cf2d7b33Files:
docs/adr/0013-trash-forward-and-draft-edits.md·docs/adr/0004-reversible-write-path.mdWrite-set divergence: present table wins. 0 sourceHashes vs 19-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-accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-12-accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword.md✅ SVD architect gate: dev/mail-mind-mcp#188 accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword
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:
20261112T025545Z-cf2d7b33Files:
docs/adr/0013-trash-forward-and-draft-edits.md·docs/adr/0004-reversible-write-path.mdWrite-set divergence: present table wins. 0 sourceHashes vs 19-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-accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-12-accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword.mdspec-verify-dispatch Half B for dev/mail-mind-mcp#188 accept-adr-0013-trash-forward-drafts-and-draft-edits-keyword completed integration verify.
06f8c8d53fmake checkrun failed in the pytest step: the worktree .venv had no dev dependencies, so conftest raised ModuleNotFoundError for mail_mind_mcp and pytest was absent. Afteruv sync --all-groups --all-extras, the same pytest command gave 1475 passed, 8 skipped, 22 deselected. The subagent's 149 failures came from the unprovisioned environment, not from the diff.Status: proposedhas one hit.codex-svd ship --run-id 20261112T041841Z-f3581e2a --confirm-merge)