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/831d374521ec1ccb # 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-ECOSYSTEM P1] Build native automatic differentiation and functional transforms Open · #664 · open 2026-10-23 22:02 UTC Imported from GitHub aien-dev/omega-mv#664, by drakestapleton drakestapleton wrote on 2026-10-23 22:02 UTC ## Outcome Replace autograd and functional differentiation with a checked .om execution path using the existing tensor and compiler semantics. Grounding: tests/test_omega_autodiff.c and existing numerical/training branches are migration evidence; inspect their implementation and owners rather than assuming no autodiff exists. - Define graph/tape lifetime, backward accumulation, leaf/parameter semantics, stop-gradient, saved tensors, mutation detection, detach, retain/create graph and custom differentiation rules. - Deliver reverse-mode gradients for the first complete training workload; then explicitly tracked JVP/VJP, higher-order derivatives, Jacobian/Hessian, batched transforms and checkpoint/recompute semantics. Non-differentiable operations get defined policies. - Validate analytic cases, independently implemented gradients and finite differences with conditioning/precision-aware tolerances. Include shared parameters, branching, views, in-place mutation, repeated backward, missing gradients and nonfinite values. - CPU and GPU forward/backward/update correspondence; seed-specific RNG replay and activation-recompute parity. - Mutants changing a gradient sign, reduction dimension, saved-tensor generation or accumulation must fail. A decreasing loss alone cannot qualify gradients. - Integrate one real trainer consumer under Omega #606/aien-train #3; audit bounded memory and deletion of replaced legacy gradient code. Depends on tensor contracts; graph optimization must preserve both forward and derivative semantics. ## 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. 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:41 UTC The forward/backward/update prerequisite now has an independently checked native consumer: train ecosystem6 , source `d79b34352f769687b62cc77ba2e3739445723010`. It reuses L720 software IEEE binary32 and M20 metadata; actual forward values, pre-update squared loss, dX/dW/db and SGD are computed in seeded .om. The derivative is explicitly implemented for one fixed affine graph; it is not described as an automatic differentiation tape. Author374708 checks and separate reviewer1041 checks pass, including independent symbolic answers and central differences for all14 X/W/b entries. Both suites detect three compiled sign/dimension/update faults. Raw independent review and trace retains exact source/compiler/binary pins, statuses and controls. Coordinator reproduced the independent suite from source. General reverse-mode construction, JVP/VJP transforms, higher derivatives, mutation/alias policies, saved-tensor lifetime, checkpoint/recompute and real trainer cutover remain open under the existing owners. This bounded numerical result does not close #664 or the full ecosystem milestone. Sign in to comment