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 / docs / one_layer / GEN_PROTOCOL_V1.md

455 lines · 37534 bytes Raw Blame History Source

GEN: compositional generalization from verified abstractions, pre-registered protocol (v1)

Issue: aien-spark/omega#476 (GEN-1), program aien-spark/omega#475. This file is committed BEFORE any GEN generation and before the custodian authors any held-out task. Every setting below is frozen by its commit; the machine-checked copy is tests/one_layer/generalization/protocol.json, validated by tools/gen/protocol/gencheck (make test-gen-protocol). A change follows section 15. GEN is a separate experiment from EXP445 (docs/one_layer/EXP445_PROTOCOL.md): it reuses EXP445's tools by calling them, never edits EXP445's protocol, PARAMS, seals or data, and never opens EXP445's sealed tasks.

1. Question

Does retrieving checker-verified reusable abstractions (helper functions extracted from earlier verified solutions) help a model write correct Omegese programs for **unfamiliar combinations of known primitives**, compared with one example, a fixed set of many examples, and retrieval of earlier raw solutions under the same budget?

A positive answer is claimed only when the abstraction condition beats every control, including raw retrieval, on held-out task families that no example, dev task or retrieved record shares (section 9). FAIL and INCONCLUSIVE are legitimate outcomes and are reported as such.

2. Tasks and splits

Three splits, each made of composition families defined by the family contract tests/one_layer/generalization/families/FAMSIG_V1.md (frozen first; tool tools/gen/protocol/famsig). A family is the primitive multiset plus nesting shape the task SPECIFICATION asks for, over the primitives arith branch loop array call nested; it is declared from the prompt, never from a solution. Renaming identifiers or changing constants never makes a new family.

splitcountauthorvisibilityrole
dev10: devgen01..devgen10protocol author (GEN-1)public: tests/one_layer/generalization/dev/prompt and tool development, gates, negative controls; never evidence
corpus (exemplars)about 48abstraction builder (GEN-3)public: tests/one_layer/generalization/corpus/the B prefix (section 3) and the only source of retrieved records
held-out60, in at least 6 familiescustodian (Unix user gencust), who builds no corpus or toolsealedthe only evidence

3. Conditions

Every condition writes Omegese (docs/one_layer/OMEGESE.md); the reader is the EXP445 omegese chain (tools/exp445/reader.sh: omegese emit, omega_emit emit, x445 check); harness kind oscir. Decode-time masking is OFF in every condition (the mask is not qualified); a masked sub-experiment needs its own revision and is never pooled with these results.

conditionsystem message = prefix ++ suffix
A (1-shot)prefix: arms/common.md + arms/omegese.md + 1 fixed example; suffix empty
B (many-shot)prefix: the same two documents + 14 fixed corpus examples; suffix empty
C (B + raw retrieval)B's prefix byte for byte + suffix: top-k verified raw corpus solutions
D (B + abstraction retrieval)B's prefix byte for byte + suffix: top-k verified abstraction records

4. Model and configuration

