interplane.Get Omega
Read in your language

benchmarks-mv

Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.

Brought by drakestapleton

branch main Branches Tags History

benchmarks-mv / native / queueflow / PREREG.md

202 lines · 12862 bytes Raw Blame History Rendered
1# DRA-190 preregistration: bounding the orbital-flow analogy with a queue-flow experiment
2
3Status: FROZEN when its SHA-256 is posted on the hive BOARD (line `PREREG DRA-190 ...`) and committed.
4No held-out metric was computed before that. Anything changed afterwards is listed as a deviation in
5`RESULTS.md`; this file is not edited after the freeze.
6
7Author: t_3fc453be (orbit190), Hermes worker, claude-opus-5-5 (anthropic). Linear: DRA-190.
8
9## 1. The analogy, what it predicts, what would falsify it
10
11The source (Imagining Physics, "The Hidden Flow of Atomic Orbitals") visualizes the probability
12current j of a stationary hydrogen state: the density does not change (d rho/dt = 0) while j is
13nonzero and circulates (div j = 0). Flow without net transport.
14
15The classical analogy tested here: in the hive, some occupancy of a resource moves no work to
16completion. Write the continuity equation for any node i of the coordination graph (a queue, a
17slot, a task state):
18
19 q_i(t+1) = q_i(t) + arrivals_i - completions_i + incoming_i - outgoing_i
20
21and split resource occupancy into transport (time spent serving work that is accepted) and
22circulation (time a resource is held without producing an accepted result: service that ends
23without an accepted verdict, a front-of-line window holding the line while it waits for an outside
24condition, retries of failed attempts).
25
26What the analogy predicts, made testable:
27
28- P0 (continuity). On a complete trace the equation holds exactly for every node at every time.
29 This is bookkeeping, not physics: a violation means the trace is incomplete, never that the
30 analogy is wrong. It is a precondition (V1, V2), not a result.
31- P1 (circulation is not transport). Removing circulating occupancy at equal resources does not
32 remove accepted completions (H1).
33- P2 (the analogy earns its keep only beyond plain queueing). A policy derived from the analogy
34 (bounded retry plus backpressure: stop circulating occupancy from blocking others) must beat a
35 plain queueing baseline (FCFS with a service timeout at each window's own lease) by a
36 pre-registered margin (H2) without a pre-registered amount of harm (H3). If it does not, the
37 analogy adds nothing that standard queueing (Little's law, Lindley's recursion, timeouts) does
38 not already give, and work stops here (the DRA-190 stop rule).
39
40What the analogy does not predict and what this study does not claim: nothing links atomic
41probability current to LLM weights, model capability, hive performance or Spark acceleration. A
42physical resemblance is not a mechanism. No spin-orbit counterpart was identified. All results
43below are about scheduler bookkeeping only.
44
45## 2. Data
46
47All traces are read without writing to them; exports contain integers only (no task titles,
48bodies, window names, payloads or private data).
49
50- T1, spark-window GPU queue: `~/yardsticks/windows/<id>/` on spark-b87b, one directory per window
51 (`requested`, `held` mtime, `close.json` mtime and text, `lease`, `owner`, `gb10`, `quiet`),
52 exported by `export-windows.sh`. Split by request time at 2026-11-01T00:00:00Z
53 (epoch 1793491200): dev = before (145 windows, 2026-10-19..10-31), held-out = from the cutoff
54 (318 windows at the time of the survey; the held-out export is redone at evaluation time and
55 its row count is recorded). The held-out replay starts with the slot free at the latest end time
56 of a dev window (`windows-heldout.tsv.d0`).
57- T2, aien-hive kanban board: `~/.hermes/kanban/boards/aien-hive/kanban.db`, exported read-only by
58 `export-kanban.sh` at evaluation time. Held-out only (the board started 2026-11-06). Dispatcher
59 cap from `~/.hermes/config.yaml` `kanban.max_in_progress: 12`.
60- Control (not held-out, not evidence about the hive): the DRA-185 qualification board dump
61 `sovereign-intelligence tests/hive-qual/receipts/20261107T030424Z-run2-PASS/board.sql`
62 (sovereign-intelligence branch hive/t_75c531b4-hive-qual @57a75473), restored into a scratch
63 database. A real kanban engine with injected worker deaths: kflow must see its retries.
64
65Disclosure of what the author saw before the freeze: T1 dev in full (all numbers in section 8);
66the T1 held-out row count (318) and the last held-out window's open/close files during the data
67survey; BOARD lines from other lanes mentioning recent windows (for example a window closed
68unused and retried); for T2, the board's run status counts (41 runs, 32 done/completed, 2 blocked,
698 running, no reclaimed/crashed/timed_out run at 2026-11-07T03:3xZ) and that 55 of 68 task bodies
70name pool-10-11. T2 is therefore not blind for its retry count; its retry result is reported as
71descriptive and its thresholds below are stated so that they could not be tuned to it.
72
73## 3. Definitions (T1)
74
75Rows are windows sorted by request time (ties by window id). For window i: a_i request time,
76s_i start (the `held` lock time; 0 = never held), e_i end (`close.json` time), L_i lease (s),
77close kind and verdict, owner index.
78
79- Accepted (transport): held, closed by its owner (`spark-window close`, reason `closed`), and its
80 verdict is not `NO VERDICT`. Everything else is not accepted: reaped at lease expiry, reaped with
81 its holder gone, closed while still waiting, or `NO VERDICT`.
82- Observed front time F_i = max(a_i, D_{i-1}), D the observed departure of the window before
83 (its end; a never-held window that waited at the front departs at its close time; one that left
84 before reaching the front leaves D unchanged). Front wait x_i = s_i - F_i.
85- External eligibility el_i: s_i when x_i > 0 (the window waited at the front for an outside
86 condition: quiet machine or chip lock held by a non-window job, held fixed in every arm), else
87 its arrival (no constraint). Service sv_i = e_i - s_i.
88- Retry chain: window i is a retry when the previous window of the same owner was not accepted and
89 0 <= a_i - e_prev <= 3600 s; chain index rc_i = rc_prev + 1.
90
91### 3.1 In-line arrivals (censoring)
92
93`spark-window open --wait` writes `<id>/requested` only when its ticket reaches the head of the
94line (spark-window source, `open`), and a refused open without `--wait` leaves no record. So the
95time a requester joined the line is not in the trace. A window requested 0..3 s after the previous
96departure (the 2 s poll plus 1 s timestamp granularity) is in-line: its arrival is modeled as the
97arrival of the window before it (optimistic: as early as can be justified in order), and the
98observed poll gap gp_i is kept after the departure. When the window before it has the same owner
99it is a sequential leg: it may not start before that leg departs plus gp_i. Waits are still
100measured from the observed request (section 6), so all relative improvements below are upper
101bounds: the true waits are at least the observed ones.
102
103## 4. Arms (equal resources: one window slot, the same windows, the same service, the same el)
104
105- A, current: FCFS in request order; the window at the front holds the line until el; service as
106 observed. A must replay the observed start of every held window exactly (replayerr = 0).
107- B, plain queueing baseline: A with each service capped at the window's own lease. A window
108 whose observed service exceeds its lease is not accepted in B (an overrun gets no verdict).
109- Cr: B plus bounded retry R = 1: windows with rc_i > 1 are parked (never served; leave at a_i).
110- Ch: B plus backpressure: eligible-first. When the slot frees at t, the next window is the
111 pending held window with the smallest max(t, arrival, el) (sequential legs also wait for their
112 previous leg), ties to the earlier request. Windows that never held do not occupy the slot.
113- C, bounded-retry/backpressure: Ch plus bounded retry R = 1.
114
115`flow.om` implements the arms; `oracle.wl` is an independent Wolfram Language implementation
116written from this section. Both must print the same QF lines byte for byte on every trace used.
117
118## 5. T2 kanban measures (kflow.om)
119
120- Open-task node: created events minus tasks with a completed or archived event must equal the
121 tasks whose status is neither done nor archived (sys mismatch).
122- Running node: run starts minus run ends must equal the tasks in status running (run mismatch).
123- Slot bound: concurrent runs never exceed CAP = 12 (conc max, overcap_s).
124- Retry/cycle traffic: extra runs (runs beyond the first per task), tasks with more than one run,
125 runs ending crashed / timed_out / spawn_failed / gave_up / reclaimed.
126- Accepted completions: tasks done, and done tasks with a completed run.
127- Latency: created-to-completed of done tasks; created-to-first-run-start (includes dependency
128 waits). Utilization: run seconds / (CAP x horizon), horizon = export time minus first creation.
129- Pool exposure: per CPU pool named in the task body, busy seconds of its runs minus the length
130 of the union of their intervals (slot time in which a run shared its pool with another run).
131- Bounded retry R = 1 arm: runs after the second run of a task are dropped (count and dropped
132 completed runs). A backpressure arm on pools is NOT identifiable from these traces (run
133 durations include unrecorded pool-lock waits) and is reported NOT_RUN.
134
135## 6. Computation
136
137`flow.om` and `kflow.om` print integers only. Every ratio, mean and threshold comparison is a
138Wolfram Language evaluation whose call and result are kept in `evidence/wolfram/`.
139
140On T1 held-out, over K = the windows accepted in all five arms, with sumw_X = sum over K of
141(start in arm X minus observed request):
142
143- R0 = (sumw_A - sumw_B) / sumw_A (plain baseline vs current, descriptive)
144- R2 = (sumw_B - sumw_C) / sumw_A (analogy policy beyond the plain baseline); undefined, and H2
145 fails, when sumw_A <= 0
146- harm = worse60(C vs B) / |K|, worse60 = windows of K that start more than 60 s later in C than B
147- keep = acc_C / acc_A
148- f_circ = (busy_A - useful_A + hol_A) / (busy_A + hol_A), the circulating share of slot time in A
149 (descriptive); rho_X = busy_X / (maxdep_A - mina) (descriptive)
150
151On T2: retry fraction r = extra / runs; U = busy / (12 x h); pool exposure share
152E_p = (busy_p - union_p) / busy_p for pool-10-11; latency means and the nearest-rank p95 that
153kflow prints.
154
155## 7. Hypotheses and thresholds (frozen)
156
157T1 held-out:
158
159- V1 validity: anomalies = 0; replayerr = 0; viol = 0 and overlap = 0 in every arm; flow.om output
160 equals oracle.wl output. Otherwise the T1 result is INVALID.
161- H1 transport preserved: keep >= 0.99.
162- H2 beyond plain baseline: R2 >= 0.10.
163- H3 bounded harm: harm <= 0.05.
164- Decision: V1 and H1 and H2 and H3 all hold -> "NOT EXCLUDED": under the optimistic bound the
165 analogy-derived policy beats the plain baseline; a live, instrumented A/B (logging ticket joins
166 and refused opens) would be the next step and is not run here. Any of H1..H3 failing -> "STOP":
167 no improvement beyond the plain queueing baseline even under the optimistic bound.
168
169T2 held-out:
170
171- V2 validity: sys mismatch = 0, run mismatch = 0, conc max <= 12, overcap_s = 0. Otherwise the
172 T2 result is INVALID (the trace is incomplete for the continuity check).
173- H5 null prediction: when r <= 0.01 the analogy predicts no gain from bounded retry, and the R = 1
174 arm must drop 0 runs; then the kanban decision is "STOP (no circulation to remove)". When
175 r > 0.01: report dropped runs and dropped completed runs; "NOT EXCLUDED" only if dropped > 0 and
176 dropped completed = 0.
177
178Control (DRA-185 board): kflow must report extra > 0 and bad > 0 (it sees injected retries) and
179sys mismatch = 0 and run mismatch = 0. If not, kflow is not fit for T2 (T2 INVALID).
180
181## 8. Dev results already seen (T1 dev, before the freeze)
182
183From `evidence/wolfram/fix-dev.result.txt` (flow.om and oracle.wl agree byte for byte on dev and
184on fixtures f1, f2) and `evidence/wolfram/dev-ratios.txt`:
185K = 126; R0 = 892/13389 (0.0666); R2 = 12979/4463 (2.908); harm = 4/63 (0.0635); keep = 126/127
186(0.9921); f_circ = 245407/310895 (0.7894); rho_A = 213759/996770 (0.2145); rho_B = 47626/498385
187(0.0956). On dev the decision rule gives STOP (H3 fails). The thresholds in section 7 were chosen
188before these dev numbers were computed and were not changed after.
189
190## 9. Proof obligations (Lean 4, lean-verify)
191
192- L1: in the FCFS recursion start_i = max(arr_i, D_{i-1} + gp_i, el_i), D_i = start_i + s_i,
193 capping services pointwise (s' <= s) never makes any start later (start'_i <= start_i). So B
194 never harms a window relative to A (worse60(B vs A) = 0 is a theorem, not luck).
195- L2: for any list of windows with departure >= arrival, the number in the system at any time is
196 arrivals minus departures up to that time and is never negative.
197Reported as PROVED (axioms listed) or NOT_PROVED.
198
199## 10. Out of scope / NOT_RUN by design
200
201Live A/B on the scheduler; pool-lock wait measurement inside runs (not logged); refused
202spark-window opens and ticket join times (not logged); any GPU, model or LLM measurement.