interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / calibration / docs / DATA_FORMAT.md

139 lines · 8532 bytes Raw Blame History Source

EXP-001 data and bundle format (docs-only reference)

This document is enough to read every EXP-001 input and output without the omega or crumbs source. It closes the independent scorer's gaps G1 (CTR1 layout), G3 (crumb boundary), G5 (bundle layout), G6 (profile digest), G9 (event-index gaps) and G10 (crumb saturation). It is part of the shared background hashed into the candidate manifest. Where it and the code disagree, the code is wrong and the run is a terminal FAIL of the criterion that used the value (FAILURE_REPORTING.md section 2).

All integers are little-endian and unsigned unless stated. "SHA-256" means lowercase hex.

1. CTR1 trace file (control/trace.ctr)

A headerless stream of 247-byte records. The file size must be a multiple of 247, otherwise the file is refused. Each record is a 215-byte body followed by a 32-byte BLAKE3 chain digest. The chain is not verified by EXP-001 (no BLAKE3 in the tree); file integrity is pinned by the SHA-256 in the dataset manifest instead (G12).

OffsetSizeFieldUsed by EXP-001
04magic, ASCII CTR1refused if different
42version u16must be 1
61kind u8: 1 = EXPAND, 2 = SUBMITsymbol, refusal
71result_class u8: 1 Pruned, 2 Failed, 3 Partial, 4 Improved, 5 Verified, 6 RejectedHidden, 7 RejectedRobustsymbol
84event_index u32crumb boundary
124parent u32no
164child u32no
202op_index u16context (EXPAND)
221op_origin u8must be 0 (control arm: base ops only)
231prune u8: 0 none, 1 EQUIV, 2 COST, 3 FRONTIER_CAP, 4 STEP_CAPsymbol
241verify u8must be <= 4
251fit u8must be <= 2
261hidden u8no
271improved u8no
281contributed u8no
292depth u16context, clipped to min(depth, 7)
3132op_idno
6332state_digestno
9532child_state_digestno
12732program_digestno
1592mismatch_before u16no
1612mismatch_after u16no
1634hamming_before u32no
1674hamming_after u32no
1714exec_cost u32no
1754search_cost u32no
1792program_steps u16no
1812oracle_index u16no
18332residual u64[4]no
21532BLAKE3 chain digestno (see above)

The overlap audit's crumb-block hash (verify_holdout_separation.sh G9) covers bytes 0..214 of every record.

1.1 Symbol mapping (alphabet K = 9)

SymbolNameCondition
0P_EQUIVkind 1, prune 1 (result_class must be 1)
1P_COSTkind 1, prune 2 (result_class must be 1)
2P_FRONTIERkind 1, prune 3 (result_class must be 1)
3P_STEPCAPkind 1, prune 4 (result_class must be 1)
4FAILEDkind 1, prune 0, result_class 2
5PARTIALkind 1, prune 0, result_class 3
6IMPROVEDkind 1, prune 0, result_class 4
7ACCEPTkind 2, prune 0, result_class 5
8REJECTkind 2, prune 0, result_class 6 or 7

The context feature op is op_index (0..14) for EXPAND and 15 for SUBMIT. Refusals (the evaluator reads and validates every CTR1 file before it scores any file, so a bad file always refuses before any score exists: FORMAT, a void; EVALUATOR.md section 3): bad magic; version != 1; op_origin != 0; verify > 4; fit > 2; kind not 1 or 2; EXPAND with op_index >= 15 or prune > 4; pruned EXPAND with result_class != 1; unpruned EXPAND with result_class outside 2..4; SUBMIT with prune != 0 or result_class outside 5..7.

1.2 Crumb boundary (G3)

