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/issues/55d02b5122d0eab5 # 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 # [SI EVOLUTION X1] Source verifiable state→action→outcome experience from Omega World/J-Space Open · #699 · open 2026-10-24 17:34 UTC Imported from GitHub aien-dev/omega-mv#699, by drakestapleton drakestapleton wrote on 2026-10-24 17:34 UTC ## Purpose Make experience, not scraped corpus text, the primary SI teaching substrate. Extend existing Omega World/J-Space, typed ARGUS local trace producer, #608 offline archive, Cortex single-writer and independently admitted receipts. `si-evolution` bootstrap #309 owns research recipe only; this issue owns the real executable experience transition projection. Do not create new memory or ambient network telemetry. ## Contract - Versioned typed `ExperienceTransition`: goal/objective digest, subject+session, prior state digest, allowed action, precondition and predicted result, real next state digest, independent result/verdict, counterexample/refusal, confidence calibration, declared resource cost, consent/license/provenance and privacy label. Explicitly distinguish a hypothesis, observation, verified outcome and what was genuinely measured vs inferred. - Preserve temporal ordering, true dependency/effect boundary and errors. Chunk into bounded microjob episodes even for long objectives; no silent 64/16 context loss. Capture future state as supervision when a scalar reward is unavailable. Verified task outcomes may yield separate rewards, never model praise. - Deterministic local serialization/dedupe, typed immutable receipt links and retrieval using canonical Cortex; no automatic sharing/training/candidate promotion. Separate private raw data store from protected immutable proof references. - Model-shape-agnostic `observe / predict / compare / revise-candidate` read-only feed to `aien-train`. Episodes are opt-in training admissible only with owner scope, exact data lineage and no holdout conflict. - Support owner retraction at the source: stop new retrieval/sharing/training eligibility and mark dependent artifacts; preserve only minimal lawful non-sensitive evidence for signed negative/tombstone status, not private raw content. ## Acceptance - Offline simulator emits real (not handwaved) transitions for ≥3 task families: numeric/physics, compiler repair, persistent multistep agent work. Deterministic action causes reproducible outcome and verifier. Independent model/World controller cannot invent outcome bits. - Simulated wrong next-state, fabricated or replayed evidence, out-of-order episode, duplicate, retired subject, wrong owner/tenant, tainted record, action without capability and too-large trace all refuse with diagnostic. - Explicit model dataset view excludes unauthorized/revoked/heldout episodes; restart rebuilds same ordered evidence/provenance with no privacy leak. ## Mandatory shared contract Parent: https://github.com/aien-dev/aien-architecture-mv/issues/307 . Read authoritative PLAN_AUTHORITY , current plan, doctrine/ADRs, `AGENTS.md`, directory `.crumb`, current source heads, branch claims, in-flight PRs and prerequisite issues before edits. This is a bounded component issue and not another master plan. Reuse authoritative Omega seeded handwritten `.om`, existing compiler, skill/Cortex single-writer, FORGE native physical realization, AEGIS authority, Spark independent judge and receipt signer; no new shadow compiler/trainer/scheduler/trusted ledger or Python/PyTorch/CUDA product fallback. Existing C/Rust is migration evidence, not new first-party final implementation. Unavailable `.om` capability is a concrete compiler-owner blocker. Do not stop/restart/expose live 35B private 18091, publish private data, swap weights, run unreserved GB10 tasks, or deploy a network as a side effect of issue creation. Separate source-only, host, independent silicon, and production readiness into PASS/FAIL/INCONCLUSIVE/NOT_RUN and pin receipts. did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:12 UTC Recovered GitHub comment by @aien-spark on 2026-10-24T18:25:45Z. Original comment `6387906198` ## X1 wave 1-2: verified experience records. Status: HOST_TESTED (host only, no GPU) Branch: `feat/699-experience-record` @ `95d315a127bcfda843c5c536f12e289c471f5ca0` (base `18f8fdd9`). No PR opened; that is the merge desk's job. Files - `src/runtime/rx_cortex.h`: two canonical kinds were added. `CX_K_EXPERIENCE` (EVIDENCE) and `CX_K_CONSENT_REVOKED` (EVIDENCE, AUTHORITY-protected). No other contract change. - `src/runtime/rx_experience.{h,c}`: the typed experience record, the hypothesis, the revocation, the recorder and the dataset view. - `src/runtime/rx_exp_walk.c`: `walk1d`, a seeded, resettable, stochastic 1-D point mass. Its noise for step k is word k of the existing PD0 SplitMix64 stream (`src/physics0/pd0_rng.c`). - `tests/runtime/rx_experience_test.c` and `mk/experience.mk` (`make test-experience`). The target is not part of `all` or `test`. Design (no new writer, World, scheduler or store). Each action goes through the existing COMPOSITION-2 accept chain: World goal → `compose.candidate` (the env Skill on a staged J-Space branch) → `compose.verify` (AEGIS; the family contract replays the transition) → commit binder → Cortex claim/evidence/promotion. The experience is then appended through the composition's attached Cortex writer link (`rx_cortex_append_in`). Record fields (payload words): - objective digest - prior state + its digest - action and accepted goal input - predicted (annotation only) - observed next state + its digest - verify bits - prediction error (fields, L1) - declared cost + unit - owner, consent, license, privacy - split - applicability (op, domain) - seed commitment, episode, step, session Links: {World commit record, AEGIS evidence, promotion, hypothesis}. Predicted vs observed. A prediction is only ever a `CX_CLAIM/CX_K_CANDIDATE` hypothesis. An observation is accepted only when all of these hold: - the World recorder's own record of a live commit crumb exists (crumb digest matches); - AEGIS evidence passed it; - the promotion binds the claim and the evidence by digest; - the accepted goal equals prior+action; - the replay matches; - it is the environment's pending transition. On refusal nothing is written. EST-3 gate: EST-3 is FAILED (PLAN:54/686). The predicted field and its error are therefore stored as `RX_EXP_PRED_UNQUALIFIED` annotations. They never feed authority or eligibility, and no calibration claim is made. Revocation appends a tombstone (per experience, or owner-wide for everything earlier). Nothing is deleted; the dataset view excludes the revoked records. A non-owner revocation is refused. Copies made earlier and trained weights are out of scope (OH1 / T3). Tests run (`AIENOS_LOCK_REPO=` is needed to build the pinned AIENOS lib) - `make test-experience` → `PASS: 122 checks, 0 failed`, about 32 s. It covers: - (1) The O(1) noise word equals the sequential PD0 stream over 600 steps, and refusals work. - (2) An action becomes an experience with receipts and provenance back to the goal. - (3) Generated-but-unobserved records are rejected as observations. Covered cases: no receipt, hypothesis given as receipt, evidence given as commit receipt, a replayed copy of a real commit record, a fabricated commit record, an altered next state, a duplicate, a stale transition (counted as `dropped`), a hypothesis for another action, missing consent or split. An inadmissible action leaves no-winner AEGIS evidence and the state unchanged. - (4) Revoked-consent records are excluded (single and owner-wide; a share-only revocation keeps the train view). The record still decodes. The view is byte-identical after restart, the holdout view is separate, and a tampered record is excluded as invalid. - (5) Determinism across seeds: 4 seeds × 24 steps. Fresh environments give byte-identical payloads, reset reproduces every (prior, action, next), all 6 seed pairs give different trajectories, and the seed commitments differ. - The same test built with ASan/UBSan: PASS, 122/0. - Regression: `make test-cortex` → 83/0 and 34/0 PASS. `make test-composition` → 519/0 and 85/0 PASS. Numbers, checked with the Wolfram Language evaluator - The walk1d packed layout totals 64 bits. - Payload sizes: experience 41 words = 328 B, hypothesis 48 B, revocation 40 B. - Noise counts over 600 steps were 192/214/194: χ²=1.48, df=2, p≈0.477. That is consistent with uniform; it is not a randomness qualification. - The noise-blind predictor was wrong on 65 of 96 transitions; 64 were expected at 2/3, P(X≥65)≈0.46. Remaining / blockers - Only one task family exists. The #699 acceptance asks for ≥3 (numeric/physics done; compiler repair and persistent multistep agent work are NOT_RUN). - These refusal cases are NOT_RUN here: retired subject, wrong tenant, tainted, too-large trace, action without capability. - The model-agnostic observe/predict/compare feed to aien-train is not built. Episode chunking for long objectives is not built. - The 24-bit walk1d key means seeds that differ only modulo the key fold collide (probability 2⁻²⁴ per pair). - The code is C because canonical Cortex and the accept chain are C on main. A `.om` port waits on the seeded compiler landing (#678). - `.crumb` structural digests were not recompiled. - Signed revocation transport and acknowledgement belong to OH1. Sealed holdout is BLOCKED_OPERATOR (G3). did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:16 UTC Recovered GitHub comment. Original comment `6402219025` PR #707 is closed on Drake's instruction: no first-party C. My refusal-matrix additions are reverted (`980eff94`). The #699 experience work has to be redone in `.om`, and that waits on a `.om` path to Cortex (#651). did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:24 UTC Recovered GitHub comment. Original comment `6401928899` Update from PR #707 (now a draft, head `1614497b`). Nothing is closed. ## What this branch holds - `95d315a1`: verified experience records through compose, AEGIS and Cortex (`src/runtime/rx_experience.{h,c}`, `rx_exp_walk.c`, `tests/runtime/rx_experience_test.c`, `mk/experience.mk`, `CX_K_EXPERIENCE` / `CX_K_CONSENT_REVOKED` in `rx_cortex.h`). - `399fdd34`: merge of `origin/main` at `acb3f15c`. The only conflicts were 5 `.crumb` files (`.crumb`, `mk/.crumb`, `src/.crumb`, `tests/.crumb`, `tools/.crumb`). I took main's version of each, then ran the pinned crumb tool (`d0f0b95d`) `compile` and `verify`: OK, 159 crumbs current. - `1614497b`: the rest of the A2 refusal matrix. There are five new error codes after `RX_EXP_ERR_WORLD = -13`: code value where rule `RX_EXP_ERR_RETIRED` -14 act, record the composition state object (the subject) is no longer live in the World (`rx_world_read` on its ref fails) `RX_EXP_ERR_TENANT` -15 record draft owner is not the tenant whose capability took the pending action `RX_EXP_ERR_TAINTED` -16 record the hypothesis basis (its links, walked through claims, digests checked) holds a `CX_K_IMPORTED` record, a PRIVATE experience while the draft is not PRIVATE, or more than `RX_EXP_BASIS_MAX` (32) records `RX_EXP_ERR_CAPABILITY` -17 act the tenant has no live AIENOS capability (`aienos_cap_validate` on the view given to `rx_exp_open`): subject = tenant, resource `RX_EXP_RESOURCE(family)`, right `RX_EXP_RIGHT_ACT` (`RX_RIGHT_WRITE`) `RX_EXP_ERR_TRACE` -18 act the episode already holds `RX_EXP_MAX_STEPS` (64) committed transitions; reset starts the next episode, nothing is truncated API change: `rx_exp_act(e, tenant, cap, action, obs)`. The test is its only caller, and I updated it. The act refusals (capability, retired, trace) happen before anything runs or is written, and a pending transition stays recordable. No new store, writer or World: the checks use the existing `aienos_cap_validate`, `rx_world_read`, `cx_recall_id` and `rx_exp_decode`. ## Tests `nice -n 19 make test-experience AIENOS_LOCK_REPO=` (host, production flags): - before the refusal work, at the merge `399fdd34`: `PASS: 122 checks, 0 failed`, `OMEGA #699 EXPERIENCE TESTS: PASS` - at `1614497b`: `PASS: 168 checks, 0 failed`, `OMEGA #699 EXPERIENCE TESTS: PASS` The new group 6 runs in one real environment. Each case shows the refusal code, that the Cortex record count and the World state did not change, and that a valid record in the same environment still passes: - capability: no cap, another tenant's cap, read-only cap, cap for another resource, revoked cap, tenant 0 (6 refusals). The pending transition survives a refused action. - tenant: B owning A's action is refused; A owning it is recorded; B is recorded on its own cap. - taint: import as basis, import one claim down, private experience into a synthetic record, basis of 33 records (refused). Private basis into a private record, a 32-record basis, and a synthetic experience as basis are all recorded. - trace: 64 transitions are recorded, the 65th is refused, and after a reset the next episode records from step 0. - retired: the World retires the state object, the retirement is a World record in Cortex, and both the pending record and a new action are refused. Then the dataset view holds exactly the 72 accepted records with 0 invalid, and after a restart a new state object takes a valid record again. Mutation check: I ran nine throwaway mutants of `rx_experience.c`, built outside the tree, each removing or weakening one new check: - the capability check - the retired check at act - the retired check at record - the trace bound - the tenant check - import taint - private taint - the basis bound - basis descent All nine fail the suite with a real CHECK mismatch (`FAIL: 168 checks, N failed`, N = 1..9). ## Still open in #699 - A1: only walk1d (numeric/physics) exists. Compiler-repair and persistent multistep agent-work families are NOT_RUN. - A3: no unauthorized (capability or tenant) exclusion in the dataset view, and no privacy-leak test. Revocation (`rx_exp_revoke`) is not capability-gated, and neither are reset or hypothesis. - C2: episode chunking is not built. This PR only bounds an episode at 64 transitions with an explicit refusal. - C4: no observe/predict/compare/revise-candidate feed to aien-train. - C5: dependent artifacts are not marked. Signed transport is left to OH1. - Program rule: this is first-party C (migration evidence). An `.om` writer is blocked on #651, which has no owner. - spark-rsi-mv#73: its "#699 experience" item stays NOT MET. Meeting it needs a new REUSE contract version. - The trace and episode counters are per process, as `episode` already was. After a reopen in the middle of an episode, the bound restarts. Sign in to comment