Architecture Decisions

Key design decisions with context, alternatives considered, and consequences.

#DecisionStatus
0001No Compound Assignment in BeamtalkImplemented (2026-02-08)
0002Use Erlang Comparison Operators DirectlyImplemented (2026-02-08)
0003Keep Core Erlang as Primary Code Generation TargetImplemented (2026-02-08)
0004Persistent Workspace ManagementImplemented (2026-02-15)
0005BEAM Object Model - Pragmatic Hybrid ApproachImplemented (2026-02-08)
0006Unified Method Dispatch with Hierarchy WalkingImplemented (2026-02-08)
0007Compilable Standard Library with Primitive InjectionImplemented (2026-02-07)
0008Doc Comments and API DocumentationImplemented (2026-02-15)
0009OTP Application Structure — Split Workspace from RuntimeImplemented (2026-02-07)
0010Global Objects and Singleton DispatchImplemented (2026-02-15). Follow-on legacy gen_server removal (BT-1093) complete 2026-03-05
0011Robustness Testing — Layered Fuzzing and Error QualityImplemented (2026-02-15)
0012Collection Literal Syntax and the `#` Data Literal SystemImplemented (2026-02-15)
0013Class Variables, Class-Side Methods, and Instantiation ProtocolImplemented (2026-02-15)
0014Beamtalk Test Framework — Native Unit Tests and CLI Integration TestsImplemented (2026-02-15)
0015Signal-Time Exception Objects and Error Class HierarchyImplemented (2026-02-15)
0016Universal Module Naming with @ SeparatorAccepted (2026-02-10), Implemented (BT-454)
0017Browser Connectivity to Running WorkspacesImplemented (2026-06-07)
0018Document Tree Code Generation (Wadler-Lindig Pretty Printer)Implemented (2026-02-15)
0019Singleton Access via Class VariablesSuperseded by [ADR 0153](0153-remove-class-variables.md) (2026-11-25); was Implemented (2026-02-15)
0020Connection Security — mTLS, Proxies, and Network OverlaysImplemented (2026-02-18)
0021Stream — Lazy Pipeline for Value-Side DataImplemented (2026-02-15), Revised (2026-03-05)
0022Embedded Compiler via OTP Port (with NIF option)Implemented (2026-02-15)
0023String Interpolation Syntax and CompilationImplemented (2026-02-17)
0024Static-First, Live-Augmented IDE ToolingImplemented (Phase 1, 2026-02-17; BT-456 Done 2026-02-16). Phase 3 (standard LSP server) largely delivered outside this ADR's tracking
0025Gradual Typing and ProtocolsImplemented (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
0026Package Definition and Project ManifestImplemented (2026-02-17)
0027Cross-Platform SupportImplemented (2026-02-17)
0028BEAM Interop StrategyImplemented (2026-02-18)
0029Streaming Eval OutputImplemented (2026-02-18)
0030cargo-dist Evaluation for Release PackagingRejected (2026-02-18)
0031Flat Namespace for v0.1Superseded by [ADR 0070](0070-package-namespaces-and-dependencies.md) (2026-03-24)
0032Early Class Protocol — Behaviour and Class in Beamtalk StdlibImplemented (2026-02-24)
0033Runtime-Embedded Documentation on Class and CompiledMethodImplemented (2026-02-24)
0034Stdlib Self-Hosting — Moving Logic from Erlang to BeamtalkImplemented (2026-02-24)
0035Rename Instance Variable Reflection API from instVar to fieldImplemented (2026-02-24)
0036Full Metaclass TowerImplemented (2026-02-24)
0037Collection Class Hierarchy — Shallow Abstract Layer with Minimal Primitive SurfaceImplemented (2026-02-24)
0038`subclass:` Grammar Desugaring to ClassBuilder ProtocolImplemented (2026-02-24)
0039Syntax Pragmatism vs SmalltalkImplemented (2026-02-24). Amended 2026-11-26: block comments (`/* */`) were removed from decision 1 (BT-5229); see the amendment note under Decision 1.
0040Workspace-Native REPL Commands, Facade/Dictionary Split, and Class-Based ReloadImplemented (2026-02-24)
0041Universal State-Threading Block ProtocolImplemented (2026-02-24)
0042Immutable Value Objects and Actor-Only Mutable StateImplemented (2026-02-26)
0043Sync-by-Default Actor MessagingImplemented (2026-02-26)
0044Comments as First-Class AST NodesImplemented 2026-02-28
0045REPL Expression-Level Completion via Gradual Type InferenceImplemented 2026-03-01
0046VSCode Live Workspace SidebarImplemented (2026-03-02)
0047Return Type Arrow Token DisambiguationImplemented (2026-03-06)
0048Class-Side Method SyntaxRejected (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.
0049Remove 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.
0050Incremental Compiler ClassHierarchy via BEAM Metadata StreamingImplemented (2026-03-04)
0051Subprocess Execution — System Commands and Interactive Subprocess ActorImplemented (2026-03-05)
0052Recursive Descent Parser with Pratt Parsing for Binary OperatorsImplemented (2026-03-05)
0053Double-Colon Type Annotation SyntaxImplemented (2026-03-05)
0054Communication ProtocolsImplemented (2026-03-05)
0055Erlang-Backed Class Authoring ProtocolImplemented (2026-03-06)
0056Native Erlang-Backed Actors — `native:` and `self delegate`Implemented (2026-04-01)
0057Authoritative Superclass Source for Abstract Stdlib ClassesImplemented (2026-03-07)
0058Platform Security ModelAccepted (policy, 2026-03-07)
0059Supervision Tree SyntaxImplemented (2026-03-07)
0060Result Type — Hybrid Error Handling for Expected FailuresImplemented (2026-03-08)
0061Program Entry Points and Run LifecycleImplemented (2026-03-10)
0062Bundled Example Corpus and Search Tool for MCP ServerImplemented (2026-03-15)
0063Remove File Path SandboxImplemented (2026-03-16)
0064Runtime Logging Control and Observability APIImplemented (2026-03-17)
0065Complete OTP Primitives for Actor Lifecycle and SupervisionImplemented (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.
0066Open Class Extension Methods (`>>` Syntax)Implemented (2026-03-18); superseded in part by [ADR 0152](0152-remove-cross-file-extension-methods.md) (2026-11-24)
0067Separate state:/field: Keywords by Class KindImplemented (2026-03-18)
0068Parametric Types and ProtocolsImplemented (2026-03-20)
0069Actor Observability and TracingImplemented (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
0070Package Namespaces and DependenciesImplemented (2026-03-24). Supersedes [ADR 0031](0031-flat-namespace-for-v01.md) (Flat Namespace for v0.1).
0071Class Visibility — `internal` Modifier for Package-Scoped Access ControlImplemented (2026-03-28)
0072User Erlang Sources in Beamtalk PackagesImplemented (2026-03-29)
0073Package Distribution and DiscoveryImplemented (2026-07-27)
0074Deferred MetaprogrammingAccepted (deferral, 2026-04-01)
0075Auto-Extract Quality AssessmentUnknown
0075Erlang FFI Type DefinitionsImplemented (2026-09-03)
0076Convert Erlang ok/error Tuples to Result at FFI BoundaryImplemented (2026-04-03)
0077Type Coverage VisibilityImplemented (2026-04-05)
0078Actor Initialize InheritanceImplemented (2026-04-12)
0079Named Actor RegistrationImplemented (2026-04-15)
0080Migrate Supervisor Lifecycle to ResultImplemented (2026-04-16)
0081First-Class Session Object — Walkable Binding LayersAccepted (2026-06-01), Implemented
0082Method-Level Edit and Save in the Live WorkspaceImplemented (2026-05-26)
0083Metaclass-Aware Type InferenceImplemented (2026-05-23)
0084Class-Side Runtime Method Installation and Fun DispatchImplemented (2026-05-24)
0085Editor Live-Image RepresentationSuperseded 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.
0086Make String a Subclass of BinaryImplemented (2026-03-21)
0087Maintained Selector→Sites Cross-Reference Index for SystemNavigationImplemented (2026-06-03)
0088Direct Core Erlang AST Emission via ETF**Phases 1–4: Rejected (2026-05-28).** Phase 0c measured the
0088Typed-Document-Leaves ComparisonUnknown
0088Codegen Shrinkage MeasurementUnknown
0088cerl-ETF Wire Mechanism + TimingUnknown
0089Typed Document Leaves for Core Erlang Codegen**Implemented (2026-05-31).** Long-term fix for the BT-875 recurrence
0090Canonical Array Representation for O(log n) `at:put:`Implemented (2026-06-25)
0091Connection Security for Remote Workspace Access — Phoenix as Authenticated FrontImplemented (2026-06-06)
0092Supervision Tree Introspection API (Runtime Query Surface)Implemented (2026-06-07)
0093Announcements — Typed Event Substrate (Runtime Bus + stdlib Veneer)Implemented (2026-06-08)
0094Object String Representation Protocols (printString / displayString / inspect)Implemented (2026-06-07)
0095Rich Navigable Inspector — Drillable, Live-Refreshing Object ViewsImplemented (2026-06-11)
0096System Browser Data Source — Class/Method Browse API for the LiveView IDEImplemented (2026-06-10)
0097Desktop Attach Client — One Front Node per WorkspaceImplemented (2026-09-24; accepted 2026-06-13)
0098Build Artifact Provenance and Version-Based Staleness InvalidationAccepted (2026-06-23), Implemented
0099CLI Application Story — Console, Arguments, Exit, and PackagingImplemented (2026-06-26)
0100Open-World Diagnostic Policy for Unresolved Selectors and ClassesImplemented (2026-11-10)
0101Unified Erlang Interop — `native:` for Stateless Objects, Wrap-by-Default FFI, and a Clean `@primitive`/`@intrinsic`/`native:` SplitImplemented (2026-07-01)
0102Set-Theoretic Type Operators (Intersection and Negation) for Narrowing and Atom ExhaustivenessImplemented (Phases 1, 2, 4, 5, 2026-07-06; Phase 1b, BT-2744, nominal-class
0103Sendability Typing from Class KindsImplemented (2026-07-07)
0104Typed Actor Protocols — the Class Interface Is the ProtocolImplemented (2026-07-07)
0105Live Image Re-Checking on Hot ReloadImplemented (2026-07-11)
0106Opt-In Asserted `match:` Exhaustiveness (`matchExhaustive:`)Implemented (2026-07-07)
0107Nil and Type Patterns in `match:`Implemented (2026-07-12)
0108Named Union Type Aliases (`type` Declarations)Implemented (2026-07-15)
0109Block-Scoped Class Methods Run Their Block in the Caller's ProcessImplemented (2026-07-28)
0110Class-Variable Shadow Write-Through for Foreign NLR RelaySuperseded by [ADR 0130](0130-class-variables-live-in-the-class-process.md) (2026-10-06); was Implemented (2026-08-03)
0111Mid-Level Lowered IR + Verifier for State Threading, Control Flow, and Non-Local ReturnImplemented (2026-08-11)
0112Method-Level Removal Language Primitive (`Behaviour removeSelector:`)Implemented (2026-08-15)
0113Destructive Workspace Operations — File Deletion in FlushImplemented (2026-08-18)
0114Class and Method Rename in the Live WorkspaceImplemented (2026-08-26)
0115Receiver-Type Key for `senders_of/1` LookupImplemented (2026-08-20)
0116Double-Dispatch Coercion for Number-on-the-Left ArithmeticImplemented (2026-08-25)
0117Splitting `beamtalk-core` into Sub-CratesImplemented (2026-08-30)
0118Expression-Level State Threading via ThreadedIr PreludesImplemented (2026-09-05)
0119Class-Name↔Module-Name Resolution RegistryImplemented (2026-09-06)
0120Value-Type `Self` Threading — Patch the Remaining Gaps, or Generalize `ThreadedIr`'s Storage Families?Implemented (2026-09-09). The generalization this ADR deferred is decided
0121Lone `ok`/`error` Atom Return Specs Map to `Result` in FFI Type InferenceImplemented (2026-09-15)
0122Unify `ThreadedIr` Storage-Family ThreadingImplemented (2026-09-16)
0123Versioned State Migration as a Language SurfaceImplemented (2026-09-19)
0124Slots — Late Assignment and Definite AssignmentImplemented (2026-09-22)
0125OTP Releases and Upgrade CompatibilityImplemented (2026-09-24)
0126Distribution and Location-Transparent ActorsImplemented (2026-09-24)
0127Traits — Protocols with Provided Methods, Flattened into UsersImplemented (2026-09-28)
0128Thread Captured-Local Block Accumulators Through Opaque Callable Forwarding to Stdlib Collection HOMsSuperseded 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)
0129Replace Injected `Beamtalk`/`Workspace`/`Transcript` Bindings with Class-Side FacadesImplemented (2026-09-30)
0130Class Variables Live in the Class Process During an InvocationSuperseded by [ADR 0153](0153-remove-class-variables.md) (2026-11-25); was Implemented (2026-10-06); accepted 2026-10-02.
0131Outer-Local Rebinds as `ThreadedValue` Preludes in Every ContextImplemented (2026-11-01)
0132Callee-Side Threaded Entry Points for Higher-Order MethodsSuperseded by [ADR 0133](0133-scope-of-captured-variable-mutation-in-blocks.md) (2026-10-18); Accepted 2026-10-17; Proposed 2026-10-16
0133Scope of Captured-Variable Mutation in BlocksImplemented (2026-11-03)
0134Errors in No-Reply Handlers Crash the ActorImplemented (2026-10-21). Accepted 2026-10-19. Amends ADR 0065 § "Error contract" for `handleInfo:`; decides cast error semantics, which ADR 0054 left undecided.
0135Supervisor Instances and Start ArgumentsImplemented (2026-10-21)
0136Tuple Literal ExpressionsImplemented (2026-10-20)
0137Actor Closures See the Actor's Live StateImplemented (2026-10-26)
0138String Literal Escape SequencesImplemented (2026-10-26)
0139BEAM Abstraction Boundaries — What Leaks and What Doesn'tImplemented (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
0140Text-Default Binaries — a String Is the Raw Binary, Binary Is ExplicitRejected (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.
0141Bitstring — a Sealed Class for Unaligned BitstringsImplemented (2026-10-28)
0142The Class Process Only Owns Class State — Stateless Class Methods Run in the CallerImplemented (2026-10-30); accepted 2026-10-29. Epic BT-4297.
0143Binary Construction SyntaxImplemented (2026-11-03); accepted 2026-11-01. Epic BT-4138.
0144Class-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.
0145Cascade Semantics for Immutable Values — Keep `;` Fan-Out, Add a `|>` PipelineImplemented (2026-11-10)
0146A `^` Commits the Actor's Cell, Not a CopyImplemented (2026-11-11)
0147Map-Shape Types for Keyed DictionariesImplemented (2026-11-12)
0148Checked Narrowing Casts and the Trusted-Type Comparison Hole**Deferred (2026-11-14).** Tracking: BT-4772.
0149EEP-48 Doc Chunks for Beamtalk Modules**Deferred (2026-11-14).** Tracking: BT-4852 (research spike).
0150Actor Registration Off the Start PathImplemented (2026-11-16)
0151what was run, on which versionsUnknown
0151Elixir Interop and Mix-Backed PackagesProposed (2026-11-16)
0152Remove Cross-File Extension MethodsAccepted (2026-11-24)
0153Remove Class Variables (`classState:`)Implemented (2026-11-26)
0154beamtalk-uat as the External Acceptance Gate for Full EnvironmentsAccepted (2026-11-26)
0155Optional Keys in Map PatternsAccepted (2026-11-27)