AAnvio
Reference ArchiveADRs

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

ADRTitleStatusNotes
0001Technology stackACCEPTED (status not originally recorded)Qdrant not implemented; PostgreSQL/Redis/NATS optional since 0007
0002NestJS for appsACCEPTED (status not originally recorded)Holds: apps/api only
0003PostgreSQL + DrizzleACCEPTED (status not originally recorded)Optional Level 3+ (packages/db)
0004Qdrant for semantic memoryACCEPTED (status not originally recorded), not implementedProvider is a stub
0005NATS JetStreamACCEPTED (status not originally recorded)Optional; not verified live
0006MCP architectureACCEPTED (status not originally recorded)Client is in-house, not SDK; see 0039
0007Local-first, file-first architectureACCEPTED, positioning amended by 0038Technical defaults still hold
0008Channel hub architectureACCEPTED
0009Runtime OAuth authentication (vendor-native agents)ACCEPTEDTwo auth layers; see CLAUDE.md
0010Token optimization strategyACCEPTED
0011Model provider authentication and runtime switchingACCEPTED
0012zod 3 → 4 migration deferredPROPOSEDStill deferred (audit CQ-016)
0013Model gateway: evolve packages/modelsPROPOSED (Phase-1 increments accepted)Explains why vNext repo layout is not followed
0014Provider error classificationACCEPTED
0015Provider capability catalogACCEPTED
0016Token accounting and model idsACCEPTED
0017Streaming provider failoverACCEPTED
0018API refuses to be unauthenticated and reachableACCEPTED
0019Credential pools on the request pathACCEPTED
0020Provider key management surfaceACCEPTED
0021Channel webhook authenticationACCEPTED
0022One transport-security moduleACCEPTED
0023Workspace slash commandsACCEPTED
0024Complete slash-command surfaceACCEPTED
0025Mutation and forking surfaceACCEPTED (tracks 1–2 shipped)
0026A2A protocol integrationPROPOSEDImplemented; 0027–0031 build on it; open gaps noted
0027A2A end-to-end integration testingACCEPTED
0028A2A platform wiringACCEPTED
0029Multi-agent delegation via A2A toolACCEPTED
0030A2A gateway SSE streamingACCEPTED
0031A2A server authenticationACCEPTEDOff by default
0032Channel-agnostic engagement and /1on1PROPOSEDImplemented
0033End-to-end gateway simulatorPROPOSEDImplemented
0034Remote tool execution over a tailnetPROPOSEDPartially implemented
0035gbrain episodic timelinePROPOSEDImplemented; shutdown leak R-06
0036Agent-managed skills and MCP serversACCEPTED
0037Remote MCP servers over HTTPACCEPTED
0038Extensible multi-agent platform positioningACCEPTED (2026-10-25)Amends 0007
0039In-house MCP clientPROPOSED (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

  • Accept or reject the PROPOSED ADRs that are already implemented: 0026, 0032, 0033, 0035.
  • Decide 0039: keep the in-house MCP client, or migrate to the SDK client.
  • Decide 0004: implement semantic memory, or deprecate the decision.
Edit on GitHub

Last updated on

On this page