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/095281659dd7fd41 # 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 # Offline resource-DAG cost simulation using existing cost model and measured Spark traces Open · #583 · open 2026-10-19 18:04 UTC Imported from GitHub aien-dev/omega-mv#583, by drakestapleton drakestapleton wrote on 2026-10-19 18:04 UTC ## Execution-order correction: modeling proceeds in parallel Drake's correction, 2026-10-24: #704 and #705 are real planning-tool defects, off the token path. This offline modeling/oracle work and its fixes run in their own lane, not ahead of or as a blocker for live 35B speed measurements. Serving-speed order: (1) measure and qualify cached scratch on the live 35B path, (2) measure fusion against that qualified baseline, (3) implement and qualify the 8-bit output head. Omega #704/#705 are a parallel planning-tool lane and do not block these direct measurements. Requirements below to fix a model before trusting its predictions/capacity certificates apply only to use of those affected outputs. They do not prevent direct hardware profiling, independent arithmetic, or qualification of cached scratch and fusion through unaffected evidence. Do not add a blanket dependency from the serving-speed lane to completion of this issue or its modeling fixes. ## 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. Parent: aien-dev/aien-architecture-mv#276. New scope is offline composition of existing measurements, not replacement of rx_costmodel or GPU simulators. ## Current state and dependencies Current default-branch src/runtime/rx_costmodel.c already models operation costs with uncertainty; src/omega_realize_synth.c already emits native bytes using a bounded schedule heuristic. tests/bw_warp_sim* are correctness models with active work in PRs #514/#509; do not treat them as calibrated timing models. Consume architecture #244 traces, #252 clocks, #253 hardware atlas and #274 lifetime/storage-map work; use #262 held-out prediction gate and #263 dossier. GPU variant-selection adapter belongs to #522. Reconcile Symposium crossover under parent before overlapping runtime changes. ## Implement - Freeze a versioned offline schema: machine/build/calibration identities, units, validity envelope, provenance (specified/measured/fitted/synthetic/unknown), operation DAG, resource demands, shared-memory traffic, buffer lifetimes, dependencies and completion/synchronization events. Unknown fields remain unknown. CPU and GPU unified memory share one capacity ledger. - Build a deterministic finite resource-DAG evaluator. Model CPU/GPU compute, DRAM bandwidth contention, cache/residency where supported by evidence, launches, barriers, storage IO and persistent-state updates. Begin with the smallest trace-backed subset; explicitly refuse unsupported paths. Reuse rx_costmodel for learned operation estimates; this harness only composes costs and constraints. - Document bounds with assumptions. For one operation, max(F/P,Q/B) is an ideal compute/traffic overlap floor; additive launch cost is valid only when serialized. Whole-DAG critical path and resource-work bounds must both hold. No sum of concurrent full-bandwidth claims; no sparse FP4 headline as dense training throughput. - Account for whole-system energy using a named instrument and integration boundary E=integral P(t)dt. Device-only observations stay device-only. TDP is not measured wall power. Report energy UNMEASURED when absent; permit labelled synthetic sensitivity calculations without claiming energy rankings. - Produce bottleneck attribution plus counterfactual sensitivity: compute, bandwidth, capacity, serialization, launch, storage, learning/verification/interface overhead. Emit unresolved residual rather than claiming all bottlenecks found. Rank next small experiments by how much they can change the decision, with bounded acquisition cost. ## Acceptance frozen before held-out runs - Analytical tests: serial chain, perfect independent overlap, shared-bandwidth contention, memory-capacity refusal, lifetimes, synchronization and missing/stale calibration. Deterministic output and unit checks. - Trace conservation: operations, bytes and allocations reconcile; no fabricated completed work or energy; instrument overhead reported. - Separate fitting/calibration/test sets; precommit numerical error and interval-coverage gates using development noise, not final outcomes. Compare predictions against simple measured lookup and roofline controls. - Held-out end-to-end runtime error, selection regret and uncertainty coverage reported under #262; out-of-envelope ranking refuses or uses the qualified incumbent. - Reproducible CLI example consumes a pinned trace and emits machine-readable costs, bounds, provenance and a Pareto table. No GPU execution in offline mode. - Independent reviewer reproduces results; chip measurements use existing apparatus. Unsupported coverage and failed hypotheses appear in the dossier. ## Ownership and closure One owner for additive offline harness/schema/tests. Coordinate changes to rx_costmodel with its owner; do not edit GPU encoders/driver/runtime scheduling in this issue. PRs reference this issue and pin upstream evidence. Deliver source, schema, commands, frozen fixtures, predictions and receipts; completion can record a falsified cost hypothesis. ## Delivery rules Status: PROPOSED. Qualification: NOT_RUN. This is a finite workstream, NOT A MASTER PLAN. Follow PLAN_AUTHORITY.md, CURRENT_EXECUTION_PLAN.md, accepted ADRs and the owning repository's AGENTS.md. Recheck current source and active PRs before coding; claim one owner/worktree per path. Preserve existing World, Cortex, FORGE, AEGIS and capability ownership. No new runtime authority or parallel cost-model service. Use existing native toolchain and aien-calc receipts; no Python/CUDA runtime dependency. Spark judges; quietlock check before GPU work; never kill chip runs; submit through the existing PR desk. Record pinned commits, commands, immutable evidence and independent review. Report PASS/FAIL/INCONCLUSIVE/NOT_RUN separately from task completion; negative findings are valid outcomes. No performance or intelligence claim from a simulation alone. ## Minimum-work accounting extension (parent clarification 2026-10-19) Represent baseline and transformed DAGs with stable operation/dependency IDs. For each removed operation record the valid derivation, reused-result identity or unchanged-dependency condition that permits removal. Separate work eliminated from work deferred, moved to preparation, shared with another objective, or replaced by lookup. Emit a ledger for search, proof/check, lookup, invalidation, recompute, memory traffic, persistence, view generation and required background activity. Include idle and changed-state traces; do not infer zero power from an empty application DAG. Model no-change events and incremental dependency closure using existing trace owners rather than a new scheduler. Acceptance: a no-change fixture avoids unnecessary graph nodes; one changed dependency invalidates affected consumers; invalid proof/changed assumptions cannot remove required work; double-counted shared work is detected. Compare incumbent/elimination/reuse/incremental/combined ablations from parent #276, including cold costs. Derive break-even regions symbolically where tractable and validate with direct sums and measured samples. If uncertainty obscures net benefit, return INCONCLUSIVE rather than promote. All existing gates remain in force. ## Multi-operation .om composition and optimizer accounting Coordinate #522's next operation family; this issue owns DAG composition, not execution selection. Port/replace the owned cost harness through #599, with architecture#300 deletion/dependency evidence. Model required preparation, verification, cache authority checks/persistence (#651), transfer, contention and fallback with consistent units and overlapping intervals. Compare end-to-end predictions against measured lookup/incumbent baselines on held-out real traces; unknown remains unknown. Start with one additional operation family, then extend only after calibration. Architecture#249 may consume the cost contract but cannot treat estimates as semantic proof. ## Exact bounded-model certificates and resource-domain follow-through This addendum preserves the existing offline evaluator, ownership, frozen acceptance gates, and `.om` replacement requirement. PR #590 at `3bd56731c5517e2a9c8f195955c71e73dc6f9269` already implements a deterministic resource-DAG evaluator with processor sharing, critical-path/resource bounds, capacity accounting, and analytical tests. Extend that work; do not create a parallel simulator or runtime optimizer. The reproduced inverted-lifetime regression, #705 , must close the fail-open capacity certificate before these results are used for candidate ranking. ### Distinguish a schedule evaluation from an optimality proof The current file-order dispatch schedules ready work before the capacity ledger is checked. A valid refusal means the evaluated schedule exceeded capacity; it does not prove that every legal schedule is infeasible. A reproduced finite example has two independent 10 ns operations, two compute slots, and one 80 B buffer live during each operation under a 100 B capacity. Eager dispatch refuses at 160 B. Serializing the two operations is feasible with makespan 20 ns and peak 80 B. Wolfram independently solved the declared no-overlap constraint and returned 20 ns with starts 0 and 10. This example is synthetic and does not predict hardware runtime. Preserve the fixed-policy evaluator as a certificate consumer. Add only a bounded offline exact oracle and an independent certificate checker through the existing qualification apparatus. They may use exhaustive state search or another exact finite method, with explicit size/time limits. A timeout means `UNKNOWN`/`NOT_PROVED`, not infeasible or optimal. Heuristic scheduling remains a candidate generator, not proof. ### Frozen small-DAG oracle fixture: capacity changes the communication optimum Use the DAG `x -> a`, `x -> b`, `(a,b) -> c`, `(x,c) -> y` with these explicit rules: - Each tensor occupies one fast-memory slot. - `x` starts only in slow memory and `y` must finish in slow memory. - A computation needs all parents resident plus a fresh output slot. In-place aliasing is not allowed in this fixture. - Loading or storing a tensor costs one unit; computation and dropping a resident tensor cost zero. - Recomputation is allowed. No unlisted operation, transfer, or storage location is allowed. Fast-memory slots Exact outcome under these rules Certificate rationale 2 Infeasible Computing `c` requires `a`, `b`, and a fresh `c` slot simultaneously. 3 Minimum 3 loads/stores Load `x`; compute `a,b`; drop `x`; compute `c`; drop `a,b`; reload `x`; compute `y`; store `y`. The `c` step necessarily displaces `x`, which must be obtained again. 4 Minimum 2 loads/stores Load `x`; compute `a,b,c`; drop `a,b`; compute `y`; store `y`. The mandatory input load and final output store give the matching lower bound. Wolfram's independently enumerated weighted state graph verified the 3-slot and 4-slot optima. The 2-slot impossibility follows directly from the fresh-slot requirement. Reproduce all three results in the qualified `.om` oracle and checker. Add a separate explicitly permitted in-place variant so changing the alias contract cannot silently reuse the previous bound. A certificate must carry the canonical DAG/operation IDs, tensor sizes and units, initial/final placement, capacity/resource topology, ownership/alias and recomputation rules, numerical semantics, evaluated policy, schedule/transfers, objective, feasible upper bound, proven lower bound, gap, and source/seed/binary identities. Validate each move independently. A feasible witness alone is not an optimality proof; a search failure alone is not an infeasibility proof. Claims are limited to this finite declared model. Coordinate communication lower bounds with #602, fusion contracts with #603, and residency/recomputation with #604. This issue owns offline composition and certificate qualification; execution and selection ownership remain with the existing components. ### Preserve physical shared parents in the resource model The current single-resource `cap/k` contention is correct and must remain covered. The one `bw` field per operation cannot simultaneously encode a local CPU-cluster/GPU-client ceiling and a common LPDDR parent ceiling. The current M1 overlap fixture declares `dram_cpu` and `dram_gpu`, but its GPU operation has no modeled traffic and precedes the CPU copies. It is not evidence of an existing CPU/GPU overcommit. The limitation matters when adding concurrent traffic from separately named clients or clusters. Extend through a new schema version, preserving frozen OEV1 semantics, to express shared physical parents or multiple resource demands. Alternatively refuse a model requiring a topology the schema cannot represent. Every client must obey its local limit and all applicable shared-parent limits. Different resource names must not manufacture independent physical channels. Acceptance fixture: two independent clients each transfer 64 MiB through one common 273 GB/s parent, with nonbinding compute time. Their shared-parent lower bound is `128 MiB / 273 GB/s = 491.6400293 microseconds`, not the 245.`8200147` microseconds obtained by treating both as independent full-rate channels. These are synthetic constraint calculations using a stated rate, not predicted Spark latency. Add distinct local-client limits and verify both local and aggregate constraints; retain the existing single-pipe cases. ### Carry the actual feature domain into learned estimates The current adapter reconstructs state size as 8-byte elements, fixes cache capacity at 1 MiB, and leaves pressure at zero from initialization. A `known` fitted cell is not evidence that those assumptions match arbitrary input traces. Replay the measured feature identity and validity envelope, including operation family, shape, element representation, state/cache bytes, pressure/core class, implementation arm, machine, and calibration provenance. If the adapter intentionally supports only its current restricted domain, declare and enforce that domain. Missing or incompatible features must refuse rather than inherit invented values. Coordinate operation-domain validation, #704 , with the existing cost-model owner and #522; do not add another estimator. ### Acceptance and qualification - Independently check the 2/3/4-slot oracle fixtures, the feasible 20 ns schedule example, and at least one altered-alias contract. Deliberately invalid certificates are rejected. - Output distinguishes evaluated schedule failure, proven bounded-model infeasibility, feasible but unproven candidate, exact bounded-model optimum, and timeout/unknown. - Check schedule/dependency/ownership/precision legality and physical-resource conservation separately from the objective calculation. Report lower/upper bounds and the exact scope of any optimality gap. - Preserve frozen OEV1 behavior; version shared-parent/multiple-demand changes. Refuse unsupported physical topology and missing feature-domain inputs. - Keep held-out evidence and its failures visible. Round 2 reports the +35.9% two-copy error; round 3 is inconclusive under load 56. Do not recast these as qualified GPU predictions. Existing #262/#263 gates still apply. - Deliver first-party evaluator/oracle/checker and project-owned test logic in seeded `.om` through #599. Qualify consumers, delete superseded implementations and obsolete dependencies from the active tree, and record architecture #300 evidence. Pinned C source is historical evidence only. Wolfram may serve as an independent external qualification oracle; it is not a runtime dependency or retained first-party legacy path. No new optimizer runtime, scheduling authority, or parallel cost-model service. Exact finite-model mathematics and empirical hardware prediction remain distinct evidence claims. ## Safe-state constraints for the #760 offline experiment #760 may consume this evaluator's existing bounded schedule/cost contracts to rank only independently admitted actions. It owns safety-game state/strategy certificates; this issue retains cost, units, validity domain, uncertainty and resource-topology ownership. Security, quantity semantics, authority and secrecy remain hard constraints; no finite cost penalty may buy a violation. Distinguish feasible witness, exact bounded optimum, safe subset, maximal invariant set and unknown search. Include certificate construction/checking/invalidation and supervisor overhead in lifecycle comparisons. The experiment stays offline/shadow until concrete correspondence and existing qualification gates pass; it does not delay unrelated direct live inference measurements. No comments. Sign in to comment