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-ECOSYSTEM P1] Replace graph capture, optimization and export with checked Omega compilation

Open · #665 · open 2026-10-23 22:02 UTC

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

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

Outcome

Provide the duties associated with eager/compiled execution, graph capture, specialization, fusion and export using the existing seeded compiler. No new parallel compiler or legacy .osc extension. Grounding: seed/omc/omc.om on active seed branches, src/runtime/rx_fusion.c, src/omega_program_ir.*, #621/#623/#632/#650 and CUDApp #54/#57.

  • Define eager native interpretation/execution versus compiled artifact semantics; tensor graph capture, shape constraints, symbolic dimensions, control flow, effects, graph breaks and explicit refusals.
  • Use the existing canonical IR/profile/receipt boundaries for forward and backward graphs; implement guarded specialization, layout choice, constant folding, fusion and memory planning with independent translation checks.
  • Serialize a versioned export artifact with all code/shape/numeric/effect/device dependencies; offline load refuses stale or incompatible artifacts. Cache invalidation follows semantic and target changes.
  • Compare eager/native/optimized/export-reloaded outputs, gradients, errors and RNG behavior on dynamic-shape/control-flow fixtures. Detect weakened guards, wrong fusion, alias violations and stale-cache mutants.
  • Benchmark compile cost, cache hit/miss, peak memory and complete workload latency before promoting optimization. Full .om baseline remains available as the algorithmic reference without retaining retired foreign code.
  • External ONNX or framework exports require separately declared import subsets through existing adapter owners; no claim of arbitrary torch.compile or Python tracing equivalence.

Delivery rules

User-authorized plan, 2026-10-23, continuing Omega #599. All new first-party implementation, tests and automation use handwritten seeded .om. Qualify replacements, cut consumers over, and delete retired first-party implementations/dependencies from active trees; keep immutable history/evidence. External hardware/OS/firmware/API dependencies and independently sourced test oracles must be explicitly inventoried. No hidden C/.osc/Rust/Python production fallback. Missing language facilities are requests to the existing compiler owner, not permission to create a second compiler. Reconcile current branches, PRs, issue comments, ledger and worktree ownership before editing. Existing owners remain authoritative; one writer per shared compiler/runtime file. Preserve live serving, model residency, driver state, visibility and existing release coordination. This task does not authorize deployment, driver swaps or new hardware purchases. Use isolated candidates and coordinated hardware windows. Independent final-source review, exact commits/compiler/binary/config hashes, raw commands/exits and negative controls are required. Host, simulator and hardware results are separate. NOT_RUN/BLOCKED is not PASS. Do not auto-close from a source-only PR.

Expanded scope and parity policy

This belongs to Drake's explicit 2026-10-23 expansion: replace PyTorch and the surrounding AI software ecosystem in Omega. The two-vendor inference demonstration is an early milestone, not full ecosystem completion. Build independently implemented Omega facilities, not Python wrappers. Compatibility with external formats/protocols is allowed; a framework import shim is not replacement. Version the supported surface, map remaining capabilities to owned issues, and do not advertise universal parity from a small passing subset. Current branch/owner reconciliation precedes changes; source filenames below are migration evidence, not instructions to keep legacy code.

Compact SHA compiler qualification (2026-10-25)

  • Through existing seed compiler owners implement bounded compile-time unrolling, explicit-width rotate semantics, constant propagation, justified inlining and bounds-check elimination for the pure integer SHA slice. Bound code growth, compilation time and register/stack demand; retain source mappings.
  • Replace manually repeated SHA rounds/schedule with compact source after independent behavioral and target qualification. Correct handling of zero/full-width rotate counts, modular arithmetic, aliasing and traps must be specified by #625, not assumed from target instructions.
  • Each pass has valid/invalid fixtures and mutants; byte identity and digest examples alone are not semantic or leakage-preservation proofs. Preserve ABI and declared resource/effect behavior. Use #623 validation.
  • Research gap: functional equivalence alone does not establish constant-time or speculative constant-time. Coordinate #673 security and leakage profile; record threat model/secret labels and supported guarantees, test generated branches/accesses, report speculative claims unsupported until separately established. Motivation https://doi.org/10.1145/3704880 (2025); not proof of Omega.

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

Parent delivery plan: https://github.com/aien-dev/aien-architecture-mv/issues/303

The parent contains the dependency graph, phased gates and parallel-agent ownership. Drake expanded scope to the entire AI ecosystem, including PyTorch capabilities and surrounding tooling. This issue is one bounded milestone; full ecosystem completion is tracked by architecture #301/#302/#303. Reuse existing owners and implement/qualify/cut over/delete through Omega #599. Cross-vendor inference remains an early milestone, not overall parity.

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

