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

[OM-REUSE-LIFECYCLE] Durable capability-aware semantic reuse on the existing .om runtime

Open · #651 · open 2026-10-23 12:56 UTC

Imported from GitHub aien-dev/omega-mv#651, by drakestapleton

drakestapleton wrote on 2026-10-23 12:56 UTC

Governing correction: replace and remove, no retained legacy code

Drake clarified: there will be no legacy code; it will be replaced with .om. The final state is .om throughout the project's first-party implementations, including runtime, compiler, services, build/release tools, automation and project-owned tests. This supersedes any older wording permitting a permanent legacy/reference implementation, wrapper, foreign fallback or dual production path. For each component: implement and qualify its .om replacement, cut its consumers over, then delete the superseded implementation and obsolete build/runtime dependencies from the active tree. Old source may be consulted in Git history during replacement; do not keep it in an active legacy/reference directory. Existing code present during unfinished migration is an outstanding replacement task, never an accepted end state. Preserve historical Git commits and immutable evidence; do not rewrite history. Missing .om capabilities are implementation dependencies for the existing seed/compiler owners, not exemptions. Independent third-party qualification oracles may run outside the delivered source/build/runtime closure; replace project-owned legacy test implementations too. Generated machine code, non-executable data/documentation, external protocol formats and device firmware are separately inventoried and cannot disguise retained first-party logic. Interoperation with users' external software does not make that software part of the .om implementation. Acceptance includes an active-tree/dependency audit showing the old implementation and fallback are gone, .om consumer tests pass, and exact source/seed/binary/evidence identities are recorded. Coordinate existing owners and release gates; replacement is complete only after deletion and consumer qualification.

Delta and dependencies

#646 owns pure bounded recursive subproblem reuse; architecture#246 owns plan-reuse lifecycle measurement. This issue owns the shared production lifecycle extension, not another cache/service/store. Coordinate existing native migration owners under #599 and architecture#295/#298.

Code evidence: src/runtime/rx_semantic.{c,h} and spec/omega-incremental-semantics.md implement exact keys, field invalidation and provenance but declare one process/mutex, no restart persistence, no cache eviction and no capability gate on reuse. Tests use stand-in derivations. Reinspect seeded successors before implementing; preserve already-qualified behavior.

Deliver

  • Define a versioned reuse contract separating semantic equality from authority. Check current requester authority for inputs/results on every retrieval, including clean memo and early-cutoff paths. Bind relevant owner/security-domain and revocation generations without forcing unrelated identities into semantic keys. Unauthorized probes must not expose cached values/provenance; document residual timing assumptions.
  • Reuse the existing durable generation/Cortex/store owner to persist immutable result records and provenance atomically. Validate implementation/input/arithmetic/schema identities on reload; stale/corrupt/torn entries miss or refuse, never silently become valid. Do not persist successful effects as replayable pure values.
  • Add bounded bytes/entries and deterministic eviction/admission compatible with referenced entries and in-flight work; charge indexes, metadata and provenance. Preserve digest checks and explicit capacity outcomes.
  • Remove unnecessary global serialization only after a baseline shows contention. Define pending/completed/failed states, bounded duplicate-work or single-flight behavior, cancellation and generation changes. Do not execute reentrant callbacks under the existing non-reentrant global lock. No duplicate effects or authority expansion.
  • Integrate one real project pure derivation/agent workload via the owned .om seam; do not infer exact neural-state reuse from similar prompts. Missing native primitives become compiler/runtime dependencies.

Qualification

  • Uncached/cached/restarted outcomes and declared fuel behavior agree; test changed dependencies, implementation changes, revocation between lookup/use, cross-owner isolation, concurrent identical requests, cancel/drop races, full capacity and interrupted commits.
  • Compiled wrong-key, bypassed-authority, missed-invalidation and torn-reload mutants fail specific assertions; build errors/timeouts are INVALID, not caught mutants.
  • Compare cold/warm/restart/no-repeat/high-repeat/changed-input workloads under matched budgets. Report total task p50/p95, contention, actual computes, lookup/hash/permission/storage/eviction costs and peak accounted bytes. Measure energy only with named instrumentation.
  • Demonstrate retained benefit on a real consumer or report no-payoff regions honestly. Audit-recompute timing is separate from production performance; no toy-cache result presented as whole-model speedup.
  • #646 consumes the lifecycle contract; architecture#246 consumes lifecycle costs; #624 consumes fixtures and teaching evidence.

Replacement integration

Coordinate with aien-dev/aien-architecture-mv#300 and #646. Replace the existing semantic runtime implementation through its current owner, migrate consumers, and remove superseded cache sources/dependencies once qualified. No parallel legacy cache remains.

Trace-compiled consumer integration, 2026-10-23

