On this page

Architecture decision records

Read this index before any architectural change. Create a record with make adr TITLE="..."; accepted records are never rewritten, only superseded.

ADR Decision Status
0001 Record architecture decisions Accepted
0002 Write the bootstrap compiler in Rust Accepted
0003 Emit C first; the interpreter is the reference Accepted
0004 The kernel holds mechanisms; plugins hold policies Accepted
0005 Platforms supply all effects Accepted
0006 Plugins add vocabulary, never grammar or meaning Accepted
0007 Observational immutability with scoped arenas Accepted
0008 Checkpoints are tags; experiments are branches Accepted
0009 Design for zero training data Accepted
0010 Agents are values, not processes Accepted
0011 The walking skeleton compiles the AST straight to C Superseded by 0016
0012 Integer arithmetic: truncating division, traps on overflow Accepted
0013 Reject local redeclaration and shadowing Accepted; revisit after T0
0014 Carry M2 types into the temporary C backend Superseded by 0016
0015 Canonical source formatting from the AST Accepted; semicolon rule superseded by ADR-0018
0016 Structured typed Core IR Accepted
0017 Fuel counts calls and loop-head entries Accepted
0018 Semicolon-free canonical formatting Accepted
0019 Keep var and {x} interpolation Accepted
0020 Records are value structs with a lookahead literal rule Accepted
0021 with updates are postfix and shallow Accepted
0022 Closed enums and flat exhaustive match Accepted
0023 Core IR gains layouts and a tag switch Accepted; deep C arm/sentinel rule superseded by 0059
0024 Inference-only monomorphized generics Accepted
0025 option and result as seeded unions with ? Accepted
0026 Newtypes are erased nominal wrappers Accepted
0027 Nominal interfaces with static dispatch and global coherence Accepted; unrestricted method lookup superseded by 0069
0028 Canonical formatting of declarations and arms Accepted
0029 Keep scalar compiler values compact Accepted
0030 Diagnose union qualifiers and nullary parentheses precisely Accepted
0031 Unions use a tagged C union Accepted
0032 Brace delimiters retain newlines inside parentheses Accepted; refines 0018/0028 newline suppression
0033 Keep nongeneric signatures and call targets compact Accepted; refines 0024/0029 implementation
0034 Reserve seeded option and result names consistently Accepted; supersedes 0025 name reservation only
0035 Diagnose duplicate bounds and preserve interface root causes Accepted; extends 0027 diagnostics
0036 Invisible scoped arenas with coloured scratch Accepted; arena budget refined by 0040
0037 Carry state and promotion Accepted
0038 str, bytes and slices share one representation Accepted
0039 Concatenation and interpolation produce str Accepted; M5.3a request-arena placement
0040 Vectors and for loops Accepted; extends 0017; proven set reuse and 0036 arena budget
0041 Vector append guarantee Accepted; extends 0038 to vectors
0042 Non-escaping blocks lower to IR loops Accepted
0043 Destination passing for large results and the copies report Accepted
0044 Integer types, literals and explicit bit methods Accepted; extends 0012 trap kinds
0045 Runtime organisation and C unit tests Accepted
0046 Size whole reads and extend private arena buffers Accepted
0048 Checked teaching programs and compact JSON explanations Accepted
0049 Outlines, checked replacement and resolved source rename Accepted; publication amended by 0184
0050 The cli platform passes capabilities to main Accepted
0051 Exit codes, CliError and unit results Accepted
0052 Path is erased platform bytes Accepted
0053 Insertion-ordered map Accepted; extends 0040 uniqueness and copies reporting; index probing superseded by 0063
0054 Streams, volatile views and raw-byte text methods Accepted; buffer retention superseded by 0061
0055 mmap is an optional, SIGBUS-safe reader path Accepted
0056 Subprocess v0 Accepted
0059 Bound emitted C nesting with flat control flow Accepted; supersedes 0023 deep C arm/sentinel rule
0060 A trailing semicolon on a block tail is a no-op Accepted; extends 0018
0061 Release reader buffers after their last scoped view Accepted; supersedes 0054 buffer retention
0062 Bounded libc scans and decimal parse fast paths Accepted
0063 Tagged map groups with a cache-resident fallback Accepted; supersedes 0053 index probing only
0064 One file per module with selective root-relative imports Accepted; extends 0006 and 0068
0065 Byte-class tables and checked conditional updates Accepted; extends 0022 to integers
0066 Eliminate checks from range facts Accepted; extends 0016/0040/0044
0067 Cache native builds by complete compilation content Accepted; capacity/eviction superseded only by 0236
0068 Global spans and per-function source files Accepted; supersedes 0016 single-file source identity
0069 Visibility is decided per file Accepted; supersedes 0027 unrestricted method lookup
0070 Packages and manifests Accepted; extends 0064
0071 Package-qualified identity Accepted; extends 0064 and 0068
0072 Lockfile and explicit fetch Accepted
0073 Import item aliases Accepted; partially supersedes ADR-0064's no-aliases rule only
0074 Capability ceilings as declared intent Accepted
0075 Canonical forms and per-item hashes Accepted; body-compatibility clause superseded by 0076
0076 Plugin requirements and host compatibility Accepted; supersedes 0075 body-compatibility clause
0077 Package-level coherence reporting Accepted
0078 Generators: signature, trigger, explicit gen, staged edges Accepted; generated-import restriction superseded by 0084
0079 Sandbox limits: pure entry, heap and output caps Accepted; amends 0017
0080 Generated files are companions of the deriving module Accepted; extends 0064 and 0069
0081 Reflected types and std.reflect Accepted
0082 Generator cache keys and provenance headers Accepted; builds on 0075, 0078 and 0081
0083 Codec wire rules and vec.to_bytes Accepted
0084 Generated codecs may import their generator package runtime Accepted; partially supersedes 0078
0085 JSON null decodes to the outer option none Accepted; clarifies 0083
0086 Binary map keys match supported scalar codecs Accepted
0087 Spawn programs without implicit shell fallback Accepted; supersedes 0056 spawn API choice
0088 Plugin manifests, docs and index Accepted (default; pending owner confirmation)
0089 Editions are explicit embedded dependency sources Accepted (default; pending owner confirmation)
0090 Args v1 grammar Accepted (default; pending owner confirmation)
0091 Plugin kit conformance and name checks Accepted (default; pending owner confirmation)
0092 Extension-point register and freeze rule Accepted (default; pending owner confirmation)
0093 Platform extension point: declarations, trusted compiled-in natives, platform key Accepted (default; pending owner confirmation)
0094 The cli platform is an embedded plugin package Accepted (default; pending owner confirmation)
0095 Capability handles and attenuation (Fs.restrict / read_only, Net grant, construction rule) Accepted (default; pending owner confirmation)
0096 Linux sandbox: Landlock plus seccomp, fail closed, launcher for the interpreter, gate verification marker Accepted (default; pending owner confirmation)
0097 macOS Seatbelt via sandbox-exec, untested Accepted (default; pending owner confirmation)
0098 Fuel and deadlines are platform policy; native fuel Accepted (default; pending owner confirmation)
0099 Process plugins: exec_hash pinning, fexecve, --dev PATH, one-shot codec framing Accepted (default; pending owner confirmation)
0100 Data parallelism is a cli capability, not syntax Implemented default; pending owner confirmation
0101 Fixed reduction shape makes par results independent of thread count Proposed (default; pending owner confirmation)
0102 Worker arenas, thread-local arena tables and result adoption Proposed (default; pending owner confirmation)
0103 Lifted parallel blocks and their capture rules Implemented default; pending owner confirmation
0104 Deterministic directory walk order Proposed (default; pending owner confirmation)
0105 Agent platform package and natives Proposed (default; pending owner confirmation)
0106 Agents step as Transition<Self> state machines Proposed (default; pending owner confirmation)
0107 Deterministic runner, transition arenas and scenarios Proposed (default; pending owner confirmation)
0108 Streaming: SSE, UTF-8 and buffered tool arguments Proposed (default; pending owner confirmation)
0109 Tool authorization, grants and SecretRef Proposed (default; pending owner confirmation)
0110 Budgets reserve and settle Proposed (default; pending owner confirmation)
0111 Journal framing, IDs and outbox; SQLite deferred Proposed (default; pending owner confirmation)
0112 Provider adapters are fixture-tested Proposed (default; pending owner confirmation)
0113 Content-addressed context store Proposed (default; pending owner confirmation)
0114 Deterministic agent ticks and sendability Proposed — design default, pending the maintainer's confirmation
0115 Agent record layout and idle cost Implemented default; batch eligibility amended by 0187; pending owner confirmation
0116 Fork shares persistent context Proposed — design default, pending the maintainer's confirmation
0117 Workspace capability and backends Implemented default; pending owner confirmation
0118 Shared tool servers and LSP overlays Proposed — design default, pending the maintainer's confirmation
0119 MCP stdio adapter Proposed — design default, pending the maintainer's confirmation
0120 Deterministic provider and tool limits Proposed — design default, pending the maintainer's confirmation
0121 Density measurement and gates Proposed — design default, pending the maintainer's confirmation
0122 Density targets deferred Accepted by maintainer 2026-11-03
0150 Debug and profile builds Proposed — design default, pending the maintainer's confirmation
0151 FFI extern fn in the trusted tier Implemented default; caching amended by 0185; pending owner confirmation
0152 Interpreter FFI host Implemented default; caching amended by 0185; pending owner confirmation
0153 MCP server-mode plugin Proposed — design default, pending the maintainer's confirmation
0154 A2A adapter v0 Proposed — design default, pending the maintainer's confirmation
0155 Pin the Rust toolchain to 1.92.0 Proposed — in effect, pending the maintainer's confirmation
0160 harness vc is not git-compatible Proposed — design default, pending the maintainer's confirmation
0161 vc storage unit is the formatted item Proposed — design default, pending the maintainer's confirmation
0162 vc merge granularity is the item Proposed — design default, pending the maintainer's confirmation
0163 Native TCP in the runtime through Net, not FFI Accepted by maintainer 2026-11-07
0164 HTTP protocol code lives in a Harness plugin Accepted by maintainer 2026-11-07
0165 Sequential HTTP v1; poll later Accepted by maintainer 2026-11-07
0166 Outbound HTTPS through curl; native TLS deferred Accepted by maintainer 2026-11-07; superseded by 0247 (2026-11-15)
0167 HTTP reuses pieces, not a shared transport abstraction Accepted by maintainer 2026-11-07; partially superseded by 0247 (2026-11-15)
0168 vc queue is a Rust mechanism with policy as data Accepted
0169 Structured workspace ownership and vc finalization Accepted — per-agent prerequisite explicitly authorized 2026-11-05
0170 Optional object caching for native tests Accepted for opt-in local tests
0171 Retained child ownership for application-test supervision Accepted
0172 Retained group witnesses for nested processes Accepted
0173 Offline application workers and owned environments Accepted
0174 Owned path labels in application-test errors Accepted
0175 Mailbox contention keeps scope ownership Accepted
0176 Retain the Rust bootstrap compiler through 1.0 Accepted
0177 One floating-point type, f64, with IEEE 754 semantics Proposed (pending maintainer)
0178 Shortest round-trip f64 text, identical on both backends Proposed (pending maintainer)
0179 f64 in the IR and a libm-free runtime Proposed (pending maintainer)
0180 Expired TCP writes never wait Proposed (pending maintainer)
0181 Curl config request boundaries in HTTP v1 Proposed (pending maintainer)
0182 Pin the formatter identity corpus Proposed (pending maintainer)
0183 Match and option/result ergonomics Proposed (pending maintainer)
0184 Guard source publication and scaffold rollback Accepted; amends 0049
0185 Bypass the native executable cache for FFI Accepted; amends 0151 and 0152; superseded in part by 0210
0186 Require truncation enforcement for Linux sandboxing Accepted; amends 0096
0187 Check live agent eligibility before applying transitions Accepted; amends 0115
0188 Binary fingerprints cover wire schemas Accepted, supersedes the Binary header in 0083
0189 Bound native substring search on repetitive input Accepted, refines 0062
0200 Release signing and key management Superseded by 0243 (2026-11-15) for the default path
0201 Registry namespaces and ownership Superseded by 0237 (2026-11-15)
0202 Registry versions and deterministic resolution Superseded by 0239 (2026-11-15)
0203 Registry sources in versioned locks Superseded by 0240 (2026-11-15)
0204 Bounded Harness VC wire protocol Accepted (maintainer, 2026-11-17)
0205 Hosting accounts and push authentication Accepted (maintainer, 2026-11-17)
0206 Hosting storage and transaction layout Accepted (maintainer, 2026-11-17) for hosting/VC-remote storage; registry-store superseded by 0244 (2026-11-15)
0207 Harness hosting policy and bootstrap tooling boundary Accepted (maintainer, 2026-11-17); full VC rewrite in Harness; refined by 0265
0208 Exact registry artifact identity and semantic metadata Superseded by 0241 (2026-11-15)
0209 Registry transition from git dependencies and curated editions Superseded by 0242 (2026-11-15)
0210 Cache FFI builds with complete dependencies Accepted; supersedes only 0185's unconditional bypass; cap superseded by 0236
0211 Distinguish VC CAS conflicts Accepted
0212 Model tool calls and usage categories through the runner Proposed (pending maintainer)
0213 Process limits as an attenuation Accepted
0214 OpenAI-compatible chat adapter Proposed (pending maintainer)
0215 Working macOS Seatbelt profile and toolchain roots Proposed (pending maintainer)
0216 Typed interpreter network grants and errors Accepted
0217 Fs no-follow attenuation Accepted
0219 Amortized driver carry reclamation Proposed (pending maintainer), amends 0037 and 0107
0220 TUI strips and local canvas Accepted (owner implementation request, 2026-11-12)
0221 Native terminal boundary Accepted (owner implementation request, 2026-11-12)
0222 Unix socket TUI feed Accepted (owner implementation request, 2026-11-12)
0223 TUI commands and queued messages Accepted (owner implementation request, 2026-11-12)
0224 Graceful FFI helper cleanup Accepted for M-TUI.1 implementation
0225 Presented metadata and measured scroll diff Accepted for M-TUI.5b/M-TUI.8 implementation
0226 Explicit terminal authority witness Accepted (owner implementation request, 2026-11-12)
0227 Deliver terminal capabilities before text layout Accepted for M-TUI implementation
0228 Prove quiet leased process groups on macOS Accepted for M-TUI/M14 integration
0229 Execute locked process plugins from private Darwin snapshots Accepted; focused Mac qualification is tracked separately
0230 Address sequence header words without negative subscripts Accepted
0231 Discover default gate plugin checks Accepted
0232 Discover canonical format-check inputs from tracked sources Accepted (owner maintenance request)
0233 Fast C backend by default for dev builds and tests Accepted; amended 2026-11-22
0234 Parallel test executables Accepted
0235 Compact C for large integer matches Accepted
0236 Native cache capacity and LRU eviction Accepted; supersedes capacity/eviction only in 0067 and 0210
0237 Source-path package identity Accepted (2026-11-15); supersedes 0201
0238 Pluggable sources and a static sparse index Accepted (2026-11-15); narrows 0207 for registry GETs
0239 Minimal version selection Accepted (2026-11-15); supersedes 0202
0240 One lock format for every source Accepted (2026-11-15); supersedes 0203
0241 One pack per release, identified by its tree hash Accepted (2026-11-15); supersedes 0208
0242 Git as a first-class package source; editions unchanged Accepted (2026-11-15); supersedes 0209
0243 Staged signing off the critical path Accepted (2026-11-15); supersedes 0200 default path
0244 VCS host derives the registry index from tags Accepted (2026-11-15); supersedes 0206 registry store
0245 Toolchain batteries and registry scope Accepted (2026-11-15)
0246 Static constant vec literals Proposed; pending maintainer
0247 Shared libcurl-multi HTTP transport Accepted (2026-11-15); supersedes 0166, supersedes 0167 in part, amends 0181
0248 Async model port and per-call deadlines Accepted (2026-11-15; implementation held until M14); amends 0010
0249 Bound release pack writing and portable paths Accepted (2026-11-16)
0250 Record the source path in registry lock entries Accepted (2026-11-16); amends 0240
0251 MVS details: floors, bounds, offline lock check Accepted (2026-11-16); builds on 0239
0252 Source config, mirrors, auth and proxies Accepted (2026-11-16); narrows 0237
0253 Discovered pkg sources and git-backed registry entries Accepted (2026-11-16); amends 0250, fills 0238 discovery
0254 Release tags are create-once pushes of landed commits Accepted (2026-11-16); amends 0204 for release tags
0255 Host serves a rendered static registry cache Accepted (2026-11-16); refines 0244
0256 Hosted registry visibility, scopes and quotas Accepted (2026-11-16); refines 0205
0257 Checksum log is an RFC 6962 Merkle log Accepted (2026-11-16); refines 0244
0258 Local registry render yank journal replay Proposed; RG4.1b implementation default
0259 Canonical unsigned Merkle checkpoint body Proposed; RG4.2a implementation default
0260 Plain HTTP for loopback and allowlisted hosts Accepted (maintainer, 2026-11-17); M-HTTP.8, M15.5
0261 HTML escaping and request-value decoding plugin Accepted (maintainer, 2026-11-22; WT0); Forge P3, M-HTTP.10–.11
0262 OS entropy fill plugin Accepted (maintainer, 2026-11-17); Forge P4, M-HTTP.12
0263 UTC wall-clock plugin Accepted (maintainer, 2026-11-17); Forge P5, M-HTTP.13
0264 Forge read-only slice: harness forge launcher and host-store reads Accepted (maintainer, 2026-11-17); M-HTTP.14–.18; host-store retirement planned in 0265 (VR12)
0265 Harness VC rewrite: natives, syntax port, Rust VC deletion and budget Accepted (maintainer, 2026-11-17); refines 0207
0267 Process manager: plugins/proc supervisor FFI and a daemon over a Unix socket Accepted (maintainer, 2026-11-21); M19
0268 Compact Tenon source Accepted on experiment branch; T01–T08
0269 In-language test blocks and tenon test unit discovery Accepted; M16.13
0270 Recursive types through vec and map Accepted; M20.1; amends 0020/0022/0040
0271 MCP dual-era 2026-07-28 with 2025-11-25 compatibility Proposed; M15.8; updates 0119/0153 protocol pin
0272 Pure batteries: encoding, UUID and RE2-style regex Accepted; CB0 (R2)
0273 Vendored SQLite as a toolchain battery Accepted; SQ0 (R3)
0275 Function values, closures and interface values Accepted (maintainer, 2026-11-22); M21.9–.14; D3; amends 0025, 0027, 0042
0276 Multi-line, raw and dedented string literals Accepted (maintainer, 2026-11-22); M21.5–.8; D4
0277 Per-agent trap domains Accepted (maintainer, 2026-11-22); M22.1–.5; D5; listed frozen-file changes approved
0278 In-place unique updates for long-lived state Accepted (maintainer, 2026-11-22); M21.15–.19; D6; amends 0040, 0043, 0053
0279 Module aliases and qualified names Accepted (maintainer, 2026-11-22); M21.1–.4; D7; partially supersedes 0064/0073 alias rules
0280 Runtime plugins in Tenon script Accepted (maintainer, 2026-11-22); M22.6–.10; R17; depends on 0275, 0277
0281 HTTP server v2: one poll loop, keep-alive, streaming and SSE Accepted (maintainer, 2026-11-22); M23.1–.5; R6; follows up 0165 after bench/http baseline
0282 Single-file static app builds and manifest-driven asset embedding Accepted (maintainer, 2026-11-22); M23.15–.19; R7, M15.1
0283 Shared runtime state for split C units Accepted (maintainer, 2026-11-22); O5 / M20.5 visibility; listed frozen-file changes approved
0284 Platform capability ergonomics and multi-root sandboxes Accepted (maintainer, 2026-11-25); M25.3 (T04); listed frozen-file changes approved
0285 TUI agent surface (M24) Accepted (2026-11-25); M24.1–.9; D1–D11 from plans/tui-agent-surface/PLAN.md
0290 Bundled first-party plugin catalog (edition = "2026") Accepted (2026-11-26); amends 0089
0291 Freeze Rust CLI surface and grow userland tools in Tenon Accepted (2026-11-26); complements 0176, 0265, 0290
0292 Application Actions API (app.actions/v1) and State Deltas Accepted (2026-11-27); complements 0225, 0271, 0290, 0291
0293 Actions API v1.1: compact catalog, dry_run, batching, undo, and derive Actions Accepted (2026-11-27); amends 0292
0294 Unified json.lib.Value & codec derive Json / derive JsonValue Accepted (2026-11-28); Wave 1 Top-20
0295 Zero-step implicit cached derive materialization (view --expanded, gen --eject) Accepted (2026-11-28); Wave 1 Top-20
0296 First-class virtualized platform capabilities (test_caps) Accepted (2026-11-28); Wave 1 Top-20
0297 Sandboxed hot-reloadable script plugins (tenon script-serve, script_host) Accepted (2026-11-28); Wave 1 Top-20
0298 Atomic multi-file edit, auto-fix, and impacted-test (tenon batch) Accepted (2026-11-28); Wave 1 Top-20
0299 derive StateView (@redact, @window, @summary, state schema) Accepted (2026-11-28); Wave 2 Top-20
0300 Composable ActionMiddleware and async ActionJob (app.actions/v1.2) Accepted (2026-11-28); Wave 2 Top-20
0301 Semantic TUI accessibility and widget automation tree (tui.a11y) Accepted (2026-11-28); Wave 2 Top-20
0302 Automated TUI geometry, WCAG contrast, cluster, and spin-loop linter (tui_lint) Accepted (2026-11-28); Wave 2 Top-20
0303 Compiler-emitted constrained decoding grammars (tenon grammar) Accepted (2026-11-28); Wave 2 Top-20
0304 One Action Catalog, Six Surfaces (derive AppSurface) Accepted (2026-11-28); Wave 3 Top-20
0305 Declarative app_host runner with script_host extension slots Accepted (2026-11-28); Wave 3 Top-20
0306 Universal live app discovery and attachment bus (app_bus, tenon app) Accepted (2026-11-28); Wave 3 Top-20
0307 Hierarchical sub-app mounting (app_compose, TopicBus) Accepted (2026-11-28); Wave 3 Top-20
0308 Cohesive edition = "2026" domain facades (std_*) Accepted (2026-11-28); Wave 3 Top-20
0309 Automatic ActionApp property & fuzz explorer (app_test, tenon test --explore) Accepted (2026-11-28); Wave 4 Top-20
0310 Cross-surface differential equivalence oracle (app_test_parity) Accepted (2026-11-28); Wave 4 Top-20
0311 One-command black-box binary certification (tenon validate-app) Accepted (2026-11-28); Wave 4 Top-20
0312 Stateful time-travel App & TUI workbench (tenon session) Accepted (2026-11-28); Wave 4 Top-20
0313 Flagship dogfood proof (todo-actions, copilot-term) and agent primer sync Accepted (2026-11-28); Wave 4 Top-20
0314 Dual-read .tn source and canonical terse UTF-8 surface Accepted (2026-11-28); M26.1
0315 Deep path with lenses and var nested field assignment Accepted (2026-11-28); M26.4
0316 Zero-allocation view and iterator fusion in Core IR Accepted (2026-11-28); M27.2
0317 All-size SWAR SwissTable probing, fast 64-bit mixing, and single-probe map.update Accepted (2026-11-28); M27.3
0318 Implicit cache-backed gen/ derive materialization (F47) Accepted (2026-11-28); M28.1
0319 Single-file manifestless #! scripts (B10) Accepted (2026-11-28); M28.2
0320 Automatic purity/effect/total badges (doc --card, outline, --report=authority --json) and --assert-pure/--assert-total (E1250–E1251) Accepted (2026-11-28); M29.1
0321 Deterministic capability trace recording and zero-syscall replay (--record-caps/--replay-caps, tenon-cap-trace-1, E1255–E1256) Accepted (2026-11-28); M29.2
0322 Structured Oracle JSON diagnostics (expected_type, actual_type, callee_signature, in_scope, ranked candidates) and sub-root constrained grammars (tenon grammar --root) Accepted (2026-11-28); M30.1
0323 First-class typed holes (todo("...")), tenon holes --json manifest (tenon-holes-1), and release build gate (E1265) Accepted (2026-11-28); M30.2
0324 Lightweight executable function contracts (requires / ensures, E1270–E1271, doc --card visibility) Accepted (2026-11-28); M30.2
0325 Explicit state machines (fsm, derive StateMachine via fsm_gen, and fsm_test explorer/shrinker) Accepted (2026-11-28); complements 0290, 0291, 0293, 0299, 0309, 0318