Compiler/source integration dependency is now concrete in stacked PR675: exact existing definition-export43f86be2 and native-host f0499f41 are independently reconstructed but remain separate compiler profiles. Their capabilities must not be combined by assumption. L408 stays the sole shared compiler writer; the existing feature-request intake received the exact consumer/provenance handoff without a restart request.

Existing L720 software IEEE add32/mul32 is usable on profile191b776e; train15 now independently checks real forward/explicit-backward/SGD. This does not implement graph capture, shape/alias/effect guards, graph optimization, full model export or an independently checked GPU lowering relation. Those #665 acceptance gates and the composed source-to-model path remain open; no foreign runtime fallback or compiler fork was added.

drakestapleton wrote on 2026-10-24 22:45 UTC

Automatic model-plan integration addendum (2026-10-24)

Integration dossier: https://github.com/aien-dev/aien-architecture-mv/issues/314. Reuse this issue plus #522 and CUDApp #57, not a parallel compiler/autotuner.

  • Bind every plan to architecture/operator versions, checkpoint/config, tokenizer/processors, numerical profile, all layer state schemas, compiler/backend and exact hardware/firmware capabilities. Model container parsing alone is not model execution support.
  • Keep a qualified native incumbent; automatically search a bounded legal candidate set with time/scratch/energy budgets where measurable. Include compilation, preparation, transfer, queueing, execution and verification in the comparison.
  • Adopt a plan only after output/state/error/alias/effect checks and convincing end-to-end benefit; otherwise retain the incumbent. Cache guards/invalidation cover relevant semantic, target and resource changes.
  • Do not silently quantize, truncate context, drop experts, change attention rules, execute repository Python, or retain PyTorch/another runner underneath. An explicitly declared numerical contract governs lawful transformations.
  • Test cold/warm plans, dynamic-shape guard miss, stale artifact, unsupported custom operator, complete recurrent/KV/conv state rollback, insufficient resources, failed candidate and baseline recovery. Host-language adaptation remains separate: supported C/C++/Python/Rust/Zig/Go callers reach the same native computation through existing adapters. Core #735 model-seat admission remains bounded and is not an arbitrary-architecture loader. Extend the existing inventory for unsupported architectures rather than claiming universal support.

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

Recovered GitHub comment. Original comment 6404130605

#665 delivered on draft branches, with the leakage obligation stated exactly (L834/L835)

ObligationWhereResult
Bounded unrollingS2 #753 (om2/compiler-s2 @ 7fb62f3a)for i T K unroll, K 1..64, i constant, no counter or branch; 64-copy and 65536-word bounds
Rotate loweringS1 #750rotr/rotl; a number amount on uint/ulong lowers to one ROR/EXTR (0 RORV in the SHA artifact), other cases check the amount then use RORV; uchar/ushort replicate, rotate, truncate
InliningS2/S3fn … inline, arguments read left to right, recursion refused (D-S2-1 fixed), 4 levels, standalone body still emitted
Justified check eliminationS2/S4a number index into a sized array up to 4095 becomes an immediate offset with no run-time check; every other index keeps trap 3; unsized views are never eliminated; dup32 erases the seal check only for the exact constructor body and reports it via om2 diag
Compact SHA rounds/scheduleS3/S4 + #776the SHA unit is 344 lines (72 of them K/IV) replacing a 4,096-byte C adapter; SHA256-PARITY PASS cases=2000 diff=0 against the historical C
Valid/invalid fixtures and mutants per pass#75222/22 compiler mutants; 17/17 unit mutants; 8/8 fuel fixtures; controls produce no false kills
Leakage preservation—not established, and not claimed. Static scan: init/hash PASS, update/final NOT_RUN (83/3 MANUAL branches, 67/1 data-indexed accesses, all derived from the byte-count field the scanner cannot treat as public). Dynamic single-step traces: 28/28 equal-length pairs identical, 2/2 negative controls detected. Under E12 that is trace equivalence, not a constant-time or speculative-constant-time guarantee; speculative claims stay UNSUPPORTED.

Measured effect of the passes, paired and interleaved under a protocol frozen before the run: bulk 152.5 → 210.2 MB/s, 1 MiB in 1-byte updates 14.3 → 32.8 MB/s, 1/31/32/55-byte inputs 6.5–12.9% slower (declared REGRESSION; the unrolling trade is why the unit uses unroll only where it pays).

Sign in to comment