interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / docs / adr / 0034-physical-form-realization-ir.md

214 lines · 25124 bytes Raw Blame History Source

ADR 0034: Physical-Form Realization IR

Status: Accepted by the orchestrator under operator delegation of 2026-10-04 (Drake: "make the calls yourself"); operator may revoke. Proposed 2026-10-04; acceptance recorded on this file the same day after the review below. Acceptance review (2026-10-04, orchestrator): every code claim in sections 1, 2 and 4 was re-checked against live main (omega cb7cc21, physics dcc7c21, aienos 25836ba, aien-architecture 35dd324) and holds. Change since proposal: aien-spark/physics#46 (FORM0) merged as dcc7c21 on 2026-10-04, so FORM0 is IMPLEMENTED on main (host, SIMULATED_DEVELOPMENT, 163 checks, receipt evidence/FORM0/ca1f0847…f7c4.json). Amendments at acceptance: the FORM1 row (section 11) names the whole-realization measured cost record and forbids estimated inputs; the section 4 ABSENT wording is made precise. Criteria applied: factual claims verifiable in the live repos (yes); no second authority, estimator or cost model (section 3; section 11 FORM1); names state implemented contracts per ADR 0009 (reserved kinds are refused by decode); the operator's 2026-10-04 material is reflected (eight form families in section 2.2, cost record in FORM1, "physics does not repeal complexity" in section 9). Supersedes: nothing. Amends: nothing. Extends: ARCH-0018 (substrate-neutral physical realization) with the realization-side intermediate it left implicit, and ARCH-0019 (mixed-algebra realization) by placing the declared algebraic domain of a realization in a named artifact. Related: ARCH-0013 / ARCH-0014 (FORGE realizes, AEGIS verifies), ARCH-0016 (resident reaction architecture; dependency structure, not turn order), ARCH-0020 (belief / estimation), ARCH-0033 (verification pipeline, PROPOSED). Workstream: FORM0 (this cut), FORM1 to FORM4 (section 11). These are workstream gates, not roadmap milestones; sequencing stays in CURRENT_EXECUTION_PLAN.md section 6 C3. NOT A MASTER PLAN.

Citation note: in this repository "ADR 0034" and ARCH-0034 name the same decision.


1. Context

AIEN's direction is that software specifies and verifies, and, where the contract permits, physics computes. ARCH-0018 fixed who owns what: Omega owns semantic meaning and the SemanticResultContract, FORGE owns physical realization and calibration, AEGIS verifies admissibility, AIEN proposes objectives and gains no hardware authority, AIENOS owns enforceable capabilities. ARCH-0019 added that an encoding or algebraic domain is a realization detail, never part of meaning.

Audit of main on 2026-10-04 (omega cb7cc21, physics d74d799, aien-architecture 35dd324, aienos 25836ba) shows the realization chain has a gap between the contract and the substrate:

The missing object is a substrate-neutral realization form: the mathematical structure a physical system can embody, independent of which substrate embodies it. It is the thing that lets the same semantic operation be realized by a digital solver, a linear physical operator, an energy landscape or a physical sampler without renaming the operation and without a per-substrate opcode.

2. Decision

A REALIZATION FORM IS A REALIZATION-SIDE ARTIFACT, NOT A SEMANTIC OBJECT.
IT IS NOT A NEW LAYER: IT SITS BELOW OMEGA MEANING AND BESIDE SUBSTRATE LOWERING, INSIDE FORGE.
ITS IDENTITY NEVER ENTERS SEMANTIC IDENTITY.
ITS IDENTITY ENTERS REALIZATION IDENTITY AND EVIDENCE.
A FORM CARRIES NO SUBSTRATE, VENDOR, DEVICE, BUS, CALIBRATION, ADDRESS, CLOCK OR TEMPERATURE FIELD.
ONE CONTRACT MAY MAP TO SEVERAL FORMS; ONE FORM MAY LOWER TO SEVERAL SUBSTRATES.
EVERY FORM KIND NEEDS: PRECISE MATHEMATICS, A CONTRACT MAPPING, A VERIFICATION STRATEGY,
  A DIGITAL REFERENCE REALIZATION, AND A PLAUSIBLE PHYSICAL REALIZATION.
