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

branch main Branches Tags History

omega-mv / evidence / DUAL / applicability / receipt.md

88 lines · 7636 bytes Raw Blame History Rendered
1# Receipt: DUAL applicability experiment (DUAL-APPLIC-V1)
2
3**Verdict: EXPERIMENTAL; recommends a future regime classifier; nothing inserted into production.**
4
5| field | value |
6|---|---|
7| repository | aien-dev/omega (fresh clone, `~/workspace/dual/omega-applic`) |
8| base (GitHub `main` at clone) | `cb7cc216147664549484fcca8e8ceadbd6f6cdbf` |
9| candidate (code, docs, results) | `2a582fded48102a713a2790a613e1936a5beb032` on branch `dual/applicability-experiment` |
10| tree state at run | clean (`git status --porcelain` empty before and after the run) |
11| host | spark-b87b, aarch64, Linux 7.0.0-1019-nvidia; host-only, no accelerator, no chip time |
12| compiler | `cc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0`, GNU Make 4.3 |
13| flags | `EST_CFLAGS` (`-std=c11 -Wall -Wextra -Werror -pedantic -O2 -ffp-contract=off -fno-fast-math`), ASan build adds `-O1 -g -fsanitize=address,undefined -fno-sanitize-recover=all` |
14| workstream | ADR 0031 / ARCH-0031 (DUAL constraint pricing), offline applicability lane; no DUAL-N gate token claimed |
15| scope | experiment only; no production gate, no production classifier; `src/runtime/` untouched; no dependency on `src/dual/` |
16
17## Pre-registration
18
19- Parameters: `src/dual_experiment/applic_params.h`, rendered canonically by `ap_params_text()`; written to `params.txt`.
20- **Parameter digest (SHA-256 of params.txt):** `e489d25f5f0d23cfe8624a5cc82a5f770f04cb03fd3b441aac627e1a0087ecea`, pinned in `tests/dual_experiment/test_applic.c` (`AP_PARAMS_DIGEST_PIN`). Any parameter change fails the test: new experiment version, no rescoring.
21- Predictor formulas and error measures: `src/dual_experiment/applic_predict.c` header comment and `docs/dual/APPLICABILITY_EXPERIMENT.md` ยง1.2. A v1 draft that counted running items as offered work was replaced before any result was recorded; no v1 number is reported.
22- Primary measure: completions NRMSE. Regime grid thresholds: cv in {0.4, 0.8, 1.2}, top-5 % share in {0.10, 0.20, 0.30}, arrival_cv 0.5.
23
24## Commands and results (run at candidate SHA, clean tree)
25
26```text
27$ make test-dual-applicability
28dual-applic-purity: applic_sim.o, applic_predict.o and applic_metrics.o reference no forbidden symbol
29./build/dual-applicability/test_applic
30results digest: 912fb51b13f981c5a5e4cce28211d6eac62d5e9149e9bc32e44eb9f1acb0c45a
31params digest: e489d25f5f0d23cfe8624a5cc82a5f770f04cb03fd3b441aac627e1a0087ecea
32shuffled worse than real in 192 / 192 runs
33test_applic: 13020 checks, 0 failures
34./build/dual-applicability/test_applic_asan
35results digest: 912fb51b13f981c5a5e4cce28211d6eac62d5e9149e9bc32e44eb9f1acb0c45a
36params digest: e489d25f5f0d23cfe8624a5cc82a5f770f04cb03fd3b441aac627e1a0087ecea
37shuffled worse than real in 192 / 192 runs
38test_applic: 13020 checks, 0 failures
39test-dual-applicability: determinism, ledger, predictor and negative-control checks pass in plain and ASan/UBSan builds
40
41$ make dual-applic-run
42wrote evidence/DUAL/applicability/results.csv, params.txt, results.md
43
44$ sha256sum evidence/DUAL/applicability/results.csv params.txt results.md
45912fb51b13f981c5a5e4cce28211d6eac62d5e9149e9bc32e44eb9f1acb0c45a results.csv (193 lines: header + 192 runs)
46e489d25f5f0d23cfe8624a5cc82a5f770f04cb03fd3b441aac627e1a0087ecea params.txt
47c4803da3fa8844b991f3cfea63352a61e8dddadfb975192e8c54892c1d3aa9d5 results.md
48```
49
50Determinism: the results digest printed by the plain build, by the ASan/UBSan build and the SHA-256 of the written `results.csv` are the same value. Re-running `make dual-applic-run` on the committed files left the tree clean (byte-identical rewrite).
51
52Purity: `nm -u` on `applic_sim.o`, `applic_predict.o`, `applic_metrics.o` against `EST_FORBIDDEN` (`rx_|aienos_|argus_|forge_|aegis|mmap|mprotect|fork|exec|dlopen|system|socket|fopen|open$`): no hit.
53
54## Results table (mean over 24 seeds; full tables with sd in `results.md`)
55
56| workload | completions NRMSE (primary) | known-arrivals NRMSE | queue RMSE | blocked RMSE | shuffled composite vs real | cv_demand | top5 share | arrival cv | rejected/run |
57|---|---|---|---|---|---|---|---|---|---|
58| a homogeneous | 0.110 | 0.078 | 0.009 | 0.391 | 0.231 vs 0.170 | 0.068 | 0.054 | 0.147 | 0 |
59| b heterogeneous | 0.220 | 0.158 | 0.006 | 0.275 | 0.212 vs 0.167 | 1.698 | 0.372 | 0.203 | 0 |
60| c step | 0.099 | 0.069 | 0.029 | 0.061 | 0.566 vs 0.063 | 0.068 | 0.054 | 0.524 | 91.0 |
61| d square wave | 0.174 | 0.068 | 0.062 | 0.217 | 0.476 vs 0.151 | 0.068 | 0.054 | 0.618 | 0 |
62| e bursty | 0.171 | 0.136 | 0.150 | 0.320 | 0.426 vs 0.213 | 0.068 | 0.054 | 0.648 | 23.9 |
63| f capacity drop | 0.100 | 0.074 | 0.022 | 0.277 | 0.498 vs 0.133 | 0.068 | 0.054 | 0.150 | 271.3 |
64| g regime change | 0.151 | 0.108 | 0.006 | 0.312 | 0.273 vs 0.157 | 1.013 | 0.268 | 0.335 | 0 |
65| h heterogeneity sweep | 0.197 | 0.122 | 0.005 | 0.253 | 0.183 vs 0.152 | 0.970 | 0.266 | 0.177 | 0 |
66
67Correlation with completions NRMSE, Pearson r over 192 runs: cv_demand +0.696, top5_share +0.689, max_item_share +0.606, class_entropy -0.673, arrival_cv +0.068. Sweep only (24 runs, offered load fixed at 0.80): r(cv_demand) +0.882 (known arrivals +0.916), r(top5_share) +0.903 (known arrivals +0.932); completions NRMSE rises monotonically 0.172 -> 0.309 with sigma 0 -> 1.5 (known arrivals 0.068 -> 0.272).
68
69Regime grid, primary measure: cv < 0.8 and top5 < 0.20: 129 runs, mean 0.133, p90 0.183, max 0.254. Complement cv >= 1.2 or top5 >= 0.30: 37 runs, mean 0.218, p10 0.189, p90 0.256. arrival_cv >= 0.5: 71 runs, mean 0.148, p90 0.195.
70
71## Negative controls
72
73| control | expectation | result |
74|---|---|---|
75| shuffled-window predictor (densities from a different window) | worse than the real predictor | worse in **192 / 192** runs; per workload 24/24 each; CONTROL PASS |
76| constant "heterogeneity" metric (0.5) | no correlation | covariance exactly 0.000000 on every error axis, r reported 0 |
77| seeded noise metric independent of the run (extra) | near zero | r = +0.103 (primary), +0.149 (known arrivals), +0.034 (queue), +0.108 (blocked) |
78| hostile corrupted ledger (test) | detected | `ap_sim_ledger_ok` returns 0 after `completed++`, 1 after restoring |
79
80## Conclusion
81
82Aggregate pressure predicts **throughput** well when items are near-identical, including under step load, capacity loss and sustained overload (about 10 % error, 7 to 8 % once the arrival count is known). It degrades monotonically with item heterogeneity, and the degradation survives knowing the arrivals exactly, so it is aggregation error: a few long items hold slots the aggregate cannot see. Time-varying load is a forecasting problem (large error with last-window arrivals, small with known arrivals), not an aggregation problem. **Waiting (blocked fraction) is not predictable from aggregates** in any regime short of saturation. Candidate regime rule, PROPOSAL only, inserted nowhere: aggregate throughput prediction usable (p90 NRMSE <= about 0.18) when cv_demand < 0.8 and top-5 % load share < 0.20; discrete per-item scheduling must dominate (p10 NRMSE >= about 0.19) when cv_demand >= 1.2 or top-5 % share >= 0.30; the band between is a transition region; blocked fractions are out of scope.
83
84## Limits
85
86Synthetic workloads only, not qualified against any real trace; one admission policy, one capacity shape, one deliberately simple predictor; the sweep confounds spread with seed; the quoted thresholds were chosen from the pre-registered grid after seeing the numbers; the blocked-fraction heuristic is arbitrary (pre-registered). No claim about ADR 0031 prices, energy, thermal state or uncertainty.
87
88Verdict: EXPERIMENTAL; recommends a future regime classifier; nothing inserted into production.