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.