A FORM KIND THAT LACKS A REFERENCE IMPLEMENTATION IS SPECIFIED, RESERVED AND REFUSED BY CODE.
THE EXACT CONTROL PLANE STAYS EXACT.

2.1 Data flow and ownership

AIEN proposes an objective                      (no hardware authority)
        |
Omega semantic operation + SemanticResultContract   OMEGA owns; semantic identity
        |
        |  forge_form_from_contract              FORGE owns from here down
        v
ForgeRealizationForm  (LINEAR_OPERATOR, ...)    form digest
        |
   +----+-----------------+
   v                      v   forge_form_lower_*  (lowering digest = H(form, code))
digital reference      simulated analog   ...  GPU | resistive array | photonic mesh
   |                      |
   v                      v   forge_form_realize: V2 eligibility, runs, oracle check
V2 evidence + record   V2 evidence + record      realization identity (V2), evidence identity
        |
AEGIS admissibility (V2 eligible-set rule: digital fallback must exist)
        |
measurement, evidence, empirical selection (unchanged owners: ARCH-0018 / ARCH-0019 section 9)

Nothing above the contract changes. Nothing in AIENOS changes: substrate access remains an AIENOS capability (aienos native/capability/aienos_capability.h, one mint/validate path; no hardware right exists yet and none is added).

2.2 Form kinds

KindMathematicsContract mappingVerificationDigital referencePlausible physical realizationStatus
LINEAR_OPERATOR (1)y = A x over a declared scalar domain (integers mod 2^64 or mod 2^32, exact modular accumulation), A is M x NV2 MATVEC, rank 2, oracle omega_matvec_reference (u64) or omega_matmul_cpu_oracle_i32 (n = 1)per-element error against the contract's oracle under EXACT / BOUNDED_DETERMINISTIC / BOUNDED_STOCHASTIC; digests for EXACThost restatement of the omega oracle (physics forge/analog-sim/ oracles, cross-checked against omega sources by the AR2 gate)resistive / analog in-memory array, photonic mesh, GPUIMPLEMENTED (host, FORM0)
ENERGY_FUNCTIONAL (2)minimize E(s) = s^T J s + h^T s over s in {-1,+1}^n (or a declared bounded integer box); result contract: E(s) <= bound, or E(s) within delta of a reference optimizer's value with declared confidenceno existing Omega contract; needs a solve_optimization operation with an objective bound in the SemanticResultContract (MA-3 territory)reference: exhaustive for n <= 20, otherwise a deterministic digital optimizer with recorded value; acceptance = contract bound, never "reached the global optimum"NOT WRITTENoscillator / Ising networks, thermodynamic samplersSPECIFIED, RESERVED, REFUSED BY DECODE
STOCHASTIC_DISTRIBUTION (3)draw samples from a declared distribution; result is the sample set, accepted by declared statisticsneeds MEASURED_DISTRIBUTION contract semantics, which no omega seam implements (section 5)distributional statistics against the contract; raw samples are evidenceNOT WRITTENphysical stochastic samplersRESERVED, REFUSED BY DECODE

