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 / plans / adaptive-intelligence / inventory / physics-learning.md

99 lines · 19766 bytes Raw Blame History Source

Physics-0 learning machinery and sealed controls: Milestone 0 inventory

Scout, read-only. Pins: omega 16e729b (only src/physics0, tests/physics0, docs/physics0, mk/physics0*.mk, evidence/physics0 read), physics 8b23e5a, aien-sealed 3a6659dc. Nothing was built or run; make -n only. Paths are relative to the repo named; O: omega, P: physics, S: aien-sealed/brownian.

Classification table

CapabilityClassAnchor
Black-box world, bounded interventions, budgets, hash-chained recordsImplemented and integratedO:src/physics0/pd0_world.c:42-102
Generator isolation from learner (symbol check)Implemented and integratedO:tests/physics0/isolation.sh:12-15
One-step sparse polynomial learner (numerical + symbolic, MDL)Implemented and integratedO:src/physics0/learner/pd0_learner.c:21-30,126-180
Independent ladder checker (T1..T7), scorer, negative controlsImplemented and integratedO:src/physics0/ladder, score, controls; mk/physics0-verify.mk:7
Experiment planner (active vs passive)Implemented, partly integrated (learner has a stand-in; real planner is bridged in tests only)O:src/physics0/planner/pd0_planner.h:1-8; learner.h:57-61; mk/physics0-planner.mk:5
Held-out score with 1.5x extrapolation boxImplemented and integratedP:docs/PD0_HIDDEN_EQUATION_BENCHMARK.md:206-210; O:src/physics0/score/pd0_score.c:44-67
PD-0b sealed run (external world, final/audit protocol v2)Implemented and integrated; seal-1 result FAILO:docs/physics0/PD0_PROTOCOL_V2.md; P:evidence/PD0B/PD0B_VERDICT-seal1.json:6
Latent (hidden) state recoveryMissing in learner (flag only, unreliable)O:docs/physics0/LEARNER.md:133-137
Multi-step consistency in candidate rankingMissingO:docs/physics0/LEARNER.md:135-136
Hidden-state suspicion flagExperimentalO:src/physics0/learner/pd0_learner.c:180
PD-1 machine-record view (unchanged learner on real machine logs)Experimental, development evidence onlyO:mk/physics0-pd1.mk:1-3
Brownian sealed lifecycle (freeze, one-attempt ledger, sealed parent, leak oracle)Implemented and integrated (private repo, separate domain)S:src/brw_protocol.h:94-170
EXP-003-CERT w2.v1Frozen on paper (receipt R3-66); no qfreeze or sealed world exists; waits for DrakeS:wave2/W2V1_FREEZE_RECEIPT.md:3,5,57
Changed dynamics between episodes (drift, regime switch, version bump)Missingsee section 6
Fixed-vs-updating learner comparisonMissingsee section 7

1. Components of omega/src/physics0

Learner model class (numerical AND symbolic). One-step change of each observed variable is regressed on every monomial of total degree <= 3 over observed variables and channels (pd0_learner.c:21-30; LEARNER.md:39-46). Forward selection with backward pruning, up to 10 terms per equation (pd0_learner.h:17; pd0_learner.c:126-155), scored by MDL = nlog2(rmse_micro) + 8(n_vars+n_channels)+24 bits per term (pd0_learner.c:122-124). Up to 8 candidates incl. an explicit null and runner-up rivals, re-ranked on SELECT (pd0_learner.h:16; LEARNER.md:53-58). Floats only inside fitting; all emitted numbers are micro-unit integers evaluated by the checker's integer stepper (pd0_learner.h:7-9; LEARNER.md:44-46). No latent variables are ever fitted (LEARNER.md:133-136).

How generator truth is kept from the learner. (a) The learner accepts only FIT and SELECT tagged records and refuses everything else (pd0_learner.c:44, I10); HOLDOUT/TRIAL/REP never reach it (pd0_harness.c:193-197; pd0_learner.h:5-6). (b) isolation.sh greps learner objects for any pd0_gen_, pd0_world_, fopen/open* symbol (isolation.sh:12-15), wired into test-physics0-learner via p0l-isolation (mk/physics0-learner.mk:37-38,62). (c) Learner and checker link only verifier byte formats; world and truth run as separate processes (LEARNER.md:30-35). (d) PD-0b protocol v2: shape terms and score are refused until final is accepted once; play ops refused after final; all refusals counted (PD0_PROTOCOL_V2.md:35-40,59-64,94-96).

How interventions are bounded. Describe record gives chan_min/chan_max, reset box, episode_max_steps, step and episode budgets (pd0_learner.h:20-26); guard enforces them (above); exploration and the stand-in planner only draw inside the bounds (pd0_learner.c:55-61; pd0_learner.h:57-60); a planner request outside bounds is a gate failure (spec :307).

Separate experimental evaluation path. Ladder: falsifier declared and hashed before TRIAL data (spec T4 :177), >=5 preregistered planner schedules not in FIT/SELECT/HOLDOUT (T5 :178), trials within eps (T6 :179), >=3 fresh REP batches of >=10 episodes, half planner, half random (T7 :180). Scorer runs 20 noise-free truth episodes (10 in-box, 10 at 1.5x) via protocol op 3 after final (LEARNER.md:76-77; PD0_PROTOCOL_V2.md:42-57). Exploration split per five episodes: FIT FIT FIT SELECT HOLDOUT (pd0_harness.c:193-197).

2. Documented limitations (quotes)

3. Tests (omega)

Build/run lives in mk/physics0*.mk, included by Makefile:5, output in build/ (Makefile:4). No run times are stated anywhere I found (UNVERIFIED; none measured).

