From 9e5ea8b5b5c1afa7a28cbcb0b2c463e51c96b538 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 19:13:01 -0500 Subject: [PATCH 1/4] physics0: substrate cut 3, follow PD-0 spec revision 3 (5bd2b04) L0 20 steps/150 episodes, s1 box [-0.2,0.2]; L4 box [-1,1]; L6 ranges k[3,5] w[0.5,1] m[1,2] q[1,2], draw order k,w,m,q, redraw rule with cap 1000; per-variable reset boxes; scoring box = reset box and extrapolation 1.5x; one shared range table for generator and the oracle's declared-range check. Co-Authored-By: Claude Fable 5.1 --- docs/physics0/README.md | 2 +- mk/physics0.mk | 11 ++-- src/physics0/pd0_gen.c | 81 ++++++++++++++++++------- src/physics0/pd0_gen.h | 17 +++++- src/physics0/pd0_guard.c | 7 +++ src/physics0/pd0_guard.h | 3 + src/physics0/pd0_world.c | 3 +- src/physics0/pd0_world.h | 1 + tests/physics0/pd0_calib.c | 11 +++- tests/physics0/pd0_calib.h | 4 +- tests/physics0/pd0_oracle.c | 41 ++++++++++--- tests/physics0/test_pd0_world.c | 103 ++++++++++++++++++++++++++++---- 12 files changed, 231 insertions(+), 53 deletions(-) diff --git a/docs/physics0/README.md b/docs/physics0/README.md index d42ec57bd..52a9a683c 100644 --- a/docs/physics0/README.md +++ b/docs/physics0/README.md @@ -1,6 +1,6 @@ # physics0: PD-0 hidden-equation benchmark substrate -Spec: aien-dev/physics `docs/PD0_HIDDEN_EQUATION_BENCHMARK.md` and `docs/PHYSICS0_DISCOVERY_ENGINE.md` at `2f881b1` (revision 2). Program note: mind map `2026-10-03-physics-0-discovery-engine`. +Spec: aien-dev/physics `docs/PD0_HIDDEN_EQUATION_BENCHMARK.md` and `docs/PHYSICS0_DISCOVERY_ENGINE.md` at `5bd2b04` (revision 3). Program note: mind map `2026-10-03-physics-0-discovery-engine`. This directory implements **Direction 2 only** (the substrate). Other lanes own the ladder checker, scorer, negative-control harness and learner (`src/physics0/ladder`, `src/physics0/score`, `src/physics0/controls` are reserved for them and do not exist here). diff --git a/mk/physics0.mk b/mk/physics0.mk index 3385cb7a7..ef68c1702 100644 --- a/mk/physics0.mk +++ b/mk/physics0.mk @@ -1,5 +1,5 @@ # PD-0 hidden-equation benchmark substrate (Physics-0 Discovery Engine, -# spec aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 2f881b1). +# spec aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04, revision 3). # Files under src/physics0/ and tests/physics0/. Picked up by `-include mk/*.mk`; # not part of `all` or `test`. Direction 2 lane only: wire records, world # process (generators), STAND_IN recorder and range guard, oracle + reference @@ -93,9 +93,10 @@ physics0-test: $(P0_DIR)/test_pd0_world $(P0_DIR)/test_pd0_world_asan $(P0_LEARN # Receipts are immutable: existing evidence files are never rewritten (cp -n); each cut adds new files. physics0-evidence: physics0-test - for f in $(P0_DIR)/receipts/pd0-oracle-*.json; do cp -n "$$f" evidence/physics0/; done - cp $(P0_DIR)/receipts/pd0-oracle-L6.json evidence/physics0/pd0-oracle-L6-fit.json - { echo "receipt: PD0_G0"; echo "spec: aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 2f881b1 (rev 2)"; echo "recorder: STAND_IN"; echo "range_guard: STAND_IN"; \ + mkdir -p evidence/physics0 + for f in $(P0_DIR)/receipts/pd0-oracle-*.json; do b=$$(basename "$$f" .json); cp -n "$$f" "evidence/physics0/$$b-rev3.json"; done + { echo "receipt: PD0_G0"; echo "spec: aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)"; echo "recorder: STAND_IN"; echo "range_guard: STAND_IN"; \ echo "commit: $$(git rev-parse HEAD)"; echo "date_utc: $$(date -u +%Y-%m-%dT%H:%M:%SZ)"; echo "--- test_pd0_world"; cat $(P0_DIR)/g0.out; \ - echo "--- isolation"; cat $(P0_DIR)/isolation.out; echo "--- osc differential"; cat $(P0_DIR)/osc.out; echo "--- mutant"; cat $(P0_DIR)/mutant.out; echo "--- mutant latent sign"; cat $(P0_DIR)/mutant_latent.out; } > evidence/physics0/pd0-g0-receipt-cut2.txt + echo "--- isolation"; cat $(P0_DIR)/isolation.out; echo "--- G1 oracle"; cat $(P0_DIR)/g1.out; echo "--- osc differential"; cat $(P0_DIR)/osc.out; \ + echo "--- mutant"; cat $(P0_DIR)/mutant.out; echo "--- mutant latent sign"; cat $(P0_DIR)/mutant_latent.out; } > evidence/physics0/pd0-g0-receipt-cut3.txt endif diff --git a/src/physics0/pd0_gen.c b/src/physics0/pd0_gen.c index 340d6cddd..06dfe22ab 100644 --- a/src/physics0/pd0_gen.c +++ b/src/physics0/pd0_gen.c @@ -1,6 +1,6 @@ -/* PD-0 hidden generators: spec section 4.1 (physics hive/pd0-spec @ 80d7808, - * revision 2) verbatim in integer micro-units. Discrete maps: the law is the - * map written here, not the differential equation it resembles. +/* PD-0 hidden generators: spec section 4.1 (physics main @ 5bd2b04, revision 3) + * verbatim in integer micro-units. Discrete maps: the law is the map written + * here, not the differential equation it resembles. * Build with -DPD0_MUTANT_SIGN to flip the sign of the spring term in L1 * (NC-3 style mutation: the oracle check must then FAIL). -DPD0_MUTANT_LATENT_SIGN flips the sign of m*h in L6. */ #include "physics0/pd0_gen.h" @@ -14,18 +14,53 @@ static const char *NAMES[PD0_LEVELS] = {"L0", "L1", "L2", "L3", "L4", "L5", "L6", "NULL"}; const char *pd0_gen_level_name(int level) { return (level >= 0 && level < PD0_LEVELS) ? NAMES[level] : "?"; } +/* THE one table of declared constant ranges (spec 4.1), in DRAW ORDER. The + * generator draws from it and the oracle's declared-range check reads it. */ +static const pd0_crange T_L1[] = {{"k", U(1.0), U(4.0)}}; +static const pd0_crange T_L2[] = {{"k", U(1.0), U(9.0)}, {"c", U(0.2), U(2.0)}}; +static const pd0_crange T_L3[] = {{"k", U(1.0), U(4.0)}, {"g", U(0.5), U(2.0)}}; +static const pd0_crange T_L4[] = {{"k", U(1.0), U(4.0)}, {"b", U(0.5), U(2.0)}}; +/* rev 3: order k, w, m, q */ +static const pd0_crange T_L6[] = {{"k", U(3.0), U(5.0)}, {"w", U(0.5), U(1.0)}, {"m", U(1.0), U(2.0)}, {"q", U(1.0), U(2.0)}}; + +int pd0_gen_const_table(int level, const pd0_crange **t) { + switch (level) { + case PD0_L1: *t = T_L1; return 1; + case PD0_L2: case PD0_L5: *t = T_L2; return 2; + case PD0_L3: *t = T_L3; return 2; + case PD0_L4: *t = T_L4; return 2; + case PD0_L6: *t = T_L6; return 4; + default: *t = NULL; return 0; + } +} + +/* reset box per observed variable (spec 4 table notes, rev 3): [-2, 2] except + * L0 s1 [-0.2, 0.2] and L4 both [-1, 1]. */ +void pd0_gen_reset_box(int level, int var, int64_t *lo, int64_t *hi) { + int64_t b = U(2.0); + if (level == PD0_L0 && var == 1) b = U(0.2); + if (level == PD0_L4) b = U(1.0); + *lo = -b; *hi = b; +} + +/* scoring boxes (spec 6.1, rev 3): in-box = the reset box, extrapolation = 1.5 x it */ +void pd0_gen_score_box(int level, int var, int extrap, int64_t *lo, int64_t *hi) { + pd0_gen_reset_box(level, var, lo, hi); + if (extrap) { *lo = (*lo * 3) / 2; *hi = (*hi * 3) / 2; } +} + int pd0_gen_desc(int level, pd0_desc *d) { memset(d, 0, sizeof *d); d->n_obs = 2; d->n_channels = 1; - d->reset_min = -U(2.0); d->reset_max = U(2.0); + pd0_gen_reset_box(level, 0, &d->reset_min, &d->reset_max); /* describe carries one pair: variable 0's box */ d->episode_max_steps = PD0_EPISODE_STEPS; d->budget_steps = 3000; d->budget_episodes = 300; d->dt_micro = U(0.05); d->chan_min[0] = -U(2.0); d->chan_max[0] = U(2.0); switch (level) { - case PD0_L0: /* rev 2 (80d7808): pushes [-0.1, 0.1], 60 episodes of 50 steps */ + case PD0_L0: /* rev 3: 20 steps per episode, 3000 steps = 150 episodes, pushes [-0.1, 0.1] */ d->dt_micro = U(1.0); d->chan_min[0] = -U(0.1); d->chan_max[0] = U(0.1); - d->episode_max_steps = 50; d->budget_episodes = 60; + d->episode_max_steps = 20; d->budget_episodes = 150; break; case PD0_L1: case PD0_L2: case PD0_L4: break; case PD0_L3: d->n_obs = 4; d->n_channels = 2; d->chan_min[1] = -U(2.0); d->chan_max[1] = U(2.0); break; @@ -36,25 +71,27 @@ int pd0_gen_desc(int level, pd0_desc *d) { return 0; } -int pd0_gen_init(pd0_gen *g, int level, uint64_t seed) { +int pd0_gen_init_cap(pd0_gen *g, int level, uint64_t seed, int redraw_cap) { memset(g, 0, sizeof *g); g->level = level; pd0_rng c; pd0_stream(&c, seed, "const"); + const pd0_crange *t; + int n = pd0_gen_const_table(level, &t); + for (int i = 0; i < n; i++) g->k[i] = pd0_const(&c, t[i].lo, t[i].hi); /* draw order = table order */ switch (level) { - case PD0_L0: break; - case PD0_L1: g->k[0] = pd0_const(&c, U(1.0), U(4.0)); break; /* rev 2: [1.0, 4.0] */ - case PD0_L2: g->k[0] = pd0_const(&c, U(1.0), U(9.0)); g->k[1] = pd0_const(&c, U(0.2), U(2.0)); break; - case PD0_L3: g->k[0] = pd0_const(&c, U(1.0), U(4.0)); g->k[1] = pd0_const(&c, U(0.5), U(2.0)); break; - case PD0_L4: g->k[0] = pd0_const(&c, U(1.0), U(4.0)); g->k[1] = pd0_const(&c, U(0.5), U(2.0)); break; - case PD0_L5: - g->k[0] = pd0_const(&c, U(1.0), U(9.0)); g->k[1] = pd0_const(&c, U(0.2), U(2.0)); - g->sigma_obs = U(0.02); - break; + case PD0_L0: case PD0_L1: case PD0_L2: case PD0_L3: case PD0_L4: break; + case PD0_L5: g->sigma_obs = U(0.02); break; case PD0_L6: - g->k[0] = pd0_const(&c, U(2.0), U(5.0)); g->k[1] = pd0_const(&c, U(0.5), U(1.0)); - g->k[2] = pd0_const(&c, U(1.0), U(2.0)); g->k[3] = pd0_const(&c, U(0.5), U(1.0)); g->n_hidden = 1; + /* spec 4.1 rev 3: while m*q/w > 0.7*k redraw m then q from the same stream. + * Exact integer test (no rounding): m*q/w > 0.7*k <=> 10*M*Q > 7*K*W in micro units. */ + while (10 * g->k[2] * g->k[3] > 7 * g->k[0] * g->k[1]) { + if (g->redraws >= redraw_cap) { g->invalid = 1; return -1; } /* reached the cap: invalid seed */ + g->k[2] = pd0_const(&c, t[2].lo, t[2].hi); + g->k[3] = pd0_const(&c, t[3].lo, t[3].hi); + g->redraws++; + } break; case PD0_LEVEL_NULL: g->sigma_null = U(0.5); break; default: return -1; @@ -62,6 +99,8 @@ int pd0_gen_init(pd0_gen *g, int level, uint64_t seed) { return 0; } +int pd0_gen_init(pd0_gen *g, int level, uint64_t seed) { return pd0_gen_init_cap(g, level, seed, PD0_L6_REDRAW_CAP); } + static int oob(int64_t v) { return !pd0_guard_in_box(v); } int pd0_gen_step(const pd0_gen *g, const int64_t *s, int64_t h, const int64_t *u, int64_t dt, @@ -105,7 +144,7 @@ int pd0_gen_step(const pd0_gen *g, const int64_t *s, int64_t h, const int64_t *u break; } case PD0_L6: { - const int64_t m = g->k[1], w = g->k[2], q = g->k[3]; + const int64_t w = g->k[1], m = g->k[2], q = g->k[3]; /* draw order k, w, m, q */ o[0] = s[0] + pd0_mul(s[1], dt); #ifdef PD0_MUTANT_LATENT_SIGN const int64_t lat = -pd0_mul(m, h); /* wrong latent sign: the spec says +m*h */ @@ -189,8 +228,8 @@ int pd0_gen_true_relation(const pd0_gen *g, int64_t dt, pd0_relation *r) { pd0_eq *eh = &r->eq[2]; eh->target = 2; r->n_eq = 3; add_var(e0, dt, 1); - add_var(e1, -pd0_mul(k, dt), 0); add_var(e1, pd0_mul(g->k[1], dt), 2); add_ch(e1, dt, 0, nv); - add_var(eh, -pd0_mul(g->k[2], dt), 2); add_var(eh, pd0_mul(g->k[3], dt), 0); + add_var(e1, -pd0_mul(k, dt), 0); add_var(e1, pd0_mul(g->k[2], dt), 2); add_ch(e1, dt, 0, nv); /* m = k[2] */ + add_var(eh, -pd0_mul(g->k[1], dt), 2); add_var(eh, pd0_mul(g->k[3], dt), 0); /* w = k[1], q = k[3] */ break; } default: return -1; diff --git a/src/physics0/pd0_gen.h b/src/physics0/pd0_gen.h index 19ef72345..43fced074 100644 --- a/src/physics0/pd0_gen.h +++ b/src/physics0/pd0_gen.h @@ -14,6 +14,11 @@ enum { PD0_L0 = 0, PD0_L1, PD0_L2, PD0_L3, PD0_L4, PD0_L5, PD0_L6, PD0_LEVEL_NULL = 7, PD0_LEVELS = 8 }; #define PD0_MAX_CONST 4 +#define PD0_L6_REDRAW_CAP 1000 /* spec 4.1 rev 3 */ + +/* one declared constant range (micro), in draw order; the single table the + * generator draws from and the oracle range check reads (spec 4.1) */ +typedef struct { const char *name; int64_t lo, hi; } pd0_crange; typedef struct { int level; @@ -21,13 +26,23 @@ typedef struct { int64_t sigma_obs; /* L5 observation noise, else 0 */ int64_t sigma_null; /* NULL world draw sd, else 0 */ int n_hidden; /* L6: 1 */ + int redraws; /* L6: m,q redraws used by the 0.7*k stability rule (spec 4.1 rev 3) */ + int invalid; /* L6: 1 if the redraw cap was reached: the seed is invalid and skipped */ } pd0_gen; const char *pd0_gen_level_name(int level); /* describe record for a level (spec table section 4) */ int pd0_gen_desc(int level, pd0_desc *d); -/* draw the level's constants from the "const" stream of seed */ +/* declared constant ranges of a level in draw order; returns the count (0: none) */ +int pd0_gen_const_table(int level, const pd0_crange **t); +/* reset box of observed variable var (spec 4 rev 3) and scoring boxes (spec 6.1 rev 3: + * in-box = reset box, extrap = 1.5 x it); the describe record carries variable 0 only */ +void pd0_gen_reset_box(int level, int var, int64_t *lo, int64_t *hi); +void pd0_gen_score_box(int level, int var, int extrap, int64_t *lo, int64_t *hi); +/* draw the level's constants from the "const" stream of seed; returns -1 for an invalid + * L6 seed (redraw cap reached, g->invalid set, g->redraws recorded) */ int pd0_gen_init(pd0_gen *g, int level, uint64_t seed); +int pd0_gen_init_cap(pd0_gen *g, int level, uint64_t seed, int redraw_cap); /* cap is a parameter for tests */ /* one tick: old state in, new state out (explicit Euler, simultaneous). * u[] has one entry per channel (undriven channels 0). noise/null streams are * the world's; obs_out receives what the learner sees (state + noise, or the diff --git a/src/physics0/pd0_guard.c b/src/physics0/pd0_guard.c index 3e20b07e1..ff6b65b48 100644 --- a/src/physics0/pd0_guard.c +++ b/src/physics0/pd0_guard.c @@ -14,3 +14,10 @@ int pd0_guard_reset_ok(const pd0_desc *d, const int64_t *vals, uint8_t n_vals) { } int pd0_guard_in_box(int64_t v) { return v <= PD0_BOUND && v >= -PD0_BOUND; } + +int pd0_guard_reset_ok_box(const int64_t *lo, const int64_t *hi, uint8_t n_obs, const int64_t *vals, uint8_t n_vals) { + if (n_vals != n_obs) return 0; + for (unsigned i = 0; i < n_vals; i++) + if (vals[i] < lo[i] || vals[i] > hi[i]) return 0; + return 1; +} diff --git a/src/physics0/pd0_guard.h b/src/physics0/pd0_guard.h index 5baef74d8..b2f2e7f37 100644 --- a/src/physics0/pd0_guard.h +++ b/src/physics0/pd0_guard.h @@ -18,6 +18,9 @@ int pd0_guard_step_ok(const pd0_desc *d, uint8_t channel, int64_t value); /* 1 if n_vals == n_obs and every value is in [reset_min, reset_max] */ int pd0_guard_reset_ok(const pd0_desc *d, const int64_t *vals, uint8_t n_vals); +/* same with one inclusive box per observed variable (spec 4 rev 3: L0 s1 and L4 differ from [-2, 2]); + * the caller supplies the boxes, so the guard still holds no generator knowledge */ +int pd0_guard_reset_ok_box(const int64_t *lo, const int64_t *hi, uint8_t n_obs, const int64_t *vals, uint8_t n_vals); /* 1 if a post-step observed or hidden value is inside |v| <= PD0_BOUND */ int pd0_guard_in_box(int64_t v); diff --git a/src/physics0/pd0_world.c b/src/physics0/pd0_world.c index 2af739d80..77fa16f8f 100644 --- a/src/physics0/pd0_world.c +++ b/src/physics0/pd0_world.c @@ -12,6 +12,7 @@ int pd0_world_init(pd0_world *w, int level, uint64_t seed) { memset(w, 0, sizeof *w); if (pd0_gen_desc(level, &w->desc) != 0 || pd0_gen_init(&w->gen, level, seed) != 0) return -1; w->seed = seed; + for (int i = 0; i < w->desc.n_obs; i++) pd0_gen_reset_box(level, i, &w->reset_lo[i], &w->reset_hi[i]); pd0_stream(&w->noise, seed, "noise"); pd0_stream(&w->null, seed, "null"); return 0; @@ -50,7 +51,7 @@ void pd0_world_reset(pd0_world *w, const int64_t *vals, uint8_t n_vals, pd0_rec w->episodes_used++; if (w->in_episode || w->seq) w->episode++; r->episode = w->episode; - if (!pd0_guard_reset_ok(&w->desc, vals, n_vals)) { /* STAND_IN guard: refused, still charged */ + if (!pd0_guard_reset_ok_box(w->reset_lo, w->reset_hi, w->desc.n_obs, vals, n_vals)) { /* STAND_IN guard: refused, still charged */ r->status = PD0_REFUSED_RANGE; w->in_episode = 0; seal(w, r); diff --git a/src/physics0/pd0_world.h b/src/physics0/pd0_world.h index 234ffdcf3..dca12428e 100644 --- a/src/physics0/pd0_world.h +++ b/src/physics0/pd0_world.h @@ -38,6 +38,7 @@ int pd0_chan_step(pd0_chan *c, uint8_t channel, int64_t value, pd0_rec *r); typedef struct { pd0_gen gen; pd0_desc desc; + int64_t reset_lo[PD0_MAX_OBS], reset_hi[PD0_MAX_OBS]; /* per-variable reset box (the describe record carries variable 0) */ uint64_t seed; pd0_rng noise, null; int64_t s[PD0_MAX_OBS], h; diff --git a/tests/physics0/pd0_calib.c b/tests/physics0/pd0_calib.c index f823071fe..f100ad8cf 100644 --- a/tests/physics0/pd0_calib.c +++ b/tests/physics0/pd0_calib.c @@ -37,8 +37,13 @@ void pd0_calib_heldout(const pd0_gen *g, const pd0_desc *d, uint64_t seed, const memset(&s, 0, sizeof s); s.n_obs = d->n_obs; s.n_steps = PD0_CALIB_STEPS; - int64_t box = e < PD0_CALIB_EPISODES / 2 ? 2000000 : 3000000; - for (int v = 0; v < d->n_obs; v++) s.reset[v] = pd0_const(&sc, -box, box); + /* spec 6.1 rev 3: first half in-box = the reset box of each variable, second half the 1.5x extrapolation box */ + const int extrap = e >= PD0_CALIB_EPISODES / 2; + for (int v = 0; v < d->n_obs; v++) { + int64_t lo, hi; + pd0_gen_score_box(g->level, v, extrap, &lo, &hi); + s.reset[v] = pd0_const(&sc, lo, hi); + } for (int i = 0; i < s.n_steps; i++) { s.channel[i] = (uint8_t)(pd0_next(&sc) % d->n_channels); s.value[i] = pd0_const(&sc, d->chan_min[s.channel[i]], d->chan_max[s.channel[i]]); @@ -77,7 +82,7 @@ int pd0_calib_gather(int level, uint64_t seed, pd0_gather *out) { pd0_rec r; for (;;) { int64_t reset[PD0_MAX_OBS]; - for (int v = 0; v < w.desc.n_obs; v++) reset[v] = pd0_const(&rr, w.desc.reset_min, w.desc.reset_max); + for (int v = 0; v < w.desc.n_obs; v++) reset[v] = pd0_const(&rr, w.reset_lo[v], w.reset_hi[v]); pd0_world_reset(&w, reset, w.desc.n_obs, &r); if (r.status == PD0_BUDGET_EXHAUSTED) break; if (r.status == PD0_REFUSED_RANGE) { out->refused++; continue; } diff --git a/tests/physics0/pd0_calib.h b/tests/physics0/pd0_calib.h index b7c199ad5..c14bea746 100644 --- a/tests/physics0/pd0_calib.h +++ b/tests/physics0/pd0_calib.h @@ -16,8 +16,8 @@ #define PD0_GATHER_MAX 8192 typedef struct { - double nrmse_inbox; /* 20-step rollout, 10 episodes reset in [-2, 2] */ - double nrmse_extrap; /* 20-step rollout, 10 episodes reset in [-3, 3] */ + double nrmse_inbox; /* 20-step rollout, 10 episodes reset in the reset box (spec 6.1 rev 3) */ + double nrmse_extrap; /* 20-step rollout, 10 episodes reset in 1.5 x the reset box */ double nrmse_onestep; /* one-step from the true state, all 20 episodes */ int truth_oob_episodes; /* truth left +-10 inside a scoring episode (steps after that dropped) */ } pd0_calib_result; diff --git a/tests/physics0/pd0_oracle.c b/tests/physics0/pd0_oracle.c index 8f2eb4a69..af07154c3 100644 --- a/tests/physics0/pd0_oracle.c +++ b/tests/physics0/pd0_oracle.c @@ -92,8 +92,13 @@ static int oracle_fit_l6(const pd0_relation *truth, const pd0_gather *g, pd0_rel if (l6_estimate(g, dt, &e)) return -1; g_l6_est = e; g_l6_err[0] = l6_ppm(e.k, ktr); g_l6_err[1] = l6_ppm(e.w, w_tr); g_l6_err[2] = l6_ppm(e.mq, m * q); - /* the form's declared constant ranges (spec 4.1): k [2,5], w [1,2], m*q [0.25,1] */ - g_l6_in_range = e.k >= 2.0 && e.k <= 5.0 && e.w >= 1.0 && e.w <= 2.0 && e.mq >= 0.25 && e.mq <= 1.0; + /* the declared constant ranges come from the generator's own table (pd0_gen_const_table), never hard-coded here: + * k, w as declared, and m*q over [m_lo*q_lo, m_hi*q_hi] */ + const pd0_crange *rt; + pd0_gen_const_table(PD0_L6, &rt); /* draw order k, w, m, q */ + const double mq_lo = (double)rt[2].lo / 1e6 * ((double)rt[3].lo / 1e6), mq_hi = (double)rt[2].hi / 1e6 * ((double)rt[3].hi / 1e6); + g_l6_in_range = e.k >= (double)rt[0].lo / 1e6 && e.k <= (double)rt[0].hi / 1e6 && e.w >= (double)rt[1].lo / 1e6 && + e.w <= (double)rt[1].hi / 1e6 && e.mq >= mq_lo && e.mq <= mq_hi; out->eq[1].t[0].coef = -(int64_t)llround(e.k * dt * 1e6); out->eq[1].t[1].coef = (int64_t)llround(e.mq * dt * 1e6); /* h scale: q = 1 */ out->eq[2].t[0].coef = -(int64_t)llround(e.w * dt * 1e6); @@ -166,15 +171,35 @@ int main(int argc, char **argv) { if (!f) { perror(path); return 2; } int v1_exact = 1, v1_fit = 1, v3 = 1; double worst_breach = 0; - fprintf(f, "{\n \"receipt\": \"PD0_G1\",\n \"level\": \"%s\",\n \"spec\": \"aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 2f881b1 (rev 2)\",\n" + fprintf(f, "{\n \"receipt\": \"PD0_G1\",\n \"level\": \"%s\",\n \"spec\": \"aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)\",\n" " \"recorder\": \"%s\",\n \"range_guard\": \"%s\",\n \"bounds\": {\"inbox\": %.3f, \"extrap\": %.3f, \"onestep\": %.3f, \"coef_ppm\": %lld, \"size\": %d},\n" - " \"instances\": [\n", + " \"scoring_box_rule\": \"spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable\",\n", pd0_gen_level_name(level), "STAND_IN", "STAND_IN", BOUND_IN[level], BOUND_EX[level], BOUND_ONE[level], (long long)COEF_PPM[level], pd0_gen_true_size(level) + 2); + { + pd0_desc dd; + pd0_gen_desc(level, &dd); + fprintf(f, " \"episode_max_steps\": %u, \"budget_steps\": %u, \"budget_episodes\": %u,\n \"boxes_micro\": [", dd.episode_max_steps, dd.budget_steps, dd.budget_episodes); + for (int v = 0; v < dd.n_obs; v++) { + int64_t rl, rh, el, eh; + pd0_gen_score_box(level, v, 0, &rl, &rh); + pd0_gen_score_box(level, v, 1, &el, &eh); + fprintf(f, "%s{\"var\": \"s%d\", \"reset_and_inbox\": [%lld, %lld], \"extrap\": [%lld, %lld]}", v ? ", " : "", v, (long long)rl, (long long)rh, (long long)el, (long long)eh); + } + fprintf(f, "],\n \"constant_ranges_micro\": ["); + const pd0_crange *ct; + int nc = pd0_gen_const_table(level, &ct); + for (int i = 0; i < nc; i++) fprintf(f, "%s{\"name\": \"%s\", \"lo\": %lld, \"hi\": %lld}", i ? ", " : "", ct[i].name, (long long)ct[i].lo, (long long)ct[i].hi); + fprintf(f, "],\n \"instances\": [\n"); + } for (int si = 0; si < SEEDS; si++) { uint64_t seed = (uint64_t)(si + 1); pd0_gen g; pd0_desc d; - pd0_gen_init(&g, level, seed); + if (pd0_gen_init(&g, level, seed) != 0) { /* L6 redraw cap reached: invalid seed, recorded and skipped (spec 4.1) */ + fprintf(f, " {\"seed\": %llu, \"invalid\": true, \"redraws\": %d}%s\n", (unsigned long long)seed, g.redraws, si + 1 < SEEDS ? "," : ""); + v1_exact = 0; + continue; + } pd0_gen_desc(level, &d); pd0_relation truth, fit, sparse; pd0_gen_true_relation(&g, d.dt_micro, &truth); @@ -186,8 +211,8 @@ int main(int argc, char **argv) { if (have_fit) pd0_calib_heldout(&g, &d, seed, &fit, &r_fit); int have_sparse = pd0_sparse_fit(&gather, d.n_obs, d.n_channels, &sparse) == 0; if (have_sparse) pd0_calib_heldout(&g, &d, seed, &sparse, &r_sparse); - fprintf(f, " {\"seed\": %llu, \"constants_micro\": [%lld, %lld, %lld, %lld], \"fit_transitions\": %d, \"fit_episodes\": %d,\n", - (unsigned long long)seed, (long long)g.k[0], (long long)g.k[1], (long long)g.k[2], (long long)g.k[3], gather.n, gather.episodes); + fprintf(f, " {\"seed\": %llu, \"constants_draw_order\": \"%s\", \"redraws\": %d, \"constants_micro\": [%lld, %lld, %lld, %lld], \"fit_transitions\": %d, \"fit_episodes\": %d,\n", + (unsigned long long)seed, level == PD0_L6 ? "k,w,m,q" : "table order", g.redraws, (long long)g.k[0], (long long)g.k[1], (long long)g.k[2], (long long)g.k[3], gather.n, gather.episodes); emit_result(f, "oracle_exact", &r_exact, &truth, &truth, level, &v1_exact); fprintf(f, ",\n"); if (have_fit) emit_result(f, "oracle_fit", &r_fit, &fit, &truth, level, &v1_fit); @@ -201,7 +226,7 @@ int main(int argc, char **argv) { fprintf(f, " ],\n \"v3_breach\": ["); for (uint64_t seed = 1; seed <= 20; seed++) { pd0_gather gg; - pd0_calib_gather(level, seed, &gg); + if (pd0_calib_gather(level, seed, &gg) != 0) continue; /* invalid seed */ double rate = gg.episodes ? (double)gg.oob_episodes / gg.episodes : 0; if (rate > worst_breach) worst_breach = rate; if (rate > 0.05) v3 = 0; diff --git a/tests/physics0/test_pd0_world.c b/tests/physics0/test_pd0_world.c index d925745d8..09c6ce9fb 100644 --- a/tests/physics0/test_pd0_world.c +++ b/tests/physics0/test_pd0_world.c @@ -7,7 +7,7 @@ * record bytes, in-process and through a forked world process over pipes; * - STAND_IN guard: out-of-range step or reset -> REFUSED_RANGE, state kept, * still charged; OUT_OF_BOUNDS hides the post-step state and ends the - * episode; EPISODE_END at episode_max_steps (50 for L0, 100 otherwise); + * episode; EPISODE_END at episode_max_steps (20 for L0, 100 otherwise); * BUDGET_EXHAUSTED once either budget is spent; one channel per step; * - pd0_splitmix64 equals turing_splitmix64 (src/turing/history_selector.c) * for 10^5 outputs from 16 seeds: the "record the check" of section 3; @@ -104,7 +104,11 @@ static size_t script(pd0_chan *c, int level, uint8_t *out, size_t cap, pd0_rec * pd0_rec rec; for (int ep = 0; ep < 3; ep++) { int64_t reset[PD0_MAX_OBS]; - for (int v = 0; v < d.n_obs; v++) reset[v] = pd0_const(&r, d.reset_min, d.reset_max); + for (int v = 0; v < d.n_obs; v++) { + int64_t lo, hi; + pd0_gen_reset_box(level, v, &lo, &hi); /* per-variable reset box (spec 4 rev 3) */ + reset[v] = pd0_const(&r, lo, hi); + } if (pd0_chan_reset(c, d.n_obs, reset, &rec) != 0) return 0; n += pd0_rec_encode(&rec, out + n, cap - n); for (int i = 0; i < 25; i++) { @@ -114,7 +118,6 @@ static size_t script(pd0_chan *c, int level, uint8_t *out, size_t cap, pd0_rec * if (rec.status != PD0_OK) break; } } - (void)level; *last = rec; return n; } @@ -212,11 +215,12 @@ static void t_rules(void) { pd0_world_init(&w0, PD0_L0, 1); int64_t z[2] = {0, 0}; pd0_world_reset(&w0, z, 2, &r); - for (int i = 0; i < 50; i++) pd0_world_step(&w0, PD0_CH_NONE, 0, &r); - CHECK(r.status == PD0_EPISODE_END && w0.desc.episode_max_steps == 50 && w0.desc.chan_max[0] == 100000 && w0.desc.budget_episodes == 60, - "L0 rev 2 describe: 50 steps, pushes 0.1, 60 episodes"); + for (int i = 0; i < 20; i++) pd0_world_step(&w0, PD0_CH_NONE, 0, &r); + CHECK(r.status == PD0_EPISODE_END && w0.desc.episode_max_steps == 20 && w0.desc.chan_max[0] == 100000 && w0.desc.budget_episodes == 150 && + w0.desc.budget_steps == 3000, + "L0 rev 3 describe: 20 steps, pushes 0.1, 3000 steps = 150 episodes"); /* OUT_OF_BOUNDS hides the post-step state */ - int64_t fast[2] = {2000000, 2000000}; + int64_t fast[2] = {2000000, 200000}; /* corner of the L0 reset box (s0 [-2,2], s1 [-0.2,0.2]) */ pd0_world_reset(&w0, fast, 2, &r); int saw_oob = 0; for (int i = 0; i < 20 && !saw_oob; i++) { @@ -228,13 +232,13 @@ static void t_rules(void) { CHECK(r.status == PD0_BUDGET_EXHAUSTED, "episode closed after OOB"); } } - CHECK(saw_oob, "L0 from (2,2) with +0.1 pushes leaves +-10 within 20 steps"); - /* budget: L0 60 episodes */ + CHECK(saw_oob, "L0 from (2, 0.2) with +0.1 pushes leaves +-10 within 20 steps"); + /* budget: L0 150 episodes */ pd0_world wb; pd0_world_init(&wb, PD0_L0, 2); int exhausted = 0; - for (int e = 0; e < 70; e++) { pd0_world_reset(&wb, z, 2, &r); exhausted += r.status == PD0_BUDGET_EXHAUSTED; } - CHECK(exhausted == 10, "episode budget: %d exhausted of 70 resets", exhausted); + for (int e = 0; e < 160; e++) { pd0_world_reset(&wb, z, 2, &r); exhausted += r.status == PD0_BUDGET_EXHAUSTED; } + CHECK(exhausted == 10, "episode budget: %d exhausted of 160 resets", exhausted); /* guard functions directly */ CHECK(pd0_guard_in_box(PD0_BOUND) && !pd0_guard_in_box(PD0_BOUND + 1) && pd0_guard_in_box(-PD0_BOUND), "box edges"); } @@ -281,11 +285,88 @@ static void t_null_world(void) { CHECK(a.desc.budget_steps == 3000 && a.desc.n_obs == 2, "NULL world has the L2 interface and budget"); } +/* revision 3 (physics 5bd2b04): per-variable boxes, L0 s1 box, L4 box, L6 order and redraw rule */ +static void t_rev3(void) { + pd0_rec r; + int64_t lo, hi; + /* reset boxes: spec 4 table notes */ + pd0_gen_reset_box(PD0_L0, 0, &lo, &hi); CHECK(lo == -2000000 && hi == 2000000, "L0 s0 box [-2,2]"); + pd0_gen_reset_box(PD0_L0, 1, &lo, &hi); CHECK(lo == -200000 && hi == 200000, "L0 s1 box [-0.2,0.2]"); + pd0_gen_reset_box(PD0_L4, 0, &lo, &hi); CHECK(lo == -1000000 && hi == 1000000, "L4 s0 box [-1,1]"); + pd0_gen_reset_box(PD0_L4, 1, &lo, &hi); CHECK(lo == -1000000 && hi == 1000000, "L4 s1 box [-1,1]"); + pd0_gen_reset_box(PD0_L2, 1, &lo, &hi); CHECK(lo == -2000000 && hi == 2000000, "L2 box [-2,2]"); + /* scoring boxes: in = reset box, extrap = 1.5 x */ + pd0_gen_score_box(PD0_L0, 1, 1, &lo, &hi); CHECK(lo == -300000 && hi == 300000, "L0 s1 extrap 1.5x = 0.3"); + pd0_gen_score_box(PD0_L4, 0, 1, &lo, &hi); CHECK(lo == -1500000 && hi == 1500000, "L4 extrap 1.5x = 1.5"); + pd0_gen_score_box(PD0_L1, 0, 1, &lo, &hi); CHECK(lo == -3000000 && hi == 3000000, "L1 extrap 3"); + pd0_gen_score_box(PD0_L1, 0, 0, &lo, &hi); CHECK(lo == -2000000 && hi == 2000000, "L1 in-box 2"); + /* the world enforces the per-variable box: L0 s1 = 0.3 refused, charged, no episode open */ + pd0_world w; + pd0_world_init(&w, PD0_L0, 1); + int64_t bad[2] = {0, 300000}, ok[2] = {1999999, -200000}; + pd0_world_reset(&w, bad, 2, &r); + CHECK(r.status == PD0_REFUSED_RANGE && w.episodes_used == 1 && !w.in_episode, "L0 s1 outside [-0.2,0.2]: refused, charged, no episode"); + pd0_world_step(&w, PD0_CH_NONE, 0, &r); + CHECK(r.status == PD0_BUDGET_EXHAUSTED, "step after a refused reset has no open episode"); + pd0_world_reset(&w, ok, 2, &r); + CHECK(r.status == PD0_OK && w.in_episode, "box edge accepted"); + pd0_world w4; + pd0_world_init(&w4, PD0_L4, 1); + int64_t b4[2] = {1000001, 0}, g4[2] = {-1000000, 1000000}; + pd0_world_reset(&w4, b4, 2, &r); + CHECK(r.status == PD0_REFUSED_RANGE, "L4 s0 = 1.000001 refused"); + pd0_world_reset(&w4, g4, 2, &r); + CHECK(r.status == PD0_OK, "L4 corner (-1, 1) accepted"); + CHECK(w4.desc.reset_min == -1000000 && w4.desc.reset_max == 1000000, "L4 describe box [-1,1]"); + /* L6 declared ranges and draw order k, w, m, q */ + const pd0_crange *t; + CHECK(pd0_gen_const_table(PD0_L6, &t) == 4 && !strcmp(t[0].name, "k") && !strcmp(t[1].name, "w") && !strcmp(t[2].name, "m") && !strcmp(t[3].name, "q") && + t[0].lo == 3000000 && t[0].hi == 5000000 && t[1].lo == 500000 && t[1].hi == 1000000 && t[2].lo == 1000000 && t[2].hi == 2000000 && + t[3].lo == 1000000 && t[3].hi == 2000000, "L6 table k[3,5] w[0.5,1] m[1,2] q[1,2] in draw order"); + int saw_redraw = 0, max_redraw = 0; + for (uint64_t seed = 1; seed <= 200; seed++) { + pd0_gen g; + CHECK(pd0_gen_init(&g, PD0_L6, seed) == 0 && !g.invalid, "L6 seed %llu valid", (unsigned long long)seed); + int in = 1; + for (int i = 0; i < 4; i++) in &= g.k[i] >= t[i].lo && g.k[i] <= t[i].hi; + CHECK(in, "L6 seed %llu constants inside the table", (unsigned long long)seed); + CHECK(10 * g.k[2] * g.k[3] <= 7 * g.k[0] * g.k[1], "L6 seed %llu satisfies m*q/w <= 0.7 k", (unsigned long long)seed); + saw_redraw |= g.redraws > 0; + if (g.redraws > max_redraw) max_redraw = g.redraws; + /* replay by hand: draw k, w, m, q, then redraw m then q while the rule fails */ + pd0_rng c; + pd0_stream(&c, seed, "const"); + int64_t k = pd0_const(&c, t[0].lo, t[0].hi), ww = pd0_const(&c, t[1].lo, t[1].hi), m = pd0_const(&c, t[2].lo, t[2].hi), q = pd0_const(&c, t[3].lo, t[3].hi); + int n = 0; + while (10 * m * q > 7 * k * ww) { m = pd0_const(&c, t[2].lo, t[2].hi); q = pd0_const(&c, t[3].lo, t[3].hi); n++; } + CHECK(g.k[0] == k && g.k[1] == ww && g.k[2] == m && g.k[3] == q && g.redraws == n, "L6 seed %llu follows the spec draw order and redraw rule", (unsigned long long)seed); + } + CHECK(saw_redraw, "some development seed exercises the redraw rule (max redraws %d)", max_redraw); + /* cap: a seed that needs a redraw is invalid with cap 0, recorded as such; valid with the spec cap */ + for (uint64_t seed = 1; seed <= 200; seed++) { + pd0_gen g, g0; + pd0_gen_init(&g, PD0_L6, seed); + if (!g.redraws) continue; + CHECK(pd0_gen_init_cap(&g0, PD0_L6, seed, 0) != 0 && g0.invalid && g0.redraws == 0, "redraw cap reached: seed invalid"); + pd0_world wi; + CHECK(pd0_world_init(&wi, PD0_L6, seed) == 0, "same seed valid at the spec cap 1000"); + break; + } + /* the true relation reads the new draw order: m in eq s1, w and q in eq h */ + pd0_gen g; + pd0_relation rel; + pd0_gen_init(&g, PD0_L6, 3); + pd0_gen_true_relation(&g, 50000, &rel); + CHECK(rel.eq[1].t[1].coef == pd0_mul(g.k[2], 50000) && rel.eq[2].t[0].coef == -pd0_mul(g.k[1], 50000) && rel.eq[2].t[1].coef == pd0_mul(g.k[3], 50000), + "L6 relation: m = 3rd draw, w = 2nd, q = 4th"); +} + int main(void) { t_wire(); t_rules(); t_splitmix(); t_null_world(); + t_rev3(); t_repro_and_process(); printf("checks=%lu failures=%lu\n", checks, failures); printf("PHYSICS0_G0: %s\n", failures ? "FAIL" : "PASS"); From 8afce287e4a414789486715c83390e31b8182c44 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 19:13:48 -0500 Subject: [PATCH 2/4] physics0: rev 3 receipts and calibration note (generated at 9e5ea8b) Co-Authored-By: Claude Fable 5.1 --- docs/physics0/CALIBRATION.md | 57 +++++++++++++++++++++++ evidence/physics0/pd0-g0-receipt-cut3.txt | 38 +++++++++++++++ evidence/physics0/pd0-oracle-L0-rev3.json | 42 +++++++++++++++++ evidence/physics0/pd0-oracle-L1-rev3.json | 42 +++++++++++++++++ evidence/physics0/pd0-oracle-L2-rev3.json | 42 +++++++++++++++++ evidence/physics0/pd0-oracle-L3-rev3.json | 42 +++++++++++++++++ evidence/physics0/pd0-oracle-L4-rev3.json | 42 +++++++++++++++++ evidence/physics0/pd0-oracle-L5-rev3.json | 42 +++++++++++++++++ evidence/physics0/pd0-oracle-L6-rev3.json | 47 +++++++++++++++++++ 9 files changed, 394 insertions(+) create mode 100644 evidence/physics0/pd0-g0-receipt-cut3.txt create mode 100644 evidence/physics0/pd0-oracle-L0-rev3.json create mode 100644 evidence/physics0/pd0-oracle-L1-rev3.json create mode 100644 evidence/physics0/pd0-oracle-L2-rev3.json create mode 100644 evidence/physics0/pd0-oracle-L3-rev3.json create mode 100644 evidence/physics0/pd0-oracle-L4-rev3.json create mode 100644 evidence/physics0/pd0-oracle-L5-rev3.json create mode 100644 evidence/physics0/pd0-oracle-L6-rev3.json diff --git a/docs/physics0/CALIBRATION.md b/docs/physics0/CALIBRATION.md index 7db154edd..faae0b697 100644 --- a/docs/physics0/CALIBRATION.md +++ b/docs/physics0/CALIBRATION.md @@ -2,6 +2,8 @@ **Spec:** aien-dev/physics `docs/PD0_HIDDEN_EQUATION_BENCHMARK.md` at `2f881b1` (revision 2; byte-identical to branch commit `80d7808`). Nothing in that file is edited here. Every number below was produced by `make physics0-test` on this commit (receipts `evidence/physics0/pd0-oracle-L.json`, `evidence/physics0/pd0-g0-receipt.txt`); the generators are `src/physics0/pd0_gen.c`, the calibration code `tests/physics0/pd0_calib.c`, `pd0_oracle.c`, `pd0_sparse.c`. +> **Revision 3 supersedes the numbers below.** Sections 1 to 4 and the L6 estimator note record the revision 2 runs and stay as history. The revision 3 numbers are in the last section ("Revision 3, substrate cut 3"); old receipts in `evidence/physics0/` are untouched. + **Scope (Direction 2, substrate):** this is the oracle solver and the reference sparse solver scored against the frozen section 6 bounds. No learner was scored, no ladder was run. Scoring here is the calibration code of a test binary, not the scorer component (another lane). ## 1. Method @@ -69,3 +71,58 @@ Method: the generator form is known to the oracle. With a = 1 - w*dt the latent | 5 | 2e-6 | 2e-6 | 2 | 6 | 6 | Bounds 0.03 in-box and 0.08 extrapolation: met by a wide margin; `oracle_fit` L6 PASS on 5 of 5 seeds. Mutant: with the sign of m*h flipped in the generator (`PD0_MUTANT_LATENT_SIGN`), `oracle_fit` FAILs on 5 of 5 seeds because the fitted m*q comes out negative (about -0.4 to -0.9, declared range 0.25 to 1). Note the refitted model still predicts the mutant world well; it is the declared-range check that fails, not the prediction bound. Numbers above come from evidence/physics0/pd0-oracle-L6-fit.json (cut 2; the cut 1 file pd0-oracle-L6.json is immutable and keeps oracle_fit NOT_RUN). Cut 2 G0 receipt: evidence/physics0/pd0-g0-receipt-cut2.txt. + +## Revision 3, substrate cut 3 + +**Spec:** aien-dev/physics `docs/PD0_HIDDEN_EQUATION_BENCHMARK.md` at `5bd2b04` (revision 3). **Omega commit that produced every number and receipt below:** `9e5ea8b5b5c1afa7a28cbcb0b2c463e51c96b538` (branch `hive/pd0-rev3`, on main `d0ca8ce`, which already contains #243, #246 and the L6 latent estimator #247). Run with `make physics0-test` and `make physics0-evidence` on a clean tree. No threshold was changed; the L6 range check and the generator read one table (`pd0_gen_const_table` in `src/physics0/pd0_gen.c`). + +New receipts (old ones untouched): `evidence/physics0/pd0-oracle-L0-rev3.json` to `pd0-oracle-L6-rev3.json` and `evidence/physics0/pd0-g0-receipt-cut3.txt`. Each G1 receipt now lists the reset box, the scoring boxes (in-box = reset box, extrapolation = 1.5x it, spec 6.1), the declared constant ranges and, per instance, the L6 redraw count. + +### What the code does now (spec lines) + +| Item | Value in code | Spec | +| --- | --- | --- | +| L0 episode length, budget | 20 steps, 3000 steps = 150 episodes | 2.2 table, 4 table, 4.1 L0 | +| L0 reset box | s0 [-2, 2], s1 [-0.2, 0.2]; push [-0.1, 0.1] | 4 (box notes), 4.1 L0 | +| L4 reset box | [-1, 1] both variables (k [1,4], b [0.5,2] unchanged) | 4 (box notes), 4.1 L4 | +| L6 ranges, draw order | k [3,5], w [0.5,1], m [1,2], q [1,2]; order k, w, m, q | 4.1 L6, 3 | +| L6 stability rule | while m*q/w > 0.7*k redraw m then q from the same stream; exact integer test `10*M*Q > 7*K*W` in micro-units; cap 1000 redraws, then the seed is invalid (`g.invalid`, `pd0_gen_init` returns -1, the oracle receipt records `"invalid": true`) | 4.1 L6 | +| Scoring boxes | in-box = reset box per variable, extrapolation = 1.5x (L0 s1 0.3, L4 1.5, others 3) | 6.1 last paragraph | +| Refused reset | status `REFUSED_RANGE`, costs one episode, no episode opened (a later step reports `BUDGET_EXHAUSTED`) | 2.3 | +| L6 `in_declared_ranges` | k, w and m*q (over [m_lo*q_lo, m_hi*q_hi] = [1, 4]) read from the same table the generator draws from | 4.1, task rule | + +### Results (seeds 1..5 for V1/V2, seeds 1..20 for V3) + +| Level | oracle_exact worst in-box / extrap | oracle_fit worst in-box / extrap | sparse_ref in-box range | V3 worst breach (seeds 1..20) | Verdict | +| --- | --- | --- | --- | --- | --- | +| L0 | 0 / 0 (truth leaves the box in at most 1 of 20 scoring episodes) | 0 / 0 | 0 | 0.0200 | V1 PASS, V3 PASS | +| L1 | 6e-6 / 5e-6 | 6e-6 / 5e-6 | 1e-6 to 1.7e-5 | 0.0000 | PASS | +| L2 | 5e-6 / 5e-6 | 1.3e-5 / 1.0e-5 | 3e-6 to 1.9e-5 | 0.0000 | PASS | +| L3 | 8e-6 / 5e-6 | 5e-6 / 4e-6 | 2e-6 to 5e-6 | 0.0323 | PASS | +| L4 | 1.2e-5 / 1.0e-5 | 1.3e-5 / 8e-6 | 6e-6 to 2.4e-5 | 0.0000 | PASS | +| L5 | 5e-6 / 5e-6 | 0.0104 / 0.0061 | 0.0018 to 0.0137 | 0.0000 | PASS | +| L6 (oracle_fit with the latent estimator) | 3e-6 / 4e-6 | 2e-6 / 3e-6 | latent-free, see below | 0.0000 | V1 PASS, V3 PASS | + +V3 matches the table in spec section 4.2 (L0 0.020, L3 0.032, the rest 0). + +### L6: V2 and the factor-3 condition (measured, not assumed) + +Draws (micro, order k, w, m, q) and redraws: seed 1 (3368868, 905570, 1643841, 1169109) 0 redraws; seed 2 4128392, 885899, 1150045, 1388809 with 1; seed 3 3794478, 685972, 1193802, 1388242 with 1; seed 4 4403162, 522824, 1163776, 1276070 with 7; seed 5 3292448, 990681, 1016836, 1491901 with 3. No invalid seed. + +| seed | latent-free in-box NRMSE (sparse_ref) | extrap | fails the 0.03 bound (V2) | >= 0.09 (factor 3, spec 6.3) | +| --- | --- | --- | --- | --- | +| 1 | 0.1422 | 0.0990 | yes | yes | +| 2 | 0.0740 | 0.0670 | yes | **no** | +| 3 | 0.1196 | 0.1001 | yes | yes | +| 4 | 0.0631 | 0.0671 | yes | **no** | +| 5 | 0.0941 | 0.1033 | yes | yes | + +Result: V2 PASS on 5 of 5 (a latent-free model fails 0.03 everywhere). The factor-3 condition (>= 0.09) is **met on 3 of 5 seeds (1, 3, 5) and NOT met on seeds 2 and 4**, so the L6 additional condition of spec 6.3 FAILS as the thresholds stand and L6 cannot pass; nothing was changed to hide this. These values (range 0.063 to 0.142) differ slightly from the figures quoted in spec 6.3 (0.069 to 0.138); the pass/fail picture (3 of 5) is the same. UNVERIFIED why the quoted figures differ (the sweep ran with local override macros, this run uses the generator directly; confidence: medium that it is only a difference in how the sweep drew its ranges). + +`oracle_fit` L6 PASS on 5 of 5, in declared ranges on all five; errors: k at most 2 ppm, w at most 16 ppm, m*q at most 11 ppm. Latent-sign mutant: `oracle_fit` FAILs on 5 of 5 (fitted m*q about -1.5 to -1.9, below the declared 1.0). Sign mutant (L1): caught. + +### Limits + +- The describe record (spec 2.2) carries one `reset_min`/`reset_max` pair. For L0 it holds the s0 box [-2, 2], so a learner is not told that s1 is limited to [-0.2, 0.2] and a reset with larger s1 is refused and charged (spec 2.3 "probing the bounds is not free"). The spec table does not say how to describe a per-variable box; the wire format was left unchanged. Spec owner: decide whether describe needs per-variable bounds. +- The scoring-box rule is implemented in `tests/physics0/pd0_calib.c` and written into the receipts. `src/physics0/score` (another lane) is not changed and must apply the same per-variable rule. +- The G0 receipt records the commit of the tree it ran on; this document and the receipts were added in the commit after `9e5ea8b`. diff --git a/evidence/physics0/pd0-g0-receipt-cut3.txt b/evidence/physics0/pd0-g0-receipt-cut3.txt new file mode 100644 index 000000000..06ff8deb0 --- /dev/null +++ b/evidence/physics0/pd0-g0-receipt-cut3.txt @@ -0,0 +1,38 @@ +receipt: PD0_G0 +spec: aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3) +recorder: STAND_IN +range_guard: STAND_IN +commit: 9e5ea8b5b5c1afa7a28cbcb0b2c463e51c96b538 +date_utc: 2026-10-04T00:13:10Z +--- test_pd0_world +checks=1914 failures=0 +PHYSICS0_G0: PASS +--- isolation +PHYSICS0_ISOLATION: PASS (4 learner-side objects clean) +--- G1 oracle +PHYSICS0_G1_V1_L0: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L0: PASS (worst breach rate 0.0200 over seeds 1..20) +PHYSICS0_G1_V1_L1: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L1: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L2: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L2: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L3: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L3: PASS (worst breach rate 0.0323 over seeds 1..20) +PHYSICS0_G1_V1_L4: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L4: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L5: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L5: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L6: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L6: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_ORACLE: PASS +--- osc differential +osc differential: runs=200000 mismatches=0 native=yes +PHYSICS0_OSC_DIFF: PASS +--- mutant +PHYSICS0_G1_V1_L1-mutant: FAIL (oracle_exact FAIL, oracle_fit FAIL) +PHYSICS0_G1_V3_L1-mutant: FAIL (worst breach rate 0.9907 over seeds 1..20) +PHYSICS0_ORACLE-mutant: FAIL +--- mutant latent sign +PHYSICS0_G1_V1_L6-mutlat: FAIL (oracle_exact FAIL, oracle_fit FAIL) +PHYSICS0_G1_V3_L6-mutlat: FAIL (worst breach rate 0.4432 over seeds 1..20) +PHYSICS0_ORACLE-mutlat: FAIL diff --git a/evidence/physics0/pd0-oracle-L0-rev3.json b/evidence/physics0/pd0-oracle-L0-rev3.json new file mode 100644 index 000000000..722c002fc --- /dev/null +++ b/evidence/physics0/pd0-oracle-L0-rev3.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L0", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 4}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 20, "budget_steps": 3000, "budget_episodes": 150, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-200000, 200000], "extrap": [-300000, 300000]}], + "constant_ranges_micro": [], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2980, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2980, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 1, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 1, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 1, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2980, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2976, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2975, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 5, "episodes": 150, "oob": 3, "rate": 0.0200}, {"seed": 6, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 7, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 9, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 12, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 13, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 14, "episodes": 150, "oob": 2, "rate": 0.0133}, {"seed": 15, "episodes": 150, "oob": 3, "rate": 0.0200}, {"seed": 16, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 17, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 150, "oob": 2, "rate": 0.0133}, {"seed": 20, "episodes": 150, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0200, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L1-rev3.json b/evidence/physics0/pd0-oracle-L1-rev3.json new file mode 100644 index 000000000..ebd9bd26f --- /dev/null +++ b/evidence/physics0/pd0-oracle-L1-rev3.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L1", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 5}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 4000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1553302, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000017, "nrmse_extrap": 0.000012, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2692588, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2191717, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [3104743, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1438672, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L2-rev3.json b/evidence/physics0/pd0-oracle-L2-rev3.json new file mode 100644 index 000000000..bd3a90936 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L2-rev3.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L2", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 6}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 9000000}, {"name": "c", "lo": 200000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2475472, 1660052, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000013, "nrmse_extrap": 0.000010, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000013, "nrmse_extrap": 0.000010, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [5513568, 1589238, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000017, "nrmse_extrap": 0.000015, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [4177912, 869501, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000019, "nrmse_extrap": 0.000018, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [6612648, 282166, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2169792, 1966451, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000011, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000022, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 5, "description_bits": 240, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L3-rev3.json b/evidence/physics0/pd0-oracle-L3-rev3.json new file mode 100644 index 000000000..0a369e7d5 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L3-rev3.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L3", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 10}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s2", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s3", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 4000000}, {"name": "g", "lo": 500000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1553302, 1716710, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2692588, 1657698, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2191717, 1057917, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 18, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 18, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [3104743, 568472, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000007, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1438672, 1972043, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 31, "oob": 1, "rate": 0.0323}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0323, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L4-rev3.json b/evidence/physics0/pd0-oracle-L4-rev3.json new file mode 100644 index 000000000..cb05c48e2 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L4-rev3.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L4", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 6}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-1000000, 1000000], "extrap": [-1500000, 1500000]}, {"var": "s1", "reset_and_inbox": [-1000000, 1000000], "extrap": [-1500000, 1500000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 4000000}, {"name": "b", "lo": 500000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1553302, 1716710, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000010, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000013, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000023, "nrmse_extrap": 0.000022, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2692588, 1657698, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000009, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2191717, 1057917, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000012, "nrmse_extrap": 0.000010, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000011, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 18, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000024, "nrmse_extrap": 0.000021, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [3104743, 568472, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1438672, 1972043, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000010, "nrmse_extrap": 0.000008, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000010, "nrmse_extrap": 0.000008, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000020, "nrmse_extrap": 0.000023, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L5-rev3.json b/evidence/physics0/pd0-oracle-L5-rev3.json new file mode 100644 index 000000000..26cc5ec59 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L5-rev3.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L5", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 100000, "size": 6}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 8000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 9000000}, {"name": "c", "lo": 200000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2475472, 1660052, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.010402, "nrmse_extrap": 0.006108, "nrmse_onestep": 0.001323, "truth_oob_episodes": 0, "coef_err_ppm": 18999, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.011437, "nrmse_extrap": 0.006926, "nrmse_onestep": 0.001053, "truth_oob_episodes": 0, "coef_err_ppm": 15288, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [5513568, 1589238, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.005873, "nrmse_extrap": 0.006430, "nrmse_onestep": 0.001315, "truth_oob_episodes": 0, "coef_err_ppm": 15340, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.005580, "nrmse_extrap": 0.006341, "nrmse_onestep": 0.001247, "truth_oob_episodes": 0, "coef_err_ppm": 14749, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [4177912, 869501, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.007047, "nrmse_extrap": 0.006858, "nrmse_onestep": 0.000724, "truth_oob_episodes": 0, "coef_err_ppm": 10097, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.013702, "nrmse_extrap": 0.013150, "nrmse_onestep": 0.001731, "truth_oob_episodes": 0, "coef_err_ppm": 16680, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [6612648, 282166, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.002034, "nrmse_extrap": 0.002018, "nrmse_onestep": 0.000209, "truth_oob_episodes": 0, "coef_err_ppm": 9214, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.001774, "nrmse_extrap": 0.001682, "nrmse_onestep": 0.000212, "truth_oob_episodes": 0, "coef_err_ppm": 6024, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2169792, 1966451, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.006170, "nrmse_extrap": 0.005699, "nrmse_onestep": 0.001178, "truth_oob_episodes": 0, "coef_err_ppm": 10572, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.005869, "nrmse_extrap": 0.008046, "nrmse_onestep": 0.001645, "truth_oob_episodes": 0, "coef_err_ppm": 24352, "size": 5, "description_bits": 240, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 80, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L6-rev3.json b/evidence/physics0/pd0-oracle-L6-rev3.json new file mode 100644 index 000000000..96dcffa49 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L6-rev3.json @@ -0,0 +1,47 @@ +{ + "receipt": "PD0_G1", + "level": "L6", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.030, "extrap": 0.080, "onestep": -1.000, "coef_ppm": -1, "size": 9}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 8000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 3000000, "hi": 5000000}, {"name": "w", "lo": 500000, "hi": 1000000}, {"name": "m", "lo": 1000000, "hi": 2000000}, {"name": "q", "lo": 1000000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "k,w,m,q", "redraws": 0, "constants_micro": [3368868, 905570, 1643841, 1169109], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.021371, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.021371, "truth_oob_episodes": 0, "coef_err_ppm": 169091, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 3.368857, "w": 0.905560, "m_times_q": 1.921801, "h_scale": "q=1 convention", "fit_sse": 1.825e-09, "err_ppm": {"k": 1, "w": 0, "m_times_q": 6}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.142195, "nrmse_extrap": 0.099021, "nrmse_onestep": 0.015259, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 5, "description_bits": 240, "support": false, "checks": {"inbox": "FAIL", "extrap": "FAIL", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 2, "constants_draw_order": "k,w,m,q", "redraws": 1, "constants_micro": [4128392, 885899, 1150045, 1388809], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.019826, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.019826, "truth_oob_episodes": 0, "coef_err_ppm": 388803, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 4.128383, "w": 0.885895, "m_times_q": 1.597178, "h_scale": "q=1 convention", "fit_sse": 1.332e-09, "err_ppm": {"k": 1, "w": 16, "m_times_q": 1}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.074033, "nrmse_extrap": 0.066992, "nrmse_onestep": 0.009052, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 4, "description_bits": 192, "support": false, "checks": {"inbox": "FAIL", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 3, "constants_draw_order": "k,w,m,q", "redraws": 1, "constants_micro": [3794478, 685972, 1193802, 1388242], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.017896, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.017896, "truth_oob_episodes": 0, "coef_err_ppm": 388222, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 3.794468, "w": 0.685967, "m_times_q": 1.657268, "h_scale": "q=1 convention", "fit_sse": 1.495e-09, "err_ppm": {"k": 2, "w": 10, "m_times_q": 8}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.119553, "nrmse_extrap": 0.100070, "nrmse_onestep": 0.012930, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 4, "description_bits": 192, "support": false, "checks": {"inbox": "FAIL", "extrap": "FAIL", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 4, "constants_draw_order": "k,w,m,q", "redraws": 7, "constants_micro": [4403162, 522824, 1163776, 1276070], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.014461, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.014461, "truth_oob_episodes": 0, "coef_err_ppm": 276070, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 4.403152, "w": 0.522820, "m_times_q": 1.485044, "h_scale": "q=1 convention", "fit_sse": 1.514e-09, "err_ppm": {"k": 2, "w": 0, "m_times_q": 11}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.063098, "nrmse_extrap": 0.067130, "nrmse_onestep": 0.007078, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 4, "description_bits": 192, "support": false, "checks": {"inbox": "FAIL", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 5, "constants_draw_order": "k,w,m,q", "redraws": 3, "constants_micro": [3292448, 990681, 1016836, 1491901], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.016633, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.016633, "truth_oob_episodes": 0, "coef_err_ppm": 491906, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 3.292438, "w": 0.990674, "m_times_q": 1.517002, "h_scale": "q=1 convention", "fit_sse": 1.533e-09, "err_ppm": {"k": 1, "w": 6, "m_times_q": 5}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.094117, "nrmse_extrap": 0.103313, "nrmse_onestep": 0.011524, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 6, "description_bits": 288, "support": false, "checks": {"inbox": "FAIL", "extrap": "FAIL", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 80, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} From 13fd9df15a0210e2c82378be62c51960ee08ede5 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 19:16:46 -0500 Subject: [PATCH 3/4] physics0: describe record PD0DESC2 with per-variable reset bounds; PD0DESC1 refused Wire writer/reader, guard (per-variable box), world, calibration, G0 tests incl. golden bytes, PD0DESC1 refusal and the L0 s1 per-variable guard mutation test. Spec amendment pending (lead drafting). Co-Authored-By: Claude Fable 5.1 --- mk/physics0.mk | 8 +++--- src/physics0/pd0_gen.c | 3 +- src/physics0/pd0_gen.h | 4 +-- src/physics0/pd0_guard.c | 8 +----- src/physics0/pd0_guard.h | 5 +--- src/physics0/pd0_wire.c | 16 ++++++----- src/physics0/pd0_wire.h | 5 ++-- src/physics0/pd0_world.c | 3 +- src/physics0/pd0_world.h | 1 - tests/physics0/pd0_calib.c | 2 +- tests/physics0/test_pd0_world.c | 49 +++++++++++++++++++++++++++++++-- 11 files changed, 71 insertions(+), 33 deletions(-) diff --git a/mk/physics0.mk b/mk/physics0.mk index ef68c1702..5050fe361 100644 --- a/mk/physics0.mk +++ b/mk/physics0.mk @@ -8,7 +8,7 @@ # # physics0-test G0 self-test (plain + ASan/UBSan), G5 isolation, G1 oracle # calibration (V1 + V3 per level), mutant check, OSC differential -# physics0-evidence copy the G0/G1 receipts into evidence/physics0/ +# physics0-evidence copy the G0/G1 receipts into evidence/physics0/ (new names per cut, never overwritten) # pd0-world build/physics0/pd0-world : the world process ifndef PHYSICS0_MK PHYSICS0_MK := 1 @@ -94,9 +94,9 @@ physics0-test: $(P0_DIR)/test_pd0_world $(P0_DIR)/test_pd0_world_asan $(P0_LEARN # Receipts are immutable: existing evidence files are never rewritten (cp -n); each cut adds new files. physics0-evidence: physics0-test mkdir -p evidence/physics0 - for f in $(P0_DIR)/receipts/pd0-oracle-*.json; do b=$$(basename "$$f" .json); cp -n "$$f" "evidence/physics0/$$b-rev3.json"; done - { echo "receipt: PD0_G0"; echo "spec: aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)"; echo "recorder: STAND_IN"; echo "range_guard: STAND_IN"; \ + for f in $(P0_DIR)/receipts/pd0-oracle-*.json; do b=$$(basename "$$f" .json); cp -n "$$f" "evidence/physics0/$$b-rev3b.json"; done + { echo "receipt: PD0_G0"; echo "spec: aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3, PD0DESC2)"; echo "recorder: STAND_IN"; echo "range_guard: STAND_IN"; \ echo "commit: $$(git rev-parse HEAD)"; echo "date_utc: $$(date -u +%Y-%m-%dT%H:%M:%SZ)"; echo "--- test_pd0_world"; cat $(P0_DIR)/g0.out; \ echo "--- isolation"; cat $(P0_DIR)/isolation.out; echo "--- G1 oracle"; cat $(P0_DIR)/g1.out; echo "--- osc differential"; cat $(P0_DIR)/osc.out; \ - echo "--- mutant"; cat $(P0_DIR)/mutant.out; echo "--- mutant latent sign"; cat $(P0_DIR)/mutant_latent.out; } > evidence/physics0/pd0-g0-receipt-cut3.txt + echo "--- mutant"; cat $(P0_DIR)/mutant.out; echo "--- mutant latent sign"; cat $(P0_DIR)/mutant_latent.out; } > evidence/physics0/pd0-g0-receipt-cut3b.txt endif diff --git a/src/physics0/pd0_gen.c b/src/physics0/pd0_gen.c index 06dfe22ab..25536d9a4 100644 --- a/src/physics0/pd0_gen.c +++ b/src/physics0/pd0_gen.c @@ -52,7 +52,7 @@ void pd0_gen_score_box(int level, int var, int extrap, int64_t *lo, int64_t *hi) int pd0_gen_desc(int level, pd0_desc *d) { memset(d, 0, sizeof *d); d->n_obs = 2; d->n_channels = 1; - pd0_gen_reset_box(level, 0, &d->reset_min, &d->reset_max); /* describe carries one pair: variable 0's box */ + for (int v = 0; v < PD0_MAX_OBS; v++) pd0_gen_reset_box(level, v, &d->reset_min[v], &d->reset_max[v]); /* trimmed to n_obs below */ d->episode_max_steps = PD0_EPISODE_STEPS; d->budget_steps = 3000; d->budget_episodes = 300; d->dt_micro = U(0.05); @@ -68,6 +68,7 @@ int pd0_gen_desc(int level, pd0_desc *d) { case PD0_LEVEL_NULL: break; /* same interface and budget as L2 (NC-1) */ default: return -1; } + for (int v = d->n_obs; v < PD0_MAX_OBS; v++) d->reset_min[v] = d->reset_max[v] = 0; /* unused slots stay zero (round trip) */ return 0; } diff --git a/src/physics0/pd0_gen.h b/src/physics0/pd0_gen.h index 43fced074..e59a484f8 100644 --- a/src/physics0/pd0_gen.h +++ b/src/physics0/pd0_gen.h @@ -35,8 +35,8 @@ const char *pd0_gen_level_name(int level); int pd0_gen_desc(int level, pd0_desc *d); /* declared constant ranges of a level in draw order; returns the count (0: none) */ int pd0_gen_const_table(int level, const pd0_crange **t); -/* reset box of observed variable var (spec 4 rev 3) and scoring boxes (spec 6.1 rev 3: - * in-box = reset box, extrap = 1.5 x it); the describe record carries variable 0 only */ +/* reset box of observed variable var (spec 4 rev 3; the describe record carries all of them) and scoring boxes (spec 6.1 rev 3: + * in-box = reset box, extrap = 1.5 x it) */ void pd0_gen_reset_box(int level, int var, int64_t *lo, int64_t *hi); void pd0_gen_score_box(int level, int var, int extrap, int64_t *lo, int64_t *hi); /* draw the level's constants from the "const" stream of seed; returns -1 for an invalid diff --git a/src/physics0/pd0_guard.c b/src/physics0/pd0_guard.c index ff6b65b48..3b210c235 100644 --- a/src/physics0/pd0_guard.c +++ b/src/physics0/pd0_guard.c @@ -9,15 +9,9 @@ int pd0_guard_step_ok(const pd0_desc *d, uint8_t channel, int64_t value) { int pd0_guard_reset_ok(const pd0_desc *d, const int64_t *vals, uint8_t n_vals) { if (n_vals != d->n_obs) return 0; for (unsigned i = 0; i < n_vals; i++) - if (vals[i] < d->reset_min || vals[i] > d->reset_max) return 0; + if (vals[i] < d->reset_min[i] || vals[i] > d->reset_max[i]) return 0; return 1; } int pd0_guard_in_box(int64_t v) { return v <= PD0_BOUND && v >= -PD0_BOUND; } -int pd0_guard_reset_ok_box(const int64_t *lo, const int64_t *hi, uint8_t n_obs, const int64_t *vals, uint8_t n_vals) { - if (n_vals != n_obs) return 0; - for (unsigned i = 0; i < n_vals; i++) - if (vals[i] < lo[i] || vals[i] > hi[i]) return 0; - return 1; -} diff --git a/src/physics0/pd0_guard.h b/src/physics0/pd0_guard.h index b2f2e7f37..a41c49732 100644 --- a/src/physics0/pd0_guard.h +++ b/src/physics0/pd0_guard.h @@ -16,11 +16,8 @@ /* 1 if (channel, value) is inside the bounds: channel PD0_CH_NONE always ok; * otherwise channel < n_channels and chan_min <= value <= chan_max */ int pd0_guard_step_ok(const pd0_desc *d, uint8_t channel, int64_t value); -/* 1 if n_vals == n_obs and every value is in [reset_min, reset_max] */ +/* 1 if n_vals == n_obs and every value i is in [reset_min[i], reset_max[i]] (per-variable box, PD0DESC2) */ int pd0_guard_reset_ok(const pd0_desc *d, const int64_t *vals, uint8_t n_vals); -/* same with one inclusive box per observed variable (spec 4 rev 3: L0 s1 and L4 differ from [-2, 2]); - * the caller supplies the boxes, so the guard still holds no generator knowledge */ -int pd0_guard_reset_ok_box(const int64_t *lo, const int64_t *hi, uint8_t n_obs, const int64_t *vals, uint8_t n_vals); /* 1 if a post-step observed or hidden value is inside |v| <= PD0_BOUND */ int pd0_guard_in_box(int64_t v); diff --git a/src/physics0/pd0_wire.c b/src/physics0/pd0_wire.c index 903e98669..3c200433f 100644 --- a/src/physics0/pd0_wire.c +++ b/src/physics0/pd0_wire.c @@ -19,12 +19,13 @@ uint64_t pd0_get_u64(const uint8_t *p) { return v; } -static const uint8_t DESC_MAGIC[8] = {'P', 'D', '0', 'D', 'E', 'S', 'C', '1'}; +static const uint8_t DESC_MAGIC[8] = {'P', 'D', '0', 'D', 'E', 'S', 'C', '2'}; +static const uint8_t DESC_MAGIC_V1[8] = {'P', 'D', '0', 'D', 'E', 'S', 'C', '1'}; /* refused */ static const uint8_t REC_MAGIC[8] = {'P', 'D', '0', 'R', 'E', 'C', '1', 0}; size_t pd0_desc_encode(const pd0_desc *d, uint8_t *out, size_t cap) { if (!d || d->n_obs < 1 || d->n_obs > PD0_MAX_OBS || d->n_channels < 1 || d->n_channels > PD0_MAX_CH) return 0; - size_t need = 8 + 2 + 8 + 16u * d->n_channels + 16 + 12; + size_t need = 8 + 2 + 8 + 16u * d->n_channels + 16u * d->n_obs + 12; if (cap < need) return 0; uint8_t *p = out; memcpy(p, DESC_MAGIC, 8); p += 8; @@ -32,8 +33,8 @@ size_t pd0_desc_encode(const pd0_desc *d, uint8_t *out, size_t cap) { pd0_put_u64(p, (uint64_t)d->dt_micro); p += 8; for (unsigned i = 0; i < d->n_channels; i++) { pd0_put_u64(p, (uint64_t)d->chan_min[i]); p += 8; } for (unsigned i = 0; i < d->n_channels; i++) { pd0_put_u64(p, (uint64_t)d->chan_max[i]); p += 8; } - pd0_put_u64(p, (uint64_t)d->reset_min); p += 8; - pd0_put_u64(p, (uint64_t)d->reset_max); p += 8; + for (unsigned i = 0; i < d->n_obs; i++) { pd0_put_u64(p, (uint64_t)d->reset_min[i]); p += 8; } + for (unsigned i = 0; i < d->n_obs; i++) { pd0_put_u64(p, (uint64_t)d->reset_max[i]); p += 8; } pd0_put_u32(p, d->episode_max_steps); p += 4; pd0_put_u32(p, d->budget_steps); p += 4; pd0_put_u32(p, d->budget_episodes); p += 4; @@ -41,18 +42,19 @@ size_t pd0_desc_encode(const pd0_desc *d, uint8_t *out, size_t cap) { } int pd0_desc_decode(const uint8_t *in, size_t len, pd0_desc *d) { + if (len >= 8 && memcmp(in, DESC_MAGIC_V1, 8) == 0) return PD0_DESC_REFUSED_V1; if (len < 10 || memcmp(in, DESC_MAGIC, 8) != 0) return -1; memset(d, 0, sizeof *d); d->n_obs = in[8]; d->n_channels = in[9]; if (d->n_obs < 1 || d->n_obs > PD0_MAX_OBS || d->n_channels < 1 || d->n_channels > PD0_MAX_CH) return -1; - size_t need = 8 + 2 + 8 + 16u * d->n_channels + 16 + 12; + size_t need = 8 + 2 + 8 + 16u * d->n_channels + 16u * d->n_obs + 12; if (len != need) return -1; const uint8_t *p = in + 10; d->dt_micro = (int64_t)pd0_get_u64(p); p += 8; for (unsigned i = 0; i < d->n_channels; i++) { d->chan_min[i] = (int64_t)pd0_get_u64(p); p += 8; } for (unsigned i = 0; i < d->n_channels; i++) { d->chan_max[i] = (int64_t)pd0_get_u64(p); p += 8; } - d->reset_min = (int64_t)pd0_get_u64(p); p += 8; - d->reset_max = (int64_t)pd0_get_u64(p); p += 8; + for (unsigned i = 0; i < d->n_obs; i++) { d->reset_min[i] = (int64_t)pd0_get_u64(p); p += 8; } + for (unsigned i = 0; i < d->n_obs; i++) { d->reset_max[i] = (int64_t)pd0_get_u64(p); p += 8; } d->episode_max_steps = pd0_get_u32(p); p += 4; d->budget_steps = pd0_get_u32(p); p += 4; d->budget_episodes = pd0_get_u32(p); diff --git a/src/physics0/pd0_wire.h b/src/physics0/pd0_wire.h index bf14aff99..107ecb893 100644 --- a/src/physics0/pd0_wire.h +++ b/src/physics0/pd0_wire.h @@ -30,7 +30,7 @@ typedef struct { uint8_t n_obs, n_channels; int64_t dt_micro; int64_t chan_min[PD0_MAX_CH], chan_max[PD0_MAX_CH]; - int64_t reset_min, reset_max; + int64_t reset_min[PD0_MAX_OBS], reset_max[PD0_MAX_OBS]; /* per observed variable (PD0DESC2) */ uint32_t episode_max_steps, budget_steps, budget_episodes; } pd0_desc; @@ -43,7 +43,8 @@ typedef struct { uint8_t prev_hash[PD0_HASH], hash[PD0_HASH]; } pd0_rec; -#define PD0_DESC_MAX (8 + 2 + 8 + 16 * PD0_MAX_CH + 16 + 12) +#define PD0_DESC_MAX (8 + 2 + 8 + 16 * PD0_MAX_CH + 16 * PD0_MAX_OBS + 12) +#define PD0_DESC_REFUSED_V1 (-2) /* pd0_desc_decode: a PD0DESC1 record (single reset pair) is refused explicitly */ #define PD0_REC_SIZE(n_obs) (56u + 16u * (unsigned)(n_obs) + 2u * PD0_HASH) #define PD0_REC_MAX PD0_REC_SIZE(PD0_MAX_OBS) #define PD0_REQ_MAX (2 + 8 * PD0_MAX_OBS) diff --git a/src/physics0/pd0_world.c b/src/physics0/pd0_world.c index 77fa16f8f..2af739d80 100644 --- a/src/physics0/pd0_world.c +++ b/src/physics0/pd0_world.c @@ -12,7 +12,6 @@ int pd0_world_init(pd0_world *w, int level, uint64_t seed) { memset(w, 0, sizeof *w); if (pd0_gen_desc(level, &w->desc) != 0 || pd0_gen_init(&w->gen, level, seed) != 0) return -1; w->seed = seed; - for (int i = 0; i < w->desc.n_obs; i++) pd0_gen_reset_box(level, i, &w->reset_lo[i], &w->reset_hi[i]); pd0_stream(&w->noise, seed, "noise"); pd0_stream(&w->null, seed, "null"); return 0; @@ -51,7 +50,7 @@ void pd0_world_reset(pd0_world *w, const int64_t *vals, uint8_t n_vals, pd0_rec w->episodes_used++; if (w->in_episode || w->seq) w->episode++; r->episode = w->episode; - if (!pd0_guard_reset_ok_box(w->reset_lo, w->reset_hi, w->desc.n_obs, vals, n_vals)) { /* STAND_IN guard: refused, still charged */ + if (!pd0_guard_reset_ok(&w->desc, vals, n_vals)) { /* STAND_IN guard: refused, still charged */ r->status = PD0_REFUSED_RANGE; w->in_episode = 0; seal(w, r); diff --git a/src/physics0/pd0_world.h b/src/physics0/pd0_world.h index dca12428e..234ffdcf3 100644 --- a/src/physics0/pd0_world.h +++ b/src/physics0/pd0_world.h @@ -38,7 +38,6 @@ int pd0_chan_step(pd0_chan *c, uint8_t channel, int64_t value, pd0_rec *r); typedef struct { pd0_gen gen; pd0_desc desc; - int64_t reset_lo[PD0_MAX_OBS], reset_hi[PD0_MAX_OBS]; /* per-variable reset box (the describe record carries variable 0) */ uint64_t seed; pd0_rng noise, null; int64_t s[PD0_MAX_OBS], h; diff --git a/tests/physics0/pd0_calib.c b/tests/physics0/pd0_calib.c index f100ad8cf..9230827be 100644 --- a/tests/physics0/pd0_calib.c +++ b/tests/physics0/pd0_calib.c @@ -82,7 +82,7 @@ int pd0_calib_gather(int level, uint64_t seed, pd0_gather *out) { pd0_rec r; for (;;) { int64_t reset[PD0_MAX_OBS]; - for (int v = 0; v < w.desc.n_obs; v++) reset[v] = pd0_const(&rr, w.reset_lo[v], w.reset_hi[v]); + for (int v = 0; v < w.desc.n_obs; v++) reset[v] = pd0_const(&rr, w.desc.reset_min[v], w.desc.reset_max[v]); pd0_world_reset(&w, reset, w.desc.n_obs, &r); if (r.status == PD0_BUDGET_EXHAUSTED) break; if (r.status == PD0_REFUSED_RANGE) { out->refused++; continue; } diff --git a/tests/physics0/test_pd0_world.c b/tests/physics0/test_pd0_world.c index 09c6ce9fb..97464fdc8 100644 --- a/tests/physics0/test_pd0_world.c +++ b/tests/physics0/test_pd0_world.c @@ -39,7 +39,7 @@ static void t_wire(void) { pd0_gen_desc(PD0_L3, &d); uint8_t buf[PD0_DESC_MAX]; size_t n = pd0_desc_encode(&d, buf, sizeof buf); - CHECK(n == 8 + 2 + 8 + 32 + 16 + 12, "desc size %zu", n); + CHECK(n == 8 + 2 + 8 + 32 + 16 * 4 + 12 && memcmp(buf, "PD0DESC2", 8) == 0, "desc size %zu, magic PD0DESC2", n); CHECK(pd0_desc_decode(buf, n, &d2) == 0 && memcmp(&d, &d2, sizeof d) == 0, "desc round trip"); CHECK(pd0_desc_decode(buf, n - 1, &d2) != 0, "short desc refused"); pd0_rec r, r2; @@ -317,7 +317,7 @@ static void t_rev3(void) { CHECK(r.status == PD0_REFUSED_RANGE, "L4 s0 = 1.000001 refused"); pd0_world_reset(&w4, g4, 2, &r); CHECK(r.status == PD0_OK, "L4 corner (-1, 1) accepted"); - CHECK(w4.desc.reset_min == -1000000 && w4.desc.reset_max == 1000000, "L4 describe box [-1,1]"); + CHECK(w4.desc.reset_min[0] == -1000000 && w4.desc.reset_max[1] == 1000000, "L4 describe box [-1,1]"); /* L6 declared ranges and draw order k, w, m, q */ const pd0_crange *t; CHECK(pd0_gen_const_table(PD0_L6, &t) == 4 && !strcmp(t[0].name, "k") && !strcmp(t[1].name, "w") && !strcmp(t[2].name, "m") && !strcmp(t[3].name, "q") && @@ -361,12 +361,57 @@ static void t_rev3(void) { "L6 relation: m = 3rd draw, w = 2nd, q = 4th"); } +/* PD0DESC2: per-variable reset bounds, PD0DESC1 refused, golden bytes, per-variable guard (spec amendment pending, lead drafting) */ +static void t_desc2(void) { + pd0_desc d, d2; + uint8_t buf[PD0_DESC_MAX], v1[PD0_DESC_MAX]; + pd0_gen_desc(PD0_L0, &d); + size_t n = pd0_desc_encode(&d, buf, sizeof buf); + /* golden bytes of the L0 describe record: magic, n_obs 2, n_channels 1, dt 1.0, chan -0.1/0.1, reset_min s0 s1, reset_max s0 s1, 20, 3000, 150 */ + static const uint8_t gold[] = { + 'P','D','0','D','E','S','C','2', 2, 1, + 0x40,0x42,0x0F,0,0,0,0,0, /* dt 1000000 */ + 0x60,0x79,0xFE,0xFF,0xFF,0xFF,0xFF,0xFF, /* chan_min -100000 */ + 0xA0,0x86,0x01,0,0,0,0,0, /* chan_max 100000 */ + 0x80,0x7B,0xE1,0xFF,0xFF,0xFF,0xFF,0xFF, /* reset_min s0 -2000000 */ + 0xC0,0xF2,0xFC,0xFF,0xFF,0xFF,0xFF,0xFF, /* reset_min s1 -200000 */ + 0x80,0x84,0x1E,0,0,0,0,0, /* reset_max s0 2000000 */ + 0x40,0x0D,0x03,0,0,0,0,0, /* reset_max s1 200000 */ + 20,0,0,0, 0xB8,0x0B,0,0, 150,0,0,0}; + CHECK(n == sizeof gold, "L0 describe length %zu", n); + CHECK(n == sizeof gold && memcmp(buf, gold, n) == 0, "L0 describe golden bytes"); + CHECK(pd0_desc_decode(buf, n, &d2) == 0 && memcmp(&d, &d2, sizeof d) == 0 && d2.reset_min[1] == -200000 && d2.reset_max[0] == 2000000 && + d2.reset_max[1] == 200000, "PD0DESC2 round trip keeps per-variable bounds"); + /* mutation: the old magic is refused with the explicit code, and nothing is decoded */ + memcpy(v1, buf, n); + v1[7] = '1'; + memset(&d2, 0xAA, sizeof d2); + CHECK(pd0_desc_decode(v1, n, &d2) == PD0_DESC_REFUSED_V1, "PD0DESC1 refused with PD0_DESC_REFUSED_V1"); + CHECK(pd0_desc_decode(v1, 8 + 2 + 8 + 16 + 16 + 12, &d2) == PD0_DESC_REFUSED_V1, "PD0DESC1 of the old length also refused"); + buf[7] = '3'; + CHECK(pd0_desc_decode(buf, n, &d2) == -1, "unknown magic refused"); + buf[7] = '2'; + CHECK(pd0_desc_decode(buf, n - 1, &d2) != 0, "short PD0DESC2 refused"); + /* guard mutation: L0 s1 = 0.3 refused, s0 anywhere in [-2,2] accepted */ + int64_t ok[2] = {-2000000, 200000}, ok2[2] = {2000000, -200000}, bad1[2] = {0, 300000}, bad0[2] = {2000001, 0}; + CHECK(pd0_guard_reset_ok(&d, ok, 2) && pd0_guard_reset_ok(&d, ok2, 2), "s0 in [-2,2] with s1 in [-0.2,0.2] accepted"); + CHECK(!pd0_guard_reset_ok(&d, bad1, 2), "s1 = 0.3 refused (per-variable violation on L0)"); + CHECK(!pd0_guard_reset_ok(&d, bad0, 2), "s0 = 2.000001 refused"); + /* the same through a world over the channel: the describe the learner reads carries the s1 box */ + pd0_world w; + pd0_chan c = {pd0_world_chan, &w, -1, -1}; + pd0_world_init(&w, PD0_L0, 1); + CHECK(pd0_chan_describe(&c, &d2) == 0 && d2.reset_min[1] == -200000 && d2.reset_max[1] == 200000 && d2.reset_max[0] == 2000000, + "learner-side describe shows both boxes"); +} + int main(void) { t_wire(); t_rules(); t_splitmix(); t_null_world(); t_rev3(); + t_desc2(); t_repro_and_process(); printf("checks=%lu failures=%lu\n", checks, failures); printf("PHYSICS0_G0: %s\n", failures ? "FAIL" : "PASS"); From 699bb42da664cc7da9926e28b01164370fc2bcc4 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sat, 3 Oct 2026 19:17:04 -0500 Subject: [PATCH 4/4] physics0: PD0DESC2 receipts (cut3b) and calibration note Co-Authored-By: Claude Fable 5.1 --- docs/physics0/CALIBRATION.md | 2 +- evidence/physics0/pd0-g0-receipt-cut3b.txt | 38 +++++++++++++++++ evidence/physics0/pd0-oracle-L0-rev3b.json | 42 +++++++++++++++++++ evidence/physics0/pd0-oracle-L1-rev3b.json | 42 +++++++++++++++++++ evidence/physics0/pd0-oracle-L2-rev3b.json | 42 +++++++++++++++++++ evidence/physics0/pd0-oracle-L3-rev3b.json | 42 +++++++++++++++++++ evidence/physics0/pd0-oracle-L4-rev3b.json | 42 +++++++++++++++++++ evidence/physics0/pd0-oracle-L5-rev3b.json | 42 +++++++++++++++++++ evidence/physics0/pd0-oracle-L6-rev3b.json | 47 ++++++++++++++++++++++ 9 files changed, 338 insertions(+), 1 deletion(-) create mode 100644 evidence/physics0/pd0-g0-receipt-cut3b.txt create mode 100644 evidence/physics0/pd0-oracle-L0-rev3b.json create mode 100644 evidence/physics0/pd0-oracle-L1-rev3b.json create mode 100644 evidence/physics0/pd0-oracle-L2-rev3b.json create mode 100644 evidence/physics0/pd0-oracle-L3-rev3b.json create mode 100644 evidence/physics0/pd0-oracle-L4-rev3b.json create mode 100644 evidence/physics0/pd0-oracle-L5-rev3b.json create mode 100644 evidence/physics0/pd0-oracle-L6-rev3b.json diff --git a/docs/physics0/CALIBRATION.md b/docs/physics0/CALIBRATION.md index faae0b697..6574cae33 100644 --- a/docs/physics0/CALIBRATION.md +++ b/docs/physics0/CALIBRATION.md @@ -123,6 +123,6 @@ Result: V2 PASS on 5 of 5 (a latent-free model fails 0.03 everywhere). The facto ### Limits -- The describe record (spec 2.2) carries one `reset_min`/`reset_max` pair. For L0 it holds the s0 box [-2, 2], so a learner is not told that s1 is limited to [-0.2, 0.2] and a reset with larger s1 is refused and charged (spec 2.3 "probing the bounds is not free"). The spec table does not say how to describe a per-variable box; the wire format was left unchanged. Spec owner: decide whether describe needs per-variable bounds. +- Follow-up (PD0DESC2): the describe record now carries per-variable reset bounds (magic `PD0DESC2`, `reset_min[n_obs]`, `reset_max[n_obs]`); `PD0DESC1` is refused with an explicit error (tested), so a learner reads the L0 s1 box [-0.2, 0.2] and the guard enforces it per variable. Spec amendment: pending (lead drafting). Code commit `13fd9df15a0210e2c82378be62c51960ee08ede5`; new receipts `evidence/physics0/pd0-oracle-L0-rev3b.json` to `L6-rev3b.json` and `pd0-g0-receipt-cut3b.txt` (same numbers as the rev3 files; the rev3 files keep the single-pair describe). - The scoring-box rule is implemented in `tests/physics0/pd0_calib.c` and written into the receipts. `src/physics0/score` (another lane) is not changed and must apply the same per-variable rule. - The G0 receipt records the commit of the tree it ran on; this document and the receipts were added in the commit after `9e5ea8b`. diff --git a/evidence/physics0/pd0-g0-receipt-cut3b.txt b/evidence/physics0/pd0-g0-receipt-cut3b.txt new file mode 100644 index 000000000..263f4f269 --- /dev/null +++ b/evidence/physics0/pd0-g0-receipt-cut3b.txt @@ -0,0 +1,38 @@ +receipt: PD0_G0 +spec: aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3, PD0DESC2) +recorder: STAND_IN +range_guard: STAND_IN +commit: 13fd9df15a0210e2c82378be62c51960ee08ede5 +date_utc: 2026-10-04T00:16:55Z +--- test_pd0_world +checks=1925 failures=0 +PHYSICS0_G0: PASS +--- isolation +PHYSICS0_ISOLATION: PASS (4 learner-side objects clean) +--- G1 oracle +PHYSICS0_G1_V1_L0: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L0: PASS (worst breach rate 0.0200 over seeds 1..20) +PHYSICS0_G1_V1_L1: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L1: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L2: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L2: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L3: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L3: PASS (worst breach rate 0.0323 over seeds 1..20) +PHYSICS0_G1_V1_L4: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L4: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L5: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L5: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_G1_V1_L6: PASS (oracle_exact PASS, oracle_fit PASS) +PHYSICS0_G1_V3_L6: PASS (worst breach rate 0.0000 over seeds 1..20) +PHYSICS0_ORACLE: PASS +--- osc differential +osc differential: runs=200000 mismatches=0 native=yes +PHYSICS0_OSC_DIFF: PASS +--- mutant +PHYSICS0_G1_V1_L1-mutant: FAIL (oracle_exact FAIL, oracle_fit FAIL) +PHYSICS0_G1_V3_L1-mutant: FAIL (worst breach rate 0.9907 over seeds 1..20) +PHYSICS0_ORACLE-mutant: FAIL +--- mutant latent sign +PHYSICS0_G1_V1_L6-mutlat: FAIL (oracle_exact FAIL, oracle_fit FAIL) +PHYSICS0_G1_V3_L6-mutlat: FAIL (worst breach rate 0.4432 over seeds 1..20) +PHYSICS0_ORACLE-mutlat: FAIL diff --git a/evidence/physics0/pd0-oracle-L0-rev3b.json b/evidence/physics0/pd0-oracle-L0-rev3b.json new file mode 100644 index 000000000..722c002fc --- /dev/null +++ b/evidence/physics0/pd0-oracle-L0-rev3b.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L0", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 4}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 20, "budget_steps": 3000, "budget_episodes": 150, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-200000, 200000], "extrap": [-300000, 300000]}], + "constant_ranges_micro": [], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2980, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2980, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 1, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 1, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 1, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2980, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2976, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [0, 0, 0, 0], "fit_transitions": 2975, "fit_episodes": 150, + "oracle_exact": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000000, "nrmse_extrap": 0.000000, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 2, "description_bits": 96, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 5, "episodes": 150, "oob": 3, "rate": 0.0200}, {"seed": 6, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 7, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 9, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 12, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 13, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 14, "episodes": 150, "oob": 2, "rate": 0.0133}, {"seed": 15, "episodes": 150, "oob": 3, "rate": 0.0200}, {"seed": 16, "episodes": 150, "oob": 1, "rate": 0.0067}, {"seed": 17, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 150, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 150, "oob": 2, "rate": 0.0133}, {"seed": 20, "episodes": 150, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0200, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L1-rev3b.json b/evidence/physics0/pd0-oracle-L1-rev3b.json new file mode 100644 index 000000000..ebd9bd26f --- /dev/null +++ b/evidence/physics0/pd0-oracle-L1-rev3b.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L1", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 5}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 4000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1553302, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000017, "nrmse_extrap": 0.000012, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2692588, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2191717, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [3104743, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1438672, 0, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 3, "description_bits": 144, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L2-rev3b.json b/evidence/physics0/pd0-oracle-L2-rev3b.json new file mode 100644 index 000000000..bd3a90936 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L2-rev3b.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L2", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 6}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 9000000}, {"name": "c", "lo": 200000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2475472, 1660052, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000013, "nrmse_extrap": 0.000010, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000013, "nrmse_extrap": 0.000010, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [5513568, 1589238, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000017, "nrmse_extrap": 0.000015, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [4177912, 869501, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000019, "nrmse_extrap": 0.000018, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [6612648, 282166, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2169792, 1966451, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000011, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000022, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 5, "description_bits": 240, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L3-rev3b.json b/evidence/physics0/pd0-oracle-L3-rev3b.json new file mode 100644 index 000000000..0a369e7d5 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L3-rev3b.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L3", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 10}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s2", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s3", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 4000000}, {"name": "g", "lo": 500000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1553302, 1716710, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2692588, 1657698, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2191717, 1057917, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 18, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 18, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [3104743, 568472, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000007, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1438672, 1972043, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000004, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 8, "description_bits": 576, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 31, "oob": 1, "rate": 0.0323}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0323, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L4-rev3b.json b/evidence/physics0/pd0-oracle-L4-rev3b.json new file mode 100644 index 000000000..cb05c48e2 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L4-rev3b.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L4", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 50000, "size": 6}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 3000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-1000000, 1000000], "extrap": [-1500000, 1500000]}, {"var": "s1", "reset_and_inbox": [-1000000, 1000000], "extrap": [-1500000, 1500000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 4000000}, {"name": "b", "lo": 500000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1553302, 1716710, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000010, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000013, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000023, "nrmse_extrap": 0.000022, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2692588, 1657698, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000009, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000008, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 12, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2191717, 1057917, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000012, "nrmse_extrap": 0.000010, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000011, "nrmse_extrap": 0.000006, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 18, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000024, "nrmse_extrap": 0.000021, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [3104743, 568472, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000006, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000009, "nrmse_extrap": 0.000007, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 35, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [1438672, 1972043, 0, 0], "fit_transitions": 3000, "fit_episodes": 30, + "oracle_exact": {"nrmse_inbox": 0.000010, "nrmse_extrap": 0.000008, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000010, "nrmse_extrap": 0.000008, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.000020, "nrmse_extrap": 0.000023, "nrmse_onestep": 0.000002, "truth_oob_episodes": 0, "coef_err_ppm": 20, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 30, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 30, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L5-rev3b.json b/evidence/physics0/pd0-oracle-L5-rev3b.json new file mode 100644 index 000000000..26cc5ec59 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L5-rev3b.json @@ -0,0 +1,42 @@ +{ + "receipt": "PD0_G1", + "level": "L5", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.020, "extrap": 0.060, "onestep": 0.010, "coef_ppm": 100000, "size": 6}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 8000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 1000000, "hi": 9000000}, {"name": "c", "lo": 200000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2475472, 1660052, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.010402, "nrmse_extrap": 0.006108, "nrmse_onestep": 0.001323, "truth_oob_episodes": 0, "coef_err_ppm": 18999, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.011437, "nrmse_extrap": 0.006926, "nrmse_onestep": 0.001053, "truth_oob_episodes": 0, "coef_err_ppm": 15288, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 2, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [5513568, 1589238, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000005, "nrmse_extrap": 0.000005, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.005873, "nrmse_extrap": 0.006430, "nrmse_onestep": 0.001315, "truth_oob_episodes": 0, "coef_err_ppm": 15340, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.005580, "nrmse_extrap": 0.006341, "nrmse_onestep": 0.001247, "truth_oob_episodes": 0, "coef_err_ppm": 14749, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 3, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [4177912, 869501, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.007047, "nrmse_extrap": 0.006858, "nrmse_onestep": 0.000724, "truth_oob_episodes": 0, "coef_err_ppm": 10097, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.013702, "nrmse_extrap": 0.013150, "nrmse_onestep": 0.001731, "truth_oob_episodes": 0, "coef_err_ppm": 16680, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 4, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [6612648, 282166, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.000000, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.002034, "nrmse_extrap": 0.002018, "nrmse_onestep": 0.000209, "truth_oob_episodes": 0, "coef_err_ppm": 9214, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.001774, "nrmse_extrap": 0.001682, "nrmse_onestep": 0.000212, "truth_oob_episodes": 0, "coef_err_ppm": 6024, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + }, + {"seed": 5, "constants_draw_order": "table order", "redraws": 0, "constants_micro": [2169792, 1966451, 0, 0], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.000001, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.006170, "nrmse_extrap": 0.005699, "nrmse_onestep": 0.001178, "truth_oob_episodes": 0, "coef_err_ppm": 10572, "size": 4, "description_bits": 192, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.005869, "nrmse_extrap": 0.008046, "nrmse_onestep": 0.001645, "truth_oob_episodes": 0, "coef_err_ppm": 24352, "size": 5, "description_bits": 240, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "PASS", "coef": "PASS", "size": "PASS", "support": "PASS"}, "verdict": "PASS"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 80, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +} diff --git a/evidence/physics0/pd0-oracle-L6-rev3b.json b/evidence/physics0/pd0-oracle-L6-rev3b.json new file mode 100644 index 000000000..96dcffa49 --- /dev/null +++ b/evidence/physics0/pd0-oracle-L6-rev3b.json @@ -0,0 +1,47 @@ +{ + "receipt": "PD0_G1", + "level": "L6", + "spec": "aien-dev/physics docs/PD0_HIDDEN_EQUATION_BENCHMARK.md @ 5bd2b04 (rev 3)", + "recorder": "STAND_IN", + "range_guard": "STAND_IN", + "bounds": {"inbox": 0.030, "extrap": 0.080, "onestep": -1.000, "coef_ppm": -1, "size": 9}, + "scoring_box_rule": "spec 6.1 rev 3: in-box = reset box, extrapolation box = 1.5 x reset box, per observed variable", + "episode_max_steps": 100, "budget_steps": 8000, "budget_episodes": 300, + "boxes_micro": [{"var": "s0", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}, {"var": "s1", "reset_and_inbox": [-2000000, 2000000], "extrap": [-3000000, 3000000]}], + "constant_ranges_micro": [{"name": "k", "lo": 3000000, "hi": 5000000}, {"name": "w", "lo": 500000, "hi": 1000000}, {"name": "m", "lo": 1000000, "hi": 2000000}, {"name": "q", "lo": 1000000, "hi": 2000000}], + "instances": [ + {"seed": 1, "constants_draw_order": "k,w,m,q", "redraws": 0, "constants_micro": [3368868, 905570, 1643841, 1169109], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.021371, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.021371, "truth_oob_episodes": 0, "coef_err_ppm": 169091, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 3.368857, "w": 0.905560, "m_times_q": 1.921801, "h_scale": "q=1 convention", "fit_sse": 1.825e-09, "err_ppm": {"k": 1, "w": 0, "m_times_q": 6}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.142195, "nrmse_extrap": 0.099021, "nrmse_onestep": 0.015259, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 5, "description_bits": 240, "support": false, "checks": {"inbox": "FAIL", "extrap": "FAIL", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 2, "constants_draw_order": "k,w,m,q", "redraws": 1, "constants_micro": [4128392, 885899, 1150045, 1388809], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.019826, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000001, "nrmse_extrap": 0.000001, "nrmse_onestep": 0.019826, "truth_oob_episodes": 0, "coef_err_ppm": 388803, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 4.128383, "w": 0.885895, "m_times_q": 1.597178, "h_scale": "q=1 convention", "fit_sse": 1.332e-09, "err_ppm": {"k": 1, "w": 16, "m_times_q": 1}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.074033, "nrmse_extrap": 0.066992, "nrmse_onestep": 0.009052, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 4, "description_bits": 192, "support": false, "checks": {"inbox": "FAIL", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 3, "constants_draw_order": "k,w,m,q", "redraws": 1, "constants_micro": [3794478, 685972, 1193802, 1388242], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000004, "nrmse_onestep": 0.017896, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.017896, "truth_oob_episodes": 0, "coef_err_ppm": 388222, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 3.794468, "w": 0.685967, "m_times_q": 1.657268, "h_scale": "q=1 convention", "fit_sse": 1.495e-09, "err_ppm": {"k": 2, "w": 10, "m_times_q": 8}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.119553, "nrmse_extrap": 0.100070, "nrmse_onestep": 0.012930, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 4, "description_bits": 192, "support": false, "checks": {"inbox": "FAIL", "extrap": "FAIL", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 4, "constants_draw_order": "k,w,m,q", "redraws": 7, "constants_micro": [4403162, 522824, 1163776, 1276070], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000003, "nrmse_extrap": 0.000003, "nrmse_onestep": 0.014461, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.014461, "truth_oob_episodes": 0, "coef_err_ppm": 276070, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 4.403152, "w": 0.522820, "m_times_q": 1.485044, "h_scale": "q=1 convention", "fit_sse": 1.514e-09, "err_ppm": {"k": 2, "w": 0, "m_times_q": 11}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.063098, "nrmse_extrap": 0.067130, "nrmse_onestep": 0.007078, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 4, "description_bits": 192, "support": false, "checks": {"inbox": "FAIL", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + }, + {"seed": 5, "constants_draw_order": "k,w,m,q", "redraws": 3, "constants_micro": [3292448, 990681, 1016836, 1491901], "fit_transitions": 8000, "fit_episodes": 80, + "oracle_exact": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.016633, "truth_oob_episodes": 0, "coef_err_ppm": 0, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit": {"nrmse_inbox": 0.000002, "nrmse_extrap": 0.000002, "nrmse_onestep": 0.016633, "truth_oob_episodes": 0, "coef_err_ppm": 491906, "size": 7, "description_bits": 344, "support": true, "checks": {"inbox": "PASS", "extrap": "PASS", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "PASS"}, "verdict": "PASS"}, + "oracle_fit_l6_estimate": {"k": 3.292438, "w": 0.990674, "m_times_q": 1.517002, "h_scale": "q=1 convention", "fit_sse": 1.533e-09, "err_ppm": {"k": 1, "w": 6, "m_times_q": 5}, "in_declared_ranges": "PASS"}, + "sparse_ref": {"nrmse_inbox": 0.094117, "nrmse_extrap": 0.103313, "nrmse_onestep": 0.011524, "truth_oob_episodes": 0, "coef_err_ppm": -1, "size": 6, "description_bits": 288, "support": false, "checks": {"inbox": "FAIL", "extrap": "FAIL", "onestep": "NOT_SCORED", "coef": "NOT_SCORED", "size": "PASS", "support": "FAIL"}, "verdict": "FAIL"} + } + ], + "v3_breach": [{"seed": 1, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 2, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 3, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 4, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 5, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 6, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 7, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 8, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 9, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 10, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 11, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 12, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 13, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 14, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 15, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 16, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 17, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 18, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 19, "episodes": 80, "oob": 0, "rate": 0.0000}, {"seed": 20, "episodes": 80, "oob": 0, "rate": 0.0000}], + "v3_worst_rate": 0.0000, + "verdicts": {"V1_oracle_exact": "PASS", "V1_oracle_fit": "PASS", "V3": "PASS"} +}