No other kinds are reserved. The families below (from the operator's 2026-10-04 "software specifies, physics computes" material) were considered and are not given ids: none has an Omega contract to map from today, and a reserved id without a mapping is a promise, not a design. Each gets an id only when a contract, a digital reference and an acceptance rule exist for it.

Considered familyPhysical meaning (one line)Why not reserved yet
dynamical systema state evolves under declared dynamics; the result is the trajectory or its endpointno Omega contract names a trajectory or an endpoint tolerance
graph couplingcoupled nodes settle into a joint state; the result is the settled configurationsubsumed by ENERGY_FUNCTIONAL once a coupling matrix is the objective; no separate contract
wave / interference transforma linear transform realized by propagation (Fourier-like, convolution-like)a LINEAR_OPERATOR with a structured A; needs a structured-operator contract before it earns its own id
constraint manifoldthe result must lie on a declared set; physics enforces the constraintno constraint-satisfaction contract in rx_contract
attractor / associative recalla perturbed state relaxes to the nearest stored patternno recall contract; "nearest" needs a declared metric and acceptance bound

2.3 Wire form and identity

physics forge/form/forge_form.h (PR aien-spark/physics#46, merged dcc7c21, 2026-10-04):

2.4 Identity consequences

FieldSemantic identityRealization identityEvidence identityNo identity
form_kind, scalar_domain, rows, cols, accumulationneveryes, via lowering digest in the V2 code slotyes, via the record
form digestnever (test: not an input of the contract digest; a bounded contract on the same operation maps to the same form)yesyes
lowering code digestneveryesyes
substrate digest, calibration digestnever (ARCH-0018)yes (V2, unchanged)yes
realization record decision, provenancenevernoyes
backend enum (digital / analog-sim) in the lowering structneveronly through the code label it selectsotherwise none

2.5 Exact control plane

Hashes, signatures, capability validation, identity, package and dependency state, transaction and commit state, evidence integrity, authority and security decisions stay on the exact digital control plane. A realization form is only ever derived from a SemanticResultContract whose kind admits it; an EXACT contract is realized by a form only when the lowering reproduces the oracle digest bit for bit (the analog lowering is refused under EXACT once any non-ideality is injected, even if the outputs match). No contract is weakened to admit a device; no cryptographic or commit operation gains a form.

2.6 Provenance

Every evidence record and realization record produced by the FORM0 code is SIMULATED_DEVELOPMENT. The digital reference running on the host CPU of a development fixture is not a physical measurement of a provisioned Machine and is labelled accordingly. There is no API in the form module that emits PHYSICAL; a gate greps for it.

3. What this ADR does NOT decide

4. Audit basis (2026-10-04, from code, not prose)

IMPLEMENTED

PARTIAL

MERGED BUT UNUSED

EXPERIMENTAL

PROPOSED

ABSENT

STALE DOCUMENTATION

5. Compatibility

ArtifactEffect
FORGE V2 canonical bytes, digests, golden vectors (docs/forge-v2-golden-vectors.md)unchanged; AR1 gates re-run and pass inside the FORM0 gate
FORGE v1 208-byte GB10 descriptor and KAT digest 10d63d05…09fduntouched
AR2 receipt evidence/AR2/808e79f8…b073.jsonreproduced byte for byte by the unchanged AR2 gate
Omega program ids (omega.program.v2), rc_contract_identify, registry digest, cost-model blob "OGCM" v1, generation digestsuntouched (no omega edit)
GB10 qualification receipts (M16 to M19, R16, CHIPWAIT)untouched
New: evidence/FORM0/ca1f0847…f7c4.jsonnew, digest-named, SIMULATED_DEVELOPMENT

6. Cost accounting (requirement, not implementation)

A future selection among forms and lowerings must count end to end: input encoding, output measurement, DAC / ADC, setup, settling, calibration and recalibration, transport and bytes moved, synchronization, physical evolution, verification, error and retry rate, reset, state footprint, measured energy, latency, and monetary or resource cost where applicable. FORGE V2 evidence already carries execution_duration_ns, conversion_duration_ns, energy_nj with energy_source (NOT_MEASURED / MEASURED / ESTIMATED), repeat statistics and measured error; the FORM0 record binds those to a form. No Landauer-limit or "information destruction" joule figure may be derived from runtime state; an irreversibility measure may later be recorded as a structural property only, never as an energy estimate without measurement.

7. Causality

Unchanged. The Omega action graph's dependency edges are the causal constraints; effect boundaries are where explicit ordering is required; total ordering is exceptional. A form or a lowering adds no ordering of its own: device-internal timing (settling, sampling) stays inside the FORGE provider below semantic readiness (ARCH-0016, ARCH-0018 section 6).

8. Uncertainty

A stochastic realization is a valid realization only when the contract kind admits it (BOUNDED_STOCHASTIC with confidence and sample count; MEASURED_DISTRIBUTION once implemented). FORM0 enforces the first three kinds at the FORGE seam. Making these kinds first-class in omega's rx_contract is MA-3 / AR3 work and is not done here.

9. Scientific framing

Analog in-memory computation, physical neural networks, optical transforms, physical reservoir computing, Ising / energy-landscape optimization, stochastic and thermodynamic computation, reversible-computation principles and dynamical systems motivate the form families above. They prove no AIEN advantage. A physical realization is useful only if its measured end-to-end cost beats the competing digital realization under the same contract; mapping a problem to a Hamiltonian makes it neither polynomial nor guaranteed to reach a global optimum. Physics does not repeal complexity: relaxation can trap in a local minimum, encoding and readout cost count against the realization, and any advantage is problem- and implementation-dependent and must be measured per contract, never assumed from the substrate class.

10. Success criteria

11. Workstream gates (not milestones; sequencing in CURRENT_EXECUTION_PLAN.md)

GateDefinitionDepends on
FORM0Form IR, LINEAR_OPERATOR, two lowerings of one contract, host gate + receipt (physics#46)AR2 (PASS)
FORM1Form-aware selection record: turing.decision.v1 candidates carry form digest + lowering digest and a whole-realization measured cost record bound to the FORGE V2 evidence of that realization: setup and input-encoding time and energy, compute (execution) time and energy, measurement and readout (conversion) time and energy, reset, end-to-end latency, measured error distribution against the contract oracle (error_kind, error_abs, error_rel_ppb, error_norm, repeat statistics), confidence (declared and achieved, for BOUNDED_STOCHASTIC), calibration age (time since the bound calibration object, against calibration_validity_s) and the receipt digest. Every time and energy figure carries its energy_source / provenance tag and is MEASURED or NOT_MEASURED; a component that FORGE V2 evidence does not carry separately today (V2 has execution_duration_ns, conversion_duration_ns, one energy_nj) is recorded NOT_MEASURED in the form realization record (kind 2), never split from a total by estimate; FORGE V2 objects and bytes stay unchanged. An ESTIMATED figure is never an input to selection: prediction belongs to the one cost model RxCostModel (ARCH-0020 section 4, ARCH-0031), and this record adds no second cost model and no second estimator. Selection by measured cost among eligible realizations (test-side first, rx_empirical_optimizer pattern, no runtime edit)FORM0 (PASS, dcc7c21), ARCH-0019 section 9.1
FORM2ENERGY_FUNCTIONAL reference: exhaustive and digital-optimizer references, contract with objective bound, host gate; decode accepts kind 2 only once this landsan Omega solve_optimization contract (MA-3)
FORM3Omega seam: non-exact contract kinds in rx_contract (AR3 / MA-3) and capability-based realization eligibility replacing RX_COG_HW_* (AR5); explicit blob versioning before any rx_costmodel widening (MA-5)R16 closed (done), ADR 0020 EST-3
FORM4First physical lowering of a form (AR4) with PHYSICAL provenanceoperator decision on a device

12. Review questions (answered at proposal time)

#QuestionAnswer
1Does any new field enter Omega semantic identity?No. Tested: form digest absent from contract bytes; contract digest unchanged.
2Did FORGE V2 canonical bytes change?No. No V2 file edited; AR1 golden vectors reproduce.
3Did any historical receipt change?No. AR2 receipt reproduced byte for byte.
4New central scheduler, loop, service, World or authority?No. R16 loop-inventory heuristics gate passes; no AIENOS edit.
5Any substrate name in the form?No. Gate greps the struct.
6Any quantum vocabulary in classical semantics?No. Gate greps the provider.
7Any physical-device claim?No. Every record SIMULATED_DEVELOPMENT; the module cannot emit PHYSICAL.
8Is ENERGY_FUNCTIONAL implemented?No. Specified, reserved, refused by decode.
9Does digital fallback remain?Yes. forge_form_admit is the V2 eligible-set rule; a refused analog lowering leaves the digital reference to publish under the same contract (tested).
10Another master plan?No. Gates above are sequenced only in CURRENT_EXECUTION_PLAN.md.