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.