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 / spec / r15-performance-proof.md

870 lines · 55228 bytes Raw Blame History Rendered
1# R15 performance proof (pre-registration)
2
3Status: METHODOLOGY. This file is committed before any R15 qualification data
4is collected. Its acceptance criteria are binding. Changing a criterion after
5qualification data exists requires a new commit to this file that says what
6changed and why, followed by a rerun of the whole qualification. Only a clean,
7candidate-bound GB10 run that meets every gated criterion below may say
8`R15_REACTION_PERFORMANCE = PASS`. R16 is not claimed by R15.
9
10ADR 0016 §48: compare against the existing pipeline; measure the seventeen
11listed quantities; do not accept architecture on aesthetic grounds.
12
13## 1. The resident path
14
15The resident path is the merged R14 organism (omega `f70ae10`):
16
17- `src/runtime/rx_world.c`: one object world, dependency index
18 (`propagate`), per-priority ready rings, R5 admission (`try_admit`), worker
19 threads, snapshot compute, re-validation and atomic publication, SHA-256
20 causal crumbs;
21- faculties `rx_omega.c` (R10), `rx_aien.c` (R11), `rx_aegis.c` (R8),
22 `rx_living.c` (R13/R14), R9 `rx_generation.c`, R12 `rx_resident_gpu.c`;
23- native C authority from aienos `c8ab65e` (`native/capability`), linked as in
24 R13;
25- the GB10 resident seat through physics `fecbedb`.
26
27Work progresses because a publication makes dependents ready. No harness code
28calls a faculty.
29
30## 2. The existing pipeline, and why the old Rust loops are not the baseline
31
32The prompt names three live central loops. Each was read at the current main
33(sovereign-core `63fe7a7`, aegis-runtime `2bbce76`):
34
35| Loop | What it actually computes | Same semantic work as R13? |
36|---|---|---|
37| sovereign-core `AienRuntimeSpine::run_until_complete` / `step` (`crates/aien-runtime/src/spine.rs:112-180`) | one batched LLM forward pass per step: prefill chunks and one decode token per sequence over a paged KV cache (`AienInferenceBackend::execute_step`) | no. There is no goal, plan, candidate realization, verification, measurement, selection, authority grant, GPU experiment or generation promotion. "Generation" there is sequence-id reuse. |
38| aegis-runtime `AgentEngine::execute_task` (`src/agent.rs:95-236`) | an OpenAI-style tool-calling chat loop against an HTTP LLM server (`127.0.0.1:18006`), running shell/file tools | no. Its unit of work is an LLM chat turn. |
39| aegis-runtime `HeartbeatEngine::pulse_once` / `start_loop` (`src/heartbeat.rs:94-235`) | every interval, scan SQLite pending tasks and run a chore (health GET, shell command, crumb, fixed string) | no. |
40
41These are reported as **NOT DIRECTLY COMPARABLE**. Timing them against R13
42would compare an LLM decode or a chat turn with a matrix-vector realization
43search. That is a different algorithm, not an orchestration difference. They
44are also Rust, which AIEN is retiring. Their orchestration *pattern* is what
45R15 must compare against, so the baseline is built from it.
46
47### 2.1 The sequential control (SEQ)
48
49SEQ is the narrowest fair sequential reference: the same process, the same
50objects, the same reaction bodies, the same authority, the same crumbs, the
51same R9 store and the same GPU seat. Only orchestration differs.
52
53- The dependency index does not wake anything (`propagate` is not consulted)
54 and there are no worker threads or ready rings.
55- One orchestrator thread runs the classic central loop of both legacy
56 designs: `run_until_complete` over `pulse` passes. A pulse walks a fixed
57 faculty order (§2.2) and, for each stage, polls semantic readiness the way a
58 heartbeat scans pending tasks: a stage is ready when a field it declares as a
59 trigger has a newer version than the stage last saw. A ready stage is run to
60 completion on the orchestrator thread before the next stage is considered.
61- A stage run is the engine's own activation (`run_one`): liveness check,
62 capability validation, snapshot, the reaction function, stale-read check,
63 capability re-validation at publication, write-set check, atomic
64 publication, crumb. Nothing is skipped. The crumb's wake cause is the
65 writer of the newest trigger field that made the stage ready, so the causal
66 record has the same meaning.
67- A GPU stage posts its claim on the same ring and then the orchestrator
68 waits for the completion (host wait) before continuing, as "dispatch GPU,
69 wait" does in a central loop.
70- R6 stability accounting, quarantine and budgets apply unchanged.
71- When a full pulse runs nothing, the orchestrator polls again without
72 sleeping (busy poll with `yield`). The legacy spine sleeps 5 ms when idle and
73 the heartbeat sleeps for its interval; SEQ does neither, so it is the
74 strongest honest version of the pattern, not a deliberately bad one.
75
76SEQ is selected at world creation (`rx_world_init_sequential`). It is a
77measurement reference, never a production mode; the receipt records the
78symbol that selects it.
79
80### 2.2 Fixed faculty order (SEQ pulse)
81
82production (`workload.serve`) → AEGIS (`living.experiment.ask`, `aegis.decide`,
83`root.install`) → AIEN (`observe`, `predict`, `explain`, `assess`, `plan`) →
84Omega (`omega.watch`, `omega.reconsider`, `omega.synthesize.k`,
85`omega.verify.k`, `omega.measure.k` for k = 0..slots-1, `omega.select`) →
86experiment (`living.experiment.prepare`, `living.blackwell.add` [GPU, wait],
87`living.experiment.evidence`) → AIEN (`aien.experiment`) → generation
88(`generation.prepare`, `generation.promote`, `generation.restore`). This is
89the order the R13 golden path narrates (goal → AIEN → Omega → authority → GPU
90→ evidence → promotion) with production first in every pulse. Reactions not
91in this list, if any are registered, are polled last in registration order.
92
93## 3. Configurations
94
95| Name | Orchestration | Threads doing semantic work | Build |
96|---|---|---|---|
97| RES-4 | resident | 4 workers (the R13 production configuration) | production |
98| RES-1 | resident | 1 worker | production |
99| SEQ | sequential control | 1 orchestrator | production |
100| RES-1-NODIGEST | resident | 1 worker | measurement build `-DRX_MEASURE_NO_CAUSAL_DIGEST` |
101
102RES-1 vs SEQ isolates the orchestration mechanism (one thread each).
103RES-4 vs SEQ compares the architecture as deployed against the central loop.
104RES-1-NODIGEST exists only to price causal evidence: crumbs are still
105appended, their SHA-256 digests are not computed. It never runs a correctness
106gate; the receipt records that production binaries do not define the macro.
107
108All configurations use the same compiler (gcc 13.3.0), `-O2`, the same
109sources, and the same producer (one closed-loop production client thread).
110
111## 4. Workloads and semantic operations
112
113### W-PROD: production matvec (the semantic operation of R13)
114
115One **production operation** = one request (M=64, N=256, seed = seq ·
1160x2545F4914F6CDD1D) published by the producer through
117`rx_world_publish_external`, answered by `workload.serve` with a result whose
118digest equals the reference digest recomputed by the producer, and read back
119by the producer. Throughput = production operations per second of wall time.
120A wrong digest is a correctness failure, not a slow operation.
121
122### W-EPISODE: the R13 living episode
123
124One **semantic result** of adaptation = goal MET: human goal → AIEN plan →
125Omega epoch → verification → 16 GPU trials on the existing R8 grant →
126evidence → AIEN belief → selection → R9 candidate → promotion → in-force
127record → production runs it → AIEN assesses the goal MET. Same objects,
128policy, `TARGET_PCT` 55, `hot_calls` 64, `hot_ns` 200000, `margin_pct` 10 as
129`rx_r13_living.c`.
130
131### One trial
132
133One trial is one fresh process running one configuration through:
134
1351. build the body (authority, R8 grant acquisition, objects, reactions);
1362. placement A725, threads on the A725 cores, serve until Omega's first
137 selection and AIEN's confirmed prediction exist (warm-up, not measured);
1383. **BEFORE window**: 2 s untimed warm-up of production, then a 5 s measured
139 window of steady production on the A725 cores;
1404. threads to the X925 cores, placement X925, goal published: **ADAPT
141 window** from the goal crumb to the promotion crumb, production running
142 throughout;
1435. wait until AIEN assesses the goal MET on the in-force record;
1446. **AFTER window**: 2 s untimed warm-up, 5 s measured window of steady
145 production on the X925 cores with the promoted realization in force.
146
147## 5. Benchmark levels
148
149### Level 1 — substrate microbenchmarks (RES-1 and SEQ where meaningful)
150
151Pinned single process, X925 cpu 7 (driver) and 8 (worker/orchestrator),
152authority = native C, evidence on. 5 runs × 10,000 samples after 1,000
153warm-up samples per measure.
154
155- **A activation latency**: external publication timestamp (taken inside
156 `rx_world_publish_external` before the lock is released) → the reaction's
157 `run_one` start. RES-1: through the dependency index, ready ring and worker
158 wake. SEQ: through the orchestrator's readiness poll. p50/p90/p95/p99/p99.9/max.
159- **B dependency propagation**: one committed field → dependents inserted in
160 the ready ring, at fanout 1, 2, 4, 8, 16, 32, 64, 128, 256 (one object, n
161 subscribed reactions). Cost per wave and per dependent (CPU ns inside
162 `propagate`, measured with `CLOCK_MONOTONIC` around the call under the
163 lock).
164- **C scheduler overhead**: ready → admitted → running, split into
165 uncontended; resource-blocked (slots = 1, a holder releases); priority
166 contention (7 classes, starvation bound 4). Reported as CPU time spent in
167 admission/queue code per activation (thread CPU clock) and wall time
168 ready→running.
169- **D publication cost**: reaction return → atomic publication committed →
170 dependents visible (propagate done), per commit.
171- **E capability validation**: the R7/R8 fast path. `rx_world_validate_cap`
172 on an existing valid capability through the native authority view, 1e6
173 checks, plus the whole activation cost of a reaction holding an existing
174 grant. No policy evaluation, no mint.
175- **F causal evidence overhead**: the same W-PROD loop, RES-1 vs
176 RES-1-NODIGEST: CPU cycles per operation (PMU `cpu_cycles`), latency,
177 crumb bytes per operation, throughput.
178- **G generation barrier**: `rx_gen_promote` on a prepared candidate while a
179 production thread keeps publishing: candidate prepared → barrier begins →
180 durable flip → receipt complete → live work continues. 30 barriers per run,
181 5 runs. Reports latency distribution, production commits during the
182 barrier, bytes written to the store, `fsync`/`fdatasync` calls (counted by
183 the store's I/O wrapper).
184
185### Level 2 — CPU/GPU cooperation (GB10 seat, RES-1 and SEQ)
186
187The R12/R13 resident seat, fixed add of fields 0 and 1 (a physical
188cooperation benchmark, not a matvec). 5 runs × 256 claims.
189
190Timestamps per claim: CPU input publication; claim posted on the ring; chip
191pickup and chip completion (the chip's `%globaltimer`, written by the seat to
192its heartbeat block; the difference is GPU execution time); host observes the
193completion; world publication committed; dependent (`living.experiment.evidence`)
194starts. Reported separately: host enqueue/claim time, GPU execution time,
195publication time, dependent wake time, end to end.
196
197**CPU↔GPU synchronization** is counted by instrumentation: claim notices
198written (doorbell/ring store), completion notices taken, host blocking waits
199(SEQ), fences (the seat's `MEMBAR.SC.SYS` per result, counted per
200completion), explicit barriers (`rx_world_wait_quiescent`, seat hold). Per
201GPU result. Host polls that found nothing (channel waits) are NOT
202synchronization events; they are reported separately as **host spin cost**
203(empty polls per GPU result, both configurations, not gated). See amendment
204A1 (§21).
205
206Also: serialization/copy bytes on the rings (descriptor bytes) and the
207coherent projection; claim-ring occupancy (max and mean in-flight); GPU
208residency (§6.10); backpressure (claims waiting on R5 admission).
209
210### Level 3 — the R13 living workload (W-EPISODE, RES-4)
211
212From the crumbs of each trial's ADAPT window: cognitive reaction time (goal →
213AIEN plan), Omega search/verification time (plan → selection), GPU
214experiment time (first claim → evidence), promotion time (candidate →
215in-force), production throughput during adaptation, BEFORE and AFTER steady
216production, adaptation cost, time to benefit, and the crossover:
217
218- **adaptation cost** = Σ (t_end − t_start) over every non-production
219 activation crumb from the goal crumb to the in-force crumb (worker time
220 occupied by adaptation, including sandboxed verification and GPU trials),
221 in ns;
222- **gain per operation** = reference ps per call on X925 − selected ps per
223 call (selection fields 7 and 5), in ns;
224- **crossover** = adaptation cost / gain per operation, in production
225 operations; and in seconds at the AFTER throughput.
226
227### Level 4 — resident vs sequential (W-EPISODE trials, all configurations)
228
229BEFORE/AFTER throughput, ADAPT-window production rate, episode wall time
230(goal → goal MET), energy per production operation and per episode, wake
231amplification, wasted reactions, invalidation and conflict rates.
232
233## 6. Mandatory metrics: definitions
234
2351. **Semantic operations/s**: production operations per second (§4) in
236 BEFORE, ADAPT and AFTER windows; episodes per hour.
2372. **Activation latency**: L1-A distribution; also, per trial, crumb
238 `t_start` minus the timestamp of the wake-cause crumb for every
239 activation (distribution).
2403. **Dependency propagation cost**: L1-B, per fanout.
2414. **Scheduler overhead**: L1-C (CPU and wall separately); per trial, CPU ns
242 in scheduling code per activation (instrumented counters).
2435. **AEGIS fast-path cost**: L1-E.
2446. **Generation barrier latency**: L1-G and the promotion in every trial,
245 with production commits during the barrier.
2467. **Serialization bytes**: instrumented, never inferred: snapshot bytes
247 copied into `RxCtx`, crumb bytes appended, coherent-projection bytes
248 written, ring descriptor bytes, R9 bytes written. Per operation.
2498. **CPU↔GPU synchronization count**: L2 definition (synchronization
250 events, amendment A1), per GPU result; host spin cost (empty polls per
251 GPU result) reported alongside, not gated.
2529. **Memory traffic**: ARM PMU per-thread counters inherited by all threads
253 of the process, over each window: `ll_cache_miss_rd` (last-level read
254 misses; × 64 B = DRAM read bytes, derivation stated), `bus_access`
255 (× 64 B = bus bytes, derivation stated), `l2d_cache_refill`,
256 `mem_access`. Per operation. `perf_event_paranoid` is set to 1 for the run
257 and restored; the receipt records both values.
25810. **GPU residency**: fraction of 1 ms samples during silicon runs in which
259 the seat is established and its live counter (`RX_SEAT_HB_LIVE`) advanced
260 since the previous sample; plus physical occupancy = Σ GPU execution time
261 / wall time. KV/memory allocation percentage is never used.
26211. **Resource utilization**: process CPU time (user+sys, `getrusage`) per
263 window, per-thread CPU of workers/orchestrator, R5 slot peak and mean
264 held slots, resident claim peak, GPU occupancy (10).
26512. **Wasted reactions**: activations that published nothing, by class:
266 NOOP, INVALIDATED (stale input), REJECTED (authority or write set at
267 publication), BLOCKED_AUTHORITY, FAILED, QUARANTINE, replays (an
268 activation re-run under the same cause after invalidation). Fraction of
269 all activations and per consequential stimulus.
27013. **Invalidation rate**: INVALIDATED / activations.
27114. **Conflict rate**: (INVALIDATED + REJECTED for write-set/stale) /
272 activations.
27315. **Wake amplification**: reaction wake attempts (RES: `demand` calls; SEQ:
274 stage readiness polls) / consequential external stimuli (outside
275 publications that led to at least one commit). Also successful
276 activations (commits) per stimulus.
27716. **Causal-trace overhead**: L1-F.
27817. **Energy per semantic result**: §7.
279
280## 7. Energy
281
282Physical telemetry only. Sources inspected on this machine (2026-09-28):
283
284- GB10 graphics energy counter (`nvmlDeviceGetTotalEnergyConsumption`, mJ,
285 hardware accumulator) and power (`nvmlDeviceGetPowerUsage`). Verified to
286 respond to GPU load and to barely respond to full load on all 20 CPU cores
287 (4.1 → 4.7 W), so it covers the graphics domain only.
288- The SoC power manager's telemetry block `SPBM` (ACPI `NVDA8800` "MTEL",
289 memory window `0x1c238000`, 4 KiB) exposes hardware energy accumulators for
290 the package (`SPBM_PKG_ENERGY_VALUE_ACCUMULATE`, +0x344), CPU P-cores
291 (+0x35c), CPU E-cores (+0x350), GPC (+0x368) and GPM (+0x374), and
292 instantaneous telemetry for total system power (+0x300) and SoC package
293 (+0x304). With Secure Boot on, kernel lockdown (integrity) forbids
294 `/dev/mem`; no in-tree driver binds `NVDA8800`; no machine-owner key is
295 enrolled. It is therefore not readable today without an owner decision.
296
297Method (binding): energy per semantic result = Δ(package energy accumulator)
298over the window / production operations in the window (and / episodes for
299W-EPISODE), sampled at the window boundaries and at 10 Hz within it (to
300detect overflow and to report power). Idle baseline: 5 s of package energy
301with the process started and quiescent immediately before BEFORE; reported
302gross and net (gross − idle power × window). CPU P/E and GPU domain energies
303reported alongside. GPU-domain energy from NVML is recorded as a second,
304independent source. Uncertainty: accumulator resolution and sampling jitter at
305window edges (±1 sample period of power) are reported per window.
306
307**If package energy cannot be read by a physical hardware source at
308qualification time, metric 17 is incomplete and R15 cannot PASS.** GPU-domain
309energy alone is not accepted as energy per semantic result. How the package
310accumulators become readable (owner-key signed read-only telemetry reader, or
311an external logging meter) is an owner decision; the chosen method will be
312recorded in a new commit to this section before qualification.
313
314## 8. Fairness controls
315
316- Same sources, compiler, flags, authority, R8 grant, objects, reactions,
317 checks, crumbs and R9 store in every configuration (§2.1). SEQ runs
318 `run_one` itself.
319- Same producer, same seeds, same M, N, same closed-loop concurrency (one
320 outstanding request).
321- Same core class per phase: A725 for warm-up and BEFORE, X925 for ADAPT and
322 AFTER, in every configuration. All process threads are confined to that
323 class's cores (A725: 0-4, 10-14; X925: 5-9, 15-19). Level 1 pins single
324 cores on X925.
325- Same GPU (one GB10 seat), same claim ring.
326- Warm state: a window starts only after the §4 warm-up steps; no
327 configuration is measured cold against another warm.
328- Realization: AFTER windows are compared only between trials whose in-force
329 realization identity is the same; a pair that differs is reported and not
330 entered into the AFTER ratio. At least 10 valid pairs are required.
331- No safety check, provenance or authority is disabled in any configuration
332 that is compared for throughput, except RES-1-NODIGEST, which exists only
333 for metric 16.
334
335## 9. Machine preparation
336
337- CPU governor `performance` on all cores (recorded), frequency boost as
338 reported by the kernel (recorded), scaling_cur_freq of the used cores
339 recorded before and after each trial.
340- Thermal: before each trial the harness waits (up to 120 s) until every
341 `thermal_zone` reads ≤ 55 °C, and records all zone temperatures and GPU
342 temperature before and after. A trial that starts hotter after 120 s is run
343 and flagged, not dropped.
344- Nothing else heavy runs: the harness records the load average and the top
345 CPU consumers before the qualification; `aien-astrosage` or any other model
346 server must not be serving.
347- Seat: one GB10 seat per trial process (begin before step 2, finish at the
348 end).
349
350## 10. Trials, interleaving, statistics
351
352- W-EPISODE: 12 rounds. Each round runs RES-4, RES-1, SEQ, RES-1-NODIGEST as
353 separate processes, in an order rotated by round (Latin square), so no
354 configuration always runs first or last. Pairs are (RES-1, SEQ),
355 (RES-4, SEQ) and (RES-1, RES-1-NODIGEST) within a round.
356- Level 1: 5 runs per measure, interleaved RES-1/SEQ where both exist.
357- Level 2: 5 runs × 256 claims per configuration, interleaved.
358- Fixed seeds everywhere (production seeds as §4; bootstrap seed 0x15).
359- Every raw observation is recorded (§12). Reported: median, p95/p99 for
360 latencies, and 95% bootstrap confidence intervals (percentile method,
361 10,000 resamples) of the median of paired ratios for primary comparisons.
362- Outliers: nothing is discarded. A trial that crashes, times out or fails a
363 correctness check is a failed trial; any failed trial in a compared
364 configuration fails the qualification (it is not rerun away). Level 1
365 samples are never trimmed; max and p99.9 are reported.
366- No best-of-N is reported as representative.
367
368## 11. Acceptance criteria (gated)
369
370> **Amendment A1 (2026-09-28, after qualification attempt 1, decided by
371> Drake): G10 changed.** G10 now counts CPU↔GPU synchronization EVENTS per
372> GPU result (claim notices, completion notices, fences, explicit barriers,
373> host blocking waits); empty completion polls are excluded from the gate
374> and reported, not gated, as "host spin cost: empty polls per GPU result"
375> for both configurations. Why, what the data showed, and the limit (a
376> multi-claim-in-flight phase, Option B, is deferred to a later gate) are in
377> §21. Attempt 1 (run 20260929T020536Z-ad8e1f2ea4e4-silicon) stays FAIL as
378> recorded; the whole qualification is rerun under this amendment.
379
380Budgets are justified by the production goal (a steady matvec service that
381must keep serving while the organism adapts), by the measured legacy dispatch
382units already in evidence (R8: legacy `spark-aegis` process-spawn floor
383221 µs per authority decision; sovereign-core spine idle sleep 5 ms), and by
384the ADR requirement that evidence and authority stay on.
385
386| # | Criterion | Threshold | Why |
387|---|---|---|---|
388| G1 | Correctness in every trial of every compared configuration | 0 wrong results; 0 illegal transitions; crumbs verify; goal MET; generation advanced exactly once; 0 uses of a realization not in force; AEGIS/root not woken during the episode | performance of a wrong system is meaningless |
389| G2 | Orchestration mechanism, AFTER throughput RES-1 / SEQ | median paired ratio ≥ 0.90 and 95% CI lower bound ≥ 0.85 | the reaction mechanism may cost a little per operation (≤ 10%) on the harshest case: a ~3-5 µs operation where per-activation orchestration is the largest share |
390| G3 | Production during adaptation, ADAPT-window rate RES-4 / SEQ | 95% CI lower bound of the median paired ratio > 1.0 | the architectural claim: adaptation does not stop production |
391| G4 | Production during adaptation, RES-4: ADAPT-window rate / BEFORE-window rate of the same process | median ≥ 0.50 | adapting may not halve the production service the body gave before the goal (BEFORE runs the reference on A725, the slower class, so this cannot be met by the faster cores alone hiding a stall) |
392| G5 | Activation latency (L1-A, RES-1, uncontended) | p50 ≤ 50 µs and p99 ≤ 221 µs | a reaction activation must be cheaper than the legacy dispatch unit (R8 spawn floor) |
393| G6 | AEGIS fast path (L1-E) | p50 ≤ 1 µs and p99 ≤ 5 µs | ≤ 20% of the cheapest semantic operation (~5 µs) |
394| G7 | Generation barrier (L1-G and per-trial promotion) | production commits during the barrier in ≥ 90% of barriers; barrier latency p99 ≤ 500 ms | promotion must not be a global stop; durable flip at human scale |
395| G8 | Causal evidence overhead, AFTER throughput RES-1 / RES-1-NODIGEST | median ≥ 0.50 | evidence may not cost more than the work it witnesses |
396| G9 | Energy per production operation, AFTER window, RES-1 / SEQ (package, net) | median paired ratio ≤ 1.15 and 95% CI upper bound ≤ 1.25 | mechanism cost must be visible in energy and bounded like G2 |
397| G10 | CPU↔GPU synchronization EVENTS per GPU result (L2), RES-1 vs SEQ: claim notices, completion notices, fences, explicit barriers, host blocking waits; empty polls excluded (amendment A1, §21) | RES-1 ≤ SEQ | dependency-driven completion must not need more synchronization than a central wait |
398| G11 | Adaptation amortizes (L3, RES-4) | median crossover ≤ 10,000,000 production operations | an adaptation that does not repay its cost within the order of minutes of production at the measured rate is not accepted |
399| G12 | Wake amplification, ADAPT+AFTER, RES-4 vs SEQ | RES-4 wake attempts per consequential stimulus ≤ SEQ readiness polls per consequential stimulus | the dependency index must do less wake work than polling |
400| G13 | Wasted reactions per consequential stimulus, RES-1 vs SEQ | median ratio ≤ 1.10 | reactions may not waste more activations than the same stages driven centrally |
401| G14 | Conflict rate, RES-4, ADAPT window | median ≤ 25% of activations | concurrency may not turn into mostly re-done work |
402| G15 | GPU residency during silicon trials | seat established and live in ≥ 99% of samples | the seat is resident, not relaunched per use |
403| G16 | Every mandatory metric 1-17 present in the summary, reproduced by the reducer from raw evidence | all present | ADR §48 |
404
405Reported, not gated (must be present): propagation cost by fanout, scheduler
406CPU/wall split, publication cost, serialization bytes, memory traffic,
407resource utilization, invalidation rate, host spin cost (L2 empty polls per
408GPU result, RES-1 and SEQ, amendment A1), BEFORE-window comparisons, RES-4 vs
409RES-1, GPU-domain energy, episodes per hour, crossover in seconds.
410
411The architecture need not win every microbenchmark. Any metric where the
412resident path is worse than SEQ is listed in the receipt under
413`regressions` with its size and the justification.
414
415If a gated criterion fails: no PASS. Profile, fix the defect at its layer, add
416coverage, rerun the correctness gates, and repeat the entire qualification.
417
418## 12. Evidence
419
420- Raw: `evidence/R15/raw/<run-id>/` — one JSON Lines file per process
421 (`<level>-<config>-<round>.jsonl`), one record per observation (sample,
422 window, crumb-derived interval, counter snapshot, telemetry sample), each
423 with run id, configuration, round, trial, and monotonic timestamps; plus
424 `machine.json` (§13) and `SHA256SUMS`.
425- Build provenance: `build-provenance.json` names the exact omega, physics and
426 aienos archive commits and digests, compiler and make digests and versions,
427 build command/log digest, and source-to-binary hashes. `final-state.json`
428 records final HEAD/tree state and executable hashes after reduction.
429 `PROVENANCE_SHA256SUMS` covers both records, the build log and every staged
430 executable. Section 22 defines the required isolated build and checks.
431- Reducer: `tools/r15_reduce.c` (C, no Python), deterministic, reads only the
432 raw directory, recomputes every summary number and every gate, and writes
433 `summary.json`. The receipt embeds the reducer source SHA-256 and the raw
434 directory digest (SHA-256 of `SHA256SUMS`).
435- Receipt: `evidence/R15/<sha256>.json`, schema
436 `AIEN_RX_R15_REACTION_PERFORMANCE_V1`, named by the SHA-256 of its own
437 bytes: candidate_commit, run_commit, candidate_bound, tree_dirty,
438 silicon_observed, hardware identity, aienos and physics commits, benchmark
439 binary SHA-256s, source archives, toolchain/build provenance, final state,
440 raw digest, reducer digest, all 17 metrics, legacy status
441 (NOT DIRECTLY COMPARABLE, §2), resident and SEQ results, paired comparisons,
442 CIs, thresholds and outcomes, correctness reruns, regressions, `not_claimed`.
443- No headline number is edited by hand. The receipt's metric values are
444 copied by the reducer.
445
446## 13. Hardware identity (recorded per run)
447
448Host name, `/etc/machine-id` SHA-256, kernel release, CPU MIDR per core and
449core-class map, governor and frequencies, memory size, GPU name and PCI id,
450driver version, Secure Boot and lockdown state, `perf_event_paranoid` before
451and during, thermal readings, omega/aienos/physics commits, compiler version
452and digest, build command, source-archive SHA-256s, benchmark/reducer SHA-256s,
453and final HEAD/tree state.
454
455## 14. Correctness reruns required before a PASS
456
457R3, R7, R8, R9, R10, R11, R12 host, R12 silicon, R13 host, R13 silicon, R14
458host, R14 silicon, on the candidate commit, clean tree, recorded in the
459receipt.
460
461## 15. Not claimed by R15
462
463R16; whole-project performance beyond the measured workloads; LLM decode or
464agent-loop performance (the legacy loops, §2); general cognition; open-ended
465synthesis; energy of anything outside the measured windows.
466
467## 16. Clarification C1 (2026-09-28, before any qualification data)
468
469Committed after a recovery audit of the branch and the machine and before
470any R15 qualification data exists. It corrects measurement definitions that
471were ambiguous or internally contradictory. It does not change G1–G16, their
472thresholds, the configurations, the workloads or the statistics (§3–§11).
473Sections 1–15 above are unchanged and remain as pre-registered at `a4c6123`.
474An unpushed local commit (`f714c08`) had rewritten §7 in place; that rewrite
475is not adopted. Its telemetry reader and preflight data are kept under
476`research/m15/spbm/`; the energy method is settled only by C2 (item 10).
477
4781. **Scheduler CPU and wall time (§5 L1-B, L1-C; §6.3, §6.4).** Wall time is
479 `CLOCK_MONOTONIC`. CPU time is `CLOCK_THREAD_CPUTIME_ID` read on the thread
480 that runs the measured code, both ends of an interval on one thread. They
481 are recorded side by side and never substituted for one another. §5 L1-B
482 says "CPU ns … measured with `CLOCK_MONOTONIC`"; that is wall time, so
483 L1-B reports both per wave. Scheduling code is: wake (`demand`),
484 admission and ready-ring insertion, a worker's ready-ring pop, and the
485 post-activation release/admission/deferred/parked wakes (RES); readiness
486 polling of every stage and admission (SEQ). Per-activation values are in
487 `RxTiming.sched_ns` / `sched_cpu_ns`; process totals in
488 `RxStats.sched_wall_ns` / `sched_cpu_ns`, counted once however deeply the
489 code nests. Metric 4 per activation = total / activations.
4902. **Dependency propagation (§6.3, L1-B).** A wave's counters
491 (`RxPropWave`): subscriptions inspected, subscriptions matched
492 (generation and field mask), wake attempts, wakes accepted (a DORMANT
493 reaction made waiting), **new ready insertions**, coalesced, deferred and
494 suppressed wakes, and wall and CPU time. "Dependents inserted into the
495 ready ring" is `ready_inserts`; cost per dependent = wave time /
496 `ready_inserts`. An L1-B sample in which `ready_inserts` differs from the
497 fanout is a failed sample, not a data point. Metric 15's RES wake
498 attempts remain `wakes` (every `demand` call), as §6.15 defines.
4993. **Serialization bytes (§6.7).** "Bytes" means **copied bytes**: bytes
500 processor code writes into a destination as a copy or serialization of
501 data that exists elsewhere. Counted per path, each its own counter:
502 snapshot entries filled into `RxCtx`; current fields copied into the
503 publication staging buffer; crumb records appended; coherent table entry
504 members and field windows written; descriptors written to and copied out
505 of the processor→seat ring (publications, claims, shutdown) and the
506 seat→processor ring; window relocations; the coherent-bind copy; R9 bytes
507 passed to `write()` (item 5). Not counted as copies, and reported as
508 such: the reaction bodies' own data structures (identical in every
509 configuration); one-time seat launch images (made before any window);
510 the graphics chip's own reads and writes of descriptors and windows,
511 which are not processor copies. Chip-side traffic is reported separately
512 as **transferred bytes, derived**: claims posted × 128 B descriptor read
513 + results taken × 128 B descriptor written + per-claim window and
514 heartbeat bytes loaded and stored, where the per-claim byte counts are
515 enumerated from the seat program's load and store instructions
516 (`rx_resident_gpu.c`) and listed in the receipt beside the derivation. No path is assumed zero-copy because of the architecture.
5174. **Timing buffers.** `rx_world_timing_status` returns `RX_ERR_FULL` when any
518 sample was dropped. A measure whose buffer dropped a sample fails; its
519 statistics are not reduced.
5205. **R9 I/O (L1-G, §6.7).** Option A: each store counts the bytes it passes
521 to `write()` and the `fsync` calls it makes (`rx_gen_store_io`). Each
522 window records before/after snapshots of the trial's own store, and of
523 the process total; if the process-total delta differs from the sum of
524 the trial's stores' deltas, the window fails (unrelated store activity).
525 Directory creation, `rename` and `unlink` are metadata operations, counted
526 by the sync that follows them, not as bytes.
5276. **Instrumentation parity (§8).** Configurations that are compared run
528 the same instrumentation. Counters in `RxStats` are always on in every
529 build. The per-activation timing buffer is off in every W-EPISODE trial
530 of every configuration (activation latency in trials comes from crumb
531 timestamps, §6.2) and on in both RES-1 and SEQ for L1-A, L1-B and L1-C.
532 Instrumentation overhead is measured, not assumed: an L1 W-PROD run of
533 RES-1 and of SEQ with the timing buffer on and off (5 runs each,
534 interleaved), reported as a throughput ratio, not gated.
535 `RX_MEASURE_NO_CAUSAL_DIGEST` is used only for RES-1-NODIGEST (metric 16).
5367. **`perf_event_paranoid`.** The spec (§6.9) says 1; the Codex handoff said
537 0. 1 is correct for the PMU model in item 8 (per-task counting of the
538 process's own threads including kernel mode needs ≤ 1; 0 would only be
539 needed for per-CPU counting, which is not used). Values: **original 4**
540 (Ubuntu boot default, `CONFIG_SECURITY_PERF_EVENTS_RESTRICT=y`;
541 this machine was found at 0 on 2026-09-28 after an unlogged change and
542 restored to 4 at the audit), **qualification 1**, **restored 4**. The
543 qualification script records all three in `machine.json` and fails the
544 run if the restore does not read back 4.
5458. **PMU model (§6.9).** GB10 has two CPU PMUs: `armv8_pmuv3_0` (type 10,
546 Cortex-A725, MIDR part 0xd87, cpus 0-4,10-14) and `armv8_pmuv3_1` (type
547 11, Cortex-X925, part 0xd85, cpus 5-9,15-19); types and cpu lists are
548 read from sysfs at run time and recorded. Events (raw config, identical
549 on both): `cpu_cycles` 0x11, `inst_retired` 0x08, `bus_access` 0x19,
550 `ll_cache_miss_rd` 0x37, `l2d_cache_refill` 0x17, `mem_access` 0x13.
551 - Source and scope: per task (`pid = 0`, `cpu = -1`), opened by the
552 trial process's main thread before any other thread is created, with
553 `inherit = 1`, so every thread of the process is counted and nothing
554 else is. One event per (event, PMU) pair, 12 descriptors, no groups
555 (group reads are not relied on with `inherit`). `exclude_hv = 1`; user
556 and kernel mode are both counted.
557 - Boundaries: opened `disabled`; each window does `RESET` + `ENABLE` at its
558 start timestamp and `DISABLE` at its end timestamp, then reads.
559 - Read format `TOTAL_TIME_ENABLED | TOTAL_TIME_RUNNING`. The event count
560 is the **raw sum over the two PMUs**. It is **never scaled** by
561 enabled/running: on a heterogeneous machine a task's event on one PMU is
562 not running while the task is on the other class, so running < enabled
563 does not mean multiplexing. Multiplexing test: for every event,
564 running(A725) + running(X925) must equal enabled within 0.1%; a window
565 that fails it reports its PMU values as multiplexed, unscaled, with the
566 ratio, and metric 9 does not use it.
567 - Attribution after migration was checked on this machine before this
568 commit: one thread ran a fixed loop on cpu 1 (A725) then on cpu 6
569 (X925); `inst_retired` counted 802.2M on the A725 PMU and 801.6M on the
570 X925 PMU (sum 1.604G for 2 × 800M), running fractions 0.5827 + 0.4173
571 = 1.0000, and all six events fitted without multiplexing.
572 - Not counted: kernel threads acting for the process (for example
573 writeback) and other processes. Metric 9 is stated as the process's
574 own traffic.
5759. **SEQ parity before SEQ is a baseline.** SEQ is used as a baseline only
576 after a semantic parity gate passes on the candidate: RES-1 and SEQ from
577 the same initial state and stimulus reach equivalent goal, plan, search
578 epoch, verified selected realization, GPU experiment evidence, AIEN
579 belief, generation identity, in-force realization and authority outcome,
580 both crumb graphs verify, and no trigger is lost; repeated runs. The gate
581 and its runs are recorded in the receipt with the correctness reruns
582 (§14).
58310. **Energy.** §7 stands as written. The owner enrolled a machine-owner key
584 on 2026-09-28 and a signed read-only SPBM reader exists
585 (`research/m15/spbm/`). Before it may supply metric 17, a further
586 clarification **C2** will record: accumulator width, scale and rollover
587 behaviour; monotonicity; idle, CPU, GPU and combined-load comparisons;
588 the GPU-domain comparison with NVML; and the stated uncertainty. No R15
589 qualification data is collected before C2 is committed. If C2 cannot
590 make the method defensible, metric 17 is incomplete and R15 does not
591 PASS (§7).
592
593## 17. Clarification C2 (2026-09-28, before any qualification data)
594
595Settles the energy method promised in §16 item 10. G1–G16 and §7's binding
596method are unchanged; this names the physical source and its limits.
597
598- **Source.** Package energy for metric 17 is the SPBM package accumulator
599 (`SPBM_PKG_ENERGY_VALUE_ACCUMULATE`, +0x344) read through the owner-key
600 signed read-only reader `research/m15/spbm/aien_spbm_readonly.c` as hwmon
601 `energy1_input` (label `pkg`). Secure Boot and integrity lockdown stay on.
602 The loaded module's srcversion and `.ko` hash are recorded per run and
603 must match the source hashes in `research/m15/spbm/runs/*/source-binary.sha256`.
604- **Width, scale, reset.** 32-bit register read, 1 mJ per count (exposed as
605 µJ). On 2026-09-28 the package counter read 196,494 J after 10,514 s of
606 uptime (18.7 W mean), matching measured 16–21 W: it counts from zero at
607 boot and did not wrap. It wraps at 2^32 mJ ≈ 4.29 MJ (~54 h of uptime at
608 22 W). Rollover and the overflow register's behaviour were never observed;
609 they are not unwrapped. A window is refused if any overflow flag is set,
610 any counter decreases, or headroom is below the window length at a
611 600 W bound (`sample.c`).
612- **Validation** (`research/m15/spbm/runs/c2-20260928-01`, 3 rounds × idle,
613 CPU = 4 X925 cores, GPU = resident seat claims, both; 101 samples per
614 10 s window, all monotonic, no overflow): package accumulator rate minus
615 integrated SoC-package power = +0.1…+0.5 W in all 12 windows (16.0–21.4 W),
616 so the 1 mJ scale agrees with the firmware's power telemetry to ~2–3%.
617 CPU load raised CPU-P by ~4.7 W; GPU load raised GPM by ~2.5 W and NVML
618 energy by ~1.5 W; combined load was not additive (the two loads shared
619 cores; seat claim rate halved) and is reported as observed.
620- **GPU domain.** GPC reads 0 in every window and is not used. GPM and NVML
621 both respond to GPU load but differ by ~1 W under it; they are reported
622 side by side as different measurement boundaries, never substituted.
623- **Uncertainty stated with every energy result:** 1 mJ resolution; ±1
624 sample period (100 ms) of power at each window edge; the observed
625 accumulator-versus-power discrepancy of up to 0.5 W; no external meter
626 calibration, so absolute accuracy is not claimed. Metric 17's primary use
627 is the paired RES-1/SEQ ratio (G9) on the same sensor.
628- **Machine noise.** LM Studio and the NVIDIA Personal AI Router were
629 resident during this validation; §9's "nothing else heavy runs" applies
630 to qualification, and the qualification script records the process list.
631
632## 18. Clarification C3 (2026-09-28, before any qualification data)
633
634Adds recording of the machine's physical state. G1–G16, TARGET_PCT 55, the
635workloads, the statistics and every acceptance threshold are unchanged. This
636is observability, not a performance exemption.
637
638- **Why.** On 2026-09-28, before a full power-off, the X925 cores could not
639 sustain their clock: under sustained load they fell from ~3.89 GHz to
640 ~3.0–3.5 GHz while package power stayed around 19.5–21.5 W. The A725 was
641 unaffected. A full power-off removed it: the X925 then held 3.891 GHz for
642 2 minutes and package power rose to 29–32 W when required. In that state
643 the R13 workload's optimized/incumbent ratio is ~0.38 against 0.55. The
644 cause of the power-limited state is not established. Diagnostic evidence:
645 branch `research/r15-hwchar`, `research/r15-hwchar/RESULT-postboot.md`. It
646 is not qualification evidence.
647- **Why cycle counters.** The kernel's reported frequency did not show the
648 cut (`scaling_cur_freq` stayed at 3.9 GHz). The effective clock is each
649 core's cycle counter, read system-wide from outside the measured processes
650 (`perf stat -a -A -e cycles -I 1000`), over the core's busy time from
651 `/proc/stat`.
652- **Recorded every run** (`tools/r15_machine_state.sh`, from
653 `tools/r15_qualify.sh`): per-core cycles each second (`machine-perf.csv`);
654 each second the per-core busy time, SPBM package energy, thermal zones and
655 load average, and every 5 s the GPU SM clock, power, utilization,
656 temperature and clock-event reasons (`machine-state.ndjson`); the governor
657 and max frequency of every core at start; a mark at the start and end of
658 every trial process (`machine-state-marks.txt`); an informative summary.
659 The sampler runs pinned to cpu 0 (`R15_STATE_CPU`). All of these files are
660 listed in SHA256SUMS. The reducer does not read them.
661- **Preflight (silicon only).** Before the first trial, one X925 core runs
662 20 s of sustained load while its cycles are counted. If the median
663 effective clock over seconds 13–20 is below 3.75 GHz, the run stops before
664 any trial and reports a machine-state failure (`preflight.txt`, `done` =
665 `machine-state-failure`). Normal is ~3.89 GHz; the power-limited state read
666 3.0–3.6 GHz.
667- **During the run nothing is stopped, dropped or rerun** because of machine
668 state. A recurrence during qualification is visible in the raw evidence and
669 is reported with the result. The machine is not power-cycled between or
670 during trials to obtain better results.
671
672## 19. Clarification C4 (2026-09-28, before any qualification data)
673
674Corrects a rig defect in how the W-EPISODE decisive goal status is sampled.
675G1–G16, TARGET_PCT 55 and every threshold are unchanged. No trial result is
676reinterpreted; there are no qualification data yet.
677
678- **Defect.** After promotion, `r15_episode` (tests/runtime/rx_r15_rig.c)
679 waited until AIEN's prediction was confirmed for the new epoch on X925 and
680 the assessment named that prediction (assessment field 6 = prediction
681 field 0), then took the assessment status as decisive. Confirming a
682 prediction does not change its sequence (field 0), so an assessment AIEN
683 made just before the confirmation also matches. That assessment correctly
684 reads UNKNOWN ("no confirmed prediction for the regime yet", `fn_assess` in
685 src/runtime/rx_aien.c). AIEN then re-assesses and reads MET, but the rig had
686 already recorded UNKNOWN as the decisive status. AIEN behaved correctly;
687 the rig sampled an intermediate result.
688- **Evidence (pre-qualification practice, not qualification data).**
689 Host dry run of the integrated candidate (2026-09-28 18:12 local): RES-4
690 and RES-1 round 1 both `goal not MET (status 1)` with goal_status_final
691 = 2 (MET), optimized/incumbent ≈ 0.405, episode end ~0.2 s after
692 promotion (passing episodes run the ~8 s AFTER window). A 6-trial RES-1
693 probe: 1 of 6 with the same signature (status 1, final 2, ratio 0.415,
694 0.4 s). Every failing case had AIEN reaching MET moments later.
695- **Scope.** Seen in RES-4 and RES-1. SEQ also runs AIEN outside the rig's
696 thread, so it is not structurally immune; the window is narrower. The
697 defect predates the 2026-09-28 main integration and the power-limited
698 machine state. The afternoon practice misses (29 of 48) came partly from
699 that machine state and partly from this defect; they cannot now be
700 separated and no claim is made about the split.
701- **Correction.** The wait additionally requires a decided assessment
702 (status ≠ UNKNOWN). Still failing: UNMET or UNMET_EXPLORED, and UNKNOWN when
703 the unchanged 60 s limit expires. `met_status`, the AFTER window and the
704 limits are unchanged.
705
706## 20. Clarification C5 (2026-09-28, after practice, before qualification)
707
708Records a change to the resident runtime made because practice showed a real
709weakness, and declares the host threads the resident configurations now run.
710G1–G16, TARGET_PCT 55, the G7 threshold (≥ 90% of barriers with a production
711commit), the G7 denominator (every L1-G and per-trial barrier) and the
712definition of a qualifying barrier (a production commit whose end lies in
713[barrier begin, receipt]) are unchanged. SEQ is unchanged. No practice
714result is reinterpreted; practice runs are not qualification data.
715
716- **Finding (practice 20260928T233124Z-6723fa0579a8, 4 rounds).** Per-trial
717 barriers: RES-4 had production commits in every barrier (≈1,100 each);
718 RES-1 and RES-1-NODIGEST had none in any (0 of 8); SEQ none, as designed.
719 A high-resolution host trace of one RES-1 transition (`R15_BARRIER_TRACE`,
720 below) showed why: `generation.promote` ran `rx_gen_promote` on the only
721 worker for ~84 ms while one production request waited READY. Inside the
722 barrier: checks < 0.1 ms; six blobs written and synced 37 ms; root and
723 CANDIDATE journal 13 ms; root re-read 0.02 ms; **pointer flip 6.7 ms**;
724 FLIPPED journal, receipt file, event log and RECEIPT journal 23.5 ms.
725 `generation.prepare` also held the worker ~15–18 ms before the barrier
726 (provenance plus the proposal's `nextid` sync). Only the pointer flip (on
727 disk) and the in-force publication (in the world) must be observed as one
728 step; nothing else in the barrier needs the semantic worker.
729- **Change (production runtime, not the harness).**
730 - `rx_generation`: a *durable executor*, one thread per store
731 (`rx_gen_exec_start`). It runs `rx_gen_propose` or `rx_gen_promote`
732 exactly as a caller would, with the caller's request and the caller's
733 native-authority callback, one job at a time in post order, then calls
734 the poster back. It holds no capability, reads no world object, chooses
735 nothing and runs no reaction. Every fsync, the crash points, the lock
736 file and the OLD/NEW recovery rules are unchanged.
737 - `rx_world`: a reaction function may return `RX_FN_DEFER` after handing
738 such an effect to the executor. The activation keeps its admission (its
739 slot stays charged, `in_flight` counts it, quiescence waits for it) but
740 frees the worker; no crumb is written for the deferring run. The
741 executor's completion calls `rx_world_resume`, which puts the same
742 activation back on its ready ring (a new lifecycle edge RUNNING → READY,
743 used only here). It then runs on an ordinary worker on a fresh snapshot
744 and publishes through the usual stale-read check, capability
745 re-validation and write-set check. A sequential reference world treats
746 `RX_FN_DEFER` as a failure and never starts an executor.
747 - `rx_living`: in a resident world `generation.prepare` and
748 `generation.promote` decide on the worker, post the store work, defer,
749 and publish the executor's result when resumed. The candidate and
750 in-force records are still written only by these reactions under their
751 own authority; in-force is still published only after R9 returns OK
752 (after flip and receipt). SEQ keeps the in-line path unchanged.
753- **Threads.** RES-4 / RES-1 / RES-1-NODIGEST: the world's workers (4 / 1
754 / 1, the only threads that run reaction functions), the seat completion
755 transport, the seat keep-alive lease thread of 03d2820 (`rx-seat-lease`,
756 5 ms tick; it moves no semantic state), the R9 durable executor (asleep
757 except during a proposal or promotion) and the harness's producer and
758 observers. SEQ: its one orchestrator thread (which runs every stage,
759 including the store work, to completion), the lease thread and the
760 harness threads. All of them are confined to the trial's core class and
761 counted by process-wide CPU time, `getrusage(RUSAGE_SELF)` and the
762 inherited PMU counters, so the executor's CPU is never hidden.
763- **Diagnostic only.** `R15_BARRIER_TRACE=<file>` makes a trial append its
764 barrier phases and every crumb around the barrier to that file. It is not
765 part of the raw evidence and is never set by `tools/r15_qualify.sh`.
766 `RxGenPhases` gains stamps for the inner phases (verified, blobs,
767 candidate, reachable, flipped, receipt file, event); the four existing
768 stamps and the G7 reduction are unchanged.
769- **Regression.** `make test-r15-g7-host` (tests/runtime/rx_r15_g7.c):
770 RES-1 has a production request READY and committing while the promotion's
771 disk work is under way; production commits inside the barrier and before
772 the flip; in-force is published once, by `generation.promote`, after the
773 receipt, and names the generation on disk; stops before / during / after
774 the flip recover OLD / OLD-or-NEW / NEW, never TORN; only
775 `generation.promote` writes the promotion and in-force records; every
776 crumb comes from a world worker or the seat; RES-4 unchanged; SEQ has no
777 executor, no deferral and still pauses production for the whole barrier.
778 With the executor disabled the RES-1 checks fail (0 commits in the
779 barrier).
780
781## 21. Amendment A1: G10 counts synchronization events (2026-09-28, after attempt 1)
782
783This is a change to a gated criterion, made after qualification data
784existed, so per the status line at the top it is recorded here and the
785whole qualification is rerun.
786
787**What changed.** G10 was "CPU↔GPU synchronizations per GPU result, RES-1
788≤ SEQ", where the count included host completion polls that found nothing.
789G10 is now "CPU↔GPU synchronization EVENTS per GPU result (claim notices,
790completion notices, fences, explicit barriers, host blocking waits; empty
791polls excluded), RES-1 ≤ SEQ". A new reported, not gated, metric "host spin
792cost: empty polls per GPU result" is produced for both RES-1 and SEQ
793(`host_spin_empty_polls_per_gpu_result_median` in `m8_cpu_gpu`), so the
794spinning stays visible. `tools/r15_reduce.c` implements both.
795
796**Why (attempt-1 data, run 20260929T020536Z-ad8e1f2ea4e4-silicon).** G10
797failed, RES-1 80.8 vs SEQ 61.6 per result. Claims and results were fixed at
798256 on both sides; all of the difference was `gpu_polls_empty` (RES-1
7998.2k–24.8k, SEQ 12.7k–29.4k over 5 runs; the ranges overlap; practice-2 on
800the same commit gave 40 vs 104, the other way round). The spin rate varied
801about 6× (193–1242 empty polls per ms of GPU wait) with identical clocks
802(2.808 / 3.9 GHz), temperatures and flat GPU execution time (73–75 µs on
803the chip clock). Profiling showed both configurations spin: RES-1 polls
804once per ring scan, SEQ counts one host wait per result and then spin-polls
805the same progress routine; it does not block. L2 keeps exactly one claim in
806flight, so results per wake = 1 on both sides by construction. The old
807count therefore measured how long the host waited times how fast it spun,
808not how many times CPU and GPU had to synchronize. Counted as events, the
809structure is RES-1 3.0 (claim + completion + fence) vs SEQ 4.0 (the same
810plus one host blocking wait) per result. Re-reducing attempt 1 with this
811reducer gives G10 3.0 vs 4.0 and host spin 77.8 vs 57.6 empty polls per
812result; attempt 1 is not relabelled and stays FAIL (it also had a blank
813aienos commit).
814
815**Explicit barriers.** The L2 rig calls `rx_world_wait_quiescent` once per
816claim in both configurations to pace the benchmark; it is identical on both
817sides (one per result) and is not an engine synchronization, so the
818counters do not include it. Counting it would add 1.0 to both sides and
819not change the comparison.
820
821**Decided by** Drake (owner), 2026-09-28 22:40 CDT, Option A of three (A:
822this amendment; B: A plus a new multi-claim phase; C: keep G10 unchanged,
823for which no legitimate code fix exists: slowing the poll loop would be
824gaming).
825
826**Stated limit.** With one claim in flight, G10 cannot show the resident
827path's intended advantage (one scan covering many completions). A
828multi-claim-in-flight L2 phase (N > 1, e.g. 16, Option B) is deferred to a
829later gate and is listed in the receipt's limits. Empty-poll spin cost is
830a known host-side cost of both paths and is not claimed to be small.
831
832## 22. Amendment A2: candidate-to-executable provenance (2026-11-15)
833
834This strengthens candidate binding after qualification data existed. Earlier
835receipts remain historical records, but their one-time binary snapshots do not
836satisfy this amendment and are not a current candidate-bound qualification. A
837new PASS requires a complete R15 run under these controls; no prior result is
838relabelled. The workloads, metrics, G1–G16 thresholds and interleaving are
839unchanged.
840
841**Why.** The former runner hashed pre-existing ignored files under `build/`
842once, then resolved those mutable pathnames for every trial and reduction. It
843did not establish which candidate sources produced them or check the files and
844tree after use. A stale artifact, concurrent writer or self-replacement could
845therefore make a receipt attribute measurements to bytes not built from its
846named clean commit.
847
848**Required build boundary.** `tools/r15_qualify.sh` reads the omega candidate
849and dependency locks from Git objects with replace refs and grafts disabled,
850re-hashes and checks their object closures, and creates fresh archives of the
851candidate, the pinned physics commit and the pinned aienos capability source.
852It extracts omega and physics into a private directory, rebuilds
853`r15-perf-<mode>` there with repository flags and the pinned aienos source, and
854does not consume a pre-existing `build/` artifact. Compiler-affecting
855environment overrides are removed. The archive, toolchain, command, log and
856resulting binary digests are recorded in `build-provenance.json`.
857
858**Required execution boundary.** The two benchmark binaries and reducer are
859copied into the new run directory, made read-only, and executed only there.
860The runner compares each executable with its build digest immediately before
861and after every use and aborts on a mismatch. After reduction it checks all
862three again, records final HEAD and tracked-tree state, and seals those files
863and records in `PROVENANCE_SHA256SUMS`.
864
865**Receipt rule.** `candidate_bound` is true only when the initial candidate is
866clean and matches the requested commit, both checksum manifests verify, the
867build/final schemas and source-to-binary hashes agree, dependency commits equal
868the candidate locks, final HEAD is unchanged, the final tracked tree is clean,
869and every executable retained its staged digest. Missing provenance is a FAIL,
870not an inference from the old initial snapshot.