Architecture Decision Records
ADRs capture significant architectural decisions — the context, the options considered, the decision, and its consequences — so the why survives the people who made it.
Format: lightweight MADR-style. One file per decision, numbered, never deleted (supersede instead).
Decision status is separate from delivery status. Historical context may describe retired behavior; follow linked guides and references for current procedures.
| # | Title | Status |
|---|---|---|
| 0001 | Extensibility & Plugin Architecture | Accepted |
| 0002 | Reusable Subagent Workflows | Accepted |
| 0003 | Reactive Agent: Activity Thread, Event Bus & Inbound Inbox | Accepted |
| 0004 | Multi-Instance Data Scoping | Accepted |
| 0005 | Tool Pollution & Progressive Tool Disclosure | Accepted |
| 0006 | Observability & the Self-Improving Flywheel | Accepted |
| 0007 | Directory-Aware Operator Primitives (enabling a "Roxy" fork) | Accepted |
| 0008 | Sandboxing posture & NVIDIA OpenShell | Accepted |
| 0009 | The Studio control stack (goals · workflows · subagents · skills) | Accepted |
| 0010 | Headless setup & UI deployment tiers (lighter stack) | Accepted |
| 0011 | Deep-research workflow with adversarial review | Accepted |
| 0012 | Eval strategy: model-tagged tracking & model comparison | Accepted |
| 0013 | Console data layer: TanStack Query + Suspense + ErrorBoundary | Accepted |
| 0014 | A2A 0.3 → 1.0: adopt a2a-sdk + protolabs-a2a | Accepted (shipped #453) |
| 0015 | Optional native Discord surface (ingress + outbound) | Accepted (shipped as plugins/discord) |
| 0016 | In-app Discord configuration (token, admin list, live connect) | Accepted |
| 0017 | In-app Google (Gmail + Calendar) connect flow | Accepted |
| 0018 | Plugins contribute surfaces, routes & subagents | Accepted |
| 0019 | Plugins contribute config, settings & secrets | Accepted |
| 0020 | Console IA: run from Chat, manage from surfaces | Accepted |
| 0021 | Agent memory: extract, don't dump | Accepted |
| 0022 | Activity is a provenance feed, not a second chat | Accepted |
| 0023 | Decompose server.py: an AppState container + a composition root | Accepted |
| 0024 | Spawn CLI coding agents over ACP (code_with) | Superseded by 0025 (code_with removed; ACP lives on as an acp delegate) |
| 0025 | Unified delegate registry + hot-swappable management panel | Accepted (complete; PR1–PR4) |
| 0026 | Plugin-contributed console surfaces (rail views + tabs) | Accepted (complete; PR1–PR3) |
| 0027 | Install plugins from a git URL (shareable plugin repos) | Accepted (sliced) |
| 0028 | Plugin-contributed goal verifiers (+ safe programmatic goals) | Accepted (sliced) |
| 0029 | A standard for communication (chat-surface) plugins | Accepted |
| 0030 | Monitor goals: cadence-evaluated, hook-reactive objectives (+ per-goal no-progress limit) | Superseded by 0067 |
| 0031 | Pluggable knowledge backend | Accepted |
| 0032 | Pluggable middleware | Accepted |
| 0033 | Pluggable agent runtime (ACP executor) | Accepted |
| 0034 | Plugin UI as first-class React (Module Federation) | Superseded by 0038 |
| 0035 | Console layout: symmetric dual-rail, mobile-first, persisted UI state | Accepted |
| 0036 | A unified context-menu system (+ plugin-contributed items) | Accepted |
| 0037 | Design-system foundation: Tailwind + @protolabsai/design + shadcn/Radix | Accepted |
| 0038 | Generative-UI artifacts + a two-mode plugin UI (retire federation) | Accepted |
| 0039 | A plugin event bus (decoupled pub/sub, no cross-plugin dependencies) | Accepted |
| 0040 | Plugin bundles (install a curated set of plugins as one) | Accepted |
| 0041 | Workspaces & tiered stores (the fleet-on-one-host model) | Accepted (v0.31.0) |
| 0042 | Fleet supervisor & unified console (background agents, in-place switching) | Accepted (v0.31.0) |
| 0043 | Plugin consumption SDK + workflows as the first opt-in core extraction | Accepted |
| 0044 | Plugin-driven console navigation | Proposed |
| 0045 | The chat panel is a slot (swappable chat plugins) | Accepted |
| 0046 | Pluggable utility bar: declarative widgets + data tickers | Proposed |
| 0047 | Layered settings cascade (App→Host→Agent, per-field, Field.scope) | Accepted; path layout amended by 0065 |
| 0048 | Settings & console-configuration IA (domain-first, scope-as-badge) | Accepted |
| 0049 | Bundle pin lifecycle (a pin means "last verified working") | Accepted |
| 0050 | Background subagents & reactive task notifications | Accepted |
| 0051 | A2A realtime streaming & component rendering | Accepted |
| 0052 | User-facing skills (slash commands in chat) | Accepted |
| 0053 | wait: yield-and-resume instead of busy-polling | Accepted |
| 0054 | dream & distill: scheduled self-curation subagents | Accepted |
| 0055 | Multi-team orchestration: federated boards over A2A (scale-out) | Accepted |
| 0056 | Unified dockable-view model (tabs ↔ rails) | Proposed |
| 0057 | Command palette (⌘⇧K): plugin-extensible quick command | Accepted |
| 0058 | Runtime plugin install in the frozen desktop app (Discord as the first external comms plugin) | Accepted |
| 0059 | Unified plugin manager: in-app directory (Discover) + folded config (Installed) | Accepted |
| 0060 | Skills: progressive disclosure (always-on index + load on demand) | Accepted |
| 0061 | Frontend extension registries (fork-safe console behavior seams) | Accepted |
| 0062 | Full-screen document viewer surface | Accepted |
| 0063 | Scoped, user-rebindable keybinding system | Accepted |
| 0064 | coder: execution-grounded code-solve (the board's verifier-grounded coder) | Accepted |
| 0065 | Two-tier instance paths (box / instance) + single resolution rule | Accepted |
| 0066 | Goal trust-gate Phase 2: federation token + operator /api channel | Accepted |
| 0067 | Standalone watch primitive (many concurrent watches) | Accepted |
| 0068 | Developer flags & the Developer panel (gating pre-release functionality) | Accepted |
| 0069 | Memory delivery layer: attributed digest, provenance, trust tiers | Accepted |
| 0070 | Background results: push-resume, indexed reports, disposable workers | Accepted |
| 0071 | Plugin permissions: a trust-and-consent model, not a runtime sandbox | Accepted |
| 0072 | Fleet seed: declare a team in config (team-via-config) | Proposed |
| 0073 | Goal completion contracts | Accepted |
| 0074 | System lifecycle events | Accepted |
| 0075 | External interfaces: a first-class protoagent CLI + tightened MCP / API / model onboarding | Accepted |
| 0076 | Managed git for acp delegates: framework-owned branch/commit/push/PR | Accepted |
| 0077 | Adversarial code-review workflow + the findings convention | Accepted |
| 0078 | Fleet PR review as a protoAgent tier: harvest Quinn, keep the panel | Accepted |
| 0079 | Autonomous operating model (goals · tasks · scheduling · watches → one OODA loop) | Accepted |
| 0080 | External secrets manager: env hydration with pluggable providers (Infisical first) | Accepted |
| 0081 | Self-authored persona: a guarded edit_soul tool | Accepted |
| 0082 | Per-chat ACP runtime: hot-swap a coding agent like a model | Accepted |
| 0083 | Cowork mode: a prepackaged knowledge-worker archetype | Accepted |
| 0084 | Computer use: an out-of-process driver, and the fence it voids | Accepted |
| 0085 | Managed Node.js runtime, provisioned on demand | Accepted |
| 0086 | Chat-first mobile shell (amends ADR 0035 D6) | Accepted |
| 0087 | Device pairing: per-device revocable tokens + short-TTL QR codes | Accepted |
| 0088 | Per-finding inline review threads: finding-granular GitHub-native memory | Proposed |
| 0089 | Intra-instance trust boundary: the hub authenticates, members trust a fleet service token | Accepted |
| 0090 | Console-created goals drive in a dedicated chat tab (attach / detach) | Accepted |
| 0091 | Agent snapshot portability: a declarative, secret-free bundle (not a raw state dump) | Accepted |
| 0092 | Desktop document-generation baseline + versioned file artifacts | Accepted |
| 0093 | Pip-less wheel installer for frozen-app plugin deps | Accepted |
| 0094 | Managed Python runtime: execute_code on the frozen desktop app | Accepted |
| 0095 | Managed projects registry: one place to declare a project | Proposed |
| 0096 | The self-building loop: plugin-devkit closes design → build → test → hot-swap | Proposed |
| 0097 | Native OAuth-subscription providers (run Claude / ChatGPT on your own plan) | Proposed; implemented; provider configuration amended by 0106 |
| 0098 | One process-tree lifecycle: infra/proc anchors and kills every child tree | Proposed |
| 0099 | Chat-bundle format v1: a structured, artifact-aware export for the P2 hosted viewer | Proposed |
| 0100 | Agent archetypes (starter agent types, ratified) | Accepted |
| 0101 | Context lifecycle: log, surface, pressure | Accepted |
| 0102 | The trajectory: append-only session log + derived surface | Partially implemented; remainder deferred |
| 0103 | Programmatic tool calls: agent tools callable from execute_code | Accepted |
| 0104 | The session turns read API: durable chat history has a server-side reader | Accepted |
| 0105 | Fleet-shared delegates: one roster on the box, every member's bench | Accepted |
| 0106 | Providers are a registry; every model reference names its provider | Accepted |
| 0107 | Unified, policy-bounded self-improvement reviews | Proposed |
| 0108 | Context Architecture v2: lifecycle, authority, and projection | Proposed |
| 0109 | project_board: one board, one store, N repos | Accepted |
| 0110 | Plugin setup steps: a host-run, operator-only fix behind a setup-gap button | Accepted |
| 0111 | Zed as the operator's editor: ACP agent shim, editor deep-links, operator MCP | Proposed |
| 0112 | Console code pane: a read-only navigator surface the agent points into | Proposed |
| 0113 | Agent pairing: remote fleet members get a paired, revocable token | Accepted |
| 0114 | Console browser storage — transcripts in IndexedDB, a budget, and a full quota never crashes | Proposed |
| 0115 | Model calls share a bounded, priority-ordered in-flight lane per endpoint and model (off by default) | Proposed; implemented (off by default) |
| 0116 | A local-first data analyst: DuckDB over files in place, charts as Vega-Lite specs, and a plugin-service call seam | Proposed |
| 0117 | Subagent-only tools: a domain's tools live in the subagent that owns it | Proposed |
| 0118 | Interactive answers: inline artifacts in chat, streamed previews, a send-to-chat bridge, and frame-rendered plugin components | Accepted |
| 0119 | Organize runtime source without renaming imports | Accepted |
| 0120 | Bound checkpoint growth on the write path, and alert on it | Proposed |
| 0121 | Device pairing over an operator-supplied public URL: one home origin, a throttled claim, device-scoped tokens | Accepted (2026-10-18) |
| 0122 | Subscription usage model and routing: two sources into one cache, normalized windows, and unknown routes as today | Accepted (2026-10-21) |
| 0123 | Forward delegate approvals up the delegation chain | Accepted (2026-10-25) |
| 0124 | Per-caller run_command approval policy for A2A callers; allow / ask / never for unattended turns (D5) | Proposed (D5 shipped) |
| 0125 | Separate memory, knowledge and history: three stores, per-layer tools, history never auto-injects, optional shared operator profile | Accepted (2026-10-28) |
| 0126 | Close the eval loop: three eval tiers, a nightly gate on the host, feedback and friction as scores on the turn's trace, and turns promoted to per-instance eval cases | Accepted (2026-10-29) |
| 0127 | Compaction fidelity: one engine for all compaction paths, whole-span summaries, operator messages carried verbatim, the agent's pending actions shown in full, and a per-chat directive ledger | Accepted (2026-11-08) |
| 0128 | Generation profiles: each subagent role gets its own output, reasoning and context budget, a blank reply at the token cap is a failed turn retried one step down, and core ships profile names while operators set the numbers | Accepted (2026-11-08) |
| 0129 | Work consolidation: four groups (Needs you, Doing now, Coming up, Your instructions) for the operator and the agent; tasks fold into jobs; schedules, watches and wait become one follow-up primitive; approvals come from decision answers and close with their job | Accepted (2026-11-11) |
| 0130 | Server-authoritative live sync: the server owns session state, a durable resumable change feed, every client (desktop, phone, hidden panes) converges, multi-client sync tested as a contract | Accepted (2026-11-12) |
| 0131 | Work knows its conversation: extend the inbox and tasks stores (no new binding store or event log); a task's origin is the conversation that caused it, not a throwaway job turn; outside threads kept 7 days; progress is a view over board status + D9; observe-only alerts through existing paths, measured before piloting | Accepted (2026-11-15; P1–P2 committed) |
| 0132 | Chat context carries across tabs: a short per-chat gist in the digest, detail on demand via recall/search; digest lists real chats (no machinery) and recently closed summarized chats; whole-chat harvest summaries; incognito enforced on memory writes; idle-pruned chats rehydrate from turns | Accepted (2026-11-15) |
| 0133 | Every core model role (aux, compaction, harvest, facts, goal eval, memory select, gist, drift judge, image describe, subagent tiers) takes a string or an ordered fallback chain in config; blank inherits the parent chain; one seam with retryable-error fallbacks; embeddings/transcription excluded | Accepted (2026-11-15) |
| 0134 | execute_code session kernels and MCP bridging — one long-lived child per session behind execute_code.session_state (off by default), bounded lifecycle (timeout kills the kernel, idle TTL, LRU cap, dies with its chat), policy checked per call not per kernel, operator-named MCP tools plus tools.help(name), and default-on gated on a realistic two-lane bench | Proposed |
| 0135 | The always-on orchestrator: the hub is the fleet's chief of staff (detect, route, escalate, prove what ran); its one unattended action is restarting a dead local member; lanes and member schedules stay put; ships as an opt-in archetype plus core seams (amends 0007); cheap quiet heartbeat; notify / question / review delivery; spend cap and unattended policy | Accepted (2026-11-18) |
| 0136 | Workflow step kinds, typed outputs and graph-editing tools (amends 0002) | Accepted (2026-11-30) |