Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/patches/caa449a4611f4502 # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/omega-mv#258 (code only) closed derived `caa449a4611f4502` #258 Imported from GitHub aien-dev/omega-mv#258 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `f9a17970ea00c4ead5bbb18dbf5e5509ad2977d0` · Head `6d924212bb00ab4c1ffe914819aa16c2ea528c90` ### Apply it ``` git checkout -b patch-caa449a4611f4502 f9a17970ea00c4ead5bbb18dbf5e5509ad2977d0 curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/caa449a4611f4502.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 258 6d924212bb00ab4c1ffe914819aa16c2ea528c90 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":258,"url":"https://github.com/aien-dev/omega-mv/pull/258","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:00Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/docs/physics0/LEARNER.md b/docs/physics0/LEARNER.md index ff406134e..f727ca1d4 100644 --- a/docs/physics0/LEARNER.md +++ b/docs/physics0/LEARNER.md @@ -135,3 +135,18 @@ batch; voids never count toward p or f). Latent-variable fitting, local refinement in the planner (Direction 5), multi-step consistency in candidate ranking, PD0DESC2 parsing beyond the assumed per-variable layout. + +## Running against an external world (PD-0b harness) + +The harness has an external-world mode: `pd0-harness - ` +takes play AND truth (relation shape, noise-free scoring trajectories) from the one world +binary over protocol v2; no `pd0-truth` process. Protocol: `docs/physics0/PD0_PROTOCOL_V2.md`. + +- `make physics0-pd0b-run PD0_WORLD_BIN= PD0B_SEEDS=`: seeds file has lines + `level_index seed` (0..6 or `null`), exactly five per level listed. Runs the real ladder + checker and scorer, writes one new receipt `evidence/physics0/pd0b/PD0B_RUN--.txt` + and refuses to overwrite. A dirty worktree is refused. Revision 2: the harness sends `final` before it asks for shape or score; the receipt records the final hash and the world's refusal counters per instance and says VALID or INVALID. +- `make physics0-pd0b-freeze`: prints the git tree hash of the four frozen directories, the + sha256 of every file under them and of the harness binary (print only). + +Runs with the omega `pd0-world` are stand-in verification, not PD-0b results. diff --git a/docs/physics0/PD0_PROTOCOL_V2.md b/docs/physics0/PD0_PROTOCOL_V2.md new file mode 100644 index 000000000..cd0b75d52 --- /dev/null +++ b/docs/physics0/PD0_PROTOCOL_V2.md @@ -0,0 +1,98 @@ +# PD0 protocol v2, revision 2 + +Status: implemented in the omega world binary (`src/physics0/pd0_world.c`, `pd0_wire.h`). +The sealed PD-0b world binary MUST implement the same two extra operations, byte for byte, +so the PD-0b harness (`make physics0-pd0b-run`) can take play data and truth from one binary. + +## Transport + +The binary is started as ` `. It reads framed requests on +stdin and writes framed responses on stdout until stdin closes. A frame is a u32 little-endian +length followed by that many bytes. A response of length 0 (frame `00 00 00 00`) means the +request was refused (malformed, wrong length, unknown op, or a value the op rejects). Integers +are little-endian; i64 values are two's complement. All values are micro-units. + +## Ops 0, 1, 2 (unchanged) + +| op | request | response | +|---|---|---| +| 0 describe | `[0]` | PD0DESC2 record (`PD0DESC2` magic; v1 is refused by the harness) | +| 1 reset | `[1][n_obs u8][n_obs x i64]` | PD0REC1 record | +| 2 step | `[2][channel u8 (255 = none)][value i64]` | PD0REC1 record | + +These are byte-identical to the rev 7 world. They charge budgets and extend the hash chain. + +## Ops 5 and 6: final and audit (revision 2) + +Op 5 `final`: request `[5][32 bytes]`, length exactly 33; the 32 bytes are the SHA-256 of the learner's final submitted +relation bundle, as defined by the harness. Response, 1 byte: `0` accepted (first `final`), `1` refused as a duplicate +(the first hash is kept). A request of any other length gets a zero-length refusal and is not counted. + +Op 6 `audit`: request `[6]`. Response (57 bytes): `PD0AUDT1`, `final_done u8`, then four u32 counters +`score_before_final`, `shape_before_final` (reserved, always 0 since shape-before-final is not a refusal), `play_after_final`, `dup_final`, then the 32-byte final hash (zeros if none). +Free at all times and never counted. + +## State machine + +- OPEN (start): ops 0, 1, 2, 4 (dimensions only), 6 served. Op 3 is refused with a zero-length answer and counted (`score_before_final`). Op 5 moves to FINAL. +- FINAL: ops 0, 3, 4 (full), 6 served. ops 1 and 2 are refused (zero-length) and counted (`play_after_final`). A second op 5 is refused (status 1) and counted (`dup_final`). +- Op 0 describe is free in both states. No refusal charges budgets or extends the hash chain. +- A run is VALID only if the final was accepted once, the audit echoes the same hash, and all four counters are 0. + +## Op 3: score (noise-free truth trajectory) + +Request: `[3][n_obs u8][reset: n_obs x i64][n_steps u8][n_steps x ([channel u8 (255 = none)][value i64])]` +Length is exactly `3 + 8*n_obs + 9*n_steps`. `n_obs` must equal the describe record's `n_obs`; +`n_steps` is 0..100; a channel other than 255 must be below the describe record's `n_channels`. +Any violation gives a refusal (length 0). + +Response: `[status u8][n_done u8][n_done x n_obs x i64]`, length `2 + 8*n_obs*n_done`. +`status` is 0 (OK, `n_done == n_steps`) or 2 (OUT_OF_BOUNDS: a variable left +-10.0 units at +step `n_done`; `n_done` states before it are returned). Values are the noise-free state of the +observed variables after each step (no observation noise, hidden variable not shown). + +Semantics: stateless. Starts from the given reset vector (not range-checked: the scorer asks for +1.5x the reset box) with the hidden variable at zero, applies the hidden dynamics with the +noise-free update, and does not touch the budgets, the episode counter, the hash chain or the +noise streams. Revision 2: refused until `final` has been accepted (see the state machine). + +## Op 4: shape (dimensions before final, full after) + +Request: `[4]` (length 1). Response (`PD0SHAP1`). Revision 2 split: BEFORE `final` the response carries the dimension +fields only (n_vars, n_latent, n_channels, S*) with n_equations = 0, relation size = 0 and n_terms = 0 (length 22); this is +not a refusal and is not counted. AFTER `final` the response is full, with the true terms. The dimensions are public per +level; the terms are the secret and stay locked until `final`. The dimension fields must be identical before and after. + +| bytes | field | +|---|---| +| 0..8 | magic `PD0SHAP1` | +| 8 | n_vars (observed plus latent) | +| 9 | n_latent | +| 10 | n_channels | +| 11 | n_equations | +| 12..16 | u32 S*: the spec 6.2 size of the true law (the harness uses size_bound = S* + 2) | +| 16..20 | u32 size of the true relation as built | +| 20..22 | u16 n_terms (all equations) | +| 22.. | n_terms records: `[target u8][coef i64][n_vars exponents u8][n_channels exponents u8]` | + +Total length `22 + n_terms*(9 + n_vars + n_channels)`. Terms are in equation order, then term +order. The coefficient is the delta-form coefficient (dt folded in) in micro-units, the same +numbers the test-only `pd0-truth` printed. The null world returns zero terms and zero equations. + +## Harness side + +`pd0-harness - ` (the dash replaces the truth binary) plays with ops 0..2, then sends `final`, then uses +ops 4 and 3 for the relation shape and the scorer's truth episodes; the run uses ops 0..2 only +for play. With a real truth binary instead of `-` the older mode is unchanged. + +## Notes for the sealed binary + +Implement exactly this (the omega world is a stand-in, nothing here is a PD-0b result): + +1. Ops 0, 1, 2 are the rev 7 bytes, unchanged. New ops: 3 score, 4 shape, 5 final, 6 audit; same framing (u32 LE length, zero-length frame = refusal). +2. State: one flag `final_done` (starts 0) and four u32 counters plus the 32-byte first final hash. Refusal rules are in the state machine above; count every refused op 3 or 4 before final, every op 1 or 2 after final (regardless of well-formedness), and every second `final`. +3. `describe` may reveal only the PD0DESC2 record, in both states, always. It must not reveal terms, constants, S* or latent counts. S*, n_vars, n_latent and n_channels come only from `shape`. +4. `score` and the terms of `shape` may be served only after `final`; before it `shape` answers dimensions only (n_equations, relation size and n_terms zero) and is not counted. `score` is stateless (no budget, chain or noise-stream effect). +5. `final` binds the SHA-256 of the harness-defined bundle: the emitted PDLAW1 record, or if none the candidate relation bytes, or if none the empty string. The world only records it and echoes it in `audit`; it does not interpret it. +6. The harness reads the dimensions (S*, n_vars, n_latent, n_channels) with `shape` BEFORE the run and takes the size bound S*+2 from them; it sends `final` once per instance, only after the learner has submitted to the ladder checker, and calls `audit` at the end. After `final` it re-reads `shape` in full and marks the instance INVALID if the dimensions changed. In PD0 mode (the omega world, binary named pd0-world and PD0B not 1) it also checks S* against the public per-level table (2, 3, 4, 8, 4, 4, 7, null 0), a self-consistency check of the omega world only. In sealed mode (any other binary, or PD0B=1) the table check is skipped and S*, n_vars, n_latent, n_channels from `shape` are recorded per instance in the PD0B_RUN receipt so the reveal can verify them against the revealed families. +7. Op 4 reveals the true terms to the harness (the scorer needs them for constants). The harness never forwards them to the learner. diff --git a/evidence/physics0/pd0b/PD0B_RUN-22cb8024c3ea-7a712999b5c4.txt b/evidence/physics0/pd0b/PD0B_RUN-22cb8024c3ea-7a712999b5c4.txt new file mode 100644 index 000000000..b094abbd0 --- /dev/null +++ b/evidence/physics0/pd0b/PD0B_RUN-22cb8024c3ea-7a712999b5c4.txt @@ -0,0 +1,211 @@ +receipt: PD0B_RUN +run_validity: VALID +validity_rule: VALID needs, per instance, a final accepted once, shape dimensions unchanged across final (and, in PD0 mode with the omega world, S* equal to the public table), an audit echoing the final hash, and every refusal counter 0 +note: STAND-IN VERIFICATION (protocol v2 revision 2, shape split) with the omega pd0-world. NOT a PD-0b result. +date_utc: 2026-10-04T01:47:02Z +harness_commit: 22cb8024c3eab9cdc5b332489be57fd788ca4ef6 +world_binary: build/physics0/pd0-world +world_binary_sha256: 7a712999b5c41c93945423a1ea9ca18e17e80805e15e278d84449f1f097a3be4 +seeds_file_sha256: e8a3814010b9a0d631b239bf04d0f8fe6aa7325dfe205753e4f211a768619c7f +mode: external world, PD0 protocol v2 (play and truth from the one world binary; no pd0-truth) +--- freeze (learner, ladder, scorer, controls) +freeze_head: 22cb8024c3eab9cdc5b332489be57fd788ca4ef6 +tree src/physics0/learner 1dceff1be806e5a87959c72afa1a127ef9ceec14 +tree src/physics0/ladder 1a1d1dc61f0cfe4bedc2afacc228aa7c5e2e795d +tree src/physics0/score 288882ae723da6a2659d74f27ddc58527a8c6660 +tree src/physics0/controls ab6235f40ab056a655ded45594c36b01cbbff69b +frozen_dirs_modified_in_worktree: 0 +file 98287309c8a2414bd68c7cf38a0f513ccefa14b126c310e30eac7b7e939904f0 src/physics0/controls/.crumb +file 6b38bad721d1e4293425d1678425f71841c2b850aeffc2db0791f78be70d9989 src/physics0/controls/pd0_controls.c +file 0a4c3ea6a938b5885feb528dfbb349ee3d8495c79adb3b97b543cd0848626dce src/physics0/controls/pd0_controls.h +file acd4c63f54eee33c26b1799ea8ee61de8e1c945dd183872932459221c532d370 src/physics0/controls/pd0_receipt.c +file 0f5b5fd39ab1b9f0722946f806aaeb33faea0b8a944f43e8a88da1b1af813812 src/physics0/controls/pd0_receipt.h +file 4b95ac11781d4f081a90f80e1feb02fd2ceaa5843d91663a3753b22942f95c27 src/physics0/ladder/.crumb +file cd409166cfd54b08a39f52fa786b5609acae85112171c5b25e7ddb124f103262 src/physics0/ladder/pd0_codes.c +file 709be1faaaf250dd5c163e16c4a513cfea4e709aa7fe33a40be5afaf811a2de9 src/physics0/ladder/pd0_codes.h +file f3ab621c5c88a9c6a109a127a0f916fc3d582e1425bdf6401b93a2bc78e0dca6 src/physics0/ladder/pd0_fmt.c +file 2c78cae21851e75c5e65530f391ce6d8fad346387de149ff61ca75263788bc14 src/physics0/ladder/pd0_fmt.h +file 3ba32a8f2eb36f8c7bf023d02445e9795b7dcee3e84a0ead25923eb495c950ae src/physics0/ladder/pd0_ladder.c +file cae754beb21d65f178c70437e3a8b88209b4c503d5d69227d549e5590d7dbcd5 src/physics0/ladder/pd0_ladder.h +file 07989a0378c10f11f6549450866d1bb2947f8a9bcef4ed57540f13ecc395093a src/physics0/ladder/pd0_rng.h +file d419296e9b472dd3bd516fe2570c1eb4e849a854821efeb2ed00772109b84cad src/physics0/learner/.crumb +file 480c9f950968fc13cf206cfe0701c404086fba2cdc7bd616bd553ccd8e6b5690 src/physics0/learner/pd0_learner.c +file 41fe375015c68e9b2e26b481e439b84ca481303d6115ddea5c9c25b9defbd4dd src/physics0/learner/pd0_learner.h +file 620a28e324ddbc314ed4e77927192baa989ade83062d144d361904a76d0f6e3c src/physics0/learner/pd0_learner_main.c +file 970e36b380a5170ca406934c8a70ec5aef209b1a043d6658b062bb1815cf938a src/physics0/score/.crumb +file dc86f525ff719c882df2ef90f6c3ff204c1b04a8ff7488283769cb733db4f553 src/physics0/score/pd0_score.c +file 4e52477f74a45a9a9a5da5d19eeae7ca4d56e49136943fd8766007947ae44fd9 src/physics0/score/pd0_score.h +harness_binary_sha256: ee8223221abbefdfcbc432097e447f3eecf4b3d9f8e7bd4177713644f1e72520 +--- seeds file +0 1 +0 2 +0 3 +0 4 +0 5 +1 1 +1 2 +1 3 +1 4 +1 5 +2 1 +2 2 +2 3 +2 4 +2 5 +3 1 +3 2 +3 3 +3 4 +3 5 +4 1 +4 2 +4 3 +4 4 +4 5 +5 1 +5 2 +5 3 +5 4 +5 5 +6 1 +6 2 +6 3 +6 4 +6 5 +null 1 +null 2 +null 3 +null 4 +null 5 +--- per instance: level seed ladder_state checker_code scorer_verdict scorer_code +level=L0 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L6 seed=1 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=2 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=3 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=4 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=5 state=CANDIDATE code=251 score=FAIL score_code=307 +level=null seed=1 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=2 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=3 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=4 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=5 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +--- per instance: final bundle hash and the world refusal counters (protocol v2 rev 2) +level=L0 seed=1 final=bc6fba0593dbf61df35511c0f736a1689cc86839df6e59da2b6dcd862355c013 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=2 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L0 seed=2 final=233a0a3be47a8f672db40462ed3f03848e953a844a2316fd4ec9345d60554625 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=2 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L0 seed=3 final=e616b48080f4b8819df6279ed97ecf3e44c2511efba6045f54bc65b86a36f8c7 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=2 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L0 seed=4 final=64bce1127211036b8ce8d6711a25626fcfe79440bd488e1888b269f32b30cd13 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=2 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L0 seed=5 final=ef93178ee3a5cd5a384360ced7b6f36a3f7b8ba228e653d9652c03580d6387b9 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=2 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L1 seed=1 final=83875b7468f268a1949a4cb98c869b31ed3aba70972137a3c6baa95fed20be37 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=3 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L1 seed=2 final=e95f5c5256d175360b5378dcc868783eaa7702a909a28bec33e2321a7cf1284f final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=3 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L1 seed=3 final=696e5fcf5f882379c3664f3c8425ce8d11e52877c8002075c0f1c35cc8868238 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=3 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L1 seed=4 final=d2b73a12c5664d374b0b2f248089cbcf237b7b297fe7110f01e93f9c2106097e final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=3 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L1 seed=5 final=23a158d5a10a19923994738836b7b2362239a9e9e923c858ff9525318b81aaed final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=3 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L2 seed=1 final=77115e2f349fc4ed9725b616f2e4bfb423f16644d8fb41af9f8bd79c744e1b8f final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L2 seed=2 final=118d52fcdd063b90d2918951712d332947d4675b943351284f670a4a38fddac4 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L2 seed=3 final=c5a8659a42b55377b297767e92ce5f1d6b6532ab27b365f8efab348efb33d388 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L2 seed=4 final=3bcc472d941564845b9eeaed899b86692ff2592ab967db76c0d161c4e3a4911b final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L2 seed=5 final=5346e11d9f74dfa0f9b39fa5405e1631f8d99f99722ded8a638e175fcb0a25f8 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L3 seed=1 final=567e6fb623ef99bdaaa46437ec7be6d656a8748b5ec207eb704641c243ab955d final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=8 n_vars=4 n_latent=0 n_channels=2 valid=VALID +level=L3 seed=2 final=6a6c3cfdfee141aa5d39eda4c85cc30c0097f5f2f45bc041c9005900131e9c9d final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=8 n_vars=4 n_latent=0 n_channels=2 valid=VALID +level=L3 seed=3 final=944f7fff9d8f47c97209a2646ed9f70b908f41136717d441f4fcb4f663b78def final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=8 n_vars=4 n_latent=0 n_channels=2 valid=VALID +level=L3 seed=4 final=b02d6f63ee03c8de59ffe40a4c55ee1fef1441ab42d8af29b974ac5c857a04fc final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=8 n_vars=4 n_latent=0 n_channels=2 valid=VALID +level=L3 seed=5 final=cb0cc9323693b7305d821d74e7d8a853a5755fa69bc0a7d8199f6a2adf15d605 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=8 n_vars=4 n_latent=0 n_channels=2 valid=VALID +level=L4 seed=1 final=be4d0585419b61664ec6998bcb0619b245b7b53170832858672ae6648f1b8073 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L4 seed=2 final=577b6605ff37e0c4e54221c02f2c3c0f9a9f196206b13fb03d136603b01b0fd3 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L4 seed=3 final=f6b3a26e885ba9cdf91cc2f7757d60369288c4ff194cd1027844b63fd9f2984b final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L4 seed=4 final=a3432389edf480164e0c25d817ce2e332c9001c3df8f82000561021dee0ec4b1 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L4 seed=5 final=a67072bd37e54a98fd4754ca0bd074ae9625e104acc8cb1d20d4bfc353274613 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L5 seed=1 final=1162d56da182d45ffa18687a2eed9cbc68ba0c2a3703ad8807a96f3fb76bb1e4 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L5 seed=2 final=215664eda2fa37431a2deaf0f8065d9e88b4ff633586d48b8ac47b5b8fa3691a final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L5 seed=3 final=3f9244d7abbacc7030f60fb1347aae3035ea0f582af8d97b396d9db8081fd53c final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L5 seed=4 final=f310a4d2825a2ca689e9c8779cbfdb63987ad8e14ab9a5e98f2a86be94ad374a final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L5 seed=5 final=3294a4fe33fbb456fc182bb4e5f91c9f2f3f5975fd32bd3c0da348f171c522db final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=4 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=L6 seed=1 final=813e6c29d4e36fd5bc5b575f57632ec17980741726bf61d1152bdc67ce767fb9 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=7 n_vars=3 n_latent=1 n_channels=1 valid=VALID +level=L6 seed=2 final=30bb4a611ff05d786bac8f4dc90e0fb7e78dbc563471c4500beca529d899ee9e final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=7 n_vars=3 n_latent=1 n_channels=1 valid=VALID +level=L6 seed=3 final=33999ec53549f11f23b000a989929ebf9bb9055ab93e988515addc741185d5d9 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=7 n_vars=3 n_latent=1 n_channels=1 valid=VALID +level=L6 seed=4 final=230583993c9f424b7a542640feb2255e36eac1ef5c294c0f660a28e002af112b final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=7 n_vars=3 n_latent=1 n_channels=1 valid=VALID +level=L6 seed=5 final=e7cad6cfe282ea65c050ebeb6d6d35fc4e79ab9423d918b924a704febfa164ca final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=7 n_vars=3 n_latent=1 n_channels=1 valid=VALID +level=null seed=1 final=23404bd1d52b9997f169a6a8822b4416001dd95018a1690b3f0b2efdeed824d5 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=0 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=null seed=2 final=0c4d3b7ae0701f73bcbca50121fa4704a9f0ffd83b16bc2bf47f4d14ebf7add3 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=0 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=null seed=3 final=124334c39225d27b82590a12599ac75bcc7b2f1e3457dfd12a353db4cd788e95 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=0 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=null seed=4 final=07b0edfb4744ae282143cd44daab5b0f1f0162960537f8658cead938a0edb8b0 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=0 n_vars=2 n_latent=0 n_channels=1 valid=VALID +level=null seed=5 final=606c85c2d18cb37778843fa6361a2c6cb8662e9d65e1f839dd3108ee37eca8e2 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 mode=PD0 s_star=0 n_vars=2 n_latent=0 n_channels=1 valid=VALID +--- state count per level +L0 REPLICATED score=PASS x5 +L1 REPLICATED score=PASS x5 +L2 REPLICATED score=PASS x5 +L3 REPLICATED score=PASS x5 +L4 REPLICATED score=PASS x5 +L5 REPLICATED score=PASS x5 +L6 CANDIDATE score=FAIL x5 +null OBSERVATION score=NOT_SCORED x5 +--- raw harness lines +PD0L level=L0 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=2 desc=v2 episodes=145 steps=2898 fit=1317 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=3 desc=v2 episodes=145 steps=2899 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=4 desc=v2 episodes=145 steps=2899 fit=1320 select=437 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=2 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=5 desc=v2 episodes=146 steps=2919 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=1 void_batch=0 +PD0L level=L1 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=2 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=6 extrap=6 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=8 extrap=4 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=2 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=5 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3 extrap=4 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=2 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=23 extrap=28 onestep=2 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9 extrap=8 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=8 extrap=6 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9 extrap=6 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=15 extrap=6 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=1 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=30248 select_nrmse=32375 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3903 extrap=4164 onestep=497 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=2 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=38039 select_nrmse=42991 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=10846 extrap=9891 onestep=1088 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=3 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=32341 select_nrmse=34964 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=17789 extrap=18118 onestep=2176 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=4 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=33607 select_nrmse=33926 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9881 extrap=10085 onestep=1294 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=5 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=31997 select_nrmse=32532 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=6186 extrap=6864 onestep=685 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=1 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=6 cand_bits=288 size_bound=9 fit_nrmse=10622 select_nrmse=10781 hidden_state=1 score=FAIL score_code=307 mask=0x183 inbox=83238 extrap=170182 onestep=0 ref=66472 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=2 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=6758 select_nrmse=6819 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=67405 extrap=74489 onestep=0 ref=63828 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=3 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=8389 select_nrmse=8490 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=60855 extrap=75487 onestep=0 ref=58964 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=4 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=6525 select_nrmse=6878 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=54335 extrap=73008 onestep=0 ref=59366 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=5 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=7792 select_nrmse=7646 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=72836 extrap=69814 onestep=0 ref=68627 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=1 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000700 select_nrmse=1000751 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=2 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000709 select_nrmse=1001724 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=3 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=999896 select_nrmse=1007210 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=4 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000521 select_nrmse=1000384 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=5 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000243 select_nrmse=1000843 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 diff --git a/evidence/physics0/pd0b/PD0B_RUN-c8f7311b2bf1-440a91774d90.txt b/evidence/physics0/pd0b/PD0B_RUN-c8f7311b2bf1-440a91774d90.txt new file mode 100644 index 000000000..0e916fd5d --- /dev/null +++ b/evidence/physics0/pd0b/PD0B_RUN-c8f7311b2bf1-440a91774d90.txt @@ -0,0 +1,168 @@ +receipt: PD0B_RUN +note: STAND-IN VERIFICATION with the omega pd0-world. NOT a PD-0b result. +date_utc: 2026-10-04T01:14:11Z +harness_commit: c8f7311b2bf163fe1e4d6fabf5fa6bfc164e6675 +world_binary: build/physics0/pd0-world +world_binary_sha256: 440a91774d9006855b68d61ed8fc967da6fa267a659c3c9a679bb484df0e9332 +seeds_file_sha256: e8a3814010b9a0d631b239bf04d0f8fe6aa7325dfe205753e4f211a768619c7f +mode: external world, PD0 protocol v2 (play and truth from the one world binary; no pd0-truth) +--- freeze (learner, ladder, scorer, controls) +freeze_head: c8f7311b2bf163fe1e4d6fabf5fa6bfc164e6675 +tree src/physics0/learner 1dceff1be806e5a87959c72afa1a127ef9ceec14 +tree src/physics0/ladder 1a1d1dc61f0cfe4bedc2afacc228aa7c5e2e795d +tree src/physics0/score 288882ae723da6a2659d74f27ddc58527a8c6660 +tree src/physics0/controls ab6235f40ab056a655ded45594c36b01cbbff69b +frozen_dirs_modified_in_worktree: 0 +file 98287309c8a2414bd68c7cf38a0f513ccefa14b126c310e30eac7b7e939904f0 src/physics0/controls/.crumb +file 6b38bad721d1e4293425d1678425f71841c2b850aeffc2db0791f78be70d9989 src/physics0/controls/pd0_controls.c +file 0a4c3ea6a938b5885feb528dfbb349ee3d8495c79adb3b97b543cd0848626dce src/physics0/controls/pd0_controls.h +file acd4c63f54eee33c26b1799ea8ee61de8e1c945dd183872932459221c532d370 src/physics0/controls/pd0_receipt.c +file 0f5b5fd39ab1b9f0722946f806aaeb33faea0b8a944f43e8a88da1b1af813812 src/physics0/controls/pd0_receipt.h +file 4b95ac11781d4f081a90f80e1feb02fd2ceaa5843d91663a3753b22942f95c27 src/physics0/ladder/.crumb +file cd409166cfd54b08a39f52fa786b5609acae85112171c5b25e7ddb124f103262 src/physics0/ladder/pd0_codes.c +file 709be1faaaf250dd5c163e16c4a513cfea4e709aa7fe33a40be5afaf811a2de9 src/physics0/ladder/pd0_codes.h +file f3ab621c5c88a9c6a109a127a0f916fc3d582e1425bdf6401b93a2bc78e0dca6 src/physics0/ladder/pd0_fmt.c +file 2c78cae21851e75c5e65530f391ce6d8fad346387de149ff61ca75263788bc14 src/physics0/ladder/pd0_fmt.h +file 3ba32a8f2eb36f8c7bf023d02445e9795b7dcee3e84a0ead25923eb495c950ae src/physics0/ladder/pd0_ladder.c +file cae754beb21d65f178c70437e3a8b88209b4c503d5d69227d549e5590d7dbcd5 src/physics0/ladder/pd0_ladder.h +file 07989a0378c10f11f6549450866d1bb2947f8a9bcef4ed57540f13ecc395093a src/physics0/ladder/pd0_rng.h +file d419296e9b472dd3bd516fe2570c1eb4e849a854821efeb2ed00772109b84cad src/physics0/learner/.crumb +file 480c9f950968fc13cf206cfe0701c404086fba2cdc7bd616bd553ccd8e6b5690 src/physics0/learner/pd0_learner.c +file 41fe375015c68e9b2e26b481e439b84ca481303d6115ddea5c9c25b9defbd4dd src/physics0/learner/pd0_learner.h +file 620a28e324ddbc314ed4e77927192baa989ade83062d144d361904a76d0f6e3c src/physics0/learner/pd0_learner_main.c +file 970e36b380a5170ca406934c8a70ec5aef209b1a043d6658b062bb1815cf938a src/physics0/score/.crumb +file dc86f525ff719c882df2ef90f6c3ff204c1b04a8ff7488283769cb733db4f553 src/physics0/score/pd0_score.c +file 4e52477f74a45a9a9a5da5d19eeae7ca4d56e49136943fd8766007947ae44fd9 src/physics0/score/pd0_score.h +harness_binary_sha256: 1dea642b32a93849c58b196c3154e41d42d23fac184bc22feb6111c1d9124103 +--- seeds file +0 1 +0 2 +0 3 +0 4 +0 5 +1 1 +1 2 +1 3 +1 4 +1 5 +2 1 +2 2 +2 3 +2 4 +2 5 +3 1 +3 2 +3 3 +3 4 +3 5 +4 1 +4 2 +4 3 +4 4 +4 5 +5 1 +5 2 +5 3 +5 4 +5 5 +6 1 +6 2 +6 3 +6 4 +6 5 +null 1 +null 2 +null 3 +null 4 +null 5 +--- per instance: level seed ladder_state checker_code scorer_verdict scorer_code +level=L0 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L6 seed=1 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=2 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=3 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=4 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=5 state=CANDIDATE code=251 score=FAIL score_code=307 +level=null seed=1 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=2 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=3 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=4 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=5 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +--- state count per level +L0 REPLICATED score=PASS x5 +L1 REPLICATED score=PASS x5 +L2 REPLICATED score=PASS x5 +L3 REPLICATED score=PASS x5 +L4 REPLICATED score=PASS x5 +L5 REPLICATED score=PASS x5 +L6 CANDIDATE score=FAIL x5 +null OBSERVATION score=NOT_SCORED x5 +--- raw harness lines +PD0L level=L0 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=2 desc=v2 episodes=145 steps=2898 fit=1317 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=3 desc=v2 episodes=145 steps=2899 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=4 desc=v2 episodes=145 steps=2899 fit=1320 select=437 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=2 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=5 desc=v2 episodes=146 steps=2919 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=1 void_batch=0 +PD0L level=L1 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=2 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=6 extrap=6 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=8 extrap=4 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=2 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=5 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3 extrap=4 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=2 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=23 extrap=28 onestep=2 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9 extrap=8 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=8 extrap=6 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9 extrap=6 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=15 extrap=6 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=1 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=30248 select_nrmse=32375 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3903 extrap=4164 onestep=497 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=2 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=38039 select_nrmse=42991 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=10846 extrap=9891 onestep=1088 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=3 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=32341 select_nrmse=34964 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=17789 extrap=18118 onestep=2176 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=4 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=33607 select_nrmse=33926 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9881 extrap=10085 onestep=1294 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=5 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=31997 select_nrmse=32532 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=6186 extrap=6864 onestep=685 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=1 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=6 cand_bits=288 size_bound=9 fit_nrmse=10622 select_nrmse=10781 hidden_state=1 score=FAIL score_code=307 mask=0x183 inbox=83238 extrap=170182 onestep=0 ref=66472 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=2 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=6758 select_nrmse=6819 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=67405 extrap=74489 onestep=0 ref=63828 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=3 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=8389 select_nrmse=8490 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=60855 extrap=75487 onestep=0 ref=58964 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=4 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=6525 select_nrmse=6878 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=54335 extrap=73008 onestep=0 ref=59366 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=5 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=7792 select_nrmse=7646 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=72836 extrap=69814 onestep=0 ref=68627 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=1 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000700 select_nrmse=1000751 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=2 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000709 select_nrmse=1001724 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=3 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=999896 select_nrmse=1007210 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=4 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000521 select_nrmse=1000384 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=5 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000243 select_nrmse=1000843 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 diff --git a/evidence/physics0/pd0b/PD0B_RUN-edefe051000a-afb97a83dc64.txt b/evidence/physics0/pd0b/PD0B_RUN-edefe051000a-afb97a83dc64.txt new file mode 100644 index 000000000..73e2227c3 --- /dev/null +++ b/evidence/physics0/pd0b/PD0B_RUN-edefe051000a-afb97a83dc64.txt @@ -0,0 +1,211 @@ +receipt: PD0B_RUN +run_validity: VALID +validity_rule: VALID needs, per instance, a final accepted once, shape S* equal to the public table, an audit echoing the final hash, and every refusal counter 0 +note: STAND-IN VERIFICATION (protocol v2 revision 2) with the omega pd0-world. NOT a PD-0b result. +date_utc: 2026-10-04T01:34:56Z +harness_commit: edefe051000abf7eb26609673fafd9b13368b034 +world_binary: build/physics0/pd0-world +world_binary_sha256: afb97a83dc6403d430e0007f3de904aa83a9a7c33b0cf094a0410eb421df4b75 +seeds_file_sha256: e8a3814010b9a0d631b239bf04d0f8fe6aa7325dfe205753e4f211a768619c7f +mode: external world, PD0 protocol v2 (play and truth from the one world binary; no pd0-truth) +--- freeze (learner, ladder, scorer, controls) +freeze_head: edefe051000abf7eb26609673fafd9b13368b034 +tree src/physics0/learner 1dceff1be806e5a87959c72afa1a127ef9ceec14 +tree src/physics0/ladder 1a1d1dc61f0cfe4bedc2afacc228aa7c5e2e795d +tree src/physics0/score 288882ae723da6a2659d74f27ddc58527a8c6660 +tree src/physics0/controls ab6235f40ab056a655ded45594c36b01cbbff69b +frozen_dirs_modified_in_worktree: 0 +file 98287309c8a2414bd68c7cf38a0f513ccefa14b126c310e30eac7b7e939904f0 src/physics0/controls/.crumb +file 6b38bad721d1e4293425d1678425f71841c2b850aeffc2db0791f78be70d9989 src/physics0/controls/pd0_controls.c +file 0a4c3ea6a938b5885feb528dfbb349ee3d8495c79adb3b97b543cd0848626dce src/physics0/controls/pd0_controls.h +file acd4c63f54eee33c26b1799ea8ee61de8e1c945dd183872932459221c532d370 src/physics0/controls/pd0_receipt.c +file 0f5b5fd39ab1b9f0722946f806aaeb33faea0b8a944f43e8a88da1b1af813812 src/physics0/controls/pd0_receipt.h +file 4b95ac11781d4f081a90f80e1feb02fd2ceaa5843d91663a3753b22942f95c27 src/physics0/ladder/.crumb +file cd409166cfd54b08a39f52fa786b5609acae85112171c5b25e7ddb124f103262 src/physics0/ladder/pd0_codes.c +file 709be1faaaf250dd5c163e16c4a513cfea4e709aa7fe33a40be5afaf811a2de9 src/physics0/ladder/pd0_codes.h +file f3ab621c5c88a9c6a109a127a0f916fc3d582e1425bdf6401b93a2bc78e0dca6 src/physics0/ladder/pd0_fmt.c +file 2c78cae21851e75c5e65530f391ce6d8fad346387de149ff61ca75263788bc14 src/physics0/ladder/pd0_fmt.h +file 3ba32a8f2eb36f8c7bf023d02445e9795b7dcee3e84a0ead25923eb495c950ae src/physics0/ladder/pd0_ladder.c +file cae754beb21d65f178c70437e3a8b88209b4c503d5d69227d549e5590d7dbcd5 src/physics0/ladder/pd0_ladder.h +file 07989a0378c10f11f6549450866d1bb2947f8a9bcef4ed57540f13ecc395093a src/physics0/ladder/pd0_rng.h +file d419296e9b472dd3bd516fe2570c1eb4e849a854821efeb2ed00772109b84cad src/physics0/learner/.crumb +file 480c9f950968fc13cf206cfe0701c404086fba2cdc7bd616bd553ccd8e6b5690 src/physics0/learner/pd0_learner.c +file 41fe375015c68e9b2e26b481e439b84ca481303d6115ddea5c9c25b9defbd4dd src/physics0/learner/pd0_learner.h +file 620a28e324ddbc314ed4e77927192baa989ade83062d144d361904a76d0f6e3c src/physics0/learner/pd0_learner_main.c +file 970e36b380a5170ca406934c8a70ec5aef209b1a043d6658b062bb1815cf938a src/physics0/score/.crumb +file dc86f525ff719c882df2ef90f6c3ff204c1b04a8ff7488283769cb733db4f553 src/physics0/score/pd0_score.c +file 4e52477f74a45a9a9a5da5d19eeae7ca4d56e49136943fd8766007947ae44fd9 src/physics0/score/pd0_score.h +harness_binary_sha256: 4ff065c476fd2f376af9f9fa54cd1c014ee01ba46c05bae9790627000357a868 +--- seeds file +0 1 +0 2 +0 3 +0 4 +0 5 +1 1 +1 2 +1 3 +1 4 +1 5 +2 1 +2 2 +2 3 +2 4 +2 5 +3 1 +3 2 +3 3 +3 4 +3 5 +4 1 +4 2 +4 3 +4 4 +4 5 +5 1 +5 2 +5 3 +5 4 +5 5 +6 1 +6 2 +6 3 +6 4 +6 5 +null 1 +null 2 +null 3 +null 4 +null 5 +--- per instance: level seed ladder_state checker_code scorer_verdict scorer_code +level=L0 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L0 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L1 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L2 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L3 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L4 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=1 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=2 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=3 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=4 state=REPLICATED code=0 score=PASS score_code=0 +level=L5 seed=5 state=REPLICATED code=0 score=PASS score_code=0 +level=L6 seed=1 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=2 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=3 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=4 state=CANDIDATE code=251 score=FAIL score_code=307 +level=L6 seed=5 state=CANDIDATE code=251 score=FAIL score_code=307 +level=null seed=1 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=2 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=3 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=4 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +level=null seed=5 state=OBSERVATION code=270 score=NOT_SCORED score_code=-1 +--- per instance: final bundle hash and the world refusal counters (protocol v2 rev 2) +level=L0 seed=1 final=bc6fba0593dbf61df35511c0f736a1689cc86839df6e59da2b6dcd862355c013 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L0 seed=2 final=233a0a3be47a8f672db40462ed3f03848e953a844a2316fd4ec9345d60554625 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L0 seed=3 final=e616b48080f4b8819df6279ed97ecf3e44c2511efba6045f54bc65b86a36f8c7 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L0 seed=4 final=64bce1127211036b8ce8d6711a25626fcfe79440bd488e1888b269f32b30cd13 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L0 seed=5 final=ef93178ee3a5cd5a384360ced7b6f36a3f7b8ba228e653d9652c03580d6387b9 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L1 seed=1 final=83875b7468f268a1949a4cb98c869b31ed3aba70972137a3c6baa95fed20be37 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L1 seed=2 final=e95f5c5256d175360b5378dcc868783eaa7702a909a28bec33e2321a7cf1284f final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L1 seed=3 final=696e5fcf5f882379c3664f3c8425ce8d11e52877c8002075c0f1c35cc8868238 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L1 seed=4 final=d2b73a12c5664d374b0b2f248089cbcf237b7b297fe7110f01e93f9c2106097e final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L1 seed=5 final=23a158d5a10a19923994738836b7b2362239a9e9e923c858ff9525318b81aaed final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L2 seed=1 final=77115e2f349fc4ed9725b616f2e4bfb423f16644d8fb41af9f8bd79c744e1b8f final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L2 seed=2 final=118d52fcdd063b90d2918951712d332947d4675b943351284f670a4a38fddac4 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L2 seed=3 final=c5a8659a42b55377b297767e92ce5f1d6b6532ab27b365f8efab348efb33d388 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L2 seed=4 final=3bcc472d941564845b9eeaed899b86692ff2592ab967db76c0d161c4e3a4911b final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L2 seed=5 final=5346e11d9f74dfa0f9b39fa5405e1631f8d99f99722ded8a638e175fcb0a25f8 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L3 seed=1 final=567e6fb623ef99bdaaa46437ec7be6d656a8748b5ec207eb704641c243ab955d final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L3 seed=2 final=6a6c3cfdfee141aa5d39eda4c85cc30c0097f5f2f45bc041c9005900131e9c9d final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L3 seed=3 final=944f7fff9d8f47c97209a2646ed9f70b908f41136717d441f4fcb4f663b78def final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L3 seed=4 final=b02d6f63ee03c8de59ffe40a4c55ee1fef1441ab42d8af29b974ac5c857a04fc final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L3 seed=5 final=cb0cc9323693b7305d821d74e7d8a853a5755fa69bc0a7d8199f6a2adf15d605 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L4 seed=1 final=be4d0585419b61664ec6998bcb0619b245b7b53170832858672ae6648f1b8073 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L4 seed=2 final=577b6605ff37e0c4e54221c02f2c3c0f9a9f196206b13fb03d136603b01b0fd3 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L4 seed=3 final=f6b3a26e885ba9cdf91cc2f7757d60369288c4ff194cd1027844b63fd9f2984b final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L4 seed=4 final=a3432389edf480164e0c25d817ce2e332c9001c3df8f82000561021dee0ec4b1 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L4 seed=5 final=a67072bd37e54a98fd4754ca0bd074ae9625e104acc8cb1d20d4bfc353274613 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L5 seed=1 final=1162d56da182d45ffa18687a2eed9cbc68ba0c2a3703ad8807a96f3fb76bb1e4 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L5 seed=2 final=215664eda2fa37431a2deaf0f8065d9e88b4ff633586d48b8ac47b5b8fa3691a final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L5 seed=3 final=3f9244d7abbacc7030f60fb1347aae3035ea0f582af8d97b396d9db8081fd53c final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L5 seed=4 final=f310a4d2825a2ca689e9c8779cbfdb63987ad8e14ab9a5e98f2a86be94ad374a final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L5 seed=5 final=3294a4fe33fbb456fc182bb4e5f91c9f2f3f5975fd32bd3c0da348f171c522db final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L6 seed=1 final=813e6c29d4e36fd5bc5b575f57632ec17980741726bf61d1152bdc67ce767fb9 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L6 seed=2 final=30bb4a611ff05d786bac8f4dc90e0fb7e78dbc563471c4500beca529d899ee9e final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L6 seed=3 final=33999ec53549f11f23b000a989929ebf9bb9055ab93e988515addc741185d5d9 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L6 seed=4 final=230583993c9f424b7a542640feb2255e36eac1ef5c294c0f660a28e002af112b final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=L6 seed=5 final=e7cad6cfe282ea65c050ebeb6d6d35fc4e79ab9423d918b924a704febfa164ca final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=null seed=1 final=23404bd1d52b9997f169a6a8822b4416001dd95018a1690b3f0b2efdeed824d5 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=null seed=2 final=0c4d3b7ae0701f73bcbca50121fa4704a9f0ffd83b16bc2bf47f4d14ebf7add3 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=null seed=3 final=124334c39225d27b82590a12599ac75bcc7b2f1e3457dfd12a353db4cd788e95 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=null seed=4 final=07b0edfb4744ae282143cd44daab5b0f1f0162960537f8658cead938a0edb8b0 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +level=null seed=5 final=606c85c2d18cb37778843fa6361a2c6cb8662e9d65e1f839dd3108ee37eca8e2 final_status=0 score_before_final=0 shape_before_final=0 play_after_final=0 dup_final=0 audit_ok=1 valid=VALID +--- state count per level +L0 REPLICATED score=PASS x5 +L1 REPLICATED score=PASS x5 +L2 REPLICATED score=PASS x5 +L3 REPLICATED score=PASS x5 +L4 REPLICATED score=PASS x5 +L5 REPLICATED score=PASS x5 +L6 CANDIDATE score=FAIL x5 +null OBSERVATION score=NOT_SCORED x5 +--- raw harness lines +PD0L level=L0 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=2 desc=v2 episodes=145 steps=2898 fit=1317 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=3 desc=v2 episodes=145 steps=2899 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=4 desc=v2 episodes=145 steps=2899 fit=1320 select=437 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=2 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L0 seed=5 desc=v2 episodes=146 steps=2919 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=4 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=1 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=1 void_batch=0 +PD0L level=L1 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=2 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=6 extrap=6 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L1 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=3 cand_bits=144 size_bound=5 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=8 extrap=4 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=2 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L2 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=5 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=1 extrap=1 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3 extrap=4 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=4 extrap=3 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L3 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=8 cand_bits=576 size_bound=10 fit_nrmse=0 select_nrmse=0 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3 extrap=2 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=1 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=2 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=23 extrap=28 onestep=2 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=2 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9 extrap=8 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=3 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=8 extrap=6 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=4 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9 extrap=6 onestep=0 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L4 seed=5 desc=v2 episodes=145 steps=2900 fit=1320 select=440 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=1 select_nrmse=1 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=15 extrap=6 onestep=1 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=1 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=30248 select_nrmse=32375 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=3903 extrap=4164 onestep=497 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=2 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=38039 select_nrmse=42991 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=10846 extrap=9891 onestep=1088 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=3 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=32341 select_nrmse=34964 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=17789 extrap=18118 onestep=2176 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=4 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=33607 select_nrmse=33926 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=9881 extrap=10085 onestep=1294 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L5 seed=5 desc=v2 episodes=295 steps=5900 fit=3120 select=1040 state=REPLICATED code=0 stall=0 refutations=0 attempts=1 cand_size=4 cand_bits=192 size_bound=6 fit_nrmse=31997 select_nrmse=32532 hidden_state=0 score=PASS score_code=0 mask=0x0 inbox=6186 extrap=6864 onestep=685 ref=0 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=1 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=6 cand_bits=288 size_bound=9 fit_nrmse=10622 select_nrmse=10781 hidden_state=1 score=FAIL score_code=307 mask=0x183 inbox=83238 extrap=170182 onestep=0 ref=66472 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=2 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=6758 select_nrmse=6819 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=67405 extrap=74489 onestep=0 ref=63828 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=3 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=8389 select_nrmse=8490 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=60855 extrap=75487 onestep=0 ref=58964 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=4 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=6525 select_nrmse=6878 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=54335 extrap=73008 onestep=0 ref=59366 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=L6 seed=5 desc=v2 episodes=275 steps=5500 fit=3420 select=1040 state=CANDIDATE code=251 stall=250 refutations=3 attempts=3 cand_size=5 cand_bits=240 size_bound=9 fit_nrmse=7792 select_nrmse=7646 hidden_state=1 score=FAIL score_code=307 mask=0x181 inbox=72836 extrap=69814 onestep=0 ref=68627 score_eps=20 law=0 checker_rc=0 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=1 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000700 select_nrmse=1000751 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=2 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000709 select_nrmse=1001724 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=3 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=999896 select_nrmse=1007210 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=4 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000521 select_nrmse=1000384 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 +PD0L level=null seed=5 desc=v2 episodes=110 steps=2200 fit=1320 select=440 state=OBSERVATION code=270 stall=211 refutations=0 attempts=1 cand_size=2 cand_bits=96 size_bound=6 fit_nrmse=1000243 select_nrmse=1000843 hidden_state=0 score=NOT_SCORED score_code=-1 mask=0x0 inbox=0 extrap=0 onestep=0 ref=0 score_eps=0 law=-1 checker_rc=270 oob=0 refused=0 budget_hits=0 propose_fail=0 trial_random=0 void_ep=0 void_batch=0 diff --git a/mk/physics0-learner.mk b/mk/physics0-learner.mk index 34ac00c52..1e712b04a 100644 --- a/mk/physics0-learner.mk +++ b/mk/physics0-learner.mk @@ -7,6 +7,7 @@ # test-physics0-learner isolation + unit tests (plain + ASan/UBSan) # physics0-learner-dev development run: levels L0..L6 + null, seeds 1..5 # physics0-learner-evidence copy new receipts into evidence/physics0/learner/ (cp -n) +# physics0-pd0b-run / physics0-pd0b-freeze PD-0b harness against an external world (see the end of this file) ifndef PHYSICS0_LEARNER_MK PHYSICS0_LEARNER_MK := 1 .PHONY: test-physics0-learner physics0-learner-dev physics0-learner-evidence p0l-isolation @@ -54,10 +55,15 @@ $(P0L_DIR)/pd0-truth: tests/physics0/learner/pd0_truth_main.c $(P0L_TRUTH_SRCS) @mkdir -p $(P0L_DIR) $(CC) -std=c11 -Wall -Wextra -Werror -pedantic -O2 -D_POSIX_C_SOURCE=200809L -Isrc -o $@ $< $(P0L_TRUTH_SRCS) -lm -test-physics0-learner: p0l-isolation $(P0L_DIR)/test_pd0_learner $(P0L_DIR)/test_pd0_learner_asan $(P0L_DIR)/pd0-learner +$(P0L_DIR)/test_pd0_protocol_v2: tests/physics0/learner/test_pd0_protocol_v2.c $(P0L_TRUTH_SRCS) $(wildcard src/physics0/*.h) + @mkdir -p $(P0L_DIR) + $(CC) -std=c11 -Wall -Wextra -Werror -pedantic -O2 -D_POSIX_C_SOURCE=200809L -Isrc -o $@ $< $(P0L_TRUTH_SRCS) -lm + +test-physics0-learner: p0l-isolation $(P0L_DIR)/test_pd0_learner $(P0L_DIR)/test_pd0_learner_asan $(P0L_DIR)/pd0-learner $(P0L_DIR)/test_pd0_protocol_v2 ./$(P0L_DIR)/test_pd0_learner ./$(P0L_DIR)/test_pd0_learner_asan - @echo "test-physics0-learner: PASS (isolation, unit tests plain + ASan/UBSan)" + ./$(P0L_DIR)/test_pd0_protocol_v2 + @echo "test-physics0-learner: PASS (isolation, unit tests plain + ASan/UBSan, protocol v2 world ops)" # development run on the world process; results in $(P0L_DIR)/dev/ (one line per instance + ledger/law/json per instance) physics0-learner-dev: $(P0L_DIR)/pd0-harness $(P0L_DIR)/pd0-truth $(OUT_DIR)/physics0/pd0-world @@ -71,4 +77,16 @@ physics0-learner-evidence: physics0-learner-dev test-physics0-learner @mkdir -p evidence/physics0/learner { echo "receipt: PD0_LEARNER_DEV"; echo "commit: $$(git rev-parse HEAD)"; echo "date_utc: $$(date -u +%Y-%m-%dT%H:%M:%SZ)"; echo "levels: $(P0L_LEVELS)"; echo "seeds: $(P0L_SEEDS) (development seeds; HOLDOUT/TRIAL/REP withheld by the harness)"; echo "--- isolation"; cat $(P0L_DIR)/isolation.out; echo "--- results"; cat $(P0L_DIR)/dev/results.txt; } > $(P0L_DIR)/dev/receipt.txt cp -n $(P0L_DIR)/dev/receipt.txt evidence/physics0/learner/pd0-learner-dev-$$(git rev-parse --short=12 HEAD).txt + +# PD-0b run harness (docs/physics0/PD0_PROTOCOL_V2.md): the frozen learner against an EXTERNAL world binary. +# physics0-pd0b-run PD0_WORLD_BIN= PD0B_SEEDS= +# writes one NEW receipt evidence/physics0/pd0b/PD0B_RUN--.txt (never overwrites) +# physics0-pd0b-freeze prints the frozen-directory tree hashes, file hashes and harness digest (print only) +.PHONY: physics0-pd0b-run physics0-pd0b-freeze +physics0-pd0b-run: $(P0L_DIR)/pd0-harness + @test -n "$(PD0_WORLD_BIN)" || { echo "physics0-pd0b-run: set PD0_WORLD_BIN="; exit 2; } + @test -n "$(PD0B_SEEDS)" || { echo "physics0-pd0b-run: set PD0B_SEEDS="; exit 2; } + sh tests/physics0/learner/pd0b_run.sh $(P0L_DIR)/pd0-harness "$(PD0_WORLD_BIN)" "$(PD0B_SEEDS)" "$(PD0B_NOTE)" +physics0-pd0b-freeze: $(P0L_DIR)/pd0-harness + @sh tests/physics0/learner/pd0b_freeze.sh $(P0L_DIR)/pd0-harness endif diff --git a/src/physics0/pd0_wire.h b/src/physics0/pd0_wire.h index 107ecb893..fc994e713 100644 --- a/src/physics0/pd0_wire.h +++ b/src/physics0/pd0_wire.h @@ -24,7 +24,9 @@ enum { PD0_OK = 0, PD0_REFUSED_RANGE = 1, PD0_OUT_OF_BOUNDS = 2, PD0_EPISODE_END = 3, PD0_BUDGET_EXHAUSTED = 4 }; enum { PD0_KIND_RESET = 0, PD0_KIND_STEP = 1 }; -enum { PD0_OP_DESCRIBE = 0, PD0_OP_RESET = 1, PD0_OP_STEP = 2 }; +enum { PD0_OP_DESCRIBE = 0, PD0_OP_RESET = 1, PD0_OP_STEP = 2, + PD0_OP_SCORE = 3, PD0_OP_SHAPE = 4, + PD0_OP_FINAL = 5, PD0_OP_AUDIT = 6 }; /* protocol v2 rev 2 (docs/physics0/PD0_PROTOCOL_V2.md) */ typedef struct { uint8_t n_obs, n_channels; @@ -48,6 +50,11 @@ typedef struct { #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) +#define PD0_SCORE_STEPS_MAX 100u /* protocol v2 score op: longest schedule */ +#define PD0_REQ_MAX_V2 (3 + 8 * PD0_MAX_OBS + 9 * PD0_SCORE_STEPS_MAX) +#define PD0_SCORE_RESP_MAX (2 + 8 * PD0_MAX_OBS * PD0_SCORE_STEPS_MAX) +#define PD0_SHAPE_RESP_MAX 1024u +#define PD0_AUDIT_RESP_SIZE 57u /* encode returns bytes written, 0 on bad input; decode returns 0 ok, -1 refused */ size_t pd0_desc_encode(const pd0_desc *d, uint8_t *out, size_t cap); diff --git a/src/physics0/pd0_world.c b/src/physics0/pd0_world.c index 2af739d80..274ed3861 100644 --- a/src/physics0/pd0_world.c +++ b/src/physics0/pd0_world.c @@ -101,6 +101,74 @@ void pd0_world_step(pd0_world *w, uint8_t channel, int64_t value, pd0_rec *r) { seal(w, r); } +/* ---- protocol v2 (docs/physics0/PD0_PROTOCOL_V2.md) ---- */ +/* score: noise-free truth trajectory. Stateless: no budget, no hash chain, no guard, no RNG draw. */ +static size_t handle_score(const pd0_world *w, const uint8_t *req, size_t len, uint8_t *resp, size_t cap) { + if (len < 3 || req[1] != w->desc.n_obs) return 0; + unsigned no = req[1]; + if (len < 3 + 8u * no) return 0; + unsigned n = req[2 + 8 * no]; + if (n > PD0_SCORE_STEPS_MAX || len != 3 + 8u * no + 9u * n || cap < 2 + 8u * no * n) return 0; + int64_t s[PD0_MAX_OBS] = {0}, h = 0, ns[PD0_MAX_OBS], nh, obs[PD0_MAX_OBS]; + for (unsigned j = 0; j < no; j++) s[j] = (int64_t)pd0_get_u64(req + 2 + 8 * j); + pd0_rng dn, dl; + pd0_stream(&dn, 1, "x"); pd0_stream(&dl, 1, "y"); /* scratch streams: the returned state never depends on them */ + const uint8_t *sp = req + 3 + 8 * no; + unsigned done = 0, status = PD0_OK; + uint8_t *out = resp + 2; + for (unsigned st = 0; st < n; st++, sp += 9) { + uint8_t ch = sp[0]; + if (ch != PD0_CH_NONE && ch >= w->desc.n_channels) return 0; + int64_t u[PD0_MAX_CH] = {0}; + if (ch != PD0_CH_NONE) u[ch] = (int64_t)pd0_get_u64(sp + 1); + if (pd0_gen_step(&w->gen, s, h, u, w->desc.dt_micro, ns, &nh, obs, &dn, &dl)) { status = PD0_OUT_OF_BOUNDS; break; } + memcpy(s, ns, sizeof s); h = nh; + for (unsigned j = 0; j < no; j++) { pd0_put_u64(out, (uint64_t)s[j]); out += 8; } + done++; + } + resp[0] = (uint8_t)status; resp[1] = (uint8_t)done; + return (size_t)(out - resp); +} + +/* shape: the relation shape and the true terms, in PD0SHAP1 form */ +static size_t handle_shape(const pd0_world *w, uint8_t *resp, size_t cap, int full) { + pd0_relation r; + memset(&r, 0, sizeof r); + if (pd0_gen_true_relation(&w->gen, w->desc.dt_micro, &r) < 0 || r.n_vars > PD0_MAX_VARS) return 0; + unsigned nx = r.n_vars + r.n_channels, nt = 0; + for (int e = 0; e < r.n_eq; e++) nt += r.eq[e].n_terms; + if (!full) nt = 0; /* before final: dimensions only, zero terms */ + size_t need = 8 + 4 + 8 + 2 + (size_t)nt * (1 + 8 + nx); + if (cap < need) return 0; + uint8_t *p = resp; + memcpy(p, "PD0SHAP1", 8); p += 8; + *p++ = r.n_vars; *p++ = r.n_latent; *p++ = r.n_channels; *p++ = full ? r.n_eq : 0; /* n_eq and relation size are withheld until final */ + pd0_put_u32(p, (uint32_t)pd0_gen_true_size(w->gen.level)); p += 4; + pd0_put_u32(p, full ? (uint32_t)pd0_relation_size(&r) : 0u); p += 4; + pd0_put_u16(p, (uint16_t)nt); p += 2; + for (int e = 0; full && e < r.n_eq; e++) for (int t = 0; t < r.eq[e].n_terms; t++) { + *p++ = r.eq[e].target; + pd0_put_u64(p, (uint64_t)r.eq[e].t[t].coef); p += 8; + for (int i = 0; i < r.n_vars; i++) *p++ = r.eq[e].t[t].ex[i]; + for (int c = 0; c < r.n_channels; c++) *p++ = r.eq[e].t[t].ex[PD0_MAX_VARS + c]; + } + return (size_t)(p - resp); +} + +/* audit: final gate state and refusal counters; free at all times, never counted */ +static size_t handle_audit(const pd0_world *w, uint8_t *resp, size_t cap) { + if (cap < PD0_AUDIT_RESP_SIZE) return 0; + uint8_t *p = resp; + memcpy(p, "PD0AUDT1", 8); p += 8; + *p++ = (uint8_t)(w->final_done ? 1 : 0); + pd0_put_u32(p, w->n_score_before_final); p += 4; + pd0_put_u32(p, w->n_shape_before_final); p += 4; + pd0_put_u32(p, w->n_play_after_final); p += 4; + pd0_put_u32(p, w->n_dup_final); p += 4; + memcpy(p, w->final_hash, PD0_HASH); p += PD0_HASH; + return (size_t)(p - resp); +} + size_t pd0_world_handle(pd0_world *w, const uint8_t *req, size_t len, uint8_t *resp, size_t cap) { if (len < 1) return 0; pd0_rec r; @@ -108,6 +176,7 @@ size_t pd0_world_handle(pd0_world *w, const uint8_t *req, size_t len, uint8_t *r case PD0_OP_DESCRIBE: return len == 1 ? pd0_desc_encode(&w->desc, resp, cap) : 0; case PD0_OP_RESET: { + if (w->final_done) { w->n_play_after_final++; return 0; } if (len < 2) return 0; uint8_t n = req[1]; if (n > PD0_MAX_OBS || len != 2 + 8u * n) return 0; @@ -117,9 +186,21 @@ size_t pd0_world_handle(pd0_world *w, const uint8_t *req, size_t len, uint8_t *r return pd0_rec_encode(&r, resp, cap); } case PD0_OP_STEP: + if (w->final_done) { w->n_play_after_final++; return 0; } if (len != 10) return 0; pd0_world_step(w, req[1], (int64_t)pd0_get_u64(req + 2), &r); return pd0_rec_encode(&r, resp, cap); + case PD0_OP_SCORE: + if (!w->final_done) { w->n_score_before_final++; return 0; } + return handle_score(w, req, len, resp, cap); + case PD0_OP_SHAPE: + return len == 1 ? handle_shape(w, resp, cap, w->final_done) : 0; /* before final: dimensions only, not a refusal */ + case PD0_OP_FINAL: + if (len != 1 + PD0_HASH || cap < 1) return 0; + if (w->final_done) { w->n_dup_final++; resp[0] = 1; return 1; } /* duplicate: refused, first hash kept */ + memcpy(w->final_hash, req + 1, PD0_HASH); w->final_done = 1; resp[0] = 0; + return 1; + case PD0_OP_AUDIT: return len == 1 ? handle_audit(w, resp, cap) : 0; default: return 0; } } @@ -129,7 +210,8 @@ size_t pd0_world_chan(void *ctx, const uint8_t *req, size_t len, uint8_t *resp, } int pd0_world_serve(pd0_world *w, int in_fd, int out_fd) { - uint8_t len4[4], req[PD0_REQ_MAX], resp[PD0_REC_MAX > PD0_DESC_MAX ? PD0_REC_MAX : PD0_DESC_MAX]; + static uint8_t req[PD0_REQ_MAX_V2], resp[PD0_SCORE_RESP_MAX > PD0_SHAPE_RESP_MAX ? PD0_SCORE_RESP_MAX : PD0_SHAPE_RESP_MAX]; + uint8_t len4[4]; for (;;) { if (pd0_read_full(in_fd, len4, 4) != 0) return 0; /* EOF: learner closed */ uint32_t n = pd0_get_u32(len4); diff --git a/src/physics0/pd0_world.h b/src/physics0/pd0_world.h index 234ffdcf3..16e2a99cf 100644 --- a/src/physics0/pd0_world.h +++ b/src/physics0/pd0_world.h @@ -45,6 +45,10 @@ typedef struct { uint32_t step_in_episode, episodes_used, steps_used, episode; uint64_t seq; uint8_t last_hash[PD0_HASH]; + /* protocol v2 rev 2: final gate and refusal counters */ + int final_done; + uint8_t final_hash[PD0_HASH]; + uint32_t n_score_before_final, n_shape_before_final, n_play_after_final, n_dup_final; } pd0_world; int pd0_world_init(pd0_world *w, int level, uint64_t seed); diff --git a/tests/physics0/learner/pd0_harness.c b/tests/physics0/learner/pd0_harness.c index 547b29e0b..5d9b4f0b2 100644 --- a/tests/physics0/learner/pd0_harness.c +++ b/tests/physics0/learner/pd0_harness.c @@ -3,7 +3,8 @@ * FIT/SELECT records). Verifier-side build: links pd0_fmt/pd0_ladder/pd0_score/ * pd0_controls and the learner library, never the generators. The world and the * truth are separate processes (build/physics0/pd0-world, pd0-truth). - * Usage: pd0-harness + * Usage: pd0-harness + * With "-" for the truth binary the world binary also answers the protocol v2 score and shape ops (external-world mode). * Prints one PD0L result line; writes /pd0l-L-s.{ledger,law,json}. */ #include "pd0_learner.h" #include "pd0_ladder.h" @@ -11,6 +12,7 @@ #include "pd0_score.h" #include "pd0_controls.h" #include "pd0_rng.h" +#include "sha256.h" #include #include #include @@ -58,7 +60,7 @@ static int parse_describe(const uint8_t *b, size_t n, describe *D) /* ---- run state ---- */ typedef struct { - describe D; int level; uint64_t seed; proc world, truth; pd0_learner *L; + describe D; int level; uint64_t seed; proc world, truth; int ext, sealed, dims_ok; int dims[4]; pd0_learner *L; uint8_t *ledger; size_t llen; uint8_t last[PD0_HASH]; pd0_ladder_params P; uint32_t next_episode, n_episodes, steps_used, episodes_used; @@ -113,8 +115,11 @@ static int episode(run *R, uint8_t t, uint32_t batch, uint8_t origin, const int6 } /* ---- truth process ---- */ +static int ext_rel(run *R); +static int ext_episode(run *R, const int64_t *reset, const pd0_step *steps, uint32_t n, int64_t out[][PD0_MAX_OBS]); static int truth_rel(run *R) { + if (R->ext) return ext_rel(R); fprintf(R->truth.wr, "rel\n"); fflush(R->truth.wr); char line[1024]; unsigned nv, nl, nc, ne; int sz, tsz; if (!fgets(line, sizeof line, R->truth.rd) || sscanf(line, "rel %u %u %u %u %d %d", &nv, &nl, &nc, &ne, &sz, &tsz) != 6) return -1; pd0_rel *t = &R->truth_rel; memset(t, 0, sizeof *t); t->n_vars = (uint8_t)nv; t->n_latent = (uint8_t)nl; t->n_channels = (uint8_t)nc; R->truth_size = tsz; R->truth_n_latent = (int)nl; @@ -126,6 +131,7 @@ static int truth_rel(run *R) /* noise-free truth trajectory; returns 1 if it stayed in bounds */ static int truth_episode(run *R, const int64_t *reset, const pd0_step *steps, uint32_t n, int64_t out[][PD0_MAX_OBS]) { + if (R->ext) return ext_episode(R, reset, steps, n, out); fprintf(R->truth.wr, "ep %u", R->D.d.n_obs); for (int j = 0; j < R->D.d.n_obs; j++) fprintf(R->truth.wr, " %lld", (long long)reset[j]); fprintf(R->truth.wr, " %u", n); for (uint32_t s = 0; s < n; s++) fprintf(R->truth.wr, " %d %lld", steps[s].channel == PD0_CHAN_NONE ? -1 : steps[s].channel, (long long)steps[s].value); fprintf(R->truth.wr, "\n"); fflush(R->truth.wr); char line[1024]; if (!fgets(line, sizeof line, R->truth.rd)) return 0; uint32_t got = 0; int ok = 1; @@ -133,6 +139,29 @@ static int truth_episode(run *R, const int64_t *reset, const pd0_step *steps, ui return ok && got == n; } +/* ---- external-world mode (PD0 protocol v2, docs/physics0/PD0_PROTOCOL_V2.md): truth comes from the same world binary ---- */ +static int ext_rel(run *R) +{ + uint8_t req[1] = { 4 }, b[2048]; size_t n = world_call(&R->world, req, 1, b, sizeof b); + if (n < 8 + 4 + 8 + 2 || memcmp(b, "PD0SHAP1", 8)) return -1; + unsigned nv = b[8], nl = b[9], nc = b[10], ne = b[11]; uint32_t tsz = pd0_get_u32(b + 12); unsigned nt = pd0_get_u16(b + 20); size_t o = 22; + if (nv > PD0_MAX_VARS || nc > PD0_MAX_CHAN || n != o + (size_t)nt * (9 + nv + nc)) return -1; + pd0_rel *t = &R->truth_rel; memset(t, 0, sizeof *t); t->n_vars = (uint8_t)nv; t->n_latent = (uint8_t)nl; t->n_channels = (uint8_t)nc; R->truth_size = (int)tsz; R->truth_n_latent = (int)nl; (void)ne; + for (unsigned k = 0; k < nt; k++) { unsigned tg = b[o++]; long long coef = (long long)pd0_get_u64(b + o); o += 8; + int e; for (e = 0; e < t->n_equations; e++) if (t->eq[e].target == tg) break; if (e == t->n_equations) { t->eq[t->n_equations++].target = (uint8_t)tg; } + pd0_eq *q = &t->eq[e]; int kk = q->n_terms++; q->coef[kk] = coef; for (unsigned i = 0; i < nv + nc; i++) q->expo[kk][i] = b[o++]; } + t->description_bits = pd0_rel_bits(t); R->have_truth = 1; return 0; +} +static int ext_episode(run *R, const int64_t *reset, const pd0_step *steps, uint32_t n, int64_t out[][PD0_MAX_OBS]) +{ + uint8_t req[3 + 8 * PD0_MAX_OBS + 9 * PD0_MAX_STEPS], resp[2 + 8 * PD0_MAX_OBS * PD0_MAX_STEPS]; unsigned no = R->D.d.n_obs; size_t o = 0; + req[o++] = 3; req[o++] = (uint8_t)no; for (unsigned j = 0; j < no; j++, o += 8) pd0_put_u64(req + o, (uint64_t)reset[j]); req[o++] = (uint8_t)n; + for (uint32_t s = 0; s < n; s++, o += 8) { req[o++] = steps[s].channel; pd0_put_u64(req + o, (uint64_t)steps[s].value); } + size_t rn = world_call(&R->world, req, o, resp, sizeof resp); if (rn < 2) return 0; unsigned got = resp[1]; if (rn != 2 + 8u * no * got || got > n) return 0; + for (unsigned s = 0; s < got; s++) for (unsigned j = 0; j < no; j++) out[s][j] = (int64_t)pd0_get_u64(resp + 2 + 8 * (s * no + j)); + return resp[0] == 0 && got == n; +} + static const char *lvl_name(int level) { static char b[8]; if (level < 0) return "null"; snprintf(b, sizeof b, "L%d", level); return b; } int main(int argc, char **argv) @@ -140,13 +169,20 @@ int main(int argc, char **argv) if (argc < 6) { fprintf(stderr, "usage: pd0-harness \n"); return 2; } static run R; memset(&R, 0, sizeof R); R.level = strcmp(argv[3], "null") == 0 ? -1 : atoi(argv[3]); R.seed = strtoull(argv[4], NULL, 0); char *wargv[] = { argv[1], argv[3], argv[4], NULL }, *targv[] = { argv[2], argv[3], argv[4], NULL }; - if (spawn(&R.world, wargv) || spawn(&R.truth, targv)) { perror("spawn"); return 3; } + R.ext = strcmp(argv[2], "-") == 0; /* "-": external-world mode, truth over protocol v2 from the world binary */ + if (spawn(&R.world, wargv) || (!R.ext && spawn(&R.truth, targv))) { perror("spawn"); return 3; } R.ledger = malloc(LCAP); R.recs = malloc(sizeof(pd0_rec) * 65536); R.fit = malloc(sizeof(pd0_transition) * 65536); /* describe */ uint8_t req[128], resp[1024]; req[0] = 0; size_t rn = world_call(&R.world, req, 1, resp, sizeof resp); if (!rn || parse_describe(resp, rn, &R.D)) { fprintf(stderr, "world: bad describe\n"); return 3; } const pd0l_desc *d = &R.D.d; - if (truth_rel(&R)) { fprintf(stderr, "truth: bad relation\n"); return 3; } + { const char *e = getenv("PD0B"); const char *bn = strrchr(argv[1], '/'); bn = bn ? bn + 1 : argv[1]; R.sealed = (e && !strcmp(e, "1")) || strcmp(bn, "pd0-world") != 0; } /* PD-0 mode = the omega world; anything else (or PD0B=1) is sealed mode */ + if (R.ext) { /* shape before final answers dimensions only (n_vars, n_latent, n_channels, S*); the size bound S*+2 comes from it */ + if (ext_rel(&R)) { fprintf(stderr, "world: bad pre-final shape\n"); return 3; } + R.dims[0] = R.truth_rel.n_vars; R.dims[1] = R.truth_rel.n_latent; R.dims[2] = R.truth_rel.n_channels; R.dims[3] = R.truth_size; R.have_truth = 0; R.dims_ok = 1; + if (!R.sealed) { static const int pub0[8] = { 2, 3, 4, 8, 4, 4, 7, 0 }; if (R.level >= 0 && R.level < 8 && R.truth_size != pub0[R.level]) R.dims_ok = 0; } + } + else if (truth_rel(&R)) { fprintf(stderr, "truth: bad relation\n"); return 3; } /* ladder parameters: spec section 6 bounds for the level; harness knowledge, never the learner's */ pd0_ladder_params_default(&R.P, d->n_obs, d->n_channels); for (int c = 0; c < d->n_channels; c++) { R.P.chan_min[c] = d->chan_min[c]; R.P.chan_max[c] = d->chan_max[c]; } @@ -212,6 +248,21 @@ int main(int argc, char **argv) static uint8_t law[65536]; size_t law_len = pd0_ladder_emit_law(&rep, &R.P, law, sizeof law); int law_rc = law_len ? pd0_ladder_verify_law(&rep, &R.P, law, law_len) : -1; /* 5. scoring against the truth: 10 in-box + 10 extrapolation (1.5x box) episodes from the "score" stream */ pd0_score_result S; memset(&S, 0, sizeof S); S.code = -1; const pd0_rel *scored = rep.have_candidate ? &rep.candidate : best ? &best->rel : NULL; int n_score_eps = 0; + /* 5a. external world (protocol v2 rev 2): the learner has submitted to the checker; bind the final relation bundle with `final`, + * and only then ask for shape and score. The bundle is the emitted PDLAW1 record, else the candidate bytes, else nothing. */ + uint8_t fhash[PD0_HASH]; int fin_status = -1, fin_ok = 1; uint32_t cnt[4] = { 0, 0, 0, 0 }; int audit_ok = 0; + if (R.ext) { + static uint8_t cb[16384]; const uint8_t *fb = law; size_t fn = law_len; + if (!fn && scored) { fn = pd0_rel_write(scored, cb, sizeof cb); fb = cb; } + sha256_hash(fb, fn, fhash); + uint8_t fq[1 + PD0_HASH], fr[16]; fq[0] = 5; memcpy(fq + 1, fhash, PD0_HASH); + size_t frn = world_call(&R.world, fq, sizeof fq, fr, sizeof fr); fin_status = frn == 1 ? fr[0] : -1; if (fin_status != 0) fin_ok = 0; + if (fin_ok && ext_rel(&R)) { fprintf(stderr, "world: bad shape after final\n"); fin_ok = 0; } + if (fin_ok && (R.dims[0] != R.truth_rel.n_vars || R.dims[1] != R.truth_rel.n_latent || R.dims[2] != R.truth_rel.n_channels || R.dims[3] != R.truth_size)) { fprintf(stderr, "world: shape dimensions changed across final\n"); fin_ok = 0; } + static const int pub_s[8] = { 2, 3, 4, 8, 4, 4, 7, 0 }; /* S* per level, public spec table (6.2); shape must agree */ + if (fin_ok && (!R.dims_ok || (!R.sealed && R.level >= 0 && R.level < 8 && R.truth_size != pub_s[R.level]))) { fprintf(stderr, "world: shape S* %d differs from the public table %d\n", R.truth_size, pub_s[R.level]); fin_ok = 0; } + if (!fin_ok) R.have_truth = 0; + } if (scored && R.have_truth && R.level >= 0) { static pd0_score_episode eps[20]; pd0_rng g; pd0_rng_stream(&g, R.seed + 500, "score"); pd0l_desc box = *d; for (int i = 0; i < 20 && n_score_eps < 20; ) { pd0_score_episode *e = &eps[n_score_eps]; memset(e, 0, sizeof *e); e->in_box = i < 10; @@ -239,7 +290,16 @@ int main(int argc, char **argv) csize, cbits, R.P.size_bound, (long long)(best ? best->fit_nrmse_micro : -1), (long long)(best ? best->select_nrmse_micro : -1), hidden, !scored ? "NO_CANDIDATE" : S.code == 0 ? "PASS" : S.code < 0 ? "NOT_SCORED" : "FAIL", S.code, S.fail_mask, (long long)S.inbox_nrmse, (long long)S.extrap_nrmse, (long long)S.onestep_nrmse, (long long)S.ref_nrmse, n_score_eps, law_rc, checker_rc, R.n_oob, R.n_refused, R.n_budget, R.n_propose_fail, R.n_trial_random, R.n_void_ep, R.n_void_batch); - fprintf(R.truth.wr, "quit\n"); fflush(R.truth.wr); fclose(R.world.wr); fclose(R.truth.wr); waitpid(R.world.pid, NULL, 0); waitpid(R.truth.pid, NULL, 0); + if (R.ext) { /* audit: the world's own account of the final gate; a valid instance has every refusal counter at 0 */ + uint8_t aq[1] = { 6 }, ar[128]; size_t arn = world_call(&R.world, aq, 1, ar, sizeof ar); char hx[2 * PD0_HASH + 1]; int valid = 0; + for (int i = 0; i < PD0_HASH; i++) snprintf(hx + 2 * i, 3, "%02x", fhash[i]); + if (arn == 57 && !memcmp(ar, "PD0AUDT1", 8)) { audit_ok = 1; for (int i = 0; i < 4; i++) cnt[i] = pd0_get_u32(ar + 9 + 4 * i); audit_ok = ar[8] == 1 && !memcmp(ar + 25, fhash, PD0_HASH); } + valid = fin_ok && audit_ok && !cnt[0] && !cnt[1] && !cnt[2] && !cnt[3]; + printf("PD0F level=%s seed=%llu final=%s final_status=%d score_before_final=%u shape_before_final=%u play_after_final=%u dup_final=%u audit_ok=%d mode=%s s_star=%d n_vars=%d n_latent=%d n_channels=%d valid=%s\n", + lvl_name(R.level), (unsigned long long)R.seed, hx, fin_status, cnt[0], cnt[1], cnt[2], cnt[3], audit_ok, R.sealed ? "SEALED" : "PD0", R.dims[3], R.dims[0], R.dims[1], R.dims[2], valid ? "VALID" : "INVALID"); + } + if (!R.ext) { fprintf(R.truth.wr, "quit\n"); fflush(R.truth.wr); fclose(R.truth.wr); } + fclose(R.world.wr); waitpid(R.world.pid, NULL, 0); if (!R.ext) waitpid(R.truth.pid, NULL, 0); pd0_learner_free(R.L); free(R.ledger); free(R.recs); free(R.fit); return 0; } diff --git a/tests/physics0/learner/pd0b_freeze.sh b/tests/physics0/learner/pd0b_freeze.sh new file mode 100755 index 000000000..b9ddc873d --- /dev/null +++ b/tests/physics0/learner/pd0b_freeze.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Print the PD0B_FREEZE facts in a stable text format (print only; nothing is written). +# usage: pd0b_freeze.sh +# Output: git tree hash of each frozen directory, sha256 of every tracked file under them +# (sorted by path, C locale), a dirty-tree flag, and the sha256 of the harness binary +# (which embeds the learner, the ladder checker, the scorer and the controls). +set -eu +H=${1:?usage: pd0b_freeze.sh } +[ -f "$H" ] || { echo "pd0b_freeze: harness binary not found: $H" >&2; exit 2; } +export LC_ALL=C +DIRS="src/physics0/learner src/physics0/ladder src/physics0/score src/physics0/controls" +echo "freeze_head: $(git rev-parse HEAD)" +for d in $DIRS; do echo "tree $d $(git rev-parse HEAD:$d)"; done +dirty=$(git status --porcelain -- $DIRS tests/physics0/verify | wc -l | tr -d ' ') +echo "frozen_dirs_modified_in_worktree: $dirty" +for d in $DIRS; do git ls-files "$d"; done | sort | while read -r f; do echo "file $(sha256sum "$f" | cut -d' ' -f1) $f"; done +echo "harness_binary_sha256: $(sha256sum "$H" | cut -d' ' -f1)" diff --git a/tests/physics0/learner/pd0b_run.sh b/tests/physics0/learner/pd0b_run.sh new file mode 100755 index 000000000..548da354b --- /dev/null +++ b/tests/physics0/learner/pd0b_run.sh @@ -0,0 +1,66 @@ +#!/bin/sh +# PD-0b run: the frozen learner against an external world binary, protocol v2 (play and truth from one binary). +# usage: pd0b_run.sh [note] +# seeds file: lines "level_index seed" (level_index 0..6 or null); blank lines and # comments ignored; +# every level that appears must appear exactly five times. Writes ONE new receipt +# evidence/physics0/pd0b/PD0B_RUN--.txt and refuses to overwrite. +set -eu +H=${1:?harness}; W=${2:?world binary}; S=${3:?seeds file}; NOTE=${4:-} +export LC_ALL=C +die() { echo "pd0b-run: $*" >&2; exit 2; } +[ -x "$H" ] || die "harness binary not executable: $H" +[ -x "$W" ] || die "PD0_WORLD_BIN not executable: $W" +[ -f "$S" ] || die "PD0B_SEEDS not found: $S" +lines=$(grep -v '^[[:space:]]*\(#\|$\)' "$S" || true) +[ -n "$lines" ] || die "seeds file has no instances" +echo "$lines" | awk ' + NF != 2 { printf "pd0b-run: bad seeds line (need: level_index seed): %s\n", $0 > "/dev/stderr"; bad = 1; next } + $1 !~ /^([0-6]|null)$/ { printf "pd0b-run: bad level_index: %s\n", $1 > "/dev/stderr"; bad = 1; next } + $2 !~ /^[0-9]+$/ { printf "pd0b-run: bad seed: %s\n", $2 > "/dev/stderr"; bad = 1; next } + { n[$1]++ } + END { for (l in n) if (n[l] != 5) { printf "pd0b-run: level %s has %d instances, need exactly 5\n", l, n[l] > "/dev/stderr"; bad = 1 } exit bad }' || exit 2 +HEAD_FULL=$(git rev-parse HEAD); HEAD_SHORT=$(git rev-parse --short=12 HEAD) +if [ -n "$(git status --porcelain --untracked-files=no)" ] && [ "${PD0B_ALLOW_DIRTY:-0}" != 1 ]; then die "worktree has uncommitted changes; commit first (or PD0B_ALLOW_DIRTY=1 for a rehearsal that is not filed)"; fi +WSHA=$(sha256sum "$W" | cut -d' ' -f1); SSHA=$(sha256sum "$S" | cut -d' ' -f1) +OUTDIR=evidence/physics0/pd0b; mkdir -p "$OUTDIR" +OUT=$OUTDIR/PD0B_RUN-$HEAD_SHORT-$(echo "$WSHA" | cut -c1-12).txt +[ ! -e "$OUT" ] || die "receipt already exists, refusing to overwrite: $OUT" +WORK=$(mktemp -d); trap 'rm -rf "$WORK"' EXIT +mkdir -p "$WORK/out"; : > "$WORK/results.txt" +echo "$lines" | while read -r lvl seed; do + line=$("$H" "$W" - "$lvl" "$seed" "$WORK/out") || { echo "pd0b-run: harness failed on level $lvl seed $seed" >&2; exit 3; } + echo "$line" >> "$WORK/results.txt" +done +grep "^PD0L " "$WORK/results.txt" > "$WORK/pd0l.txt" || true; grep "^PD0F " "$WORK/results.txt" > "$WORK/pd0f.txt" || true +NINST=$(echo "$lines" | wc -l) +[ "$(wc -l < "$WORK/pd0l.txt")" -eq "$NINST" ] || die "result count does not match instance count" +VALID=VALID +[ "$(wc -l < "$WORK/pd0f.txt")" -eq "$NINST" ] && [ "$(grep -c " valid=VALID$" "$WORK/pd0f.txt")" -eq "$NINST" ] || VALID=INVALID +{ + echo "receipt: PD0B_RUN" + echo "run_validity: $VALID" + echo "validity_rule: VALID needs, per instance, a final accepted once, shape dimensions unchanged across final (and, in PD0 mode with the omega world, S* equal to the public table), an audit echoing the final hash, and every refusal counter 0" + [ -z "$NOTE" ] || echo "note: $NOTE" + echo "date_utc: $(date -u +%Y-%m-%dT%H:%M:%SZ)" + echo "harness_commit: $HEAD_FULL" + echo "world_binary: $W" + echo "world_binary_sha256: $WSHA" + echo "seeds_file_sha256: $SSHA" + echo "mode: external world, PD0 protocol v2 (play and truth from the one world binary; no pd0-truth)" + echo "--- freeze (learner, ladder, scorer, controls)" + sh tests/physics0/learner/pd0b_freeze.sh "$H" + echo "--- seeds file" + echo "$lines" + echo "--- per instance: level seed ladder_state checker_code scorer_verdict scorer_code" + awk '{ for (i = 1; i <= NF; i++) { split($i, kv, "="); v[kv[1]] = kv[2] } + printf "level=%s seed=%s state=%s code=%s score=%s score_code=%s\n", v["level"], v["seed"], v["state"], v["code"], v["score"], v["score_code"] }' "$WORK/pd0l.txt" + echo "--- per instance: final bundle hash and the world refusal counters (protocol v2 rev 2)" + sed "s/^PD0F //" "$WORK/pd0f.txt" + echo "--- state count per level" + awk '{ for (i = 1; i <= NF; i++) { split($i, kv, "="); v[kv[1]] = kv[2] } c[v["level"] " " v["state"] " score=" v["score"]]++ } END { for (k in c) printf "%s x%d\n", k, c[k] }' "$WORK/pd0l.txt" | sort + echo "--- raw harness lines" + cat "$WORK/pd0l.txt" +} > "$WORK/receipt.txt" +ln "$WORK/receipt.txt" "$OUT" || die "could not create $OUT without overwriting" +echo "pd0b-run: wrote $OUT" +[ "$VALID" = VALID ] || { echo "pd0b-run: run is INVALID (see receipt)" >&2; exit 4; } diff --git a/tests/physics0/learner/test_pd0_protocol_v2.c b/tests/physics0/learner/test_pd0_protocol_v2.c new file mode 100644 index 000000000..432b8a472 --- /dev/null +++ b/tests/physics0/learner/test_pd0_protocol_v2.c @@ -0,0 +1,78 @@ +/* Unit tests for PD0 protocol v2 revision 2 (docs/physics0/PD0_PROTOCOL_V2.md): the final gate, the refusal counters, + * shape and score values. In-process against the omega world (test-side; links the generators). */ +#define PD0_WORLD_IMPL 1 +#include "physics0/pd0_world.h" +#include +#include + +static int fails, checks; +#define CHECK(c) do { checks++; if (!(c)) { fails++; printf("FAIL line %d: %s\n", __LINE__, #c); } } while (0) + +static uint8_t resp[4096]; +static size_t call(pd0_world *w, const uint8_t *req, size_t n) { return pd0_world_handle(w, req, n, resp, sizeof resp); } +static size_t do_score(pd0_world *w, const int64_t *reset, int no, int n, const uint8_t *ch, const int64_t *val) { + uint8_t q[512]; size_t o = 0; q[o++] = 3; q[o++] = (uint8_t)no; + for (int j = 0; j < no; j++, o += 8) pd0_put_u64(q + o, (uint64_t)reset[j]); + q[o++] = (uint8_t)n; for (int s = 0; s < n; s++, o += 8) { q[o++] = ch[s]; pd0_put_u64(q + o, (uint64_t)val[s]); } + return call(w, q, o); +} +static void audit(pd0_world *w, uint32_t *c, int *fin) { + uint8_t q[1] = { 6 }; size_t n = call(w, q, 1); CHECK(n == PD0_AUDIT_RESP_SIZE && !memcmp(resp, "PD0AUDT1", 8)); + *fin = resp[8]; for (int i = 0; i < 4; i++) c[i] = pd0_get_u32(resp + 9 + 4 * i); +} + +static void run_level(int level) { + pd0_world w; CHECK(pd0_world_init(&w, level, 1) == 0); + uint8_t dq[1] = { 0 }, dd[PD0_DESC_MAX]; pd0_desc d; pd0_world_describe(&w, &d); + size_t dn = pd0_desc_encode(&d, dd, sizeof dd); + size_t n = call(&w, dq, 1); CHECK(n == dn && !memcmp(resp, dd, dn)); /* describe free */ + uint32_t c[4]; int fin; + /* before final: score and shape refused and counted; play allowed; describe free */ + int64_t reset[PD0_MAX_OBS] = { 1000000, 0, 0, 0 }; uint8_t ch[2] = { 0, PD0_CH_NONE }; int64_t val[2] = { 100000, 0 }; + CHECK(do_score(&w, reset, d.n_obs, 2, ch, val) == 0); + uint8_t sq[1] = { 4 }; /* shape before final: dimensions only, zero terms, not a refusal */ + for (int k = 0; k < 2; k++) { n = call(&w, sq, 1); CHECK(n == 22 && !memcmp(resp, "PD0SHAP1", 8) && resp[11] == 0 && pd0_get_u16(resp + 20) == 0 && (int)pd0_get_u32(resp + 12) == pd0_gen_true_size(level) && pd0_get_u32(resp + 16) == 0); } + { pd0_gen g0; pd0_relation r0; CHECK(pd0_gen_init(&g0, level, 1) == 0); pd0_gen_true_relation(&g0, d.dt_micro, &r0); CHECK(resp[8] == r0.n_vars && resp[9] == r0.n_latent && resp[10] == r0.n_channels); } + audit(&w, c, &fin); CHECK(!fin && c[0] == 1 && c[1] == 0 && c[2] == 0 && c[3] == 0); + uint8_t rq[2 + 8 * PD0_MAX_OBS]; size_t ro = 0; rq[ro++] = 1; rq[ro++] = d.n_obs; for (int j = 0; j < d.n_obs; j++, ro += 8) pd0_put_u64(rq + ro, (uint64_t)reset[j]); + pd0_rec r; n = call(&w, rq, ro); CHECK(n > 0 && pd0_rec_decode(resp, n, &r) == 0 && r.status == PD0_OK); + uint8_t tq[10] = { 2, 0 }; pd0_put_u64(tq + 2, 100000); n = call(&w, tq, 10); CHECK(n > 0 && pd0_rec_decode(resp, n, &r) == 0); + n = call(&w, dq, 1); CHECK(n == dn); + /* malformed final: not counted, gate stays shut */ + uint8_t fq[1 + PD0_HASH]; memset(fq, 0xA5, sizeof fq); fq[0] = 5; CHECK(call(&w, fq, 5) == 0); + audit(&w, c, &fin); CHECK(!fin); + /* final once */ + n = call(&w, fq, sizeof fq); CHECK(n == 1 && resp[0] == 0); + /* duplicate final (different hash): refused, counted, first hash kept */ + uint8_t f2[1 + PD0_HASH]; memset(f2, 0x5A, sizeof f2); f2[0] = 5; n = call(&w, f2, sizeof f2); CHECK(n == 1 && resp[0] == 1); + audit(&w, c, &fin); CHECK(fin && c[3] == 1 && !memcmp(resp + 25, fq + 1, PD0_HASH)); + /* play after final refused and counted */ + CHECK(call(&w, rq, ro) == 0); CHECK(call(&w, tq, 10) == 0); + /* shape now correct */ + pd0_gen g; pd0_relation rel; CHECK(pd0_gen_init(&g, level, 1) == 0); pd0_gen_true_relation(&g, d.dt_micro, &rel); + n = call(&w, sq, 1); unsigned nt = 0; CHECK(resp[11] == rel.n_eq); for (int e = 0; e < rel.n_eq; e++) nt += rel.eq[e].n_terms; + CHECK(n == 22 + (size_t)nt * (9 + rel.n_vars + rel.n_channels) && !memcmp(resp, "PD0SHAP1", 8)); + CHECK(resp[8] == rel.n_vars && resp[9] == rel.n_latent && resp[10] == rel.n_channels && resp[11] == rel.n_eq); + CHECK((int)pd0_get_u32(resp + 12) == pd0_gen_true_size(level) && pd0_get_u16(resp + 20) == nt); + if (nt) { CHECK(resp[22] == rel.eq[0].target && (int64_t)pd0_get_u64(resp + 23) == rel.eq[0].t[0].coef); } + /* score now correct: compare with the generator step by step */ + n = do_score(&w, reset, d.n_obs, 2, ch, val); CHECK(n == 2 + 8u * d.n_obs * 2 && resp[0] == 0 && resp[1] == 2); + { int64_t s[PD0_MAX_OBS] = { 0 }, h = 0, ns[PD0_MAX_OBS], nh, obs[PD0_MAX_OBS]; pd0_rng a, b; pd0_stream(&a, 1, "x"); pd0_stream(&b, 1, "y"); + for (int j = 0; j < d.n_obs; j++) s[j] = reset[j]; + for (int st = 0; st < 2; st++) { int64_t u[PD0_MAX_CH] = { 0 }; if (ch[st] != PD0_CH_NONE) u[ch[st]] = val[st]; + CHECK(pd0_gen_step(&g, s, h, u, d.dt_micro, ns, &nh, obs, &a, &b) == 0); memcpy(s, ns, sizeof s); h = nh; + for (int j = 0; j < d.n_obs; j++) CHECK((int64_t)pd0_get_u64(resp + 2 + 8 * (st * d.n_obs + j)) == s[j]); } } + { uint8_t bad[1] = { 7 }; int64_t vz[1] = { 0 }; CHECK(do_score(&w, reset, d.n_obs, 1, bad, vz) == 0); CHECK(do_score(&w, reset, d.n_obs + 1, 1, bad, vz) == 0); } + /* describe free after final; final counters */ + n = call(&w, dq, 1); CHECK(n == dn && !memcmp(resp, dd, dn)); + audit(&w, c, &fin); CHECK(fin && c[0] == 1 && c[1] == 0 && c[2] == 2 && c[3] == 1); + /* ops 0..2 unchanged: unknown op refused */ + uint8_t uq[1] = { 9 }; CHECK(call(&w, uq, 1) == 0); +} + +int main(void) { + for (int level = 0; level <= 7; level++) run_level(level); + printf("test_pd0_protocol_v2: %d checks, %d failed\n", checks, fails); + printf(fails ? "PD0_PROTOCOL_V2: FAIL\n" : "PD0_PROTOCOL_V2: PASS\n"); + return fails != 0; +} ```