Skip to content

Architectural Decision Records (ADRs)

ADRs document significant architectural decisions made during AbstractRuntime development. They explain why certain approaches were chosen, not what was built (that's in the backlog).

Why ADRs Matter

When you ask "why is it designed this way?", the answer is in an ADR. ADRs are: - Immutable: Once accepted, they are not edited (only superseded by new ADRs) - Historical: They capture the context and constraints at decision time - Educational: They help new contributors understand the architecture

Index

ID Title Status Date Summary
0001 Layered Coupling with AbstractCore Accepted 2025-12-11 Kernel stays dependency-light; AbstractCore integration is opt-in
0002 Execution Modes Accepted 2025-12-11 Support local, remote, and hybrid execution topologies
0003 Provenance Hash Chain Accepted 2025-12-11 Tamper-evident ledger first; cryptographic signatures deferred
0004 Runtime Owns Run-Scoped Media Execution Truth Accepted 2026-05-20 Hosts must route run-scoped media execution through Runtime
0005 Runtime Owns AbstractCore Host Discovery Queries Accepted 2026-05-20 Hosts should ask Runtime for Core discovery/catalog snapshots
0006 Runtime Owns Durable AbstractCore Bloc Prompt-Cache Control Accepted 2026-05-20 Hosts should use Runtime for durable bloc/KV controls and binding-aware execution
0007 Runtime Relays Core-Owned Model Residency Truth Accepted 2026-05-21 Runtime reports loaded state only from AbstractCore residency truth
0008 Integration Facades Are the Complete Host Surface Accepted 2026-10-27 Every AbstractCore name or capability a host needs is surfaced by the runtime (facade re-export, typed refusal, backlog); a gap is a runtime patch, never a host import of a lower-level package
0010 One Replay of the Ledger, Many Views Accepted 2026-10-27 abstractruntime.replay is the only reconstruction of run state from the ledger; hosts serve its view, clients render it; the per-run ledger seq is the durable cursor
0011 The Memory Facade Is the Complete Host Surface for AbstractMemory Accepted 2026-10-27 Hosts reach AbstractMemory only through memory_facade and the effect-handler builders; the runtime stamps ledger provenance (step (run_id, seq), artifact, diary entry) on every memory write it performs, never from a synthetic run id; reconstructing a deleted source answers source_gone, never raises

Relationship to Backlog

ADRs explain why. Backlog items explain what and how.

ADR Related Implementation
0001 backlog/completed/005_abstractcore_integration.md
0002 backlog/completed/005_abstractcore_integration.md
0003 backlog/completed/007_provenance_hash_chain.md, backlog/planned/008_signatures_and_keys.md
0004 backlog/completed/023_truthful_local_media_residency_boundaries.md, backlog/completed/024_runtime_owned_run_scoped_media_execution.md
0005 backlog/completed/026_runtime_host_discovery_facade_for_core_catalogs.md
0006 backlog/completed/027_runtime_durable_bloc_prompt_cache_facade.md
0007 backlog/completed/0035_model_residency_provider_truth_for_local_http_clients.md, backlog/proposed/0036_local_media_residency_bridge_to_core_residency.md
0008 AbstractGateway backlog 1044 (mailbox access) and tests/test_gateway_import_boundary.py; runtime 0.13.1 email_facade.resolve_srv_default
0010 backlog/planned/0854_replay_view.md; AbstractGateway backlog 0943 (view routes), 0082 (durable cursor); framework root 0993
0011 backlog/completed/0856_memory_facade_and_ledger_provenance.md, backlog/planned/0857_entity_direct_memory_writes_provenance.md; AbstractMemory backlog 0056

Adding New ADRs

When making a significant architectural decision: 1. Create docs/adr/NNNN_short_title.md 2. Use the template: Status, Context, Decision, Consequences 3. Set status to "Accepted" once the decision is final 4. If superseding an old ADR, update the old one's status to "Superseded by NNNN"