This directory records significant, cross-cutting architectural decisions for the MetaObjects standard — the durable "why" that outlives any single feature spec.
| Doc type | Location | Scope |
|---|---|---|
| ADR | spec/decisions/ (here) |
Durable, cross-cutting, target-agnostic contracts that bind multiple language ports (e.g. how metadata→native types are bound; the conformance model; persistence-engine choice). |
| Feature design (FR spec) | docs/superpowers/specs/ |
A single feature's design, language- or area-scoped. |
| Implementation plan | docs/superpowers/plans/ |
Task-by-task execution of a feature. |
| Conventions / pointers | CLAUDE.md |
Lean, always-loaded context: durable one-liners + pointers here. |
Write one when a decision is cross-cutting (affects more than one language port or more than one feature) and durable (future work must respect it). Examples: a metamodel binding contract, the wire-format guarantee, "migrations decoupled from the runtime." Do not write ADRs for feature-level or easily-reversible choices — those live in the FR spec.
Michael Nygard's ADR format: Context → Decision → Consequences → Status, plus Alternatives considered and Realization status where useful. One decision per file. Status is Proposed | Accepted | Superseded by ADR-NNNN. Numbered sequentially; never renumber (supersede instead).
- ADR-0001 — Cross-language metadata→native-type binding — Accepted
- ADR-0002 — Open-Closed typed nodes (subtype behavior on the class) — Accepted
- ADR-0003 — Metamodel constants colocation — Accepted
- ADR-0004 — Provider-based type registration & composition — Accepted
- ADR-0005 — Object representation: entity/value semantics + binding-resolved representation (OO ports) — Accepted
- ADR-0006 — AI-first YAML authoring (sigil-free YAML; JSON stays canonical) — Proposed
- ADR-0007 — Source metatype v2: storage-paradigm subtypes, logical names, multi-source, per-subtype physical addresses — Proposed
- ADR-0008 — Parameter-passing for generated repo helpers — Accepted
- ADR-0009 — Loader error envelope + source-on-node — Accepted
- ADR-0010 — Per-port parser-on-receipt codegen for
template.output— Accepted - ADR-0011 —
template.toolcallas a core MO subtype — Accepted - ADR-0012 — Remove the OSGi runtime variant from the Java port — Accepted
- ADR-0013 — Logical field types vs. physical column-type attributes — Accepted
- ADR-0014 — Type-registry resolution is loader-scoped, not process-global — Accepted
- ADR-0017 — Cross-port runtime object model (ValueObject default + MetaObjectAware + self-registering ObjectClassRegistry + newInstance factory) — Accepted
- ADR-0018 — Per-kind physical-name attributes within source paradigms — Proposed
- ADR-0015 — One shared migration engine; codegen + loader stay per-port — Accepted
- ADR-0016 — Build the migration apply+tracking runner (TS-native, Postgres-first) — Accepted
- ADR-0019 — Runtime return-type contract: native in-process, canonicalize at the boundary — Accepted
- ADR-0020 — Codegen tiering — native-per-port vs neutral-shared — Superseded by ADR-0022
- ADR-0021 — Codegen surface coherence — one front door, stable-name registry, consistent verify — Superseded by ADR-0022
- ADR-0022 — Codegen & documentation surface architecture (consolidated) — Accepted
- ADR-0023 — Strict metadata provenance: no made-up attributes — Accepted
- ADR-0024 — AI-trace scope: the typed trace + recorder is the standard; the LLM caller is bring-your-own — Accepted
- ADR-0025 — Unified docs door — one command, two surfaces, one config — Accepted
- ADR-0026 — Shared & externally-provided named types (enums + value objects) — Accepted
- ADR-0027 — Polyglot docs composition — per-language api surfaces, model once — Accepted
- ADR-0028 — Object taxonomy:
object.projection, value purity, and the population doctrine — Accepted - ADR-0029 — Universal
Entity.childextends-resolution and theviainference contract — Accepted - ADR-0030 — The declared API surface lives in core; protocol lives in bindings; the organization tier stays out — Accepted
- ADR-0052 — A template's subtype axis is DIRECTION:
template.outputrenders outbound, a response is parsed inbound — Accepted - ADR-0053 — The reply's syntax is
@responseFormatontemplate.prompt— Accepted - ADR-0054 — A
<type>.basesubtype is a registry anchor, not an authorable node — Accepted - ADR-0055 — Overlay application is a deferred pass — plain declarations first, then overlays, each in source order — Accepted
- ADR-0056 — A value object's type is generated once — the template tier references it — Accepted (supersedes the payload-tier half of ADR-0044)
- ADR-0057 — Requirement checks and requirement tests run in every port — Accepted (reverses the "Checks — TypeScript only" split recorded in
docs/CONFORMANCE.md) - ADR-0058 — One physical-naming setting, read by every port — Accepted (one
namingblock in.metaobjects/config.jsonreplaces the per-port column-naming flags, pom args, config keys and runtime setters) - ADR-0059 — References resolve once, after the tree — Accepted (sources keep references as written; one resolver per port binds them before freeze and the serializer writes them canonical; supersedes ADR-0032 §3–§4, amends ADR-0042)
- ADR-0060 — Java and Kotlin codegen decide overwrites from the committed hash manifest — Accepted (the JVM plugin records each file it writes in the
.metaobjects/.gen-state/hash manifest, refuses an edited one, and deletes an untouched orphan, owned per generator and output directory; the manifest's layout is ADR-0064 Amendment 1's) - ADR-0061 — A template body may use a per-port engine, chosen by its file — Accepted (Python and TypeScript render and check Jinja bodies —
.jinja/.j2/.jinja2— against the same payload check; the metadata never names an engine; Java, Kotlin and C# refuse Jinja withERR_TEMPLATE_ENGINE_UNSUPPORTED) - ADR-0062 — Two providers may not claim one attribute name on a node type — Accepted (the registry records which provider registered each attribute and refuses a second provider's claim on the same name on the same slot, the shared root or a descendant subtype:
ERR_PROVIDER_ATTR_CONFLICTfor the same slot, newERR_PROVIDER_ATTR_SHADOWfor the related slots; each provider keeps its own idiomatic physical-name word, a store without a provider usesattr.properties, no wire-name attribute is added) - ADR-0063 — Generators own their layout; formatters are test oracles only — Accepted (a writer in each port lays generated text out and no formatter runs in generation; output aims for clean code, not parity with today's formatting; a syntax-tree ratchet holds generator source to it, with an allowlist that only shrinks)
- ADR-0064 —
genskips rendering when the loaded model and its generators are unchanged — Accepted (every port keys a run on the loaded model and its generator inputs, and a matching key with every generated file unchanged renders and writes nothing; the manifest is written once per run; a localverify --codegenmay answer from the key; Amendment 1: the manifest is one file per model package) - ADR-0065 — Rust is the sixth port — Accepted (a Rust port under
server/rust/, a full language of 1.3.0, crates ready to publish and not yet published; the command iscargo meta; nomigrate, Jinja refused, generated code as one crate per MetaObjects package; gated byregistry-conformanceand the metamodel corpus with a shrink-only ledger. Amendment 1:cargo meta init/gen/verify --codegen/eject, an owned generator as a crate the project builds, the generated crate shape, and theclientandcommandsgenerators, the second Rust-only by decision) - ADR-0066 — Business rules: operations, permission points and lifecycles — Accepted (registers
api.*,operation.*,binding.*andtransition.*in all five ports, experimental, with eleven loader errors and a rules gate in everyverify; the lifecycle, its states and a transition's command are derived;transition.timedreserved; TypeScript's service generator enforces them; the other ports' services are later work) - ADR-0067 — Generated code is layered, and hand-written code attaches at the service seam — Accepted (layers 0 to 6; a service module per metadata package whose surface is its operations; hand-written bodies, policy and event handling implement generated interfaces and are passed in, in every language; a layer is a generator an app chooses, per package, with no named sets; the actor is an app-defined type; amends ADR-0045)
- ADR-0068 — The list query is part of the cross-port REST contract — Accepted (
?search,filter[or]/filter[and], the nesting cap, the bare-field and leading-%refusals, the value-format check, theincap and the invalid_json / invalid_id / pagination.invalid_value / constraint_violation responses are contract in every port;fixtures/list-query-conformance/and the api-contractlist-query/sub-corpus are the authority; each port passes both before rc.4) - ADR-0069 — Independent packs live in
packs/, version themselves, and core never depends on them — Accepted (Metamodel N.M names the default bundle only; an independent pack has its own version, may be carried by some ports and not others, and is outsideexpected-registry.json; core never depends on a pack, held byscripts/check-pack-boundary.ts; the provider contract is covered by core's package version; apackslane that blocks for a pack's own change and is a canary on core changes; unpublished until an estate project runs it with the drift gate enforced) - ADR-0070 — Systems, estates and APIs — Accepted (the seventeen calls for 1.4.0: one
system.softwarewith an@owner,organization.company/.unit, location,environment.stage, deployment and provision nodes with no platform, product or size; grants use@resourceand stay inside their system unless the owner hands out arole.tokenwhose@heldBymay name a system; the eventing and batch API vocabulary in core's API provider; reference restrictions as data read by every port; core carries what another repository imports and the delivery pack the estate; secret stores and every platform fact are settings; whatever is core runs in every port, Rust included; registers no vocabulary itself, and records the GOVERNANCE exception for the systems vocabulary's promotion)
Index gap — ADR-0031 through ADR-0051 are on disk but not listed above. The index stopped being maintained after ADR-0030; the files are authoritative, this list is not. Read
ls spec/decisions/for the full set until the backfill lands. Recorded here rather than silently left, because an index that looks complete and is not is worse than one that says so.