A record with event_index 0 starts a new crumb (this is the "first" flag and the "same crumb id" of EVALUATOR.md and CODER_SPEC.md). Every other record must have event_index strictly greater than the previous record in the file, otherwise the file is refused. The first record of a file must have event_index 0. A jump of more than one inside a crumb is a gap: it is counted and reported (gaps), never refused (G9). Crumbs are numbered 0, 1, 2, ... in file order; the crumb ordinal stored in TPS1 and used by the POS context is min(ordinal, 65535) (G10). A crumb is the unit of the per-crumb envelope (S4) and of the bootstrap pool. Saturation is accepted (CAL-0 review 2 Q15): in a file with more than 65,535 crumbs, every crumb from ordinal 65535 on would share one ordinal, so the evaluator would treat them as a single crumb (one bootstrap unit, one per-crumb envelope entry) and the POS context would see one value for them. It cannot happen at this design: the development traces hold 181 to 188 crumbs per file, about 350 times below the limit, and the sealed traces come from the same generator with the same trace length.

2. Profile digest (G6)

The profile digest is the SHA-256 of the bytes of calibration/profiles/Turing-profile-v1.0.toml. The sidecar Turing-profile-v1.0.sha256 and the bundle file profile.digest both hold one line <digest> Turing-profile-v1.0.toml

3. Dataset manifest (dataset_manifest.json, schema turing.cal.dataset_manifest.v1)

Written by calibration/scripts/make_dataset_manifest.sh (--dev for development data, --sealed for the sealed set). Top-level keys: schema, dataset_id, experiment, split (development or sealed_test), profile_digest, freeze_commit (C_f, or NONE for development data), generator_digest, learner_digest, parameter_commitment, seed_commitment_sha256, sealed_manifest_sha256, released_utc, generation_finished_utc, trajectory_count, payload_digest, files. Each files entry is one line {"group": g, "index": j, "seed": S, "sha256": ..., "bytes": ..., "path": ...} with group 1 (primary) or 2 (replication) and index j = 0, 1, 2 within the group (j is the position in the seed-commitment order, which is the derivation index; it is also the bootstrap pool order, UNCERTAINTY_PROTOCOL.md section 3).

4. Run root and bundle layout (G5)

A sealed run (and the dev dry run, tests/turing/test_tc_eval_dry.sh) uses one run root R and runs with the working directory R:

R/candidate_manifest.json     copy of the frozen manifest (from C_f)
R/dataset_manifest.json       the sealed (or dev) dataset manifest, section 3
R/candidates/                 the seven .tym files (or --cand-dir)
R/bundle/                     the bundle (below); sealed R = $TC_EVAL_ROOT/<C_f>/run (FAILURE_REPORTING.md section 6)
R/work/                       large intermediate files, referenced by relative path "work/..."
R/work/probability_streams/g<g>_j<j>_<C>.tps   TPS1 stream per candidate and file
R/work/symbols/g<g>_j<j>_<C>.tsy               TSY1 symbol stream per candidate and file
R/work/arithmetic/g<g>_j<j>_<C>.tcr            range coder output (TCR1)
R/work/ans/g<g>_j<j>_<C>.tca                   rANS coder output (TCA1)

Bundle files (EVALUATOR.md section 5 describes their content):

FileContent
profile.digestsection 2
probability_streams/INDEXone line per candidate and file: <TPS1 file sha256> <TPS1 trailer digest> <TSY1 trailer digest> <g> <index> <candidate> <bytes> <path>; first line is a # comment
encoded_artifacts/INDEXone line per coder, candidate and file: <coded file sha256> <coder: range or rans> <g> <index> <candidate> <bytes> <path>; first line is a # comment
ideal_lengths.jsonwhole-file and per-crumb ideal lengths (ub), event counts, per-crumb coded bytes
arithmetic/results.json, ans/results.jsoncoded sizes and decode results per coder
decoder_receipts/g<g>_j<j>_<C>.jsonlossless decode receipt per candidate and file
scorer_primary.jsonthe S8 key set (EVALUATOR.md section 6)
scorer_independent.jsonthe independent scorer's output (tools/turing_verify_indep)
uncertainty.jsonbootstrap intervals
final_receipt.pending.json, REPORT.pending.mdbefore the gate
final_receipt.json, REPORT.mdafter the gate (write-once)
void_receipt_<n>.jsonone per void attempt (FAILURE_REPORTING.md section 2)

<path> in both INDEX files is relative to R. TSY1 files are not listed in an INDEX; their path is fixed by the naming above. The per-crumb coded sizes in ideal_lengths.json come from coding each crumb alone with its own 56-byte header; they are published but are outside the S8 key set (G8).