Propose the reversible write path and the Matrix wake #6

Merged
piers merged 1 commit from docs/adr-0004-write-path into main 2026-10-31 03:52:00 +00:00

Proposes the phase 2 and phase 3 decisions. The change is docs only.

  • ADR 0004 (new, proposed): the write path allows reversible actions only: drafts, two flags, and moves between mirrored mailboxes. A write goes into an outbox, and the sync worker drains it. The ADR also covers undo, per-day caps, the actions audit table, draft header safety, and a credential split: the api container gets the token files only. It amends ADR 0001 §2, because the api process now writes the actions table.
  • ADR 0003 (still proposed): wakes go to an invite-only Matrix room as a non-admin bot user. Each wake carries an id, a class and a score, and no content. Each mailbox owner consents before the assessor runs on their instance.
  • README, CLAUDE.md: the roadmap lines point at both ADRs.

Context: Grok's connector sends one header and cannot join the tailnet. Starbase ADR 0023 therefore blocks a public write token until an amendment lands. The Matrix grok-bot token (starbase ADR 0028) is the precedent for that amendment. A separate issue on starbase/iac tracks it.

🤖 Generated with Claude Code

Proposes the phase 2 and phase 3 decisions. The change is docs only. - **ADR 0004 (new, proposed):** the write path allows reversible actions only: drafts, two flags, and moves between mirrored mailboxes. A write goes into an outbox, and the sync worker drains it. The ADR also covers undo, per-day caps, the `actions` audit table, draft header safety, and a credential split: the `api` container gets the token files only. It amends ADR 0001 §2, because the `api` process now writes the `actions` table. - **ADR 0003 (still proposed):** wakes go to an invite-only Matrix room as a non-admin bot user. Each wake carries an id, a class and a score, and no content. Each mailbox owner consents before the assessor runs on their instance. - **README, CLAUDE.md:** the roadmap lines point at both ADRs. Context: Grok's connector sends one header and cannot join the tailnet. Starbase ADR 0023 therefore blocks a public write token until an amendment lands. The Matrix grok-bot token (starbase ADR 0028) is the precedent for that amendment. A separate issue on `starbase/iac` tracks it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ADR 0004 sets the phase 2 write path: reversible tools only, an outbox
drained by the sync worker, undo, daily caps, an audit table and a
credential split that keeps the IMAP password out of the api container.
ADR 0003 gains the wake delivery through the bot's Matrix room and the
owner-consent precondition. README and CLAUDE.md point at both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
piers merged commit 5816d5ed1e into main 2026-10-31 03:52:00 +00:00
Sign in to join this conversation.
No description provided.