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/aien-train/tree/main/tools/verified_examples # aien-train AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-train / tools / verified_examples` `8222464` train: admit only reverified programs and export trainer-ready continuation text Drake Stapleton committed 2026-11-11 ``` .. README.md 11342 examples.om 18203 gate.om 13396 sources.om 5604 ``` README.md # Verified program examples (DRA-122) Seeded Omega admission, deterministic JSONL provenance, and an optional continuation-text export. There is one admission rule: the actual program must verify again now. An old verified flag is never evidence. No model is called, no model is trained, no GPU is opened, and nothing is published by this tool. ## Dependencies and build Use the approved kernel-memory-capped omega-mv referee revision, `15760b5009f00485ce51669c84d0126ed19fa479`. Its `seed/out/omc`, SHA-256 `a5613368f427aacd73ebeee16d46f8b3203405711d4de5b860d0cbee11ce4533`, compiles this tool. The admitted compiler and benchmark task-set pins are the `vxsha` and `vxtasks` texts in `examples.om`; a different run pin is refused. Changing a pin is a source change requiring the full gate, not a command-line override. `OMEGA` below is a fresh checkout of that revision. Run the driver's self-test once to build its `chat` edge and create fixtures. All fake-model output is TEST DATA, never release data. The tool also recognizes `model_requested fake`, a `TEST` metadata line, and a `TEST_DATA` marker. ``` OMC="$OMEGA/seed/out/omc" sh "$OMEGA/bench/inference_cost/driver.sh" --self-test mkdir -p build/verified_examples { printf 'om2\n' cat "$OMEGA/om/tls/sha2.om" "$OMEGA/seed/json/json.om" sed 's/^fn main to int$/fn vxmodelmain to int/' tools/verified_examples/examples.om cat tools/verified_examples/sources.om } > build/verified_examples/all.om "$OMC" < build/verified_examples/all.om > build/verified_examples/examples chmod +x build/verified_examples/examples ``` The SHA-2 implementation and UTF-8 state machine are reused from the pinned Omega source. Candidate extraction reuses its `chat resp`, including the exact fenced-code rule. Admission calls its existing `driver.sh --verify-candidate` interface: the same assembly, hidden inputs, byte comparison, mandatory bubblewrap isolation, readiness checks and deadlines as the scoreboard. Compiler failures are never run. The driver is an existing shell migration dependency, not Omega. Its namespace/mount, process-tree and descriptor-supervisor Omega successor is not yet written. We do not duplicate it. The small `sh -c` extraction invocation only binds stdin and fd 3 for the existing chat executable; it makes no admission or serialization decisions. The driver documents the exercised host dependencies: bubblewrap 0.9.0, coreutils timeout 9.4, Bash 5.2.21 and the selected C/Python/Rust compiler/runtime oracles. Omega passes through PATH and binds OMC explicitly to the compiler whose bytes it hashed; no other environment is inherited. Read-only Git archive/diff is used only for the harness source snapshot. Existing host build scripts remain migration debt; no new shell implementation is introduced here. ## Build a real dataset (one command) Set RUN to one directory announced in the scoreboard's RUNS.txt, OUT to a new absent directory, and OMEGA to the pinned checkout. All paths must be absolute. ``` build/verified_examples/examples prep "$RUN" "$OMEGA/bench/inference_cost" \ "$OMC" "$OMEGA/build/inference_cost/bin/chat" "$OUT" release ``` Without `prep`, use the same command with that word removed to omit `stories.txt`. Use final argument `test` only for TEST DATA. A marked directory is refused in release mode, even if every program would pass. A failed invocation has no valid manifest; never publish partial files. Output is local, mode 0700/0600, not an external publication. Input is the driver's `attempts.txt` wire version 2 and its per-attempt request.wire, response.json and candidate.LANG. Every listed attempt is reconsidered, including ones formerly marked failed. No decision depends on compiled_rc or verified_flag. The program re-extracted from response.json must hash-identically to candidate.LANG; changing the candidate after the run is a refusal, even if the replacement is correct. Verification executes the private extracted snapshot, not the mutable input. An unverified program is omitted and counted as rejected. The run's compiler and task-set digests must equal the tool pins; the current benchmark contents are independently checked with the driver's single `--task-set-sha256` implementation before admission. Records preserve input attempt order, use fixed field order, JSON-escape UTF-8 and have no timestamps, absolute paths, timing fields or nondeterministic compiler diagnostics. Program bytes and each sent message are retained. Fields are task, language, arm, attempt, source, messages, program, omc_sha256, task_set_sha256, referee_output_sha256 and test_data. The referee digest hashes the newly observed hidden-input stdout, not the old eval directory or its verdict. `examples.jsonl` is the only JSONL output; `manifest.json` has record/rejection counts, counts per language, JSONL SHA-256, pins, TEST DATA status and the licence position. Referee artifacts live beside these files for replay. For model runs the licence position is: model-written code, verified, from Drake's own runs. Verification establishes tested behavior, not authorship, copyright ownership or rights in copied third-party material. The tool does not relicense code or publish the dataset automatically. ### Existing trainer connection: continuation text, not instruction training The trainer's existing `native/omegallm/data.om` `cmdprep` reads UTF-8 documents separated by `<|endoftext|>`, not JSONL. Reuse research found no attempt-to-dataset converter in aien-train, omega-mv, spark-rsi-mv or the handoffs search. `prep` exports exactly this existing format: ``` Task: Program: <|endoftext|> ``` There is one document per admitted record, in the same order. A program containing the reserved separator is refused for this export rather than silently creating extra documents. The manifest also names the stories SHA-256. The JSONL is provenance; stories.txt is plain continuation text for the current trainer. Instruction-format training waits on DRA-123. ``` ollm prep "$OUT/stories.txt" train.bin held.bin ``` This only prepares existing token files. It is not a training command and needs no GPU. ## Second sources ``` build/verified_examples/examples references "$OMEGA/bench/inference_cost" \ "$OMC" "$OMEGA/build/inference_cost/bin/chat" "$OUT" release build/verified_examples/examples harness "$HARNESS" "$HARNESS_OMC" \ "$OMEGA/build/inference_cost/bin/chat" "$OUT" release ``` References: all four languages in the pinned benchmark's 20 task directories, each passed through the same current referee. Source is `reference-solutions`; the task statement is `referee_contract`. No invented sent conversation is supplied (`messages` is empty). Harness: a clean checkout of omega-harness `958d7f2e4efa5f476ec9c3953cf6d65122636054` and its own PIN's compiler. The whole existing examples/gate.sh must pass first. Only its compile-success, actually executed examples are imported, including expected traps with their explicit .expect contract; compile-refusal examples are not training programs. The source is `harness-examples`. The task-set digest is SHA-256 of `git archive --format=tar HEAD`; the referee digest binds the fresh complete gate transcript. Source licences are retained, not replaced by a model-code claim. These are separately named datasets, not model output, TEST DATA, or evidence of learned capability. ## Acceptance gate The gate is Omega too. It builds nine broken tool variants: stale verdict trusted, candidate binding removed, compiler-pin mismatch admitted, task-set mismatch admitted, TEST DATA admitted to release, trainer delimiter refusal removed, and an artificial 32-bit attempt-number cap restored, decimal overflow admission, and an unapproved referee artifact admitted. Every variant must fail its corresponding admission test. It also replays the full positive TEST DATA workload twice, compares JSONL/manifest/stories hashes, requires 80 positive records, runs the existing ollm prep unchanged, verifies a stale program is absent from both JSONL and stories, and exercises both second sources. Supply a CPU-only ollm built by its existing tests/omegallm/build.sh with its own pinned compiler. Neither this tool's new compiler pin nor the harness pin overrides the trainer's old pin. ``` { sed 's/^fn main to int$/fn vssourcemain to int/' build/verified_examples/all.om cat tools/verified_examples/gate.om } > build/verified_examples/gate-all.om "$OMC" < build/verified_examples/gate-all.om > build/verified_examples/gate chmod +x build/verified_examples/gate build/verified_examples/gate "$PWD/build/verified_examples/examples" "$OMEGA" \ "$HARNESS" "$HARNESS_OMC" "$TRAINER" "$OMEGA/build/inference_cost/selftest" \ "$PWD/build/verified_examples/all.om" "$ABSENT_GATE_WORK" ``` Success ends `EXAMPLES-GATE PASS mutants=9 records=80`. Use a fresh clone and new work/output paths. The protocol's existing fixed-width argument packet and Linux PATH_MAX remain real boundaries; record payloads, hashing and output stream without a new dataset-size cap. The reused chat JSON parser retains its documented per-response bound; an over-bound response is refused, never truncated. Private Cortex requests are inventory only, never inputs to this tool. Do not export their text. Only aggregate kinds/check requirements belong in the private lane report; recall cannot establish a total count when it supplies no count/filter interface. Before any external publication, scan added source lines and dataset bytes for secrets, home paths, usernames and private-repository names. Numeric guard oracle (Wolfram Language, exact, unitless integers): `{2^64-1, Quotient[2^64-1,10], Mod[2^64-1,10], 2^32, 2^32-1}` returned `{18446744073709551615,1844674407370955161,5,4294967296,4294967295}`. The gate admits the full uint64 maximum and rejects a decimal value that would otherwise wrap to a valid attempt identity; its overflow-removal mutant must fail. ## Kernel memory-ceiling admission Before invoking even the referee digest mode, the converter hashes driver.sh itself and compares it with the compiled `vxdriverpin`. A driver without the approved kernel-enforced process-tree ceiling, or any other unapproved driver bytes, is refused with exit 20. Matching task data and compiler pins alone are not enough. There is no command-line override or uncapped fallback. The new guard's removal mutant uses a harmless comment-mutated copy of the capped driver, its unchanged task files and the same pinned compiler; it never runs an old unbounded driver. The exercised host dependency is systemd-run from systemd 255 (255.4-1ubuntu8.17), using cgroup v2 (`cgroup2fs`). This is an explicit containment dependency, not an Omega implementation. Its Omega successor is the not-yet-written namespace/mount, process-tree, descriptor and cgroup supervisor. The capped referee requires its cgroup scope to read back the requested MemoryMax and zero swap before any candidate. Failure to apply it is NOT_RUN (driver exit 3, converter exit 16). A candidate killed within the ceiling is unverified and excluded. Kernel telemetry added beside the sandbox readiness records does not change the stdout comparison or the deterministic dataset bytes.