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
omega-mv / calibration / profiles / Turing-profile-v1.0.toml
| 1 | # Turing-profile-v1.0: the measurement profile for CAL-0 and EXP-001. |
| 2 | # |
| 3 | # Format: flat TOML, one `key = value` per line, no tables, no multi-line strings, so that |
| 4 | # calibration/scripts/check_profile.sh can read it with sed. Values are strings unless they are plain integers. |
| 5 | # The commitment is calibration/profiles/Turing-profile-v1.0.sha256 = SHA-256 over the exact bytes of this file. |
| 6 | # Any byte change (including this comment) changes the digest. The sidecar is regenerated only at the freeze |
| 7 | # commit, after every fill-at-freeze placeholder below is replaced with a value (check_profile.sh --freeze refuses |
| 8 | # any marker). After freeze this file never changes; a change is a new profile id. |
| 9 | |
| 10 | profile_id = "Turing-profile-v1.0" |
| 11 | profile_version = "1.0.0" |
| 12 | profile_digest = "SIDECAR" |
| 13 | profile_digest_rule = "The profile digest is NOT stored in this file (a file cannot contain its own hash). It is the SHA-256 over the exact bytes of this .toml file, written as '<64 lowercase hex> Turing-profile-v1.0.toml' in calibration/profiles/Turing-profile-v1.0.sha256 (sha256sum -c format). Every EXP-001 receipt carries it as profile_digest and every tool refuses a mismatch." |
| 14 | profile_status = "DRAFT until the freeze commit; FROZEN from the freeze commit on" |
| 15 | predecessor_profile = "TY measurement profile V0, turing.yprofile.v0 digest f4292df9748e306165f30b250673a0062391054321ea6dbe68855ecaa0fa8be8 (docs/turing/TURING_YIELD_PROFILE_V0.md). v1.0 keeps the V0 task, symbol map, model code and fixed-point arithmetic unchanged and adds real coders, sealed data, bootstrap uncertainty and the candidate set." |
| 16 | |
| 17 | # ---------------------------------------------------------------- task |
| 18 | task_definition = "Predict the outcome of every search event of the crumbline control learner. D = the sequence of outcome symbols x_t, one per CTR1 record of a control trace.ctr, in file order. Alphabet K = 9 (src/turing/ty_ctr1.h): 0 EXPAND pruned equivalent, 1 EXPAND pruned over cost, 2 EXPAND pruned frontier cap, 3 EXPAND pruned step cap, 4 EXPAND failed, 5 EXPAND partial, 6 EXPAND improved, 7 SUBMIT accepted, 8 SUBMIT rejected. Side information, not coded and open to every model identically: op feature (op_index 0..14 for EXPAND, 15 for SUBMIT), depth clipped at 7, crumb boundaries (event_index 0 opens a crumb), crumb ordinal within the file, event_index. Previous-outcome context restarts at every crumb start with the start value K. Record mapping, refusals and field classification are exactly TURING_YIELD_PROFILE_V0.md sections 2-3 and ty_ctr1_decode." |
| 19 | alphabet_size_K = 9 |
| 20 | ctr1_record_bytes = 247 |
| 21 | depth_clip = 7 |
| 22 | op_submit_value = 15 |
| 23 | context_reset = "per crumb: previous-outcome features restart at event_index 0 with value K = 9" |
| 24 | |
| 25 | # ---------------------------------------------------------------- baseline |
| 26 | baseline_family = "B2 = order-1 context table (feature mask 4 = previous outcome in the crumb), fit rule ty.fit.kt16.mdl.v0 on dev seeds 1-7: the frozen TY-2 baseline file evidence/TURING_YIELD/ty2_baseline.tym, bytes unchanged. T in EXP-001 is always T(M; B2, D). Why B2: it is the strongest simple baseline chosen on validation in V0 (section 7), it already captures the search's own run structure, so a candidate earns T only from structure order-1 does not know; B0 and B1 would let a candidate pass on that search artifact alone. B0 (uniform), B1 (order-0) and B3 (fixed heuristic) are scored and reported with T against B2 and against B1; they never decide the verdict." |
| 27 | baseline_encoding = "TYM0 v0 model code (calibration/docs/MODEL_DESCRIPTION_ENCODING.md). B2: 145 bytes, L(B2) = 1156 bits, model digest (turing.ymodel.v0) 59ae9398da24e809d92ab39e7456382a0a4b7e93e203862be6d2ca55450dfd04. L(B2) is charged exactly like any candidate's L(M)." |
| 28 | baseline_b2_model_digest = "59ae9398da24e809d92ab39e7456382a0a4b7e93e203862be6d2ca55450dfd04" |
| 29 | baseline_b2_lm_bits = 1156 |
| 30 | baseline_b2_mask = 4 |
| 31 | |
| 32 | # ---------------------------------------------------------------- model cost L(M) |
| 33 | candidate_encoding_rules = "A candidate is admissible only as one TYM0 v0 model code: a finite table of 16-bit quantized rows over K = 9 symbols, one default row plus rows keyed by a context key built from the declared feature mask. L(M) = the exact bit length of that code as written by ty_model_encode (before byte padding). Table models only in v1.0: no program, neural net, continuous parameter or external predictor is admissible (a continuous L(M) is deferred to a later profile by owner decision). How a table was produced (counting, smoothing, pruning, hand setting) is free; only the encoded table is scored and only the encoded table is paid for. The model that is scored is always the model decoded from the code (ty_model_decode), never an in-memory object." |
| 34 | lm_representation = "TYM0 v0 bitstream, MSB first: magic 'TYM0' 32 | version 8 | K 8 | feature mask 8 | qbits 8 | key bits 8 | row count 32 | default row (K-1) x 16 | per row with strictly increasing keys: key (key bits) | (K-1) x 16. K-th entry of each row implied (65536 minus the others)." |
| 35 | lm_formula = "L(M) = 104 + 16(K-1) + rows x (keybits + 16(K-1)) bits; with K = 9: L(M) = 232 + rows x (keybits + 128)" |
| 36 | model_header_bits = 104 |
| 37 | model_code_version = 0 |
| 38 | model_digest_domain = "turing.ymodel.v0" |
| 39 | model_digest_rule = "SHA-256('turing.ymodel.v0' || 0x00 || code bytes) (ty_model_digest)" |
| 40 | lm_free_background = "Free (not charged, identical for every model and pinned by digest): (1) the TYM0 v0 decoder specification calibration/docs/MODEL_DESCRIPTION_ENCODING.md and its reference implementation src/turing/ty_model.c; (2) the CTR1 reader and outcome symbol map (src/turing/ty_ctr1.c, ty_ctr1.h) including the mixed-radix context-key construction for each feature bit; (3) the fixed-point code-length arithmetic src/turing/ty_math.c; (4) the probability-stream format and both reference coder specifications in calibration/docs/CODER_SPEC.md; (5) this profile. All five are pinned by the freeze commit and by the digests in this file. Nothing else is free." |
| 41 | lm_free_constants = "Free because they live in the free background: K = 9, qbits = 16, floor 1, the feature radices (op 16, depth 8, previous outcome K+1 = 10, position 2^36), the start-of-crumb value K, the implied K-th entry rule, the magic and version values." |
| 42 | lm_charged_constants = "Charged: every number the model chooses. Feature mask (8 bits), key bits (8 bits), row count (32 bits), K and qbits fields (8 bits each, fixed values, still paid), every stored key, every stored probability entry. A model cannot pass information through a free constant because the free constants are fixed for all models." |
| 43 | lm_learned_parameters = "Learned parameters are the stored rows: each row stores K-1 = 8 entries of 16 bits; the K-th entry is implied. Keys are stored at exactly keybits = ceil(log2(product of the mask's radices)) bits." |
| 44 | lm_parameter_precision = "16-bit fixed point: P = q / 65536 with q in 1..65535 stored, implied entry in 1..65528. No other precision is admissible (qbits field must equal 16, decoder refuses otherwise)." |
| 45 | lm_structural_metadata = "Structure is the feature mask, key bits and row count in the 104-bit header, all charged. The header is fixed width; a decoder refuses a code whose byte length differs from ceil(L(M)/8) or whose padding bits are nonzero, so no structural field can carry extra data." |
| 46 | lm_dependencies = "None admissible. A model may depend only on the free background. Any other code, library, file or service a predictor needs makes it inadmissible in v1.0." |
| 47 | lm_lookup_tables = "Every lookup table is a stored row and is charged at keybits + 128 bits per row (K = 9). A position-keyed table (mask 32) pays 36 + 128 = 164 bits per stored position." |
| 48 | lm_embedded_datasets = "Admissible only as stored rows, charged as above. There is no other place in a TYM0 code to embed data: the header is fixed width, rows are fixed width, trailing bytes are refused." |
| 49 | lm_generated_code = "Inadmissible. A TYM0 code is data, not code; no model-supplied program is ever executed." |
| 50 | lm_external_artifacts = "Inadmissible. The scorer reads only the TYM0 code bytes of the model, the frozen probability-stream format, and the sealed data. A model that needs any other artifact is refused." |
| 51 | lm_model_headers = "The 104-bit header is charged in full for every model (it is part of L(M))." |
| 52 | lm_version_info = "The 8-bit version field is charged; its only admissible value is 0 (decoder refuses others)." |
| 53 | lm_fit_time_procedures = "Free and unscored: counting, KT (add 1/2) smoothing, largest-remainder quantization, MDL pruning, hand setting of rows. They happen before the code exists; only the encoded table is scored, so they cannot carry information past the code." |
| 54 | lm_no_redefinition = "L(M) is fixed by this profile before sealed data exist. No experiment may change the L(M) rule, the free background, or any charge after sealed outcomes are observed; a change is a new profile id and a new experiment." |
| 55 | shared_background_definition = "See lm_free_background. Shared background digests are the git tree of the freeze commit for src/turing/ty_model.c, ty_model.h, ty_ctr1.c, ty_ctr1.h, ty_math.c, ty_math.h, calibration/docs/MODEL_DESCRIPTION_ENCODING.md, calibration/docs/CODER_SPEC.md, and this file, plus the other shared_background_sha256 entries (UNCERTAINTY_PROTOCOL.md, FAILURE_REPORTING.md, BLINDING_PROTOCOL.md, EVALUATOR.md, the preregistration .md and .json, scripts/power_simulation.c and its output, tools/turing_cal_eval.c); freeze_candidate.sh records the SHA-256 of each in candidate_manifest.json." |
| 56 | model_description_language = "TYM0 v0 context-table model code (calibration/docs/MODEL_DESCRIPTION_ENCODING.md; reference encoder/decoder src/turing/ty_model.c)" |
| 57 | model_serialization = "One binary .tym file per model: the TYM0 v0 code bytes, zero padded to a whole byte, nothing before or after. Identity = model digest (model_digest_rule)." |
| 58 | model_cost_method = "L(M) = exact bit count of the TYM0 code returned by ty_model_encode (= 104 + 16(K-1) + rows x (keybits + 16(K-1)), which is 232 + rows x (keybits + 128) at K = 9). The zero padding that rounds the .tym file up to a whole byte (at most 7 bits) is NOT part of L(M) and is not counted in any T total or any other total; the scorer takes L(M) from the exact bit count and never from the file length. Reported as an integer number of bits." |
| 59 | |
| 60 | # ---------------------------------------------------------------- data and splits |
| 61 | dataset_generator = "crumbline control condition: crumbs experiment --learner L --seed S --out DIR, with crumbs = the prebuilt binary ~/workspace/hive-worktrees/crumbs-v1/target/release/crumbs (SHA-256 72e396b15532aa93afb1f215521e04dca8470f779f3de35c10b04b07bff96638, never rebuilt) and L = crumbline-learner built by make crumbline-learner from a clean export of the freeze commit, which must hash to 8159bdff248efa67fa2cf75bb0b506bc359f4a2269139d03479753c0fc393416 (pinned in calibration/scripts/generate_sealed_data.sh). Control condition only is scored. Every seed writes to a fresh, previously nonexistent output directory. Procedure: calibration/docs/BLINDING_PROTOCOL.md. LINEAGE NOTE (orchestrator decision 2026-09-29): this pinned build reproduces final-20260927/rep10 byte-exactly, but not the development data exp-20260927-rep10: 16 of the 2,172,776 seed-1 records differ in result_class, because the learner was rebuilt at 12:00, after rep10 ran at 11:47. Candidates stay fit on exp-20260927-rep10 unchanged; sealed data use the pinned build. The shift is declared here, before any sealed data exist, as a known generator difference between development and sealed data. Its direction is not known (B2 was fit on the same older data and T is a difference against B2); its size, 16 of 2,172,776 records, is far below the declared minimum effect, so it cannot decide a verdict. The earlier claim that it can only hurt the candidates is withdrawn (CAL-0 review Q7)." |
| 62 | dataset_generator_lineage_records_differing_seed1 = 16 |
| 63 | dataset_generator_lineage_records_seed1 = 2172776 |
| 64 | dataset_generator_crumbs_sha256 = "72e396b15532aa93afb1f215521e04dca8470f779f3de35c10b04b07bff96638" |
| 65 | dataset_generator_learner_sha256 = "8159bdff248efa67fa2cf75bb0b506bc359f4a2269139d03479753c0fc393416" |
| 66 | dataset_generator_command = "crumbs experiment --learner L --seed S --out DIR" |
| 67 | development_split = "exp-20260927-rep10 control trace.ctr seeds 1-7 (14,376,405 events, 1,298 nonempty crumbs), per-file SHA-256 in evidence/TURING_YIELD/trace_manifest_rep10_control.sha256 (file SHA-256 6efc04b525af60706bd0f3176013fe234d8e8a52e2554cff3add8a4e16171dca, entries 1-7). Every candidate is fit on these only. Seeds 8-10 of rep10 and every file of final-20260927 are burned: never development, calibration or sealed data." |
| 68 | development_manifest_sha256 = "6efc04b525af60706bd0f3176013fe234d8e8a52e2554cff3add8a4e16171dca" |
| 69 | calibration_split = "No separate calibration data. Validation stand-in for the power simulation only: fit on dev seeds 1-6, score dev seed 7 per crumb (calibration/scripts/power_simulation.c). Nothing from it enters the verdict." |
| 70 | sealed_test_split = "2 replication groups x 3 fresh crumbline control seeds each, generated after the freeze by calibration/scripts/generate_sealed_data.sh. Group 1 = primary sealed test; group 2 = second-seed replication. Every nonempty crumb of every sealed control trace.ctr is scored; no file, crumb or event is dropped." |
| 71 | sealed_groups = 2 |
| 72 | sealed_seeds_per_group = 3 |
| 73 | test_generation_seed_commitment = "Seeds are derived, not chosen: seed(g, j) = first 16 hex of SHA-256('turing.cal.sealed.v1|<freeze commit 40 hex>|<profile digest 64 hex>|g<g>|<j>') as big-endian u64 with the top bit cleared, g in {1,2}, j in 0..2 (rule turing.cal.sealed.v1, calibration/scripts/generate_sealed_data.sh). The freeze commit C_f is the commit that holds the frozen candidate manifest, this profile and its sidecar (two-step freeze, BLINDING_PROTOCOL.md section 2); it names no commit inside itself, must reach origin/main by a real merge or a fast-forward (never squash or rebase), and is recorded afterwards by freeze_receipt.sh (TURING_PROFILE_V1_FROZEN = PASS). Nobody can know the seeds before C_f exists." |
| 74 | holdout_commitment = "Sealed data are generated only after C_f is on origin/main and its freeze receipt is committed; generate_sealed_data.sh refuses unless C_f is on origin/main with a frozen manifest and a filled profile and a freeze receipt naming C_f is on origin/main. It writes seed_commitment.json and manifest.json (SHA-256 of every sealed file) and COMPLETE last. calibration/scripts/verify_holdout_separation.* checks, before any scoring, that the sealed files are disjoint from the dev files (file and crumb digests) and that every seed differs from the burned ones." |
| 75 | blinding_method = "Three layers (calibration/docs/BLINDING_PROTOCOL.md). (1) Primary non-access is temporal: sealed seeds are derived from the freeze commit hash and the profile digest (test_generation_seed_commitment), so the sealed data cannot exist, and nobody can compute its seeds, before the freeze commit that already holds the hashed candidates. (2) Second layer: bubblewrap jails. Candidate work runs in candidate_env.sh, whose file system view has no sealed or evaluator path; generation and scoring run in evaluator_env.sh with no network, a read-only clean export of the freeze commit and one writable output directory. The candidate cannot query the evaluator. (3) Afterwards verify_holdout_separation.sh re-derives every seed, re-hashes every file and checks times and crumb overlap. Stated limit: all jails run as the same user id (drakestapleton), so a process outside the wrappers under that user can read the sealed directory; the optional separate sealed user (needs sudo) is NOT used in EXP-001. The temporal layer does not depend on the jails." |
| 76 | blinding_protocol_path = "calibration/docs/BLINDING_PROTOCOL.md" |
| 77 | blinding_separate_sealed_user = "no" |
| 78 | |
| 79 | # ---------------------------------------------------------------- probabilities |
| 80 | probability_representation = "Every predictor emits, per observation, a length-9 vector of quantized unsigned 16-bit integers q[0..8], each in 1..65535 and summing to exactly 65536; P(x) = q[x] / 65536. The quantized vector is the probability: there is no float vector behind it (TYM0 models are quantized tables). For a TYM0 model the vector is the decoded row of the event's context key, or the default row. It is written into the TPS1 probability stream (calibration/docs/CODER_SPEC.md section 2) as u16 entries before any coder runs; coders read only the stream and never call the model." |
| 81 | probability_stream_format = "TPS1 v1 (CODER_SPEC.md section 2): 128-byte header, records of 24 + 2K bytes (observation_index, context_key, crumb ordinal, norm_sum, q[0..K-1] u16), 32-byte trailer digest. Header offset 28 (32 bytes) = profile_digest = the frozen sidecar digest of this file; offset 60 = model_digest = ty_model_digest = SHA-256('turing.ymodel.v0' || 0x00 || .tym bytes); offset 92 = dataset_digest = plain SHA-256 of the CTR1 trace.ctr file bytes. The per-record crumb ordinal (0-based, in file order) is the bootstrap resampling unit (calibration/docs/UNCERTAINTY_PROTOCOL.md)." |
| 82 | probability_stream_profile_digest_offset = 28 |
| 83 | probability_stream_model_digest_rule = "ty_model_digest" |
| 84 | probability_stream_dataset_digest_rule = "plain SHA-256 of the CTR1 file bytes" |
| 85 | probability_quantization = "16 bits (qbits = 16, total 65536). Rows are produced by ty_quantize_kt (largest remainder, ties to the lower symbol) or set by hand; either way the stored integers are the probabilities. No further quantization happens anywhere between model, stream, ideal length and coders." |
| 86 | probability_qbits = 16 |
| 87 | probability_total = 65536 |
| 88 | probability_floor = 1 |
| 89 | zero_probability_policy = "refuse. Impossible by construction: every entry is >= 1 (P >= 2^-16, at most 16 bits per symbol). A stored entry of 0, or an implied last entry < 1, is refused by the model decoder (TY_E_PROFILE); a TPS1 record with any q = 0 is refused by the stream reader and both coders (ZERO). No epsilon is ever added and nothing is clamped." |
| 90 | normalization_policy = "Every row sums to exactly 65536. Each TPS1 record carries norm_sum, which must equal 65536, and the entries must sum to 65536; otherwise the reader refuses (NORM). Nothing is ever renormalized." |
| 91 | ideal_codelength_method = "L_ideal(D|M) = sum over events of ub(q_realized), in int64 micro-bits (1 bit = 1,000,000 ub), where ub(q) (ty_ubits_q16) is this exact integer rule: ip = index of the highest set bit of q; m = q << (62 - ip); frac = 0; for i = 1..32: m = (m * m) >> 62 (128-bit product, truncated), and if m >= 2^63 then set bit (32 - i) of frac and m = m >> 1; log2 = (ip << 32) | frac; x = (16 << 32) - log2; ub(q) = (x * 1000000 + 2^31) >> 32. Test values ub(1) = 16000000, ub(32768) = 1000000, ub(65536) = 0, ub(43481) = 591903, ub(46819) = 485194 (the last two are one micro-bit above correct rounding; the rule is the definition). EVALUATOR.md section 6.2 and CODER_SPEC.md repeat it; summed in file order with overflow-checked int64 addition. Per-symbol error vs the exact real value <= 0.501 ub (TY_QERR_MILLI_UB_PER_SYMBOL = 501 milli-ub), so a sum over N events is within 0.501 N ub and a T (two sums) within 1.002 N ub. DL(M, D) = L(M) x 1,000,000 + L_ideal(D|M) ub; T(M; B2, D) = DL(B2, D) - DL(M, D)." |
| 92 | ub_per_bit = 1000000 |
| 93 | qerr_milli_ub_per_symbol = 501 |
| 94 | |
| 95 | # ---------------------------------------------------------------- coders |
| 96 | reference_coder_1 = "TCR1 v1 range coder (coder_id 1): src/turing/tc_range.c, spec calibration/docs/CODER_SPEC.md section 5. 32-bit range, TOP = 2^24, r = range >> 16, last symbol takes the slack, 5-byte flush. Lossless: decode(encode(D)) == D is checked on every coded file." |
| 97 | reference_coder_2 = "TCA1 v1 rANS coder (coder_id 2): src/turing/tc_rans.c, spec calibration/docs/CODER_SPEC.md section 6. L = 2^23, scale 16 (M = 65536), byte renormalization, 4-byte little-endian final state. Lossless: decode(encode(D)) == D is checked on every coded file." |
| 98 | coder_spec_path = "calibration/docs/CODER_SPEC.md" |
| 99 | coder_spec_sha256 = "b5c33536b30714cbfe1b353cc68b603e948b037c95ca9eb49b759f62694b83bc" |
| 100 | coder_tool = "turing-coder (src/turing/tc_tool.c, make turing-coder), CLI in CODER_SPEC.md section 11" |
| 101 | coder_termination_convention = "Range (TCR1): the encoder ends with 5 shift_low flushes; the decoder must finish with code = 0 and with every payload byte consumed (else CORRUPT or TRAIL). rANS (TCA1): the encoder ends by writing the 4-byte state; the decoder must finish with state x = 2^23 = L and every payload byte consumed (else CORRUPT or TRAIL). CODER_SPEC.md sections 5 and 6." |
| 102 | coder_header_accounting = "Every coded file = 56-byte header (magic, version, coder_id, reserved, count, TPS1 digest, payload_bytes; CODER_SPEC.md section 4) + payload. Coded length in bits = 8 x (file bytes), header, flush and final-state bytes included. The header alone is 448 bits. No byte is excluded, discounted or moved to a side channel." |
| 103 | coder_header_bits = 448 |
| 104 | coder_metadata_accounting = "Anything the decoder needs besides the probability stream (symbol count, stream digest, model digest, profile digest, lengths) is inside the coded file and counted, or is part of the free background fixed by this profile. A coder whose decoder needs an uncounted input fails the silent-metadata-omission adversarial test and invalidates the run." |
| 105 | coder_overhead_definition = "overhead_X(unit) = L_coded_X(unit) - L_ideal(unit) in bits, N = symbols in the unit (CODER_SPEC.md sections 8-9). Exact integer form used for every decision: overhead_ub = 8 x file_bytes x 1,000,000 - L_ideal_ub. No rounding." |
| 106 | coder_envelope = "TWO-SIDED, applied to each coder separately, to every whole file and to every crumb (each crumb coded as its own file with its own 56-byte header): |overhead - 448| <= 64 + 1.0e-3 x N bits. Integer test: |overhead_ub - 448,000,000| <= 64,000,000 + 1,000 x N. Any unit outside the band fails criterion S4 for that unit. Known facts, stated before sealed data exist: rANS codes BELOW ideal on rows skewed toward low-index symbols (uniform model on dev: about 5e-4 bits per symbol below ideal, file overhead down to -641 bits), which is why the band is two-sided. The slope b = 1.0e-3 was measured on dev seeds 1-7 (largest observed |rate| 5.4e-4, about 1.9x margin), not proven: adversarial sequences can reach about 5.6e-3 (range) and 2.8e-3 (rANS) bits per symbol. Measurement: make turing-exp001-envelope, CODER_SPEC.md section 9, on all seven candidates (each over the 7 dev files of seeds 1-7 and their 1,298 crumbs, 1,305 units per coder; 0 violations for every candidate and both coders; closest unit about 32 bits inside the bound). The dev models were fit in-sample on seeds 1-7, so this measures the coders, not the models." |
| 107 | coder_envelope_center_bits = 448 |
| 108 | coder_envelope_a_bits = 64 |
| 109 | coder_envelope_b_ub_per_symbol = 1000 |
| 110 | coder_envelope_units = "per coder, per file and per crumb" |
| 111 | coder_envelope_basis = "measured on dev seeds 1-7, not proven" |
| 112 | |
| 113 | # ---------------------------------------------------------------- uncertainty |
| 114 | uncertainty_method = "Nonparametric percentile bootstrap over crumbs, per replication group (calibration/docs/UNCERTAINTY_PROTOCOL.md). Statistic: T(M; B2, D_group) = sum over crumbs of (L(D_c|B2) - L(D_c|M)) in ub minus (L(M) - L(B2)) x 1,000,000. Model costs are fixed, never resampled. 95% interval = sorted resampled values at indices 250 and 9749 (0-based) of 10000." |
| 115 | correlation_handling = "The crumb is the unit of correlation: context resets at every crumb start, so per-crumb code lengths add exactly to the file code length, and events inside a crumb are never resampled separately. Crumbs are treated as independent across and within seeds (assumption A2). The dev check shows a single-seed crumb bootstrap spread of 0.00155 bits/event against a leave-one-seed-out spread of 0.00316 bits/event; the power simulation covers this with a x2.04 spread inflation sensitivity (n = 3 still has power 1.000 at the declared minimum effect)." |
| 116 | block_resampling_policy = "Pool all nonempty crumbs of the group's 3 sealed control files, ordered by (sealed manifest seed order, crumb ordinal in file). Draw C crumbs with replacement (C = number of pooled crumbs) using splitmix64 seeded with 0x4558503030315543 + g (g = group 1 or 2); index = r mod C after rejecting r > 2^64 - 1 - (2^64 mod C). One index sequence per group, reused for every candidate (common random numbers). The coded T intervals are the ideal interval shifted by the deterministic coded-minus-ideal overhead difference of the two models." |
| 117 | bootstrap_resamples = 10000 |
| 118 | bootstrap_ci_level = "0.95, percentile, indices 250 and 9749 of 10000 sorted int64 ub values" |
| 119 | bootstrap_rng = "splitmix64: z = (s += 0x9E3779B97F4A7C15); z = (z ^ (z >> 30)) * 0xBF58476D1CE4E5B9; z = (z ^ (z >> 27)) * 0x94D049BB133111EB; return z ^ (z >> 31)" |
| 120 | bootstrap_seed_base = "0x4558503030315543" |
| 121 | number_of_replicates = 2 |
| 122 | number_of_replicates_meaning = "2 independent sealed replication groups (group 1 primary, group 2 replication); bootstrap resamples are bootstrap_resamples" |
| 123 | number_of_trajectories = "3 sealed control seeds (independent worlds) per group, 6 in total; each seed contributes all its nonempty crumbs (about 185 per seed on dev: 181-188), so about 555 crumbs per group. Chosen by the power simulation: smallest n with joint power >= 0.95 at the declared minimum effect (calibration/experiments/EXP-001/power_simulation_output.txt)." |
| 124 | trajectory_length = "Not fixed by the profile: each crumb is scored whole, as long as the generator made it (dev: 14,376,405 events over 1,298 nonempty crumbs, about 11,000 events per crumb). No truncation, no event dropped. The position feature saturates event_index at 2^20 - 1." |
| 125 | power_min_effect_bits_per_event = "0.047035 (f = 0.1 of the dev validation data gain 0.470348 bits/event of M_candidate over B2)" |
| 126 | stopping_rule = "Fixed design, no optional stopping: exactly 2 groups x 3 seeds, generated once, each scored exactly once after verify_holdout_separation passes. No extra seeds are added, no seed is dropped or replaced because of its result. An infrastructure failure before any score exists (a seed whose generation fails: nonzero exit, missing COMPLETE; a failed build or test of the frozen tree; or a refused evaluator check) is VOID and is retried with the same C_f, the same seeds, the same frozen tree and a byte-identical command, nothing edited in between. All voids of EXP-001 share one counter (void receipts in ~/aien-data/turing-cal/eval/<C_f>/run/bundle): at most three voids for the whole experiment, stages counted together, and the third ends EXP-001 as INCONCLUSIVE INFRA (final). Sealed generation starts only after the PASS freeze receipt naming C_f is on origin/main. Every failed attempt is kept and published. After scoring starts there is no retry: a failure is a terminal FAIL of its criterion (FAILURE_REPORTING.md section 2). The verdict is written once to final_receipt.json in ~/aien-data/turing-cal/eval/<C_f>/run/bundle (outside git) and never replaced; a later publication commit copies it and the files listed in FAILURE_REPORTING.md section 6 byte for byte into calibration/experiments/EXP-001/ with published_manifest.sha256." |
| 127 | |
| 128 | # ---------------------------------------------------------------- energy (declared; not measured in EXP-001) |
| 129 | energy_instrumentation = "r15_measure (tests/runtime/r15_measure.{c,h}, unchanged) with the TY energy harness of docs/turing/TURING_YIELD_ENERGY_PROTOCOL_V0.md: SPBM package/CPU energy counters, 10 Hz sampler, per-process PMU. NOT measured in EXP-001: deferred to the T/J gate, which runs only after EXP-001 PASS." |
| 130 | idle_baseline_method = "Per TURING_YIELD_ENERGY_PROTOCOL_V0.md: an IDLE window of the same length in every round, shuffled order, same settle; energy is idle-subtracted per round. Not measured in EXP-001 (deferred to the T/J gate)." |
| 131 | energy_attribution_method = "Per TURING_YIELD_PROFILE_V0.md section 10: T/J = T / E_M with E_M = idle-subtracted energy of scoring the sealed split with the candidate alone in its own window; the marginal form E_M - E_B is not used. Not measured in EXP-001 (deferred to the T/J gate)." |
| 132 | energy_measured_in_exp001 = "no" |
| 133 | |
| 134 | # ---------------------------------------------------------------- provenance |
| 135 | software_versions = "omega at the freeze commit (commit hash recorded in every receipt, freeze.commit); coders src/turing/tc_*.c and scorer as of that commit; crumbs generator and learner pinned by SHA-256 above; no Python, no network, no GPU." |
| 136 | compiler_versions = "gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, aarch64-linux-gnu; flags -std=c11 -O2 -Wall -Wextra -Werror -pedantic -D_POSIX_C_SOURCE=200809L (plus an ASan/UBSan build whose outputs must be byte-identical)" |
| 137 | runtime_digest_rule = "turing.cal.runtime.v1: SHA-256 of the listing '<sha256 hex> <name>' + LF, one line per binary, sorted by name, over exactly crumbline-learner, crumbs, turing-cal-candidates, turing-cal-eval, turing-cal-overlap, turing-coder, turing-verify-indep (seven binaries; the name turing-verify-indep is the file build/turing-verify-indep/indep-scorer) as built from the freeze commit C_f (crumbs prebuilt and pinned). Computed by calibration/scripts/runtime_digest.sh, which also refuses unless crumbs and the learner match their pins. Computed at freeze time only." |
| 138 | runtime_digest = "608b7c2162f0274572ae8de8ce3056eb88f5df308eedac6f116c3f76e285af1a" |
| 139 | hardware_identity = "NVIDIA DGX Spark (GB10), CPUs Cortex-X925 + Cortex-A725, aarch64, Linux 7.0.0-1019-nvidia; CPU only. Code lengths are integer and hardware independent; hardware matters only for the deferred energy gate." |
| 140 | independent_verification_requirements = "A second scorer written only from the published docs and the EXP-001 bundle (no import, include, link or invocation of production code; lane D) is tools/turing_verify_indep (source pinned by independent_scorer_source_sha256 in the candidate manifest, binary inside runtime_digest, run in the evaluator environment from the frozen tree; any revision of its source after the sealed data are released makes S8 FAIL). It recomputes from the CTR1 traces and the candidate model files L(M), every event probability (its TPS1 bytes must equal the production TPS1 file byte for byte, and its symbol stream the TSY1 file), L_ideal and T exactly in micro-bits, and the bootstrap intervals exactly (integer statistic, specified RNG). It reads the coded byte counts as the byte sizes of the production TCR1 and TCA1 files (the coded lengths by definition; it does not re-encode) after checking each file: header, binding to its TPS1 digest, decoding by its own decoders to exactly the symbol stream, and SHA-256 and size equal to the INDEX entry. Every failed check is counted in its output field problems; S8 is PASS only when problems is 0 and every value equals the primary exactly; a lane D crash or a missing output file is S8 FAIL with no retry. What S8 can and cannot catch is stated in calibration/docs/EVALUATOR.md section 6. Any difference fails the success criterion. Tolerance for reported floating-point ratios (bits/event): relative 1e-9." |
| 141 | baseline_sensitivity_plan = "Report T of every candidate against B0, B1, B2 and B3 (ideal and both coders) with intervals. The verdict uses B2 only. The report states whether the qualitative conclusion (M_candidate positive, memorizers negative) also holds against B1; a difference is reported, not acted on." |
| 142 | model_code_sensitivity_plan = "Report, without changing the verdict: T with L(M) charged at 8 x file bytes (byte-rounded); T with L(M) doubled (for both the candidate and B2, so T moves by -(L(M) - L(B2))); the data-only gain L(D|B2) - L(D|M). The report states whether the sign of T for M_candidate and for both memorizers changes under any of them." |
| 143 | overlap_audit = "Before scoring, verify_holdout_separation (lane C) checks and writes calibration/experiments/EXP-001/overlap_audit.json: sealed seeds differ from dev and burned seeds; no sealed trace.ctr file digest equals a dev or burned file digest; no sealed crumb (trace stream digest) equals any dev crumb; candidate artifacts were hashed before the sealed data existed (freeze commit ancestry, file mtimes and the COMPLETE timestamp). Any overlap stops the run before scoring." |
| 144 | failure_reporting_policy = "calibration/docs/FAILURE_REPORTING.md: every outcome (PASS, FAIL, INCONCLUSIVE, void run, refused step, failed adversarial test) is committed with its receipt and kept; nothing is deleted, rerun to replace, or reinterpreted with a changed threshold. A FAIL is a valid result. Verdict: FAIL if any criterion is FAIL or NOT_REACHED, else INCONCLUSIVE if any of S6, S7, S9 is INCONCLUSIVE (verdict_inconclusive_trigger), else PASS; an INCONCLUSIVE is final for its sealed set. Deviations from this profile are listed in REPORT.md by the operator, checked by the reviewer, and make the run FAIL unless the profile itself allows them. VOID is only for an infrastructure failure before any sealed score exists (stopping_rule); adversarial tests run before the freeze and again on the frozen tree before scoring, where a failure is VOID under the same retry rule and the same counter (recorded with calibration/scripts/record_void.sh)." |
| 145 | verdict_inconclusive_trigger = "Declared before any sealed data exist. On the 95% percentile-bootstrap intervals [lo, hi] of T against B2 (ideal, coder A, coder B): S6 (M_candidate) PASS if every lo > 0, FAIL if any hi < 0, else INCONCLUSIVE; S7 (M_mem and M_mem_seed1) PASS if every hi < 0, FAIL if any lo > 0, else INCONCLUSIVE; S9 = worse of the S6 and S7 rules on group 2. S1-S5 and S8 are PASS or FAIL only. Implemented by turing-cal-eval (calibration/docs/EVALUATOR.md)." |
| 146 | |
| 147 | # ---------------------------------------------------------------- candidate set (EXP-001) |
| 148 | candidate_set = "B0_uniform, B1_order0, B2_order1, B3_heuristic, M_candidate, M_mem, M_mem_seed1 (calibration/preregistration/EXP-001.md); digests in calibration/experiments/EXP-001/candidate_manifest.json" |
| 149 | candidate_memorizer_decision = "Orchestrator decision 2026-09-29: keep both memorizers. M_mem is the brief's position memorizer (all 7 dev seeds); M_mem_seed1 is the true memorizer of dev seed 1. Both are predicted to lose on sealed data." |
| 150 | candidate_large_artifacts = "M_mem.tym (75,979,815 bytes) and M_mem_seed1.tym (44,541,937 bytes) are not in git. They are pinned by file SHA-256 and model digest in candidate_manifest.json, rebuild deterministically with make turing-exp001-a-candidates from dev seeds 1-7, and a copy is kept at ~/aien-data/turing-cal/candidates/. The evaluator must verify the SHA-256 before use." |
| 151 | candidate_m_candidate_model_digest = "64a57ba9cf6f8b6e4558751ef2145ae2aa729c5214bfa29373eabfa220a57bc7" |
| 152 | candidate_m_candidate_lm_bits = 180834 |
| 153 | candidate_m_candidate_mask = 93 |
| 154 | candidate_m_mem_mask = 32 |
| 155 | candidate_m_mem_lm_bits = 607838516 |
| 156 | candidate_m_mem_seed1_lm_bits = 356335496 |
| 157 | candidate_b3_mask = 1 |
| 158 | candidate_b3_lm_bits = 2344 |
| 159 | |
| 160 | # Protocol field names. The calibration protocol (docs/turing/protocols/turing-instrument-calibration-validation- |
| 161 | # protocol-v1-0.tex, section Turing-profile-v1.0, lines 155-277) names these fields; each one is answered here, |
| 162 | # either directly or by pointing to the key above that holds the answer (calibration/docs/PROTOCOL_CONFORMANCE.md). |
| 163 | profile_name = "Turing-profile-v1.0 (same as profile_id)" |
| 164 | creation_timestamp = "Drafted 2026-09-29. The authoritative time is the commit time of the freeze commit C_f (recorded in freeze_receipt.json) and candidate_manifest.json frozen_at." |
| 165 | protocol_version = "Turing instrument calibration and validation protocol v1.0 and Turing laboratory execution protocol v1.0 (docs/turing/protocols/*.tex); only CAL-0 and EXP-001 apply" |
| 166 | hypothesis_definition = "calibration/preregistration/EXP-001.md section 1: the ideal code length -log2 p used by T corresponds to real lossless compressed size, so positive T of M_candidate against B2 survives both reference coders and the memorizers get no positive T" |
| 167 | primary_endpoint = "T(M_candidate; B2) on sealed group 1, int64 ub, for the ideal code length and both coders, with its 95% interval (uncertainty_method)" |
| 168 | secondary_endpoints = "T of every candidate on groups 1 and 2; coder overhead per file and per crumb; DL ordering ideal vs coders (reversals, Spearman rho); T of both memorizers; the sensitivity set (baseline_sensitivity_plan, model_code_sensitivity_plan)" |
| 169 | pass_fail_rule = "calibration/preregistration/EXP-001.md sections 5 and 5a (criteria S1-S9, verdict PASS / FAIL / INCONCLUSIVE, see verdict_inconclusive_trigger); a refused check before any sealed score exists makes the attempt VOID, any failure after that is a terminal FAIL of its criterion (FAILURE_REPORTING.md section 2)" |
| 170 | baseline_parameterization = "see baseline_encoding and baseline_b2_mask: B2 is the TY-2 order-1 table model, pinned by baseline_b2_model_digest" |
| 171 | baseline_description_cost = "see baseline_b2_lm_bits (exact TYM0 bits, charged like any candidate)" |
| 172 | candidate_representation = "see lm_representation" |
| 173 | candidate_serialization = "see model_serialization" |
| 174 | shared_background = "see shared_background_definition and lm_free_background" |
| 175 | model_code_method = "see model_cost_method and lm_formula" |
| 176 | parameter_precision = "see lm_parameter_precision" |
| 177 | dependency_cost = "see lm_dependencies" |
| 178 | metadata_cost = "see lm_structural_metadata and lm_model_headers" |
| 179 | lookup_table_cost = "see lm_lookup_tables" |
| 180 | external_artifact_cost = "see lm_external_artifacts and lm_embedded_datasets" |
| 181 | data_generator = "see dataset_generator and dataset_generator_command" |
| 182 | replication_split = "sealed group 2 (sealed_groups = 2, sealed_seeds_per_group = 3): the new-seed replication, criterion S9" |
| 183 | trajectory_count = "see number_of_trajectories" |
| 184 | sampling_interval = "none: the data are discrete CTR1 event records, one per learner event, scored in record order; no time sampling" |
| 185 | seed_commitment = "see test_generation_seed_commitment" |
| 186 | candidate_environment = "see blinding_method and calibration/docs/BLINDING_PROTOCOL.md (candidate jail: development data and public profile only)" |
| 187 | evaluator_environment = "see blinding_method and calibration/docs/BLINDING_PROTOCOL.md (evaluator jail: frozen candidates, sealed data, coders, turing-cal-eval)" |
| 188 | access_control = "temporal non-access (sealed seeds are derived from the freeze commit and cannot exist before it) plus bubblewrap jails, same user id (blinding_separate_sealed_user)" |
| 189 | test_release_process = "calibration/scripts/generate_sealed_data.sh after the freeze commit is on origin/main; its seed_commitment started_utc is the release time the evaluator checks against frozen_at" |
| 190 | candidate_freeze_process = "calibration/scripts/freeze_candidate.sh --freeze writes candidate_manifest.json (status frozen, frozen_at, every artifact sha256); turing-cal-eval refuses a manifest that is not frozen or was frozen after release" |
| 191 | quantizer = "see probability_quantization" |
| 192 | normalization_rule = "see normalization_policy" |
| 193 | numeric_precision = "probabilities: u16 integers summing to 65536 (probability_qbits, probability_total); code lengths and T: int64 micro-bits (ub_per_bit); no floating point in any decision" |
| 194 | reference_coder_A = "see reference_coder_1" |
| 195 | reference_coder_B = "see reference_coder_2" |
| 196 | termination_convention = "see coder_termination_convention" |
| 197 | header_accounting = "see coder_header_accounting and coder_header_bits" |
| 198 | side_information_accounting = "see coder_metadata_accounting (side information bits = 0, all bits counted in the coded file size)" |
| 199 | confidence_level = "see bootstrap_ci_level" |
| 200 | block_length = "one crumb (variable length, a whole crumb is the resampling block); see block_resampling_policy" |
| 201 | bootstrap_method = "see uncertainty_method, bootstrap_resamples, bootstrap_rng, bootstrap_seed_base" |
| 202 | energy_instrument = "see energy_instrumentation (not measured in EXP-001)" |
| 203 | sampling_frequency = "not applicable in EXP-001 (energy_measured_in_exp001 = no)" |
| 204 | attribution_method = "see energy_attribution_method (not used in EXP-001)" |
| 205 | sensor_uncertainty = "not applicable in EXP-001 (energy_measured_in_exp001 = no)" |
| 206 | time_alignment_method = "not applicable in EXP-001 (energy_measured_in_exp001 = no)" |
| 207 | candidate_digest = "SHA-256 of calibration/experiments/EXP-001/candidate_manifest.json at freeze (receipt roots.candidate_root); not stored here because the manifest hashes this profile" |
| 208 | dataset_digest = "payload_digest of the sealed dataset manifest (calibration/scripts/make_dataset_manifest.sh; receipt roots.dataset_root); exists only after release" |
| 209 | coder_digest = "coder_spec_sha256 for the specification; the turing-coder and turing-cal-eval binaries are pinned inside runtime_digest" |
| 210 | scorer_digest = "primary scorer turing-cal-eval is pinned inside runtime_digest; the lane D independent scorer (tools/turing_verify_indep; runtime listing name turing-verify-indep, file build/turing-verify-indep/indep-scorer) is pinned by its source digest in the candidate manifest and its binary inside runtime_digest" |
| 211 | alternative_baselines = "see baseline_sensitivity_plan (T against B0, B1, B3)" |
| 212 | alternative_model_codes = "see model_code_sensitivity_plan (L(M) byte-rounded, doubled, data-only gain)" |
| 213 | alternative_quantization = "none in EXP-001: every candidate is a TYM0 table of already quantized u16 probabilities, so the stream is the model itself; declared not varied (PROTOCOL_CONFORMANCE.md)" |
| 214 | alternative_reference_coder = "the two reference coders are each other's alternative (range and rANS), both scored" |
| 215 | alternative_uncertainty_model = "interval inflated x2.04 (UNCERTAINTY_PROTOCOL.md assumption A3), reported, not part of the verdict" |