Propose ADR 0007: attachment text in the mirror #77

Merged
svc-agent-writer merged 2 commits from docs/adr-0007-attachment-text into main 2026-11-01 01:38:37 +00:00

Proposes ADR 0007 for epic #9 (phase 4). Acceptance is #72.

  • The mirror stores attachment text, never attachment bytes. This amends ADR 0001 §4 on acceptance.
  • Two extractors: pypdf for PDF; MarkItDown, with an allow-list of converters, for DOCX, PPTX, Outlook .msg and HTML. A stdlib reader handles XLSX, so pandas stays out of the image.
  • Each extraction runs in a child process with CPU, memory and wall-clock limits, and no sockets. The 2026-11-01 spike compares both extractors in the Context section.
  • Bytes come from the raw message already downloaded for the bucket, then from the bucket for the backlog, and from the mail server only without [blobs].
  • Attachment text is searchable by keyword and by meaning. Semantic search embeds up to 4 chunks per attachment, which amends ADR 0005 §3.
  • The assessor does not see attachment text.
  • Off by default, behind an [attachments] section.

The status stays proposed in this PR. The decision points for review are listed in #72.

🤖 Generated with Claude Code

Proposes ADR 0007 for epic #9 (phase 4). Acceptance is #72. - The mirror stores attachment text, never attachment bytes. This amends ADR 0001 §4 on acceptance. - Two extractors: pypdf for PDF; MarkItDown, with an allow-list of converters, for DOCX, PPTX, Outlook `.msg` and HTML. A stdlib reader handles XLSX, so pandas stays out of the image. - Each extraction runs in a child process with CPU, memory and wall-clock limits, and no sockets. The 2026-11-01 spike compares both extractors in the Context section. - Bytes come from the raw message already downloaded for the bucket, then from the bucket for the backlog, and from the mail server only without `[blobs]`. - Attachment text is searchable by keyword and by meaning. Semantic search embeds up to 4 chunks per attachment, which amends ADR 0005 §3. - The assessor does not see attachment text. - Off by default, behind an `[attachments]` section. The status stays proposed in this PR. The decision points for review are listed in #72. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
svc-agent-writer deleted branch docs/adr-0007-attachment-text 2026-11-01 01:38:37 +00:00
Sign in to join this conversation.
No description provided.