Architecture Decisions
Key design decisions with context, alternatives considered, and consequences.
| # | Decision | Status |
|---|---|---|
| 0001 | No Compound Assignment in Beamtalk | Implemented (2026-02-08) |
| 0002 | Use Erlang Comparison Operators Directly | Implemented (2026-02-08) |
| 0003 | Keep Core Erlang as Primary Code Generation Target | Implemented (2026-02-08) |
| 0004 | Persistent Workspace Management | Implemented (2026-02-15) |
| 0005 | BEAM Object Model - Pragmatic Hybrid Approach | Implemented (2026-02-08) |
| 0006 | Unified Method Dispatch with Hierarchy Walking | Implemented (2026-02-08) |
| 0007 | Compilable Standard Library with Primitive Injection | Implemented (2026-02-07) |
| 0008 | Doc Comments and API Documentation | Implemented (2026-02-15) |
| 0009 | OTP Application Structure — Split Workspace from Runtime | Implemented (2026-02-07) |
| 0010 | Global Objects and Singleton Dispatch | Implemented (2026-02-15). Follow-on legacy gen_server removal (BT-1093) complete 2026-03-05 |
| 0011 | Robustness Testing — Layered Fuzzing and Error Quality | Implemented (2026-02-15) |
| 0012 | Collection Literal Syntax and the `#` Data Literal System | Implemented (2026-02-15) |
| 0013 | Class Variables, Class-Side Methods, and Instantiation Protocol | Implemented (2026-02-15) |
| 0014 | Beamtalk Test Framework — Native Unit Tests and CLI Integration Tests | Implemented (2026-02-15) |
| 0015 | Signal-Time Exception Objects and Error Class Hierarchy | Implemented (2026-02-15) |
| 0016 | Universal Module Naming with @ Separator | Accepted (2026-02-10), Implemented (BT-454) |
| 0017 | Browser Connectivity to Running Workspaces | Implemented (2026-06-07) |
| 0018 | Document Tree Code Generation (Wadler-Lindig Pretty Printer) | Implemented (2026-02-15) |
| 0019 | Singleton Access via Class Variables | Superseded by [ADR 0153](0153-remove-class-variables.md) (2026-11-25); was Implemented (2026-02-15) |
| 0020 | Connection Security — mTLS, Proxies, and Network Overlays | Implemented (2026-02-18) |
| 0021 | Stream — Lazy Pipeline for Value-Side Data | Implemented (2026-02-15), Revised (2026-03-05) |
| 0022 | Embedded Compiler via OTP Port (with NIF option) | Implemented (2026-02-15) |
| 0023 | String Interpolation Syntax and Compilation | Implemented (2026-02-17) |
| 0024 | Static-First, Live-Augmented IDE Tooling | Implemented (Phase 1, 2026-02-17; BT-456 Done 2026-02-16). Phase 3 (standard LSP server) largely delivered outside this ADR's tracking |
| 0025 | Gradual Typing and Protocols | Implemented (Phases 1–2, 2026-02-15). Phase 3 (Protocols) was implemented under [ADR 0068: Parametric Types and Protocols](0068-parametric-types-and-protocols.md) (2026-03-20) rather than as a direct continuation of this ADR |
| 0026 | Package Definition and Project Manifest | Implemented (2026-02-17) |
| 0027 | Cross-Platform Support | Implemented (2026-02-17) |
| 0028 | BEAM Interop Strategy | Implemented (2026-02-18) |
| 0029 | Streaming Eval Output | Implemented (2026-02-18) |
| 0030 | cargo-dist Evaluation for Release Packaging | Rejected (2026-02-18) |
| 0031 | Flat Namespace for v0.1 | Superseded by [ADR 0070](0070-package-namespaces-and-dependencies.md) (2026-03-24) |
| 0032 | Early Class Protocol — Behaviour and Class in Beamtalk Stdlib | Implemented (2026-02-24) |
| 0033 | Runtime-Embedded Documentation on Class and CompiledMethod | Implemented (2026-02-24) |
| 0034 | Stdlib Self-Hosting — Moving Logic from Erlang to Beamtalk | Implemented (2026-02-24) |
| 0035 | Rename Instance Variable Reflection API from instVar to field | Implemented (2026-02-24) |
| 0036 | Full Metaclass Tower | Implemented (2026-02-24) |
| 0037 | Collection Class Hierarchy — Shallow Abstract Layer with Minimal Primitive Surface | Implemented (2026-02-24) |
| 0038 | `subclass:` Grammar Desugaring to ClassBuilder Protocol | Implemented (2026-02-24) |
| 0039 | Syntax Pragmatism vs Smalltalk | Implemented (2026-02-24). Amended 2026-11-26: block comments (`/* */`) were removed from decision 1 (BT-5229); see the amendment note under Decision 1. |
| 0040 | Workspace-Native REPL Commands, Facade/Dictionary Split, and Class-Based Reload | Implemented (2026-02-24) |
| 0041 | Universal State-Threading Block Protocol | Implemented (2026-02-24) |
| 0042 | Immutable Value Objects and Actor-Only Mutable State | Implemented (2026-02-26) |
| 0043 | Sync-by-Default Actor Messaging | Implemented (2026-02-26) |
| 0044 | Comments as First-Class AST Nodes | Implemented 2026-02-28 |
| 0045 | REPL Expression-Level Completion via Gradual Type Inference | Implemented 2026-03-01 |
| 0046 | VSCode Live Workspace Sidebar | Implemented (2026-03-02) |
| 0047 | Return Type Arrow Token Disambiguation | Implemented (2026-03-06) |
| 0048 | Class-Side Method Syntax | Rejected (2026-11-18). The `class` modifier stays: this is Option D below (keep the modifier and the ADR 0047 lookahead). Deferred 2026-03-15; originally proposed 2026-03-02. |
| 0049 | Remove Method-Level `sealed` — Infer Protection from `@primitive`/`@intrinsic` | Rejected (2026-11-18). Method-level `sealed` stays. Deferred 2026-03-15; originally proposed 2026-03-02. |
| 0050 | Incremental Compiler ClassHierarchy via BEAM Metadata Streaming | Implemented (2026-03-04) |
| 0051 | Subprocess Execution — System Commands and Interactive Subprocess Actor | Implemented (2026-03-05) |
| 0052 | Recursive Descent Parser with Pratt Parsing for Binary Operators | Implemented (2026-03-05) |
| 0053 | Double-Colon Type Annotation Syntax | Implemented (2026-03-05) |
| 0054 | Communication Protocols | Implemented (2026-03-05) |
| 0055 | Erlang-Backed Class Authoring Protocol | Implemented (2026-03-06) |
| 0056 | Native Erlang-Backed Actors — `native:` and `self delegate` | Implemented (2026-04-01) |
| 0057 | Authoritative Superclass Source for Abstract Stdlib Classes | Implemented (2026-03-07) |
| 0058 | Platform Security Model | Accepted (policy, 2026-03-07) |
| 0059 | Supervision Tree Syntax | Implemented (2026-03-07) |
| 0060 | Result Type — Hybrid Error Handling for Expected Failures | Implemented (2026-03-08) |
| 0061 | Program Entry Points and Run Lifecycle | Implemented (2026-03-10) |
| 0062 | Bundled Example Corpus and Search Tool for MCP Server | Implemented (2026-03-15) |
| 0063 | Remove File Path Sandbox | Implemented (2026-03-16) |
| 0064 | Runtime Logging Control and Observability API | Implemented (2026-03-17) |
| 0065 | Complete OTP Primitives for Actor Lifecycle and Supervision | Implemented (2026-03-17). Error contract for `handleInfo:` (log-and-continue) amended by [ADR 0134](0134-errors-in-no-reply-handlers-crash-the-actor.md): errors raised in `handleInfo:` and async casts now crash the actor. |
| 0066 | Open Class Extension Methods (`>>` Syntax) | Implemented (2026-03-18); superseded in part by [ADR 0152](0152-remove-cross-file-extension-methods.md) (2026-11-24) |
| 0067 | Separate state:/field: Keywords by Class Kind | Implemented (2026-03-18) |
| 0068 | Parametric Types and Protocols | Implemented (2026-03-20) |
| 0069 | Actor Observability and Tracing | Implemented (2026-03-21). Amended 2026-10-21 (BT-4025): Beamtalk code can emit and attach to application `telemetry` events through a `Telemetry` facade; see "Amendment (2026-10-21): application events (BT-4025)" below. Amended 2026-10-22 (BT-4103): always-on aggregates are keyed by `{Class, Selector}` and per-actor detail exists only while tracing is enabled; the per-actor monitor and retirement are gone |
| 0070 | Package Namespaces and Dependencies | Implemented (2026-03-24). Supersedes [ADR 0031](0031-flat-namespace-for-v01.md) (Flat Namespace for v0.1). |
| 0071 | Class Visibility — `internal` Modifier for Package-Scoped Access Control | Implemented (2026-03-28) |
| 0072 | User Erlang Sources in Beamtalk Packages | Implemented (2026-03-29) |
| 0073 | Package Distribution and Discovery | Implemented (2026-07-27) |
| 0074 | Deferred Metaprogramming | Accepted (deferral, 2026-04-01) |
| 0075 | Auto-Extract Quality Assessment | Unknown |
| 0075 | Erlang FFI Type Definitions | Implemented (2026-09-03) |
| 0076 | Convert Erlang ok/error Tuples to Result at FFI Boundary | Implemented (2026-04-03) |
| 0077 | Type Coverage Visibility | Implemented (2026-04-05) |
| 0078 | Actor Initialize Inheritance | Implemented (2026-04-12) |
| 0079 | Named Actor Registration | Implemented (2026-04-15) |
| 0080 | Migrate Supervisor Lifecycle to Result | Implemented (2026-04-16) |
| 0081 | First-Class Session Object — Walkable Binding Layers | Accepted (2026-06-01), Implemented |
| 0082 | Method-Level Edit and Save in the Live Workspace | Implemented (2026-05-26) |
| 0083 | Metaclass-Aware Type Inference | Implemented (2026-05-23) |
| 0084 | Class-Side Runtime Method Installation and Fun Dispatch | Implemented (2026-05-24) |
| 0085 | Editor Live-Image Representation | Superseded by [ADR 0096](0096-system-browser-data-source.md) and the LiveView IDE (ADR 0017 Phase 3) (2026-11-14). Proposed 2026-05-24; never accepted or implemented. |
| 0086 | Make String a Subclass of Binary | Implemented (2026-03-21) |
| 0087 | Maintained Selector→Sites Cross-Reference Index for SystemNavigation | Implemented (2026-06-03) |
| 0088 | Direct Core Erlang AST Emission via ETF | **Phases 1–4: Rejected (2026-05-28).** Phase 0c measured the |
| 0088 | Typed-Document-Leaves Comparison | Unknown |
| 0088 | Codegen Shrinkage Measurement | Unknown |
| 0088 | cerl-ETF Wire Mechanism + Timing | Unknown |
| 0089 | Typed Document Leaves for Core Erlang Codegen | **Implemented (2026-05-31).** Long-term fix for the BT-875 recurrence |
| 0090 | Canonical Array Representation for O(log n) `at:put:` | Implemented (2026-06-25) |
| 0091 | Connection Security for Remote Workspace Access — Phoenix as Authenticated Front | Implemented (2026-06-06) |
| 0092 | Supervision Tree Introspection API (Runtime Query Surface) | Implemented (2026-06-07) |
| 0093 | Announcements — Typed Event Substrate (Runtime Bus + stdlib Veneer) | Implemented (2026-06-08) |
| 0094 | Object String Representation Protocols (printString / displayString / inspect) | Implemented (2026-06-07) |
| 0095 | Rich Navigable Inspector — Drillable, Live-Refreshing Object Views | Implemented (2026-06-11) |
| 0096 | System Browser Data Source — Class/Method Browse API for the LiveView IDE | Implemented (2026-06-10) |
| 0097 | Desktop Attach Client — One Front Node per Workspace | Implemented (2026-09-24; accepted 2026-06-13) |
| 0098 | Build Artifact Provenance and Version-Based Staleness Invalidation | Accepted (2026-06-23), Implemented |
| 0099 | CLI Application Story — Console, Arguments, Exit, and Packaging | Implemented (2026-06-26) |
| 0100 | Open-World Diagnostic Policy for Unresolved Selectors and Classes | Implemented (2026-11-10) |
| 0101 | Unified Erlang Interop — `native:` for Stateless Objects, Wrap-by-Default FFI, and a Clean `@primitive`/`@intrinsic`/`native:` Split | Implemented (2026-07-01) |
| 0102 | Set-Theoretic Type Operators (Intersection and Negation) for Narrowing and Atom Exhaustiveness | Implemented (Phases 1, 2, 4, 5, 2026-07-06; Phase 1b, BT-2744, nominal-class |
| 0103 | Sendability Typing from Class Kinds | Implemented (2026-07-07) |
| 0104 | Typed Actor Protocols — the Class Interface Is the Protocol | Implemented (2026-07-07) |
| 0105 | Live Image Re-Checking on Hot Reload | Implemented (2026-07-11) |
| 0106 | Opt-In Asserted `match:` Exhaustiveness (`matchExhaustive:`) | Implemented (2026-07-07) |
| 0107 | Nil and Type Patterns in `match:` | Implemented (2026-07-12) |
| 0108 | Named Union Type Aliases (`type` Declarations) | Implemented (2026-07-15) |
| 0109 | Block-Scoped Class Methods Run Their Block in the Caller's Process | Implemented (2026-07-28) |
| 0110 | Class-Variable Shadow Write-Through for Foreign NLR Relay | Superseded by [ADR 0130](0130-class-variables-live-in-the-class-process.md) (2026-10-06); was Implemented (2026-08-03) |
| 0111 | Mid-Level Lowered IR + Verifier for State Threading, Control Flow, and Non-Local Return | Implemented (2026-08-11) |
| 0112 | Method-Level Removal Language Primitive (`Behaviour removeSelector:`) | Implemented (2026-08-15) |
| 0113 | Destructive Workspace Operations — File Deletion in Flush | Implemented (2026-08-18) |
| 0114 | Class and Method Rename in the Live Workspace | Implemented (2026-08-26) |
| 0115 | Receiver-Type Key for `senders_of/1` Lookup | Implemented (2026-08-20) |
| 0116 | Double-Dispatch Coercion for Number-on-the-Left Arithmetic | Implemented (2026-08-25) |
| 0117 | Splitting `beamtalk-core` into Sub-Crates | Implemented (2026-08-30) |
| 0118 | Expression-Level State Threading via ThreadedIr Preludes | Implemented (2026-09-05) |
| 0119 | Class-Name↔Module-Name Resolution Registry | Implemented (2026-09-06) |
| 0120 | Value-Type `Self` Threading — Patch the Remaining Gaps, or Generalize `ThreadedIr`'s Storage Families? | Implemented (2026-09-09). The generalization this ADR deferred is decided |
| 0121 | Lone `ok`/`error` Atom Return Specs Map to `Result` in FFI Type Inference | Implemented (2026-09-15) |
| 0122 | Unify `ThreadedIr` Storage-Family Threading | Implemented (2026-09-16) |
| 0123 | Versioned State Migration as a Language Surface | Implemented (2026-09-19) |
| 0124 | Slots — Late Assignment and Definite Assignment | Implemented (2026-09-22) |
| 0125 | OTP Releases and Upgrade Compatibility | Implemented (2026-09-24) |
| 0126 | Distribution and Location-Transparent Actors | Implemented (2026-09-24) |
| 0127 | Traits — Protocols with Provided Methods, Flattened into Users | Implemented (2026-09-28) |
| 0128 | Thread Captured-Local Block Accumulators Through Opaque Callable Forwarding to Stdlib Collection HOMs | Superseded by [ADR 0133](0133-scope-of-captured-variable-mutation-in-blocks.md) (2026-10-18); Implemented 2026-09-24. Scope extended by BT-3615 (2026-09-24) |
| 0129 | Replace Injected `Beamtalk`/`Workspace`/`Transcript` Bindings with Class-Side Facades | Implemented (2026-09-30) |
| 0130 | Class Variables Live in the Class Process During an Invocation | Superseded by [ADR 0153](0153-remove-class-variables.md) (2026-11-25); was Implemented (2026-10-06); accepted 2026-10-02. |
| 0131 | Outer-Local Rebinds as `ThreadedValue` Preludes in Every Context | Implemented (2026-11-01) |
| 0132 | Callee-Side Threaded Entry Points for Higher-Order Methods | Superseded by [ADR 0133](0133-scope-of-captured-variable-mutation-in-blocks.md) (2026-10-18); Accepted 2026-10-17; Proposed 2026-10-16 |
| 0133 | Scope of Captured-Variable Mutation in Blocks | Implemented (2026-11-03) |
| 0134 | Errors in No-Reply Handlers Crash the Actor | Implemented (2026-10-21). Accepted 2026-10-19. Amends ADR 0065 § "Error contract" for `handleInfo:`; decides cast error semantics, which ADR 0054 left undecided. |
| 0135 | Supervisor Instances and Start Arguments | Implemented (2026-10-21) |
| 0136 | Tuple Literal Expressions | Implemented (2026-10-20) |
| 0137 | Actor Closures See the Actor's Live State | Implemented (2026-10-26) |
| 0138 | String Literal Escape Sequences | Implemented (2026-10-26) |
| 0139 | BEAM Abstraction Boundaries — What Leaks and What Doesn't | Implemented (2026-11-14; epic BT-4814, see Implementation Tracking). Accepted (2026-10-26). Amended 2026-10-26 (post-acceptance lead review): raw-mode flag renamed, frame semantics and printString rule decided, tuple scope clamped, `error_info` mechanism specified, crash-report hook and 0028 verdict scoped into Phase 1 |
| 0140 | Text-Default Binaries — a String Is the Raw Binary, Binary Is Explicit | Rejected (2026-10-28). Kept as a record: the proposal below, the evidence, and why it was not adopted. If flipping the String/Binary representation is raised again, start from this record and its open questions. |
| 0141 | Bitstring — a Sealed Class for Unaligned Bitstrings | Implemented (2026-10-28) |
| 0142 | The Class Process Only Owns Class State — Stateless Class Methods Run in the Caller | Implemented (2026-10-30); accepted 2026-10-29. Epic BT-4297. |
| 0143 | Binary Construction Syntax | Implemented (2026-11-03); accepted 2026-11-01. Epic BT-4138. |
| 0144 | Class-Side Protocol Types — `P class` Means "a Class Conforming to `P`" | Implemented (2026-11-05); accepted 2026-11-05, proposed 2026-11-04. Driven by BT-4413. |
| 0145 | Cascade Semantics for Immutable Values — Keep `;` Fan-Out, Add a `|>` Pipeline | Implemented (2026-11-10) |
| 0146 | A `^` Commits the Actor's Cell, Not a Copy | Implemented (2026-11-11) |
| 0147 | Map-Shape Types for Keyed Dictionaries | Implemented (2026-11-12) |
| 0148 | Checked Narrowing Casts and the Trusted-Type Comparison Hole | **Deferred (2026-11-14).** Tracking: BT-4772. |
| 0149 | EEP-48 Doc Chunks for Beamtalk Modules | **Deferred (2026-11-14).** Tracking: BT-4852 (research spike). |
| 0150 | Actor Registration Off the Start Path | Implemented (2026-11-16) |
| 0151 | what was run, on which versions | Unknown |
| 0151 | Elixir Interop and Mix-Backed Packages | Proposed (2026-11-16) |
| 0152 | Remove Cross-File Extension Methods | Accepted (2026-11-24) |
| 0153 | Remove Class Variables (`classState:`) | Implemented (2026-11-26) |
| 0154 | beamtalk-uat as the External Acceptance Gate for Full Environments | Accepted (2026-11-26) |
| 0155 | Optional Keys in Map Patterns | Accepted (2026-11-27) |