ADR 0056: The triad_count gate readings, the ESCHER suites and the 0.3 certificate#
Status: Accepted under delegation (2026-10-15; GOVERNANCE.md, “Delegation of technical ADRs”), technical scope only. It carries out M9a step 5 (the M9a acceptance criteria 12, 13 and 14; PLAN 6.4.6, 8.5, 8.6, 10.3). The measurement protocol is the author’s and is used as it is: PLAN 8.6 (the tolerances, the A/B protocol), ADRs 0018 and 0021 (the clock lock), the one-layout decision of 2026-10-08, the memory decision of 2026-10-07 (store accounting) and the D1 reading of 2026-10-15 (the gated Nsight Systems peak). Pending the author (taken on the plan’s defaults until the 0.3.0 release, decisions of 2026-10-15): the suites and their split (D8), the gate rows, cases and rounds (D7), the coverage table the certificate requires (D6).
Decided: the author accepted D6, D7 and D8 as implemented on 2026-10-22 (GOVERNANCE.md, approvals log, 2026-10-22); the reservation above is closed.
Date: 2026-10-15
Deciders: the AI assistant, on the author’s behalf (M9a, step gates-suites-certificate)
Builds on: ADR 0018 and ADR 0021 (clocks), ADR 0024 (dynG against dynG), ADR 0048 (the triad_count timed regions and goldens), ADR 0050 (the replays), ADR 0051 (the driver and
perf_ab.py triad_count), ADR 0053 (the CUDA port).
Context#
M9a’s last step reads the gates of PLAN 6.4.6 and 8.6 for triad_count against
ESCHER-GPU@abcf9b2 (A) and makes them part of the release certificate from 0.3 on: two paper
suites (PLAN 8.5 names ipdps26_escher.yaml and tkde26_escher_plus.yaml), their records, and
parity/certify.py’s rules for the 0.3 series. perf_ab.py triad_count (ADR 0051) wrote records
for the go/no-go pre-reads and the early reading of step 3, not records a suite summary or a
certificate could read: no gate per row, no input digests, no per-record clock control the
summary compares with the suite, no store-accounting rows.
Decision#
1. The records of perf_ab.py triad_count (schema 2)#
run: results keyed
<case>/<pattern>(--patterns; the gated readings are h_motif’s,main); every row of the region map the port records, with its gate kind and, for a gated region, its gate (perf_ab.gate_limit: 1.05, 1.10 below 10 ms, 1.10 end to end) and verdict; the reference (A’s unpatched copy, built by its Makefile), the port’s commit and build (the parity-cuda preset is checked), the clock control (protocol.clocks.control), the rounds, the per-round guard (A’s printed counts, and the port’s, equal the golden case’s in every round, accepted or repeated; a failure stops the reading and leaves no record), the rounds the monitor rejected and repeated, and the input digest taken by the measuring process: coauth-DBLP’s file, or a synthetic input’s rows as the golden set stores them (both sides generate the input in-process from A’s parameters and the seed; generators::legacy reproduces A’s rows byte for byte, M9a step 1, and the guard requires the golden’s full count).memory: the gate
device_memory(D1) asoriginal/portpeaks of live allocations; the gatestore_memoryas the store accounting per point, each point marked whether the gate reads it (section 3); the Nsight Systems details beside them (the NVTX ranges of each peak, the peaks per range, live / pool / slack / held bytes at the end of every batch, the footprint at the live peak and between batches, flagged above 1.05, not gated); the triad bytes live duringhypergraph.apply, measured as the difference between the peaks insidehypergraph.applyof the counting port and of the same process with--no-count(a third nsys run); foreign processes on the GPU checked before and after each case (the reading stops if one is there).kernels (recorded, not gated; ADR 0018 rule 1): the update’s subtract and add kernels of both sides (A’s
countWedgesand the pattern’s counting kernel; the port’s transplanted kernels) underncu --clock-control base --cache-control none, selected with--kernel-name-base function --kernel-name <regex> --launch-skip <the full count's launches> --launch-count <the batches' launches>(two launches per phase, one for type 1), A/B alternation, medians per batch and phase of the kernel time and DRAM bytes, registers and launch geometry.
3. The memory gates#
store_memory (the author’s decision of 2026-10-07, carried into M9): dynG’s
store_stats().device_bytesagainst A’sDynamicHypergraph::deviceBytes()at the same points, <= 1.05: on coauth-DBLP after the build and after each of the three batches (A’s values from the golden set’s recording of the same batches; the two end points must equal A’s own[memory]print of the same run, or the reading stops); on syn1M and syn2M at A’s two print points (after the build, after the last batch), the values the golden recording and A’s print agree on, the middle points recorded but not gated. Rowsstore_memory[build],store_memory[b<k>], in bytes.device_memory (D1): the peak of live device allocations (
cudaMalloc+cudaMallocAsync, kind Device; A’s Thrust temporaries included) of both whole timed processes (no--check) undernsys profile -t cuda,nvtx --cuda-memory-usage=true, GPU 1, the shared lock, no foreign process; port / A <= 1.05.
4. The contamination audit#
The monitor (perf_ab.MachineMonitor) repeats a round with foreign CPU load or a foreign GPU
process. R020 showed rounds that pass it while the machine is in a storm’s tail (load average
27-30 from tasks blocked on mounts). Every triad round records the 1-minute load average and
procs_blocked at the start and end of each side; a gated reading is flagged when a round’s
load average exceeds 16 (the readings of M9a step 2 saw 2-9 with A’s parallel host build) or
procs_blocked exceeds 4, or a foreign compute process was on the GPU, and the summary refuses
it: the reading is taken again (bench_suite.py run --skip-existing after the record is moved
aside). No round is ever kept contaminated (--keep-contaminated does not exist for
triad_count).
5. The 0.3 certificate (parity/certify.py)#
REQUIRED_SUITESgainsipdps26_escherandtkde26_escher_plusfrom (0, 3); a 0.1 or 0.2 certificate does not need them.record_regionandrecheck_gatesread thestore_memoryrows point by point (bytes) from the record next to the summary, like every other gated row.missing_gates: a metric named as a row (update[b1]) is read by that row only, so a summary withoutupdate[b2]misses that gate even thoughupdate[b1]folds to the same region.The triad goldens are required from (0, 3), not in the unconditional
REQUIRED_REPLAYS: for every backend of the set’s coverage table (goldens.toml, D6) passed replays with the algorithm counter (an oracle replay is not evidence of the algorithm), by key and by content, covering every case the table gives the backend (all four patterns).compare.py triad_count --certificate <results>writes them (config<backend>[/t<N>]:triad/<mode>); a planted defect or a--no-coveragerun never makes one.write --dry-run <algorithm> --results <outside benchmarks/results/>: one algorithm’s suites and golden sets judged as in a release, every other required part listed as outside the dry run; never a release’s certificate. M9a’s dry 0.3 run is oftriad_count.The golden-mutation record needs the triad mutations because
parity/mutate.py listholds them (unchanged rule).
Outcome (M9a step 5)#
Every gate is within its bar (parity/results/M9a.md section 5): the timing gates 45 / 45 rows,
ratios 0.858-1.028 (update per batch 0.858-1.028, full count 0.999-1.002, end to end
0.941-0.987; coauth-DBLP 11 rounds, syn1M / syn2M 21 rounds, all at the base lock), no reading
flagged by the audit; the memory gates 11 / 11 rows (store accounting 1.0000 at every gated
point, the Nsight Systems peak 1.0010 / 1.0015 / 1.0011); the footprint between batches 1.63-1.69
of A’s held bytes (the pool’s reserve), flagged and reported. The final replays are exact on the
coverage table (cuda 300, sequential 120, openmp 142 at 1 and 8 threads, identical), and the dry
0.3 certificate of triad_count passes recheck_gates; its first run found that the
device_memory rows did not recompute (a ratio from bytes next to MiB rounded to 0.1), fixed in
the summary and the certificate before the records were summarized again.
Consequences#
A 0.3 certificate fails without both ESCHER suites, without a store-accounting point, without a per-batch update row, or without the triad replays of a backend or a mode.
The memory readings need GPU 1 free of other processes; the release’s step 2 (
docs/developer/release.md) says so.The records of M9a’s readings are committed compacted in the directory
parity/results/M9a-gates/(the two suite summariesipdps26_escher.jsonandtkde26_escher_plus.json, their compacted recordsipdps26_escher-cuda*.jsonandtkde26_escher_plus-cuda-*.json, and the triad replays in the certificate’s formatparity-triad_count_escher_gpu-*.json); the dry certificate isparity/results/M9a-gates/parity.jsonwith itsREADME.md. The kernel reading isparity/results/M9a-gates-kernels-escher_gpu.json. (Corrected in the M9a review: an earlier text namedM9a-gates-*.jsonandM9a-certificate-dryrun.json, which do not exist. The records taken again at HEAD after the review fixes are inparity/results/M9a-review-gates/,parity/results/M9a.mdsection 6.)
Alternatives considered#
One suite for both papers. Rejected: PLAN 8.5 names two suites, and the decision D8 keeps them; their split is recorded above as ours.
Gating the store accounting at every point on the synthetic inputs too. The author’s decision of 2026-10-07 reads coauth-DBLP after the build and after each batch; on syn1M and syn2M the acceptance names A’s two print points. The middle points are recorded (they are equal on every reading so far).
The triad bytes during the apply from the allocation trace alone (the pool’s allocations outside the hypergraph’s ranges): the stream-ordered pool hides which component an allocation serves; two processes that differ only in counting give the number without attributing allocations.