5. Generation procedure

  1. Requests: messages = [{system: prefix ++ suffix}, {user: reader.sh user_msg(requirement, prompt)}], one POST to <base_url>/chat/completions, stream: false, the configuration's request extra merged. base_url is PARAMS config.A.base_url and already ends in /v1 (http://127.0.0.1:18091/v1); sampling-gate.sh takes the base WITHOUT /v1 (it posts to <base>/v1/chat/completions), so the gate is called with config.A.base_url minus its trailing /v1. Both reach the same endpoint.
  2. One request in flight: gates and run send exactly one request at a time to the server (no concurrency, no batching across tasks or conditions); the next request starts only after the previous one has returned or failed.
  3. Budget: max_tokens = 3072 per round in every condition, task and attempt (EXP445 section 5: 3.3 times the longest dev reference in the most verbose spelling; Omegese references are shorter than OSC text, OMEGESE.md section 5, so the cap is not binding for a correct answer). finish_reason=length is logged.
  4. Greedy gate (before attempt 1): the 10 dev tasks in condition B, each sent twice at temperature 0: both replies byte-identical in content and every reply reports mode=greedy. No gate PASS, no primary result (verdict INVALID).
  5. Attempt 1 = PRIMARY: temperature 0 (greedy), round 1 only. Its candidate is set <c>-1 (a-1 .. d-1). Every attempt-1 response must report usage.aien_sampling.mode = greedy; a single attempt-1 response reporting anything else (or nothing) makes the run INVALID (section 8).
  6. Attempts 2 and 3 (pass@3, secondary): temperature 0.7, top_p 0.8, seeded, only when the G0 sampling gate passes: the Stage S gate vendored as tools/exp445/sampling-gate.sh (sha256 in protocol.json) with its repro requests set to devgen01 in condition B at the eight seeds s1..s8 = 476901, 476902, 476903, 476904, 476905, 476906, 476907, 476908 (protocol.json gates.g0.seed_values; disjoint from every run seed), plus one repeat of s1 = 476901, PASS rules as EXP445 13.4. Otherwise pass@3 is reported UNAVAILABLE. Sets <c>-2, <c>-3. pass@3 of a condition = the tasks with an ACCEPT in the union of the round-1 sets <c>-1, <c>-2, <c>-3 only (never a -final set), labelled "pass@3 (1 greedy + 2 sampled)".
  7. Repair (secondary only): exactly one public-check repair round when round 1 is refused, as EXP445 section 6 step 4; the final candidate is set <c>-<attempt>-final. Never part of the primary or of pass@3.
  8. Seeds: seed = 476000 + 1000 x attempt + task index (1-based position in the sorted task list), the same for the four conditions of one task and attempt; sent and logged for attempt 1 too.
  9. Transport retry: a try fails at transport level when there is a transport error, an HTTP status other than 200, or a 200 with no usable answer, defined mechanically: the body is not valid JSON, or it has no choices array, or choices[0].message.content is missing or not a string. A failed try is retried up to 2 times with the byte-identical request (same seed, same temperature, same top_p) after K x 5 s before try K. A retry repeats the same sample; it is never an extra sample. Still failing after the third try = no candidate (no_candidate, a failure). A well-formed 200 whose content is empty, a refusal or not a program is NOT a transport failure: that content is the candidate and is graded (it fails). Attempt-1 no_candidate is counted per condition; any count above 0 makes the run INVALID (section 8), because a transport failure that hits one condition more than another biases the paired comparison.
  10. Order: attempt, then task, then condition (A, B, C, D), so attempt 1 of every task in all four conditions finishes first. A run resumes only with identical settings; finished generations are never redone.
  11. Everything is hashed and logged as tools/gen/runner/FORMATS.md (GEN-2) specifies: raw requests and responses, prompt manifests, retrieval outputs, run rows, SHA256SUMS.

6. Success

7. Secondary measures (reported, never decisive)

Checker acceptance; pass@3 (1 greedy + 2 sampled, or UNAVAILABLE); success after the repair round; refusal and REJECT reasons by class; prompt and completion tokens per condition; realised suffix bytes; records selected per task and the number of tasks with fewer than 3 records, for C and D separately (section 3); wall time; tokens and wall seconds per correct program; Wilson 95% intervals for every proportion; the 90% Newcombe bounds.

8. Validity (any failure: verdict INVALID)

9. Statistics and decision (exact)

Notation for condition D against a control X in {A, B, C}, over the n held-out tasks (n = 60): both, d_only, x_only, neither = tasks where both / only D / only X / neither succeed (attempt 1, round 1).

10. Negative controls (pre-registered; run on the dev tasks; diagnostics, not decisive)

controlhowexpectation if retrieval works as intended
no retrievalC and D with genret mode emptyequals B up to sampling noise
irrelevant recordsgenret mode irrelevantno better than B
length-matched CC plus whole extra raw records (rank k+1, ...) until at least D's realised suffix bytes for the same task (genret length-matched, --target-bytes = D's suffix_bytes)separates "more context" from "better content" on matched tasks only (see below)
cross-familyC and D with --exclude-family <the dev task's own family token>shows how much a lift depends on same-family records (on dev, own-family records do not exist in the corpus by R3, so this must change nothing: a check of the split)
source-leak probecanaries and hidden inputs searched in every request (section 8)0 hits