Omega #658 is a new consumer of this existing lifecycle, coordinated under #652. It may propose reusable .om procedures from eligible local traces; it does not own another store or promotion path.

  • Expose existing versioned admission/lookup/invalidation interfaces to that consumer with one owner for shared paths.
  • Bind source/compiler/model where relevant, schema, full input/state preconditions, capabilities, effects and independent correctness evidence. A trace or repeated success alone is not authority.
  • Unknown producer/consumer bindings and unseen branches remain unqualified; uncertain side effects cannot be replayed blindly.
  • Revocation, schema drift, changed contracts and restart invalidate dependent procedures through this existing path.
  • Compare cold, warm, no-repeat and drift workloads including compilation, validation, lookup, fallback, maintenance and storage costs.
  • Preserve standard trace privacy. Any raw local-only capture needed by the consumer is separately explicit; no background sharing.
  • Admit only after the declared correctness/resource checks and existing authority steps; report lack of amortization as a valid result.

No new runtime/cache/Cortex writer. Existing .om replacement/deletion and immutable-evidence requirements remain unchanged.

drakestapleton wrote on 2026-10-23 22:23 UTC

Security qualification follow-up — 2026-10-23

Tracker: https://github.com/aien-dev/omega-mv/issues/673

User-authorized acceptance additions; existing ownership and scope remain. These are pending work, not claims of passing tests.

  • Exercise private result/provenance isolation across requesters and concurrent revocation between lookup and use. Exact semantic equality never supplies authority.
  • Test torn writes, old snapshot restoration, stale generations and reuse after expiry/restart; clarify the trusted monotonic/rollback assumptions.
  • Include a sensitive-input plus public-output adversarial consumer. Cache, trace and derived-procedure paths must respect the declared data-flow/export policy.
  • Document residual cache/timing channels; do not claim their elimination from access checks. Integrate with #607, #649 and host #670 rather than adding a store.

Delivery and qualification

Authorized security follow-up, 2026-10-23. Reconcile current source, branches, issue comments, AGENTS.md, plan authority and worktree ownership before edits. One writer per shared compiler/runtime file; preserve existing Renda/desk review and release ownership. All new first-party implementation, runners and tests use seeded .om. Missing facilities go to the existing compiler owner; no second compiler, runtime, authority or store. Qualify replacements and consumers before removing superseded active first-party code/dependencies; preserve Git history and immutable evidence. Record exact source/seed/compiler/binary/config/fixture identities, raw commands and exits, independent review and explicit PASS/FAIL/INVALID/NOT_RUN. Emulation is not hardware qualification. A hash/signature authenticates identity, not correctness. No automatic deployment, live GPU interruption, driver changes, private-data upload or issue closure from a source-only PR.

drakestapleton wrote on 2026-10-25 01:55 UTC

2026-10-24 semantic-codebook integration boundary: architecture SEM-0 #315, Omega SEM-1 #721, draft research PR #724. The planned short local index MUST resolve through the existing #651 durable capability-aware semantic record; key includes full existing canonical semantic ID, dictionary digest/version/epoch, implementation/source/numeric/effect profile, relevant generation and authorization. It is a temporary selection handle, never a globally meaningful ID or capability. Ensure that cache/permission invalidation, crash recovery, revocation and per-recipient visibility all reuse this one owner. No second store/authority. The draft smoke only checks a synthetic caller-provided SHA root and deliberately claims no secure admission.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:16 UTC

Recovered GitHub comment. Original comment 6401748046

Proposal for #651: the smallest legitimate path for .om (e.g. omega-mv om/reuse/, #749) to persist through rx_cortex. Nothing is implemented yet: this needs agreement from the rx_cortex and sovereign-core owners first.

Findings (read-only scout, file:line in the scout record):

  • .om cannot call C. Native ABI v1 and the v2 draft are C calling .om only. There is no flock host word.
  • ADR 0022 makes cx_append / cx_append_as the only writers and forbids new callers of cortex-rs (:18080). Derived output must enter as a candidate and becomes fact only through cx_promote.
  • The existing single writer is reachable from program-mode .om: sovereign-core aien-runtime takes ComposeNote as JSON lines on a Unix socket. .om has the host words it needs (socknew, connect, send, recv).
  • rxc_host_note accepts only constraint, authorization and effect. None of them means "candidate".

Proposed steps:

  1. Contract change (rx_cortex / rxc_host_abi owner, plus the sovereign-core owner):
    • Add RXC_HOST_NOTE_CANDIDATE → CX_CLAIM/CX_K_CANDIDATE, and bump RXC_HOST_ABI_VERSION to 3.
    • Add a matching "candidate" arm in aien-runtime write_note.
    • Add a promotion command that links a verified result to its evidence (cx_promote).
  2. A .om client, om/reuse/cxnote.om (program mode):
    • Checks the socket's owner and type with lstat.
    • Sends one line per record, with a unique operation_id.
    • Payload is a hex-encoded, versioned record holding the semantic key, the implementation/compiler/schema ids, the input digests, the owner and revocation generation, and the result.
  3. Reload: a read-only .om journal reader. It recomputes every digest and the chain, and treats a torn tail as a miss. This avoids ComposeRecall returning all host records.

Rejected:

  • .om writing journal bytes directly: that is a second writer, and it could not take the lock.
  • A new C helper.
  • cortex-rs.
  • Porting rx_cortex now: right in the end, but large.

Risks:

  • Same-user processes can append, so a candidate never carries authority.
  • The daemon is Rust and must be running.
  • Recall size.

Owners: please say whether step 1 is acceptable. TURING will write step 2 and step 3 only after that.

Sign in to comment