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/a97e01f20334d3a8 # 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 # [OM-REUSE] Qualify exact subproblem reuse for bounded .om recursive workloads Open · #646 · open 2026-10-23 11:52 UTC Imported from GitHub aien-dev/omega-mv#646, by drakestapleton drakestapleton wrote on 2026-10-23 11:52 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. ## Goal Test whether repeated pure subproblems in bounded .om recursive workloads repay exact-result caching overhead. This is an extension of existing semantic reuse, not a new cache, agent scheduler or model-weight reuse claim. ## Code grounding At main `a8ffd2b912c84197d08f963b05f9c7d8b30a3f8a`, rx_semantic.c implements memo, unchanged-key cutoffs, shared cache and reuse provenance. rx_sem_add_node requires existing dependencies (acyclic graph); rx_sem_get holds an engine mutex while get_locked executes callbacks. rx_semantic.h declares purity, identity generations, audit mode and finite capacities. These C files are legacy behavioral references. Locate the existing seeded .om successor/retirement owner before implementing; if the equivalent native cache seam is missing, record that precise dependency and extend the owner's migration slice instead of building a competing service or silently linking a new foreign fallback. ## Contract and implementation - Consume #645's bounded computation contract and #625's purity/effect semantics. Start with pure finite tree/DAG evaluation, not effectful agent actions or changing neural hidden state. - Separate recursive evaluation state from completed-result dependencies. Do not add cycles to the semantic DAG, and do not reenter the same non-reentrant cache lock from a callback. Define pending/result states and identical in-flight request behavior using the existing native owner’s seam. - Reuse existing content identity/provenance/invalidation machinery. Keys bind function implementation/version, complete relevant typed inputs and immutable structure identity, arithmetic/evaluation profile and any environment affecting results. Never use pointer identity as content identity. - Define interaction with fuel: either charge logical work consistently on hits or bind resource budget/result policy so a cached success cannot bypass exhaustion semantics. Separate actual physical work saved from logical work accounting. Do not cache partial or exhausted results as success. - Enforce bounded entries/bytes, work-stack depth and lookup work; deterministic capacity refusal/eviction policy. Scope concurrency/restart explicitly; no effect replay guarantees without a separately qualified contract. - Test implementation/input/generation changes, hidden-input audit mismatch, same pointer with changed content, interrupted computation, stale/malformed entries, full cache, in-flight cycles, failed result reuse and isolation across branches. - Independent reference and cached/uncached native .om paths agree on values and declared failures. Include compiled wrong-key and skipped-invalidation mutants. - Benchmark cold/warm/no-repeat/high-repeat/changed-input workloads with matched budgets. Report actual computes, hits, hashing/lookup/storage/invalidation time, total elapsed time, maximum bytes, and no-payoff regions. Audit recomputation is reported separately from production-speed measurements. - Export fixtures/evidence into #624; do not infer LLM weight-traffic or reasoning-quality gains. #605 remains the separate recurrent-model experiment. ## Dependencies #645’s semantic contract and the existing native semantic-cache seam precede integration. Reference fixtures and no-repeat controls can proceed while those interfaces stabilize. Preserve the one-writer ownership of runtime/cache files. ## Direction and delivery Drake, 2026-10-23: .osc is legacy; .om is the only forward source-language path. All new first-party production computation, examples and teaching fixtures for this work use handwritten seeded .om through the existing toolchain. Do not add .osc features, require users to pass through .osc, or disguise a C/Rust/Python compiler/runtime fallback. Existing legacy code is reference/migration evidence only. Preserve immutable historical receipts and explicitly version any interface/identity migration; a filename rename is not semantic qualification. Reuse #599 and architecture aien-dev/aien-architecture-mv#295/#298 ownership. Reconcile live branches, issue comments, ledger/worktree claims and applicable instructions before editing; main is not the complete active implementation. Keep existing owners and Renda publication/judge workflow. Tests run under the established local Spark policy; offline/host and physical-chip evidence remain distinct. Record exact source/tool/binary pins, commands, exits, failures, resource usage and independent final-source review. Missing execution is NOT_RUN; no completion from a plan, a branch or hash equality. ## Production lifecycle integration Consume #651's capability/revocation, persistence, capacity and concurrency contract instead of adding a second cache. Recursive semantics/fuel remain owned here. Extend cases to unauthorized memo/cutoff hits, revoke-before-use, restart and cancellation. Share fixtures with #651 and architecture#246; stage pure semantics before persistence, with no claim that the latter is complete. Implement in .om and remove superseded first-party code under architecture#300. drakestapleton wrote on 2026-10-23 12:33 UTC Native seam reconciliation for #646: L729 evidence and dependency matrix . Inspected main `a8ffd2b9`, current seeded compiler L408, L418 seed/c2om including preserved dirty translator work, L496 retirement candidate12251e34, and reviewed #621/#622 successors. No seeded semantic-cache successor API was found in these inspected candidates. This is a scoped inventory result, not a claim that no unpublished implementation exists. The existing migration owners L418/L495 were asked for an immutable native cache API with pending/completed-result state, provenance/invalidation and lock/reentry policy. Existing ownership is retained. The legacy rx_semantic callback-under-mutex behavior remains reference-only; no recursive callback reentry, new cache service, legacy optimization or foreign fallback was added. The proposed bounded contract requires complete typed input/tree/implementation/generation/profile identity and logical fuel/frame/storage behavior on hits. A cached total cost alone cannot reproduce every partial-exhaustion trace. Native uncached tree/DAG fixtures now exist as prerequisite controls. NOT_RUN: native cache integration, cached/uncached comparisons, cache mutants, invalidation/concurrency controls and full-cost cache benchmarks. Exact missing dependency is the owning migration's qualified native seam. Optional cache work does not block basic recursion qualification. Issue remains open. Sign in to comment