Length-matched C (secondary, dev-only diagnostic). It never feeds the PASS / FAIL / INCONCLUSIVE verdict or run validity. genret-cli-v3 pads C with whole extra raw records, never truncated, in rank order after the k selected (rank k+1, k+2, ...), until C's suffix is at least D's realised suffix_bytes for the same task (--target-bytes): pad_reason=reached (it may overshoot by up to one record), exhausted (candidates ran out, still short) or c_not_shorter (C was already at least as long; nothing padded). Its receipt logs length_gap = padded C suffix_bytes - target, signed. Because padding moves in whole solutions, it cannot hit a fine target, so each dev task is classified:

The report gives, per dev task, C's and D's suffix_bytes, the padded C suffix_bytes, pad count, pad_reason, length_gap and class; then the matched and unmatched counts; then the attempt-1 success of length-matched C on the matched tasks only, next to normal C and D on those same tasks. When fewer than 50% of the dev tasks are matched (retrieval.length_match_min_matched_frac = 0.5; fewer than 5 of 10), the result is reported plainly as length-matched ablation: UNAVAILABLE (<m> of <n> dev tasks matched) and no conclusion about prompt length is drawn. The matched tasks are a selected subset (tasks with short solutions match more easily), so the report states that the length-matched result applies to the matched subset only, gives its size, and is not an estimate for the whole dev set. The comparison is read in both directions: when C's suffix is longer than D's (gap > 0, including c_not_shorter) and C still does worse than D, that is evidence against the "D only wins because its prompt is longer" explanation and is reported as such; when C is shorter and loses, length is not ruled out. Reference values: genstats lenmatch <target>:<suffix> ..., and the lenmatch / lenset records in stats_vectors.tsv. The held-out decision uses only conditions A, B, C, D in mode normal.

11. Dev pilot (before the held-out run, never evidence)

Config A, the 10 dev tasks, all four conditions, attempt 1, plus the negative controls of section 10. GO when: the greedy gate passes; every generation is logged and re-derives; the dev harness run ends RUN VALID; B is not worse than A by more than 2 tasks. Builders may change prompts, records or tools using dev results only, then rerun, at most twice; each change before the seal is opened is a protocol revision under section 15.

12. Isolation

13. Pins recorded with the run (all in protocol.json or the run's meta)

Model id, endpoint, request extra, server binary sha256 and source commits (via tools/exp445/PARAMS); weight file hashes (tools/exp445/weights.A.sha256, re-checked by the operator before the run); tokenizer files (in the weight list); Omega commit of the run and of scoring; harness contract (HARNESS_INTERFACE_V2.md) sha256; reader chain (tools/exp445/reader.sh) and arm documents sha256; B and A prefix sha256 and the 14 prefix ids; C and D manifest paths and sha256 (record-set digests); the OPEN receipt and its commit; genret contract and binary sha256; dev pack sha256; held-out TASKS.sha256, split_sha256, famlist_sha256; family contract and famsig sha256; the blind re-declaration line (tasks= mismatches=), the genjac summary line and oracle_match with the oracle source sha256; stats vectors sha256; seeds (run and G0), k, cap_bytes, max_tokens; per-condition attempt-1 no_candidate counts; hardware (DGX Spark GB10) and the GPU-lock / quiet-flag state at run time; this protocol's sha256.

14. Commands

make test-gen-protocol                                     # famsig, gencheck, genstats, genjac, dev pack (CPU only)
tools/gen/protocol/gencheck manifest tests/one_layer/generalization/protocol.json .
tests/one_layer/generalization/dev/pack_dev.sh <out>
tests/one_layer/acceptance/ola.sh tasks-check <out>/tasks.tar <out>/TASKS.sha256
famsig rule tests/one_layer/generalization/dev/META tests/one_layer/generalization/corpus/META <SPLIT>   # custodian, as gencust
famsig compare <SPLIT> <REDECLARED>                                     # reviewer's blind re-declaration, as gencust
genjac scan <heldout-prompts.list> <corpus-prompts-and-solutions.list>  # near-duplicate check, as gencust
gencheck split tests/one_layer/generalization/protocol.json . <SPLIT> <HELDOUT.pub>                    # reviewer, after the seal
gencheck run-ready tests/one_layer/generalization/protocol.json .       # before seal-open and before the run
gencheck open tests/one_layer/generalization/protocol.json . <OPEN>     # custodian at seal-open; reducer before reducing

The runner, reducer, corpus builder and custodian scripts are specified by their own issues (GEN-2 #477, GEN-3 #478, GEN-4 #479, GEN-6 #480) and must implement sections 3 to 9 as written here.

15. Revisions