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

[SI REUSE R2] Incrementally update guarded methods with exact dependency invalidation

Open · #743 · open 2026-10-25 13:58 UTC

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

drakestapleton wrote on 2026-10-25 13:58 UTC

Outcome / dependencies

Depends on #742 artifact contract; extend existing #665 compilation and #657 dependency analysis, not another graph engine. Reuse canonical World/J-Space/Cortex and generation semantics. PROPOSED / NOT_RUN.

Acceptance

  • Define bounded change algebra and typed delta operator for supported pure .om graphs: applyDelta(f(x), df(x,dx)) = f(applyDelta(x,dx)) under explicit guards. Specify exact integers first; FP mode/error budget separately.
  • Track dependencies by stable identity and generation, including shape, aliases, control dependencies, model version and numeric profile. Recompute affected closure only; unchanged nodes remain reusable. Missing tracking or unsupported effects/cycles falls back explicitly; never assume DAG where recursion exists.
  • Keep update transactional: bind reads/guard to a consistent snapshot, atomically publish the new generation, detect concurrent invalidation and prevent mixed-version outputs. Interrupted updates preserve a valid prior generation.
  • Independently compare full recomputation to deltas after insert/delete/change/reorder, batch and repeated changes. Test alias changes, branch flips, stale and revoked inputs, restart, overflow, partial writes, cancellation and adversarial all-node changes.
  • Measure tracking, guard, invalidation and recomputation overhead separately; zero-change, sparse-change and dense-change cases. Bound graph memory/code growth; select full recomputation when incremental work costs more.

Research motivation

Incremental Computation for Efficient Programmable Inference in Probabilistic Programs (2026), https://doi.org/10.1145/3808316, motivates separate compilation and incrementalization correctness obligations. It does not prove Omega correctness or arbitrary LLM acceleration.

Shared delivery contract

User approved this bounded experiment on 2026-10-25. Parent research owners: https://github.com/aien-dev/omega-mv/issues/584 and https://github.com/aien-dev/omega-mv/issues/652; SI parent https://github.com/aien-dev/aien-architecture-mv/issues/307. This is NOT another master plan and does not change release sequencing. Before edits read PLAN_AUTHORITY, CURRENT_EXECUTION_PLAN, doctrine architecture/roadmap, applicable ADRs, repository AGENTS.md/.crumb, active PRs and ownership claims. Reuse canonical compiler/IR, Cortex single writer, World/J-Space, FORGE and independent verifier/promotion authority. All delivered first-party logic/tests/automation use seeded handwritten .om; no second compiler, store, trainer or retained foreign fallback. Route missing facilities to existing owners. Preserve live 27B/35B service and device state; physical measurements use existing reserved windows. Isolated reviewable PRs, exact source/compiler/artifact/fixture hashes, raw results and independent final-source review required. Distinguish source/host/simulator/physical PASS, FAIL, INCONCLUSIVE, BLOCKED and NOT_RUN. Do not auto-close on source-only completion.

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

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

Recovered GitHub comment by @aien-spark on 2026-10-25T16:28:47Z. Original comment 6400175581

REUSE-1 FINAL evidence for #743

Draft PRs: aien-dev/omega-mv#749 (candidate; frozen at 6ad09bff, result commit 9862a862) and aien-dev/spark-rsi-mv#74 (evaluator 4345eda9; FINAL evidence 84900162, evidence/REUSE-73/final/). Contract d6edaad1 docs/reuse/REUSE-1.md; clarifications K1..K17. K1..K8 are in the freeze; K9..K17 were written into the clarifications file after FINAL to record decisions already in the frozen code (judge.om, lib.om, router.om, select.om, delta.om notes); no rule changed. K10 corrected: NOG3 variants ran for C1 and C1b only.

Results:

  • Incremental execution without a library lowers lifecycle cost: rho(idelta) = 0.751 (95 % interval 0.650 to 0.867). Payback is immediate (0 queries). Answers are exact: 0 wrong across all invalidation paths.
  • With the learned library (primary arm): rho(delta) = 1.164 (1.040 to 1.307).
    • delta/method = 0.955 (0.854 to 1.079): inconclusive.
    • delta/idelta = 1.551 (1.406 to 1.737): the library makes incremental execution slower.
    • Generation round trips are 139 ms above idelta's for the same algebra. The excess is concentrated at n = 64: request-only rho is 1.585 for delta against 1.094 for idelta. [INFERENCE] Binary size and method-state maintenance; not profiled.
  • Regimes (request-only delta/method, idelta/full):
    Typedelta/methodidelta/full
    Z0.780.37
    S0.860.71
    R0.770.55
    I0.810.55
    A1.040.83
    P0.950.78
    C0.670.55
    D (dense)2.432.41

    The dense regime is a loss.

  • Atomic generations: PASS.
    • C8: a crash after each of publish steps 1..9 leaves CURRENT, the manifest and the ELF self-consistent.
    • C11: restart identity holds.
    • C4: a wrong delta unit is detected by wrong answers.
  • Memory: delta peak high-water mark is 832 kB, against 232 kB for full.

Verdicts: source PASS after independent review; host (Spark CPU) correctness and controls PASS, lifecycle cost STOP; simulator NOT_RUN; physical GB10 NOT_RUN; energy NOT_MEASURED. Independence UNISOLATED (one operator account), receipt UNSIGNED (#67 signer is Rust). This issue stays open: source exists, acceptance is not met.

Sign in to comment