TargetProgramsProvesDeterministic
make test-physics0-learner (mk/physics0-learner.mk:62-67)isolation check; tests/physics0/learner/test_pd0_learner.c (plain + ASan/UBSan); test_pd0_protocol_v2.c; test_pd0b_run.shlearner determinism (byte-identical reports and PDLAW1 round trip, test_pd0_learner.c:43-50), cubic world not fit by null and size <= 6 (:52), held-out theory error < 0.02 (:59), protocol v2 ops and refusal statesseeded streams; yes
make physics0-test (mk/physics0.mk:76-92)test_pd0_world.c (G0, plain + ASan), isolation, pd0_oracle.c (V1 oracle all levels, V3 breach rates, mutants), test_pd0_osc.csubstrate rules, spec 2.3, oracle recovers every level incl. L6 latent, mutant sign flip is caught, Omega-language differentialseeded; yes. V3 may print FAIL without failing the target (physics0.mk comment, README:29)
make test-physics0-verify (mk/physics0-verify.mk:7,31)verify/test_pd0_fmt.c, test_pd0_ladder.c, test_pd0_score.c, purityverifier formats, ladder rules, scorer plus negative controls; per PD-0b verdict: 25 + 148 + 103 checks (P:evidence/PD0B/PD0B_VERDICT-seal1.json:14)yes
make test-physics0-planner (mk/physics0-planner.mk:65)planner/test_pd0_planner.c, pd0_plan_eff.c, pd0_plan_eff2.cplanner contract behaviours 1-6, purity, active vs passive information efficiency (dev evidence)seeds 1..5
make physics0-learner-dev (physics0-learner.mk:70-74)pd0_harness.c + pd0_truth_main.c + worldfull ladder run per level L0..L6 + null, seeds 1..5; writes results.txtyes
make physics0-pd0b-run PD0_WORLD_BIN=.. PD0B_SEEDS=.. (:83-90)pd0b_run.sh, harnessfrozen learner vs external world, new receipt each run, refuses dirty treeyes
make physics0-pd1-run RECORDS=.. (mk/physics0-pd1.mk:5)pd1/pd1_run.cunchanged learner on machine records, development onlyseeded

Exact baseline command (verified present with make -n, not executed): from ~/workspace/adaptive/omega: make test-physics0-learner && make physics0-test && make test-physics0-verify. For learning-quality numbers: make physics0-learner-dev (prints one PD0L line per level and seed).

Baseline results on record (evidence/physics0/learner/pd0-learner-dev-b1ae4f609128.txt; LEARNER.md:85-94): L0-L5 REPLICATED 5/5 with scorer PASS; L6 stops at CANDIDATE (code 251, 3 refutations) 5/5; null stays OBSERVATION.

4. physics repo (8b23e5a)

5. aien-sealed/brownian (3a6659dc): sealed evaluation protocol

Domain note: Brownian is a different task (choosing observations/policies and predicting held-out points of diffusion, drift and mean-reverting processes, 3 families D0/D1/D2, S:src/brw_world.h:11), not Physics-0 dynamics. Reusable as a protocol, not as a learner.

6. Changed dynamics between episodes

Missing. Evidence: constants are drawn once at pd0_gen_init per seed (pd0_gen.h:42-45, pd0_world.c:11-18); the world holds one gen for its whole life (pd0_world.h:34-35); grep -iE "drift|regime|non-stationar|version bump|between episodes" over src/physics0, tests/physics0, docs/physics0 returns only an episode-numbering check (pd0_harness.c:91). Hits in physics repo are hardware sensor drift (forge) and in Brownian a DIFFUSION_DRIFT statistical model (mean drift of a random walk, S:src/brw_predict.h:15), neither is environment change between episodes. Adjacent hooks that make adding it small: single-process world with explicit pd0_world_reset (pd0_world.c:46-70), protocol v2 final/audit counters, pd0_gen_init(level, seed) (a regime switch could re-init constants mid-run, but nothing does). The Brownian "B2-emerging" label (brw_stats.c:420) concerns a within-trajectory property; UNVERIFIED whether it is a regime change (not read, confidence 40 percent it is not).

7. Fixed-vs-updating learner comparison

Missing. Closest pieces: (a) the learner refits after a refutation, moving TRIAL records into FIT, up to three attempts (pd0_harness.c:199,230; LEARNER.md:74-75), which is a within-run update but never compared with a frozen counterpart; (b) planner efficiency compares active vs passive schedules, not fixed vs updating models (tests/physics0/planner/pd0_plan_eff.c:1-12); (c) PD-0b freezes the learner by commit (PD0B_SEALED_BENCHMARK.md:39). No test has a fixed relation scored on later dynamics against a refit one.

Smallest defensible improvement candidate (partially observed prediction)

Add a rollout-based residual check to candidate ranking and the hidden-state flag: score each candidate by 20-step rollout NRMSE on SELECT episodes (reuse pd0_learner_rollout learner.h:65, which already exists and carries latent from 0) and use it in cand_cmp / the hidden_state_suspected rule at pd0_learner.c:180. Motivating quote: "the flag needs a rollout-based test, left for the next cut" (LEARNER.md:108-109) and "Not implemented: ... multi-step consistency in candidate ranking" (LEARNER.md:135-136). Acceptance: public L6 seeds 1-5 flag fires on 5/5 and L0-L5 and null do not; frozen PD0B trees (learner, ladder, score, controls) would change, so it must be a new learner version, not a seal-1 amendment (PD0B_FREEZE-seal1.json).