Accept ADR 0007: attachment text in the mirror #72

Closed
opened 2026-11-01 00:54:11 +00:00 by svc-agent-writer · 1 comment

Parent: #9 (Phase 4). Decision: ADR 0007.

Review docs/adr/0007-attachment-text.md in its PR and accept it on merge. The accepting change also amends ADR 0001 §4. Points that need a human decision:

  • §1: the mirror stores attachment text, never attachment bytes. This amends ADR 0001 §4.
  • §2: the closed list of formats and two extractors: pypdf for PDF; MarkItDown, with an allow-list of converters, for DOCX, PPTX, Outlook .msg and HTML; a stdlib reader for XLSX, so pandas stays out of the image. No OCR, no archives, no legacy Office files.
  • §3: the default bounds: 10 MB per attachment, 8 per message, 64,000 characters of text, 200 PDF pages, and the zip-member check before any Office parser.
  • §4: every extraction runs in a child process with CPU, memory and wall-clock limits (10 s CPU for pypdf, 30 s for MarkItDown) and no sockets. A failed attachment is not tried again.
  • §5: each account's sync worker gets the bytes: from the raw message it already downloads for the bucket, then from the bucket for the backlog, and from the mail server only without [blobs]. At most 20 attachments per pass.
  • §8: semantic search over attachment text, up to 4 chunks of 512 tokens per attachment. This amends ADR 0005 §3.
  • §9: the assessor does not see attachment text.
  • §10: off by default, behind an [attachments] section.

Acceptance

  • The ADR status reads accepted with the merge date.
  • ADR 0001 §4 says that attachment bytes are never stored locally and that their text is (ADR 0007), and its status line names the amendment.
  • ADR 0005 §3 reads as ADR 0007 §8 amends it, and its status line names the amendment.

Human act

ruling: the operator accepts ADR 0007 and its amendments of ADR 0001 §4 and ADR 0005 §3 (CONV-40)

Filed under: operator word "resume phase 4 development." sha256:b5be33c704e1

Parent: #9 (Phase 4). Decision: ADR 0007. Review `docs/adr/0007-attachment-text.md` in its PR and accept it on merge. The accepting change also amends ADR 0001 §4. Points that need a human decision: - §1: the mirror stores attachment text, never attachment bytes. This amends ADR 0001 §4. - §2: the closed list of formats and two extractors: pypdf for PDF; MarkItDown, with an allow-list of converters, for DOCX, PPTX, Outlook `.msg` and HTML; a stdlib reader for XLSX, so pandas stays out of the image. No OCR, no archives, no legacy Office files. - §3: the default bounds: 10 MB per attachment, 8 per message, 64,000 characters of text, 200 PDF pages, and the zip-member check before any Office parser. - §4: every extraction runs in a child process with CPU, memory and wall-clock limits (10 s CPU for pypdf, 30 s for MarkItDown) and no sockets. A failed attachment is not tried again. - §5: each account's sync worker gets the bytes: from the raw message it already downloads for the bucket, then from the bucket for the backlog, and from the mail server only without `[blobs]`. At most 20 attachments per pass. - §8: semantic search over attachment text, up to 4 chunks of 512 tokens per attachment. This amends ADR 0005 §3. - §9: the assessor does not see attachment text. - §10: off by default, behind an `[attachments]` section. ## Acceptance - The ADR status reads `accepted` with the merge date. - ADR 0001 §4 says that attachment bytes are never stored locally and that their text is (ADR 0007), and its status line names the amendment. - ADR 0005 §3 reads as ADR 0007 §8 amends it, and its status line names the amendment. ## Human act ruling: the operator accepts ADR 0007 and its amendments of ADR 0001 §4 and ADR 0005 §3 (CONV-40) Filed under: operator word "resume phase 4 development." sha256:b5be33c704e1
Author
Member

This was generated by AI during triage.

Human act done: the operator accepted ADR 0007 and its amendments of ADR 0001 §4 and ADR 0005 §3, on 2026-11-01 ("accept ADR 0007"). The accepting PR closes this issue on merge.

> *This was generated by AI during triage.* Human act done: the operator accepted ADR 0007 and its amendments of ADR 0001 §4 and ADR 0005 §3, on 2026-11-01 ("accept ADR 0007"). The accepting PR closes this issue on merge.
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/mail-mind-mcp#72
No description provided.