Architecture Decision Records
ADRs record **why** the architecture is the way it is. Numbers are stable and never reused. A decision that changes gets a new ADR; the old one is marked superseded or amended and keeps its original t
4 min read
This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.
Original path: docs/adr/README.md
ADRs record why the architecture is the way it is. Numbers are stable and never reused. A decision that changes gets a new ADR; the old one is marked superseded or amended and keeps its original text.
Status values: PROPOSED · ACCEPTED · SUPERSEDED · DEPRECATED · REJECTED.
Reconciliation (2026-10-25). Every ADR was checked against the current code. Where code and ADR diverge, or the ADR carried no status, a dated Reconciliation note was appended at the end of the ADR. Decision text was not rewritten. A PROPOSED ADR stays PROPOSED even when the code implements it: acceptance is an owner decision, not something inferred from code.
Index
| ADR | Title | Status | Notes |
|---|---|---|---|
| 0001 | Technology stack | ACCEPTED (status not originally recorded) | Qdrant not implemented; PostgreSQL/Redis/NATS optional since 0007 |
| 0002 | NestJS for apps | ACCEPTED (status not originally recorded) | Holds: apps/api only |
| 0003 | PostgreSQL + Drizzle | ACCEPTED (status not originally recorded) | Optional Level 3+ (packages/db) |
| 0004 | Qdrant for semantic memory | ACCEPTED (status not originally recorded), not implemented | Provider is a stub |
| 0005 | NATS JetStream | ACCEPTED (status not originally recorded) | Optional; not verified live |
| 0006 | MCP architecture | ACCEPTED (status not originally recorded) | Client is in-house, not SDK; see 0039 |
| 0007 | Local-first, file-first architecture | ACCEPTED, positioning amended by 0038 | Technical defaults still hold |
| 0008 | Channel hub architecture | ACCEPTED | |
| 0009 | Runtime OAuth authentication (vendor-native agents) | ACCEPTED | Two auth layers; see CLAUDE.md |
| 0010 | Token optimization strategy | ACCEPTED | |
| 0011 | Model provider authentication and runtime switching | ACCEPTED | |
| 0012 | zod 3 → 4 migration deferred | PROPOSED | Still deferred (audit CQ-016) |
| 0013 | Model gateway: evolve packages/models | PROPOSED (Phase-1 increments accepted) | Explains why vNext repo layout is not followed |
| 0014 | Provider error classification | ACCEPTED | |
| 0015 | Provider capability catalog | ACCEPTED | |
| 0016 | Token accounting and model ids | ACCEPTED | |
| 0017 | Streaming provider failover | ACCEPTED | |
| 0018 | API refuses to be unauthenticated and reachable | ACCEPTED | |
| 0019 | Credential pools on the request path | ACCEPTED | |
| 0020 | Provider key management surface | ACCEPTED | |
| 0021 | Channel webhook authentication | ACCEPTED | |
| 0022 | One transport-security module | ACCEPTED | |
| 0023 | Workspace slash commands | ACCEPTED | |
| 0024 | Complete slash-command surface | ACCEPTED | |
| 0025 | Mutation and forking surface | ACCEPTED (tracks 1–2 shipped) | |
| 0026 | A2A protocol integration | PROPOSED | Implemented; 0027–0031 build on it; open gaps noted |
| 0027 | A2A end-to-end integration testing | ACCEPTED | |
| 0028 | A2A platform wiring | ACCEPTED | |
| 0029 | Multi-agent delegation via A2A tool | ACCEPTED | |
| 0030 | A2A gateway SSE streaming | ACCEPTED | |
| 0031 | A2A server authentication | ACCEPTED | Off by default |
| 0032 | Channel-agnostic engagement and /1on1 | PROPOSED | Implemented |
| 0033 | End-to-end gateway simulator | PROPOSED | Implemented |
| 0034 | Remote tool execution over a tailnet | PROPOSED | Partially implemented |
| 0035 | gbrain episodic timeline | PROPOSED | Implemented; shutdown leak R-06 |
| 0036 | Agent-managed skills and MCP servers | ACCEPTED | |
| 0037 | Remote MCP servers over HTTP | ACCEPTED | |
| 0038 | Extensible multi-agent platform positioning | ACCEPTED (2026-10-25) | Amends 0007 |
| 0039 | In-house MCP client | PROPOSED (2026-10-25) | Records the de facto design behind 0006 |
No ADR is currently SUPERSEDED, DEPRECATED or REJECTED. Nothing in the code showed that a recorded decision had been reversed or abandoned. The two divergences found (0004 not implemented, 0006 implemented differently) are recorded as notes, not as status changes.
Owner decisions pending
Last updated on
ADR-0039: In-house MCP client conforming to the MCP transports
- **Status:** Proposed - **Date:** 2026-10-25 - **Related:** [ADR-0006](0006-mcp-architecture.md) ("Official MCP SDK + registry pattern"), [ADR-0036](0036-agent-managed-skills-and-mcp-servers.md), [AD
Plans
Active planning documents only. Closed release-phase plans (Phase K, P1–P14, L6) and the June 2026 implementation plans have been moved to [`../_detached/historical-plans/`](../_detached/MANIFEST.md#h