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/blob/main/calibration/docs/FAILURE_REPORTING.md # 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 branch `main` Branches Tags History `omega-mv / calibration / docs / FAILURE_REPORTING.md` 163 lines ยท 13674 bytes Raw Blame History Rendered 1 # Failure reporting (Turing-profile-v1.0, EXP-001) 2 3 ## 1. Rule 4 5 Every outcome is kept. PASS, FAIL, a void run, a refused step and a failed adversarial test are all committed 6 with their receipt. Nothing is deleted, rerun to replace an earlier result, or reinterpreted with a changed 7 threshold, baseline, candidate or seed set. A FAIL is a valid scientific result and is reported with the same 8 detail as a PASS. 9 10 ## 2. Outcome classes 11 12 | class | meaning | what is written | 13 |---|---|---| 14 | PASS | every success criterion S1-S9 of the prereg is PASS | final_receipt.json verdict PASS | 15 | FAIL | the run completed as specified and at least one criterion is FAIL or NOT_REACHED | final_receipt.json verdict FAIL, with each failed criterion and its numbers | 16 | INCONCLUSIVE | the run completed, no criterion is FAIL or NOT_REACHED, and at least one of S6, S7, S9 is INCONCLUSIVE by the trigger below | final_receipt.json verdict INCONCLUSIVE, with the straddling intervals | 17 | VOID | an infrastructure failure found before any sealed score exists: a check refused (digest, runtime, split, dirty tree, missing overlap audit, C_f not on origin/main), a sealed generation attempt failed, a build or test of the frozen tree failed at step 7, a crash before scoring | void_receipt_.json in the one EXP-001 counter (below), naming the stage, step, refusal code, exact command, input digests, profile digest, C_f, candidate manifest digest and time; no verdict | 18 | INCONCLUSIVE INFRA | the third VOID of EXP-001, whatever stage each void came from | final_receipt.json kind inconclusive_infra, verdict INCONCLUSIVE, reason INFRA; final | 19 | DEVIATION | anything done differently from the prereg or profile | listed in REPORT.md; makes the run FAIL unless the profile itself allows it | 20 21 INCONCLUSIVE trigger (declared 2026-09-29, before any sealed data exist; the evaluator implements exactly this). 22 S1, S2, S3, S4, S5 and S8 are two-valued: PASS or FAIL. S6, S7 and S9 are three-valued, judged on the 95% 23 percentile-bootstrap interval [lo, hi] of T against B2 (UNCERTAINTY_PROTOCOL.md), for the ideal code length and for 24 both coders: 25 26 - S6 (M_candidate, group 1): PASS if lo > 0 for all three measures; FAIL if hi < 0 for any measure; otherwise 27 INCONCLUSIVE (some interval contains 0 and none lies wholly below it). 28 - S7 (M_mem and M_mem_seed1, group 1): PASS if hi < 0 for all six intervals; FAIL if lo > 0 for any of them; 29 otherwise INCONCLUSIVE. 30 - S9 (group 2): the S6 and S7 rules applied to group 2; S9 is the worse of the two (FAIL < INCONCLUSIVE < PASS). 31 - A criterion that could not be evaluated (a required candidate missing) is NOT_REACHED and counts as FAIL. 32 33 Verdict: FAIL if any criterion is FAIL or NOT_REACHED; else INCONCLUSIVE if any criterion is INCONCLUSIVE; else 34 PASS. The receipt field EXP_001_COMPRESSION_BRIDGE carries the verdict. An INCONCLUSIVE verdict means the sealed 35 sample could not separate the effect from zero; it is not a PASS, it is published with the same detail, and it is 36 never converted into PASS or FAIL by more data, other seeds or a changed interval (section 4). A development dry 37 run carries EXP_001_COMPRESSION_BRIDGE = DRY_RUN_NOT_EVIDENCE whatever its criteria say, and S2 = NOT_CHECKED. 38 39 VOID versus FAIL (the one rule; EVALUATOR.md section 3 maps every refusal code to it): 40 41 - VOID is only for an infrastructure or operator failure found before any sealed score exists. "A score exists" 42 from the moment `run` finishes checking the candidates and starts writing the first sealed probability stream. 43 - After that moment the verdict is final. A failure then is a terminal FAIL of the criterion whose step failed: 44 a coder or decoder failure is S1; a freeze-order violation (overlap audit FAIL, manifest or profile differing 45 from C_f, a seed not derived from C_f, C_f committed or candidates frozen at or after the release) is S2 even 46 though the evaluator checks it before scoring, because retrying cannot change it; a stream, binding or 47 serialization failure is S3; a per-crumb sum mismatch is S4 (CRUMB_SUM); a group with no crumbs is S6 for 48 group 1 and S9 for group 2 (NO_CRUMBS); an integrity mismatch found after scoring started (a stream, coded file or 49 receipt whose digest or binding differs from the one recorded for it; BINDING is S3) is FAIL of the criterion 50 named for it in EVALUATOR.md section 3; a lane D mismatch, a lane D crash, or a missing, 51 unreadable or unparsable scorer_independent.json, or one whose "problems" is not 0, is S8 FAIL with no retry; a 52 crash after scoring started is FAIL of the criterion whose step crashed; a read or write failure after 53 scoring started that belongs to no single criterion is verdict FAIL with every criterion NOT_REACHED. It is written as 54 final_receipt.json kind terminal_fail. 55 - Every criterion that can FAIL is able to FAIL: each has at least one path above or in the criteria rules that 56 sets it to FAIL, and the tests exercise each terminal path (EVALUATOR.md section 7). 57 - One VOID counter for all of EXP-001. Every void, whatever its stage, is a numbered receipt 58 `void_receipt_.json` (first free n, exclusive create, never overwritten) in 59 `~/aien-data/turing-cal/eval//run/bundle`. Three writers use it: sealed generation (stage "generation", 60 generate_sealed_data.sh), the frozen-tree build and tests at BLINDING_PROTOCOL.md step 7 (stage "tests", 61 `calibration/scripts/record_void.sh`) and the evaluator (stage "evaluation", turing-cal-eval). The limit is 62 three voids for the whole experiment, stages counted together: the writer of the third void also writes 63 final_receipt.json (kind inconclusive_infra, verdict INCONCLUSIVE, reason INFRA), which is final, and all three 64 writers refuse to start once three void receipts or a final receipt exist. A refusal that happens before the 65 evaluator can bind its receipt (a bad argument, an unreadable profile or manifest, a dataset without a 40-hex 66 freeze_commit, a bundle outside that directory) writes nothing and is not an attempt. 67 - A retry after a VOID uses the same freeze commit C_f, the same sealed seeds, the same frozen tree and a 68 byte-identical command and inputs within its stage (the evaluator refuses a different one with RETRY_DIFFERS; 69 sealed generation and record_void.sh refuse a different command). Nothing may be edited between attempts. Any 70 later attempt after INCONCLUSIVE INFRA is a new experiment with its own preregistration and its own seeds, and 71 it cites every EXP-001 receipt. 72 - Sealed data generation follows the same rule: a failed attempt moves the set to `sealed/.failed-` with 73 a FAILED note (reason, command, attempt, time) and writes a void receipt of stage "generation"; the same command 74 is run again (same seeds, same data). If that void is the third of EXP-001, generation also writes 75 `sealed/.INCONCLUSIVE_INFRA` (BLINDING_PROTOCOL.md section 3). 76 - Every VOID receipt and every failed generation note is published with the final result. 77 - Deviations: the operator lists every action not written in the prereg, the profile or BLINDING_PROTOCOL.md 78 section 2 in REPORT.md; the reviewer checks the list against the evaluation log. An unlisted deviation found 79 later makes the run FAIL. 80 - Adversarial and unit tests run before the freeze (any failure is fixed before C_f; no sealed data exist) and 81 again on the frozen tree at step 7. A failure at step 7 is a VOID of stage "tests", recorded with 82 record_void.sh, under the same counter and retry rule; the frozen code cannot be changed, so a real defect ends 83 in INCONCLUSIVE INFRA. 84 85 ## 3. What every receipt contains 86 87 Receipts follow calibration/schemas/measurement_receipt.schema.json: experiment id, profile SHA-256 and sidecar, 88 freeze commit, candidate manifest SHA-256, sealed manifest SHA-256 (never the sealed data), runtime binary 89 digests, for each group and candidate L(M), ideal and coded code lengths, T with interval, the criteria table, 90 and every refusal or deviation with its reason. Numbers are integers in ub or bits; ratios are derived, never 91 used in a decision. Void receipts (calibration/schemas/void_receipt.schema.json) and terminal receipts 92 (terminal_receipt.schema.json) are bound to the experiment by three required fields: `profile_digest` (SHA-256 of the 93 profile), `freeze_commit` (C_f, 40 hex, or DRY_RUN in a development dry run) and `candidate_manifest_sha256`. 94 95 ## 4. Forbidden actions 96 97 - Rerunning with a different bootstrap seed, a different number of resamples, or a different seed selection after 98 seeing a result. 99 - Dropping a crumb, seed, group or candidate after seeing a result. 100 - Changing a candidate, its L(M) accounting, a coder or the baseline after the freeze commit. 101 - Reporting only the ideal or only one coder when the others disagree. 102 - Describing a FAIL as "inconclusive" or "partial PASS". If a criterion is FAIL, the verdict is FAIL; the report 103 may explain why, but the verdict stays. INCONCLUSIVE is assigned only by the preregistered trigger in section 2, 104 never by judgement. 105 - Turning an INCONCLUSIVE into PASS or FAIL by adding seeds, rerunning, or changing the interval level. 106 107 ## 5. Reversals 108 109 Every reversal is listed in uncertainty.json. Let band(g) = sum over the files f of group g of 110 (64,000,000 + 1,000 x N_f) ub, the summed half-width of the coder envelope (N_f = events in file f). 111 112 - DL ordering reversal: two candidates a, b whose order by L(M) + L(D|.) differs between the ideal code length and 113 a coder, within one group. Explained if |DL_ideal(a) - DL_ideal(b)| <= 2 x band(g) (the ideal gap is small 114 enough that the two coders' envelopes can swap it); otherwise unexplained. 115 - T sign reversal, ideal vs coded: T_ideal and T_coded of one candidate (same group, baseline B2) have different 116 signs AND each interval excludes the other's point estimate (material). Explained if 117 |T_ideal - T_coded| <= 2 x band(g); otherwise unexplained. 118 - T sign reversal, group 1 vs group 2: the same measure of one candidate changes sign between the groups AND each 119 interval excludes the other's point estimate. Always unexplained (the coder envelope cannot account for it). 120 121 S5 is FAIL if any reversal is unexplained, else PASS. The only preregistered explanation is the coder-band rule above; no cause label 122 (CVP 1006-1025: decision boundary, sample size, baseline, model code, quantization, statistical instability, 123 implementation defect, fundamental metric sensitivity) was preregistered for EXP-001, so an unexplained reversal is 124 FAIL whatever cause is later found. A cause label written after the result is a diagnosis in the report 125 and never changes S5 or the verdict. The Spearman rank correlation of the DL ordering, ideal vs 126 each coder, is reported and not used in the verdict. 127 128 Scope and ties (the evaluator implements exactly this). The DL ordering check covers all 21 unordered pairs of 129 the seven candidates, in each group, for each coder (range and rANS) against the ideal. DL under the ideal is 130 L(M) x 1e6 + ideal_ub; DL under a coder is (L(M) + coded_bits) x 1e6, where coded_bits is 8 x the summed byte 131 size of the group's whole-file coded files (one 56-byte header per file). The sign of a difference is -1, 0 or 132 +1; a pair whose sign differs between the ideal and the coder (including 0 on one side only) is a reversal. The 133 T sign checks cover the six candidates other than B2, with the same three-valued sign; a T of exactly 0 has sign 134 0. Every reversal found is written to uncertainty.json. 135 136 ## 6. Where results go 137 138 One location rule. Everything a sealed run writes stays outside git in the bundle 139 `~/aien-data/turing-cal/eval//run/bundle` ($R/bundle, BLINDING_PROTOCOL.md step 8); the evaluator refuses any 140 other bundle location in sealed mode (OUT_PATH). The gate writes `final_receipt.json` there exactly once (exclusive 141 create; see EVALUATOR.md), or the third void writes it as INCONCLUSIVE INFRA. Nothing is written into the git tree 142 during the experiment. 143 144 A later publication commit copies these files byte for byte into `calibration/experiments/EXP-001/`, keeping their 145 paths relative to $R/bundle (or to $R for the two marked "from $R"), and writes 146 `calibration/experiments/EXP-001/published_manifest.sha256`: one `sha256sum` line (`<64 hex> `) per copied 147 file, paths relative to `calibration/experiments/EXP-001/`, sorted by path in byte order (`LC_ALL=C sort`). The 148 publication commit adds only these files and the manifest, and never replaces a file already published. The files: 149 150 - `final_receipt.json`, every `void_receipt_.json`, `REPORT.md`; 151 - `scorer_primary.json`, `scorer_independent.json`, and `indep_details.json` (from $R); 152 - `ideal_lengths.json`, `uncertainty.json`, `profile.digest`, `arithmetic/results.json`, `ans/results.json`, 153 every `decoder_receipts/*.json`; 154 - `probability_streams/INDEX` and `encoded_artifacts/INDEX` (names, byte counts and SHA-256 of every stream and 155 coded file, so the excluded bytes stay checkable); 156 - `dataset_manifest.json` (from $R: seeds and per-file digests, never trace bytes); 157 - every failed generation note `sealed/.failed-/FAILED`, published as `generation_failed_.txt`, and 158 `sealed/.INCONCLUSIVE_INFRA` if it exists, as `generation_INCONCLUSIVE_INFRA.txt`. 159 160 Excluded as sealed-data-derived: the stream and coded bytes (everything under `$R/work/`: TPS1, TSY1, TCR1 and TCA1 161 files, computed byte for byte from the sealed traces; a coded file decodes back to them; per-crumb coding writes no 162 files, CODER_SPEC.md section 9) and the sealed traces themselves. `overlap_audit.json` is already copied at step 7 163 and `candidate_manifest.json` is already in git at C_f; neither is copied again.