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 / ARGUS / h2-verify / VERIFY.md

91 lines · 6815 bytes Raw Blame History Rendered
1# ARGUS producer v1.1 (746b30b) -- H2 verification, 2026-09-29
2
3Candidate: omega feat/argus-producer 746b30b (producer), 71180e2 (argus.lock -> aienos feat/argus-0 b375dca).
4Host: GB10 (Spark), gcc 13.3.0, kernel 7.0.0-1019-nvidia. X925 cores = 5-9,15-19. All benches ran under
5`flock ~/workspace/.argus-bench.lock`; no .spark-quiet flag present.
6
7## Pins
8- ARGUS: aienos feat/argus-0 b375dca (local clone, not yet on origin). native/argus/argus_abi.h sha256 prefix 5ff168ea,
9 byte-identical at 398cfb9, 03b9f06, be2814d, b375dca.
10- Authority: aienos.lock c8ab65e + tools/argus/aienos-cap-observer-c8ab65e.patch
11 (sha256 baf8f9d867840c297efbdfdb0abb6460709df77c78f1288e452826a769eed9fb; `patch --dry-run` clean on c8ab65e).
12 The patch backports the observer of feat/capability-observer 12add16. 12add16 itself was not adopted because it sits
13 on 64-bit generations and Omega's pinned authority c8ab65e is 32-bit.
14
15## Default build unchanged
16RX_ARGUS undefined: objdump -d of rx_aegis.o, rx_native_bind.o, rx_generation.o, rx_world.o is identical to main bba3bd3.
17Default test-r7/r8/r9 and RX_ARGUS=0 builds pass (R8 checks 116 failures 0). RX_ARGUS=1 and =2 build with -Werror.
18
19## Correctness (RX_ARGUS=2, ingest, ARGUS_AUTH=observer = successor of ARGUS_WRAP=1; detectors b375dca)
20| suite | events | findings | notes |
21|---|---|---|---|
22| R7 | 320 | 2 (code 13 AUTHORITY_REPLAY) | harness: two authority instances in one process (see below) |
23| R8 | 1,989 / 2,393 | 0 | 205,082 uses -> 1,463 summaries; 0 refused, 0 lost, 0 late |
24| R9 | 37 | 0 | the old code-9 findings (three stores) are gone: store id on WORLD_COMMITTED |
25
26Determinism: every stream replayed twice gives the same state digest (raw/replay-digests.txt). R7 is byte-identical
27across two live runs. R8/R9 live streams differ run to run (the flush points of multi-threaded use tables depend on
28timing), and each is deterministic on replay.
29R7 code 13: corpus() does pair_stop + pair_start (rx_r7_native.c:204-205), so a second authority instance begins at
30boot generation 2 for every slot. Cap 3 already reached generation 2 in the first instance (reclaim; seq 7) and was
31revoked (seq 20). The new instance grants 3/2 (seq 28) and revokes it (seq 42). ARGUS keys capabilities by
32(machine, cap_id, generation), so it sees a replay. R7 exposes this through two authority instances in one test
33process, but the gap is ABI-level and not only in the harness: aienos_cap_restart also rebases every slot to a fresh
34boot generation, which can reissue a (cap_id, generation) that ARGUS has already seen. The producer cannot fix it
35under v1.1. Fix: capability identity needs an authority-instance (boot generation) component (ABI v2 field, or the
36producer opening a new capability namespace per authority start/restart). Status: OPEN, root-caused.
37Lane H's earlier R7 = 0 was measured against ARGUS 4cd73cc, whose core has no code-13 detector (added in 57a7bea).
38So 0 -> 2 comes from a stricter detector, not a producer regression.
39
40RUNTIME_INTEGRATION: mechanics PASS (builds, streams, 0 refused/lost/late, replay deterministic, R8 0, R9 0);
41R7 = 2 findings OPEN (above). Not an unqualified PASS.
42
43## Performance
44Criterion, fixed before measuring: PASS iff the RX_ARGUS=2 micro-op median throughput is >= 95% of RX_ARGUS=0,
45AND the RX_ARGUS=2 R8 mean wall clock is <= 105% of RX_ARGUS=0 (>= 10 interleaved runs).
46
47Micro-op = rx_aegis_evaluate + rx_world_validate_cap, 20M ops/run, interleaved rounds (raw/micro-*.jsonl):
48| cfg | core 7 only, n=22: median ops/s | vs 0 | mean vs 0 | cores 7,8, n=5: median | vs 0 | op p50/p99 |
49|---|---|---|---|---|---|---|
50| RX_ARGUS=0 | 41.57M | - | - | 41.46M | - | 48/64 ns |
51| RX_ARGUS=1 (no consumer) | 43.75M | +5.2% | +5.0% | 46.02M | +11% | 48/64 ns |
52| RX_ARGUS=2 discard | 38.92M | -6.4% | -3.1% | 42.02M | +1.4% | 48/64 ns |
53| RX_ARGUS=2 ingest | 40.34M | -3.0% | -3.3% | 46.03M | +11% | 48/64 ns |
54Emit cost alone (use-table update of a successful validate): p50 2.25 ns, p99 2.62-3.25 ns.
55Reading: the single-core cost of RX_ARGUS=2 is about -3% mean in both consumer modes. Medians are -6.4%/-3.0%
56(discard/ingest). Run-to-run spread (about +-7%) exceeds the 5% threshold, and RX_ARGUS=1 came out faster than
57baseline, so this sub-criterion is not cleanly resolved at n=22. Ingest (the deployed mode, used for R8 and
58correctness) passes on median. Both modes are reported. On one core the consumer thread shares the measured core;
59with a second core there is no measurable loss.
60
61R8 wall clock (whole test process, taskset 5-9,15-19; all runs passed):
62| run | cfg 0 mean (sd) | cfg 2 ingest mean (sd) | change |
63|---|---|---|---|
64| r8wall.jsonl, 30 interleaved rounds, ms timer | 36.00 ms (1.39) | 38.23 ms (1.45) | +6.2% (95% CI about +4% to +8%) |
65| r8decomp.txt, 20 interleaved rounds, us timer | 37.43 ms (1.71) | 39.73 ms (1.23) | +6.1% |
66Decomposition (r8decomp): RX_ARGUS=1 37.62 ms (+0.5%), RX_ARGUS=2 discard 38.72 ms (+3.4%), ingest +6.1%.
67CPU time 42.2 -> 48.0 ms. 746b30b reported +3.6%. That is within noise of these runs; both straddle the 5% line.
68This measurement's point estimate is above it.
69
70R8 use representation (RX_ARGUS=2 ingest): 205,082 successful uses -> 1,463 CAPABILITY_USE_SUMMARY events; 100%
71represented, 0 summary_refused, 0 ring_refused (the first producer, 527a721, refused 184k of 204k USED). The 419
72full CAPABILITY_USED events are failed validates, emitted in full by design.
73
74VERDICT: micro-op sub-criterion met in ingest mode (not cleanly resolved, see above); R8 wall clock +6.1-6.2% > 5%
75-> ARGUS_PERFORMANCE = FAIL.
76
77Where the remaining cost is:
78- Not the producer hooks: RX_ARGUS=1 costs +0.5% wall, ~2 ns/use.
79- Not fixed start/stop: bench_rx_argus with 1,000 ops, ARGUS off vs ingest consumer: 4.707 ms vs 4.707 ms
80 (20 interleaved rounds; raw/fixed-cost-bench1000.txt).
81- So it arises while the workload runs, only when a consumer exists: discard +3.4%, ingest +6.1%.
82- Leading hypothesis (unprofiled; perf is blocked by perf_event_paranoid=4): rx_world.c:1299 calls rx_argus_idle()
83 under the world work mutex before pthread_cond_wait. With a consumer, the park-time flush pushes summaries into
84 rings the consumer is reading (cache-line traffic), inside a lock that submitters need.
85- Ingest adds SHA-256 chain work (~1 us/event) on a consumer thread that competes with the workload.
86
87Next iteration: (1) move the park flush out from under w->mu (publish idle under the lock, flush after unlock, or
88leave it to the consumer's 10 ms flush request). (2) Take ingest out of the runtime process: the consumer only
89copies records, and the SHA-256 chain + core run in the ARGUS process (ARGUS-1). (3) Profile R8 with perf (needs
90perf_event_paranoid lowered, which is Drake's call) and add a steady-state R8 variant. Then re-measure against the
91same criterion.