Retrospective: M10a (label_propagation against LabelPropagation-CUDA)#

Status: steps 1-3 done; step 1’s STOP decided by the author on 2026-10-29 (the margin of LabelPropagation-CUDA’s own --check on C is below 2 on one batch; the margin of 2 is waived for that batch only; section “Step 1”, “The STOP”); step 3’s two D14-path excursions were acknowledged by the author on 2026-10-29 (section “Step 3”; GOVERNANCE.md’s approvals log); step 4 is done and ended at a STOP: one in_place port run at 5k5 outside the iteration envelope at one batch (section “Step 4”), decided by the author on 2026-10-30 as a recorded miss, not a pass (GOVERNANCE.md’s approvals log); step 5 is done and ended at a STOP: the ADR 0024 re-reading on the final library finds six whole gated regions of sssp above 1.02, located to code placement, decided by the author on 2026-11-03 (acknowledged on the D14 path; the module-loading cost fixed in M10b; section “Step 5”); every gate against the original passes. The M10a review’s fixes (section “Review fixes”) changed the library after step 5; every reading they can affect was taken again, and the final in_place reading ended at a STOP (one 50k run outside the iteration envelope at one batch), decided by the author on 2026-11-04 as a recorded miss, not a pass; the gpu_local step’s in_place cloud on the merged library ended at a second such STOP, decided by the author on 2026-11-04 in the same way (GOVERNANCE.md’s approvals log); the replays on the merged library ended at a STOP: the hook-round count of the connected components, an exact field of the damped trace parity, is not deterministic in the original itself (section “Review fixes”, “The STOP”; decided by the author on 2026-11-05, ADR 0100), and ADR 0024’s reading of the merged library ended at a STOP: two whole end_to_end regions of cycle_count above 1.02 from the library’s start-up (acknowledged by the author on 2026-11-05). Acceptance round 1 failed one sub-item of criterion 19, M11’s scoped certificate dry run on the merged tree, which the author assigned to the integrator on 2026-11-11 (section “Acceptance round 1”). The orchestrator started step 2, whose work does not depend on the margin rule; its independent oracle confirms the finding (section “Step 2”). M10a is the first half of PLAN 11.4’s M10 row (label_propagation, release 0.4.0; Appendix F): label_propagation exact and calibrated against LabelPropagation-CUDA@a276a3a (O), with its gates; M10b follows with the operators engine, the streaming mode, the formats, Python, the CLI, the docs and the freeze (ADR 0063, the plan of record). It runs in five steps, and each step adds its section here.

The author’s decisions for 0.4 (2026-10-28; GOVERNANCE.md’s approvals log, the seven rows of that date added by P040). The author accepted every default of the 0.4 decision sheet: M10’s AD1-AD21 and the joint items (sheet A1-A3, B1-B6, C1-C8, D1-D2, E1-E10, G1-G3, H1-H3). Still pending: AD15 / F1 (stability at 0.4.0) and what the steps route to the author (GOVERNANCE.md, Open decisions, M10 (AD)).

Base and merges of main. The branch m10a-label-propagation was created by the orchestrator from origin/main at b2b1524 (the merge of P040; main 20bc2d0 = PR #18 “Release 0.3.0rc1” + R031, 0.3.0 final, + P040). origin/main had not moved when step 1 started or ended, nor when step 2 started or ended (git log HEAD..origin/main empty): no merge of main yet. Nor had it moved at any start or end of steps 3, 4 and 5, the last checked on 2026-11-03 before the step-5 records: no merge of main in steps 1-5; every gate of step 5 was read on the branch as it is. The one merge of main: during the review fixes origin/main moved (the orchestrator’s fetch of 2026-11-04 04:46 UTC) from b2b1524 to 64a5123 (M11a, #22), after the fix pass’s first series of readings (2026-11-04 00:29-08:50 UTC, on the pre-merge library). It was merged with the merge commit d327950 (2026-11-04 09:10 UTC; the conflicts and their resolutions in its message: both tracks’ entries at their anchors, no M11 entry or anchor changed, the generated files rewritten by regen.py and api_snapshot.py), and every final reading was taken again on the merged library (section “Review fixes”). origin/main was still 64a5123 when the fix of acceptance round 1 started and ended (2026-11-11): no further merge of main.

Step 1: the original’s side (reference-side-baseline-calibration)#

What was built#

Commit

What

258befa

parity/references.toml’s LabelPropagation-CUDA (with nvcc_default for the build fingerprint), the export patch parity/export_patches/LabelPropagation-CUDA (the twins of bin/dynLP and bin/propagation_test, O’s unchanged objects relinked through --wrap), the recorder parity/exporters/dynlp and check_twins.py, the reader parity/dynlp_trace.py and its tests

9ed2deb

parity/timed_regions/label_propagation.toml (before any port code), M10’s first_batch / sum_gate and O’s report keys in perf_ab and bench_suite, parity/label_propagation_perf.py (`perf_ab.py label_propagation baseline

9efd6a7

the baseline records parity/results/M10-baseline-2026-10-29.json, parity/results/M10a.md sections 1-3

d42eb58

the in_place calibration (parity/results/M10a-inplace-calibration.json, the thresholds frozen in parity/goldens.toml), parity/label_propagation_goldens.py (export, compare-exports, install, verify, calibrate, calibrate-analyze, margins; through export_goldens.py and compare.py label_propagation), ADR 0065, M10a.md section 4

fbbc6d6

the golden sets in parity/goldens.toml (exported twice, identical manifests), M10a.md section 5

d83cb5f

O’s --check margins (parity/results/M10a-check-margins.json), the SASS go/no-go (parity/label_propagation_sass.py, parity/results/M10a-sass-go-no-go.json, ADR 0066), the memory retakes, M10a.md sections 6-8

1baf5f1

certify lists the label_propagation sets without a verdict until they are replayed (as M9a’s 7eb7e61 did for triad_count) and num_cases in their goldens.toml sections; and (staged before it and committed with it; its message names only the certify change) ADR 0063 (the M10 plan of record), GOVERNANCE.md (the ADRs’ rows; the STOP and the flags in M10 (AD)), this retrospective, the CHANGELOG and plan.md

Nothing exists under cpp/src/algorithms/label_propagation/, cpp/include/dyng/label_propagation.hpp, cpp/src/graph/ or cpp/include/dyng/graph/ that the branch’s commits created or changed; the region map, the baseline records and the frozen calibration precede the first such commit (step 2 on).

Results (parity/results/M10a.md)#

  • O’s full make test (unpatched, GPU 1, OMP_NUM_THREADS=8): 19 / 19 passed in 73 s.

  • check_twins: passed (labels bytes, the four results.csv columns; off and on; propagation_test).

  • The baseline (GPU 0, the boost probe held in every case): damped update[sum] 106.2 ms (50k), 481.6 ms (500k), 5,623.7 ms (5m), 1,387.2 ms (5m1); every one >= 10 ms. The 50m probe at base: 63.3 s of update, 98 s per damped round, 0 rejected (the AD4 release gate is feasible). Device peaks 6.0 / 60.3 / 602.6 / 1,214.9 MiB (50k / 500k / 5m / 5m1 damped), 5,887.9 MiB at 50m.

  • The calibration: components identical everywhere; T_mean 4.3e-4 / 5.5e-4 / 3.9e-4 / 2.7e-4 (5k5 / 50k / 500k / 5m); every GPU-0 run’s labels inside; the iteration window missed by 3 GPU-0 runs and by 5 of O’s own 40 reference runs (flagged).

  • The goldens: two exports identical; about 0.6 GB under the goldens root; verify passes.

  • The SASS: 38 / 38 functions identical between O’s Makefile line and dynG’s FAST_MATH line.

  • O’s margins on C: 1.32 on 5k5 damped batch 1 (STOP; below), every other batch >= 3.05; L: section 6.1 of M10a.md.

The STOP#

Criterion 7 asks that on C (5k5 and 50k at delta 1e-6, both rules) every batch has 2000 delta / mean |F - F*| >= 2 with 0 PCG skips. O’s own damped run at 5k5 has 1.32 on batch 1 (mean 1.51e-3 against 2e-3; 869 vertices in ground-truth-free components are excluded there; 0 skips; O’s --check exits 0). This is the step’s go/no-go, so step 2 does not start; the margin, the bound and the corpus are unchanged (STOP rule: never relax a bar). For the author: whether the AD7 margin of 2 applies to every batch of C including the first unlabeled batch at 5k5, or how C should be read; the data are in parity/results/M10a-check-margins.json and the logs.

Decided by the author on 2026-10-29 (GOVERNANCE.md’s approvals log, the row “The AD7 margin on C”). AD7’s bound 2000 delta stays on every batch, schedule, engine and backend; the go/no-go margin of 2 is waived for this one batch only (5k5 damped, delta 1e-6, batch 1), because the damped schedule is deterministic, so run-to-run noise cannot erode its headroom; the certificate reports every batch’s margin, and every other batch of C keeps the margin of 2. The STOP is settled.

Machine time (UTC 2026-10-29; dyng-work/perf-lock.log)#

Part

Time

reference builds (unpatched, patched)

11 s + 14 s

O’s make test (GPU 1)

73 s

the baseline, 8 EXCL windows (GPU 0)

03:29:30-03:47:49 (18 min)

the nsys peaks, 4 GPU1-QUIET windows

03:48:33-03:52:46, 04:08:31-04:12:50, 04:34:59-04:35:59, 04:36:09-04:36:14

the calibration: GPU 1 (N = 10, then delta 1e-6) and GPU 0 (EXCL, base)

03:53-03:55 and 03:55:30-03:56:16

the 50m probe (EXCL, base)

03:56:16-04:05:09 (9 min)

the double export (GPU 1, then EXCL on GPU 0)

04:17-04:24 (7 min)

O’s --check on C / L (GPU 1)

7 s / 5 min

the SASS comparison (CPU)

about 1 min

Deviations from the plan and the step’s text (each with the same intent)#

  1. references.toml smoke_test runs the two unit tests (as the step asks); O’s full make test (73 s, not an hour as expected) ran once and is recorded.

  2. nvcc_default (a new optional key of references.toml): the build names no NVCC= (the Makefile’s default), so the build fingerprint records the nvcc that default resolves to; the other references have no such key and keep their fingerprints.

  3. ADR 0066 carries the build-flags go/no-go apart from the protocol (ADR 0064) and the recorder (ADR 0065); four ADRs (0063-0066) instead of the three the step lists, the numbers inside M10’s block.

  4. The memory gate kind: load_regions accepts gate = "memory" only on the nsys:peak_live row of label_propagation’s map (the earlier maps still refuse it), so the map can carry AD2’s third gated row.

  5. The nsys windows after the first saw the other track’s GPU-1 jobs (MOSP_ESCHER test and bench binaries started inside the window) in their samples: those readings are not counted; every case has a counted reading (the first window saw no foreign process; its record keeps the first and last sample of each reading only), and all readings give the same peak. The other track’s jobs inside an open GPU1-QUIET window are reported (open items).

  6. The calibration’s classes and differences are read from O’s 6-decimal label files (AD5 names unpatched runs, which write nothing else); the floor 1e-6 is above the rounding.

  7. The hub’s in-place call is not reproducible: its outputs (5 runs) are a distribution under label_propagation_hub/inplace/, outside the manifest, like the in_place set; the inputs and both damped calls are hashed.

  8. The GCC 13 compile of the recorder uses the GCC 13.4 compiler of the conda package cache with its libstdc++ headers over the system glibc headers (compile only; no linkable GCC 13 is installed, R030.md:83).

  9. Commit 1baf5f1 carries two things, the certify change its message names and the records of the step’s last commit-order item (ADR 0063, GOVERNANCE.md, this retrospective, the CHANGELOG, plan.md), which were already staged; history is not rewritten, so this line records it.

Notes for the next steps#

  • Step 2 reads the traces with parity/dynlp_trace.py (read_bytes(zstd_read(...)) for the stored files); label_propagation_goldens.final_status is O’s host pass of the batches, checked against the device status of every raw trace.

  • The in_place iteration rule will be met by O’s own runs only most of the time (the calibration’s self-check): step 4’s in_place reading should report the reference’s own rate next to the port’s.

  • perf_ab.py label_propagation run|kernels|engines refuse to run until dyng-compat-dynlp exists; their record shapes are label_propagation_perf.RECORD.

Re-estimate#

Step 1 took about one working session (machine time under 1 h in all; most of it the baseline and the exports). The remaining four steps of M10a stay at PLAN’s estimate (8-12 working days for M10 and M11 together, 1.5-2.5 weeks), provided the author resolves the STOP; the reference side is complete and fast to re-read (a full baseline in under 30 min of lock time).

Open items for the lead maintainer#

  1. The STOP above (GOVERNANCE.md, Open decisions, M10 (AD)). Decided by the author on 2026-10-29: the margin of 2 is waived for that one batch (above).

  2. The iteration window of AD5 against O’s own runs, and the three GPU-0 runs with one batch outside it (labels inside every threshold). Decided by the author on 2026-10-29: the window is the envelope [0.9 x the minimum, 1.1 x the maximum] of the 10 GPU-1 reference runs, per batch and for the sum (floor 2), frozen in parity/goldens.toml before any port run is read by it; all 13 reference runs lie inside it, which settles the GPU-0 flag.

  3. AD15 / F1 at 0.4.0 (unchanged).

  4. For the orchestrator: the M11 track started GPU-1 jobs while M10a’s GPU1-QUIET windows were open (04:08-04:12, 04:35, 04:36 UTC; quiet-ok should have refused them).

Step 2: the oracles, the legacy generator and O’s writers (oracles-generator-writers)#

Started by the orchestrator while step 1’s STOP was pending the author; nothing in it depends on the margin rule or changes a margin, a bound or a corpus. Nothing under cpp/src/graph, cpp/include/dyng/graph or cpp/src/algorithms/label_propagation was created or changed.

What was built#

Part

Where

testing::harmonic_solution, union_find, lp_host_model (ADR 0068)

cpp/include/dyng/testing/, cpp/src/testing/{harmonic_solution,lp_host_model}.cpp, the object library dyng_testing_label_propagation, the isolation tests label_propagation_oracles_isolation_* (the M8a check script with an ALLOWED list)

the legacy generator (ADR 0067)

<dyng/generators/vertex_arrival.hpp> (in dyng.hpp), cpp/src/generators/legacy_dynlp.cpp (-ffp-contract=off), dynlp_stream.hpp (O’s shapes), the twins legacy_shuffle32, legacy_generate_canonical_float, legacy_uniform_real_float in util/rng.hpp, standard_library_matches_legacy_streams() extended

O’s writers (internal)

text_writer::put_fixed6, cpp/src/io/dynlp_text.{hpp,cpp}

the replays

cpp/tests/parity/label_propagation/ (the trace reader dlt_reader.hpp, lp_replay.{hpp,cpp}, the tool dyng_lp_replay, lp_replay_test.cpp), cpp/tests/support/sha256.hpp, parity/label_propagation_replay.py (`compare.py label_propagation generator

the recorder’s check_labels

parity/exporters/dynlp/recorder_dynlp.cpp (__wrap_snprintf), dynlp_trace.* (DYNG_DYNLP_TRACE_TAGS), wrap_dynlp.txt

tests

cpp/tests/testing/lp_oracles_test.cpp, cpp/tests/generators/vertex_arrival_test.cpp, cpp/tests/io/util_test.cpp (the writers), parity/tests/test_label_propagation_replay.py; committed digests cpp/tests/data/goldens/label_propagation/ (3 files, 19,569 bytes)

Results (parity/results/M10a.md section 9)#

  • The generator reproduces G byte for byte: 14 cases (5m, 5m1, 50m by digest), the same stream from the OpenMP, -march=native and openmp=OFF GCC 12.2 builds at 1, 8 and 56 threads; tau bit-equal on P+. 5m generation 2.2 s against O’s 2.20 s.

  • lp_host_model fed O’s batches is exact on P+: 10 cases, 1,530 fields, 0 mismatches.

  • harmonic_solution reproduces O’s per-batch mean |F - F*| on C and L to at most 3.6e-14 (70 batches; the same counts, flips and skip verdicts; no skip).

  • m = 2.9217e-3 (3m = 8.765e-3).

  • The independent oracle confirms the STOP (5k5 damped batch 1: mean 1.5144e-3, margin 1.32).

Machine time (UTC 2026-10-29)#

Part

Time

the fresh patched copy (step-2 recorder) and check_twins (GPU 1)

25 s + 1 min

O’s --check runs with the recorder, C and L (GPU 1, shared lock)

01:07-01:12 (5 min)

O’s --profile at 5m, three runs (GPU 1)

1 min

the generator replay, three builds (CPU)

about 25 min per pass (two passes: before and after the parallel CSR fill)

the model replay (CPU)

30 s

the oracle replay (CPU, 8 threads)

9 min

no exclusive-lock or GPU1-QUIET window was needed (no timing, no gated memory reading)

Deviations from the plan and the step’s text (each with the same intent)#

  1. The step ran with step 1’s STOP open, as the orchestrator started it; the STOP’s row in GOVERNANCE.md’s M10 (AD) sub-block records it and stays pending the author.

  2. The recorder gained check_labels (--wrap=snprintf in checker.o, passed on to vsnprintf) and a tag filter: O prints its mean error with three digits, which cannot show agreement to 1e-9. Without --check nothing changes (check_twins passes; the goldens were exported without --check).

  3. The isolation check (check_model_isolation.cmake) gained an optional ALLOWED list of further dyng/testing headers (lp_host_model uses union_find); the earlier checks are unchanged.

  4. union_find is header-only (no object file of its own; its symbols are inline).

  5. The generator refuses fractions outside [0, 1] (O does not check them; no corpus case reaches them; ADR 0067).

  6. The 5m harmonic_solution is slower than O’s checker (220 s against 123 s summed over the batches at 8 threads: it starts its threads per reduction); it is a test oracle, run at the release and on the 50k weekly job, so this was left as it is.

  7. The model’s V_aff follows the definition (N_t(Del_eff) ∪ Ins_eff ∪ N_{t+1}(Ins_eff)); O’s device also marks the endpoints of a new edge between two vertices present before the batch and the neighbours of an id deleted twice. No corpus case reaches either (ADR 0068, “Known limits”); the kit’s batch axis “edges between present vertices” (step 5) must take it into account.

Checks (at 4a2643e plus the records)#

Check

Result

ci/check.sh (every step: format, cpu-only and dev builds with ctest -L cpu, consumer, tidy, reuse, provenance, testdata, harness, docs, regen, python, api, scaffold, pre-commit)

all passed (cpu-only 1,312 / 1,312; dev 1,345 / 1,345)

Clang 18 -fsyntax-only over the dev database

443 files, 0 failures

GCC 13.4 (conda, compile only) over the dev database

443 files, 0 failures

cpu-only with -D_FORTIFY_SOURCE=3

no warning; 1,312 / 1,312

openmp=OFF (cpu-only, every algorithm)

1,155 / 1,155

ci/api_check.sh

additions only (dyng.hpp + generators/vertex_arrival.hpp; the new tracked headers); Python unchanged

ci/test_data_budget.py

1,022,240 of 1,250,000 bytes (M10 so far: 19,569 of its 120 KB)

pytest parity/tests ci/tests

396 passed

run time of the new tests

1.9 s in Release (fortified cpu-only), 11.5 s in Debug (dev; 7.9 s of it the harmonic_solution thread-count test), so well inside the hosted jobs’ budget

git status --porcelain of LabelPropagation-CUDA

empty before and after

Notes for the next steps#

  • Step 3 converts vertex_arrival_batch into edge_batch with vertex arrivals and lists the auxiliary names of this step (vertex_arrival_options, vertex_arrival_batch, vertex_arrival_stream, harmonic_options, harmonic_result, label_error(_against), class_agreement(_with), lp_model_batch, lp_model_report) in its API ADR; they are listed in M10 (AD) as names beyond AD12’s list, pending the author’s acknowledgement. Decided by the author on 2026-10-29: these names (and those of later steps) stay provisional; M10b’s API ADR lists them all for the author’s approval at the freeze.

  • lp_replay.hpp’s model_fields and original_statuses give the container replay of step 3 the trace’s field names and the status mapping.

Re-estimate#

Step 2 took one working session (machine time under 1 h, all of it on GPU 1 or the CPU). The remaining three steps keep PLAN’s estimate, provided the author resolves the STOP.

Step 3: the slotted container, the guard, the module, its sequential backend and the driver (host-container-sequential-driver)#

Started by the orchestrator with step 1’s STOP still open (as step 2); the author decided it on 2026-10-29 while the step ran (section “Step 1”, “The STOP”). Nothing in the step changes a margin, a bound or the corpus. Base still b2b1524 (git log HEAD..origin/main empty at the start and the end of the step): no merge of main.

What was built#

Commit

What

36e2a7e

perf_ab.py mosp --baseline-exe / --baseline-label / --layouts (the ADR 0024 reading of mosp against an earlier dynG build: side A dyng-compat-mosp --mosp, the same profiler stages), its tests

7523b12

the container (ADR 0069): float graphs (DYNG_FOR_EACH_FLOAT_GRAPH_TYPE), row_layout::slotted on the host (graph::with_capacity, slotted_rows, apply_slotted_host.cpp), vertex_status, graph_view::status / row_end, num_active_vertices, batch_semantics::net_effect(), edge_batch::insert_vertex / delete_vertex, Step 0’s checks (strong guarantee), O’s nine input-contract cases, cpp/tests/graph/slotted_test.cpp

24bcfc2

the compact-only guard (ADR 0070): expect_compact_layout, called by expect_placement(), first in the requirement checks and update entries of sssp, mosp, cycle_count and triangle_delta, and by the device copy and merge; @throws in their headers; compact_guard_test.cpp

7a3144b

the module (scripts/new_algorithm.py label_propagation --family fixed_point --backends seq --no-changelog): the header (ADR 0071), the hooks and the sequential backend (ADR 0072), IrLP, the stage trace and dyng-compat-dynlp (ADR 0073), AD20’s sentence in core/stats.hpp, the provenance symbols, the container and trace replays, the docs pages, the regenerated tables

6c2d147

the CUDA sssp test’s count of the transpose kernel (5 with the float graphs)

2fa0f27

the check gate: the provenance list, the regen tests (the first planned algorithm instead of label_propagation), the compact-guard test as its own executable following DYNG_ALGORITHM_<NAME> (the scaffold check’s subset build)

4cf8bb1

the author’s decisions of 2026-10-29 (the AD7 margin, the in_place iteration envelope, the provisional names): GOVERNANCE.md’s approvals log and M10 (AD), the records of steps 1-2

5f112e3

the in_place iteration envelope frozen in parity/goldens.toml before any port run is read by it (iteration_envelope, envelope_of, iterations_inside, envelope-check; all 13 reference runs inside, M10a-inplace-envelope.json); ADR 0065’s amendment

(records)

parity/results/M10a.md section 10, M10a-{container-replay,sequential-trace,oracle-port,determinism}.json, M10a-ab-b0-*.json, ADR 0070 section 4, GOVERNANCE.md, this section, plan.md

Results (parity/results/M10a.md section 10)#

  • The container on O’s batches: exact on P+ (10 cases, 5m by digest).

  • The deterministic stages of the sequential backend against O’s trace: exact on P+ (10 cases, 1,530 fields; statuses, rows, slot bits, Ins \ Del, error flags, tau, G’, components, W0 / W1, the initial labels, the initial frontier).

  • The harmonic oracle on C: every batch within AD7’s bound and the class rule, update and compute; the smallest margin is 1.32 on 5k5 damped batch 1, O’s own figure (the AD7 margin, decided 2026-10-29: waived for that batch only), the same mean to 4e-7.

  • Run-to-run label bits identical on both schedules; the damped iteration counts equal O’s.

  • No host allocation in the algorithm phase after reserve().

  • The ADR 0024 reading of the stable algorithms against b2b1524 (36 exclusive windows; section 10.5): every gated region of mosp (both backends), of sssp CUDA and of cycle_count’s kernels and updates within 1.02; sssp OpenMP roadNet-PA safe50k apply 1.021 and cycle_count CUDA Twitch update_end_to_end 1.021 (static_end_to_end 1.020) after the longer readings, both located to code placement only (identical machine code at other alignments; 0.79-0.99 without CUDA and 0.98-1.00 with the JCC-erratum mitigation flags on both sides) and routed to the author (the D14 path, GOVERNANCE.md M10 (AD)).

Deviations from the plan and the step’s text (each with the same intent)#

  1. The kit’s traits are minimal until step 5: label_propagation_traits.hpp registers the algorithm (name, oracle, tolerance, graph types) so that the registry check passes; its conformance suite is a skipped placeholder (KitAxisArrivesInStep5). The CPU tests above cover the checks the kit will run.

  2. The registry and the docs list sequential only until step 4 adds cuda to the manifest.

  3. --check of dyng-compat-dynlp is dynG’s oracles (harmonic_solution, the seeds, the range), not O’s checker, whose verdicts the step-1 records hold (ADR 0073).

  4. The stage trace is read by the library behind an environment variable (DYNG_DYNLP_TRACE_DIR): a public-headers-only driver cannot reach the stages otherwise (ADR 0073, alternatives).

  5. Step 0 runs before the stale-result check in update() (the batch is checked against the graph first); a test of a stale result therefore uses a valid batch.

  6. Refusals O does not make: a vertex deleted twice in one batch, a duplicate insertion, a re-insertion of a vertex that was ever active, and a seed that is also deleted are refused by Step 0 (invalid_argument_error, nothing changed); O’s generator never makes them, and O’s input-contract cases map onto these errors (ADR 0069).

  7. The fix of O’s skipped endpoints (an edge-only batch marks the endpoints of its edges) is a documented difference no corpus case reaches (ADR 0072).

  8. The regen tests used label_propagation as their example of a planned algorithm; they now take the first entry of planned.toml (hyper_sssp today, and skip once none is left), so M11’s scaffold does not break them either.

  9. The step was resumed after the first attempt stopped at the account’s spend limit (about 10:24Z, inside the window adr0024-sssp-openmp-road_usa_g-local10k-170, which the orchestrator closed interrupted). The committed code (7523b12..2fa0f27) and the 11 records the first attempt left were checked and kept; its seven sssp OpenMP readings are complete (each window ended rc=0, every round accepted or repeated); the interrupted reading was taken again whole.

  10. ADR 0024 rule 3 was applied more than once, and the cycle_count CUDA list read in four windows: the first window’s DD 100K and GitHub updates could not be measured (a foreign load of 15-17 cores on the machine during the exclusive window, so more rounds were rejected than taken) and the COLLAB update cannot hold the boost lock under the power cap, so those three were read in their own windows, the COLLAB update at the base lock (the M3 precedent).

  11. The location experiments (stage-by-stage A/B, the allocator and module-loading controls, builds without CUDA and with ADR 0061’s FB flags on both sides) are experiments in exclusive windows; their builds were temporary ($DYNG_SCRATCH/m10-builds/{nb,fb}-*, deleted); the summary is parity/results/M10a-ab-b0-diagnosis.json. No product flag was changed.

  12. The reading records are compacted as bench_suite does (the per-round monitor windows dropped; every sample, verdict and rejected round kept); the full records are under $DYNG_SCRATCH/runs/m10a-host-container-sequential-driver/full-records/.

  13. The step was resumed a second time (the account’s usage limit, shortly before 21:10Z). The 36 exclusive windows of the reading were all closed and complete, so none was retaken; the uncommitted records were kept and committed. The author’s decisions of 2026-10-29 were recorded first, in their own commit (4cf8bb1), then the iteration envelope was frozen in its own commit (5f112e3); the golden-replay chain, cut inside the triad_count CUDA replay, was run again from that replay on (the replays that had finished rc=0 were kept). triad_count’s object identity is now a committed record (M10a-triad-objects.json).

Checks (at 2fa0f27 plus the records)#

Check

Result

ci/check.sh (every step)

all passed (the run at 7a3144b failed provenance, harness and scaffold, fixed in 2fa0f27, those three re-run and passed; cpu-only 1,344 / 1,344, dev 1,382 / 1,382)

ctest -L gpu (dev-cuda, GPU 1)

866 / 867 at 7a3144b, the one failure the transpose-kernel count fixed in 6c2d147 (re-run passed)

Clang 18 -fsyntax-only over the dev database

455 files, 0 failures

GCC 13.4 (conda, compile only) over the dev database

455 files, 0 failures

cpu-only with -D_FORTIFY_SOURCE=3

no warning; 1,344 / 1,344

openmp=OFF (cpu-only)

1,187 / 1,187

the CUDA-off build

the cpu-only builds above (DYNG_ENABLE_CUDA=OFF)

ci/api_snapshot.py --against b2b1524, ci/api_check.sh

additions only (the new header, the graph additions); Python unchanged

ci/cmake_consumer.sh

dyng-compat-dynlp built and run against the install tree

ci/test_data_budget.py

1,022,240 of 1,250,000 bytes (M10 so far: 19,569 of its 120 KB; step 3 adds none)

the 0.3 golden replays and the hypergraph id replays (HEAD parity-cuda, GPU 1)

all exact: sssp 495 cases x 4 configurations; cycle_count 47 replays (collab_k3 on sequential skipped by compare.py’s own rule), cycle_count_cuda 48; mosp_scale 20 x 2; triad_count cuda 300 / 300, sequential 120 / 120, openmp 142 / 142, both modes; the eight cbst_trace sets, both policies; the hypergraph id replays of five sets on all three backends and the line graph (parity/results/M10a.md section 10.7)

triad_count’s object files, b2b1524 against HEAD (same source path; M10a-triad-objects.json)

5 of 7 byte-identical; cuda.cu.o and engine/counters.cu.o differ only in nvcc’s per-compile tmpxft_<pid> symbol names and the line table’s source modification times (SASS, PTX, resources, host code and rodata identical)

git status --porcelain of LabelPropagation-CUDA

empty before and after

Notes for the next steps#

  • Step 4 ports the CUDA backend onto the same hooks: the trace replay (--backend cuda) must be exact on P+ as the sequential one is; the damped labels are then compared with O’s goldens bit for bit (AD6), the in_place ones by the frozen calibration (AD5).

  • dyng-compat-dynlp’s cuda path (pinned batch arrays, the CUDA-event time of label_propagation.update) is written but unreachable until the manifest lists cuda.

  • The device container (device_graph.cu) already instantiates the float graphs; the slotted rows have no device form yet (the guard refuses the device copy of a slotted graph).

Re-estimate#

Step 3 took two working sessions (the first cut by the spend limit); most of the machine time was the ADR 0024 reading: about 10 h of exclusive windows in all, of which the location of the two 0.1 % excursions took about 1.5 h. The exclusive lock waited up to 1.5 h at a time behind the other track’s shared jobs, and the readings must be repeated in step 5 on the final library (code placement moves with every library change), so step 5 should plan one full day for them. Steps 4 and 5 otherwise keep PLAN’s estimate, provided the author acknowledges the two D14-path excursions (or decides them otherwise) before step 4.

The author’s acknowledgement (2026-10-29). The author acknowledged both whole-region excursions (sssp OpenMP roadNet-PA safe50k apply 1.021; cycle_count CUDA Twitch update_end_to_end 1.021 / static_end_to_end 1.020) and the reported sub-regions as code-placement excursions on the D14 path (GOVERNANCE.md’s approvals log, the row “The D14-path excursions of M10a step 3”; M10 (AD)’s D14 row reads “none pending”). Nothing changed for them; step 5 re-reads every region on the final library, and a gated region still above 1.02 there goes to the author again. Recorded at the start of step 4, in its own commit.

Step 4: the device rows, the fused CUDA engine, IrLP on CUDA, the parity and the early gate (cuda-device-apply-fused-engine-parity)#

Base still b2b1524 (git log HEAD..origin/main empty at the start and the end of the step): no merge of main. Nothing in cpp/src/operators/execution.hpp, cpp/src/hypergraph/escher/flatten.*, cpp/src/algorithms/sssp/openmp.cpp, cpp/src/util/thread_list.hpp or cpp/src/util/list_gather.hpp changed.

What was built#

Commit

What

946c147

the author’s acknowledgement of step 3’s D14-path excursions (2026-10-29), first, in its own commit: the approvals-log row, M10 (AD)’s D14 row “none pending”, M10a.md 10.5

c344ff2

the device rows of a slotted CUDA graph and their apply (ADR 0074; graph/device_slotted.hpp, apply_slotted_device.cu, the graph_impl integration, slotted_cuda_test.cpp, dyng_lp_replay container --backend cuda), its go/no-go replayed before the engine

863fff7

the fused engine (ADR 0075; sparsify.cu, components.cu, label_init.cu, propagation.cu, irlp.cu, cuda.cu, fused.hpp), the problem’s fused hooks, IrLP on CUDA, the manifest’s cuda backend, dyng-compat-dynlp --backend cuda, `compare.py label_propagation damped

6cbd245

the CUDA tests (the hand cases on cuda; label_propagation_cuda_test.cpp: the hub golden, CC against union_find, the deterministic stages against sequential, the input contract through update(), out_of_memory_error under a limit without a leak, results between the backends), compare.py label_propagation hub, label_propagation_sass.py port, ci/fast_math_scope.py, perf_ab.py label_propagation run and memory --side port

04aed8e

the device memory of the original (the first early-gate reading: 1.17x), the compat’s --phases

ee3015a

the compat’s CUDA-only members without CUDA (Clang 18)

64b4fcc

the Doxygen form of options::cuda_engine’s comment (the docs check)

(records)

ADRs 0074, 0075; M10a.md section 11 and the M10a-*-cuda.json records, M10a-early.json; GOVERNANCE.md; the CHANGELOG; plan.md; the algorithm page

Results (parity/results/M10a.md section 11)#

  • The device apply on O’s batches: exact on P+; memcheck clean.

  • Damped byte parity on P+ (label files, every batch’s bits, the counts, every trace field), the hub golden, IrLP’s bits and iterations: identical. Every ported kernel’s SASS is O’s.

  • The oracle on C (both schedules, IrLP): within.

  • in_place: inside everywhere except one 5k5 run’s batch 4 (182 iterations against 170.5): STOP.

  • The early gate: update[sum] 1.008 / 1.013, end_to_end 1.084 / 1.037, memory 1.0005; AD21’s lost overlap 0.03 %.

  • The plugin: 11.9 MB of LP fatbin for the release list, about 3.3 MB compressed.

The STOP#

The in_place rule (AD5, the envelope of 2026-10-29) asks every port run (at least 3 per I case) to keep every batch’s iteration count inside [0.9 x the minimum, 1.1 x the maximum] of the reference runs. On the final build one of the three 5k5 runs has 182 iterations in batch 4 (bound 170.5); its labels, its sum and everything else are inside. The kernels are O’s, instruction for instruction; 30 fresh runs of each side all lie inside, with the same distribution. Whether the rule reads such a tail event as a miss is the author’s (GOVERNANCE.md, M10 (AD)); nothing was relaxed or re-run in place of the reading.

Decided by the author on 2026-10-30 (GOVERNANCE.md’s approvals log, the row “The in_place tail event of M10a step 4”). The reading is a tail event of the non-reproducible in_place schedule and is accepted as a recorded miss, not a pass (the form of the AD7 batch-1 waiver). The rule, the envelope, the thresholds and the calibration are unchanged; step 5’s final in_place reading must have every run inside, and a run outside is a new STOP. The STOP is closed.

Machine time (UTC 2026-10-29 / 30)#

Part

Time

the builds (dev-cuda, parity-cuda, cpu-only, the fortified and openmp=OFF trees)

about 1.5 h of shared-lock build time

the replays on GPU 1 (container, damped, IrLP, hub, traces, determinism, oracle, in_place)

00:26-00:38 on the final build (and once before, on 863fff7 and 6cbd245)

the early gate, 2 + 2 exclusive windows on GPU 0

23:57-00:14 and 00:39-00:40 (under a minute each)

the end_to_end diagnosis, 4 exclusive windows

00:04-00:13

the nsys peaks, 2 GPU-1 quiet windows

00:14 and 00:40 (11 s each)

Deviations from the plan and the step’s text (each with the same intent)#

  1. The transplant’s mechanical classes are one commit (863fff7) instead of one per class: O’s code cannot run in the library one class at a time (it allocates, streams and exits on its own), as ADR 0053’s c1 also carried its glue; the go/no-go is the SASS (every ported kernel identical to O’s objects) and the replays on it (ADR 0075).

  2. The timed region is the tool’s own pair of CUDA events around each update(), not the profiler’s label_propagation.update stage (step 3’s driver): the profiler’s CUDA events synchronize at every stage end, inner stages included; no profiler is attached in timed runs.

  3. The capacity check moves to the device on CUDA (basic guarantee, the graph poisoned): a host check would need host row ends, an O(edges) host pass O does not make (ADR 0074).

  4. The device statuses use vertex_status’s values as int32 (O’s active and deleted codes), the seeds’ classes are the result’s (gtClass), as ADR 0069 maps them.

  5. The labels before an update are kept in the CC’s root-id scratch (free by then) instead of a new array, for stats::affected (the device memory of the original; one more kernel and one synchronization at the end).

  6. compute() on CUDA builds IrLP’s snapshot on the device (counted, scanned, filled, each row sorted by column with CUB’s stable segmented sort) instead of O’s host snapshot from the full graph; the same order, no download.

  7. graph::reserve() of a slotted CUDA graph sizes the device batch scratch for that many edges; the vertex arrays grow to the exact size of the largest batch seen (no API to name it).

  8. The edge-only marks on CUDA use a small dynG kernel with buildSubgraphKernel’s marking rule (ADR 0072’s fix); as on the host, an edge to a never-inserted vertex would mark its other endpoint on CUDA but not on sequential: unreachable from O’s generator, recorded in ADR 0075’s context by ADR 0072’s note.

  9. --phases (a diagnostic flag of dyng-compat-dynlp) and the end_to_end diagnosis windows: the 50k end_to_end reading (1.084-1.098) was located to the unified library’s start-up (its CUDA modules loaded with the context), not to the port’s work; nothing was changed for it.

  10. The fast-math scope check is ci/fast_math_scope.py with a pytest on synthetic databases and the worktree’s parity-cuda database when present (CI has no parity-cuda build).

Checks (at 64b4fcc plus the records)#

Check

Result

ci/check.sh (every step)

all passed except scaffold’s docs (Doxygen did not attach the /// block of options::cuda_engine), fixed in 64b4fcc; ci/docs.sh and ci/scaffold_check.sh re-run and passed (cpu-only 1,344 / 1,344, dev 1,382 / 1,382, pytest 405 and 736 passed, scaffold 80 + 54 + 41)

ctest -L gpu on dev-cuda (GPU 1)

892 / 892 passed (the M10b and step-5 placeholders skipped)

the parity replays on the final parity-cuda build (`compare.py label_propagation container –backend cuda

sequential, damped, irlp, hub, trace cuda and sequential, determinism, oracle; label_propagation_sass.py port; ci/fast_math_scope.py`)

compute-sanitizer memcheck and initcheck (5k5, both schedules; the container replays at 5k5 and 50k; dyng_graph_cuda_tests)

0 errors in all 7 runs

the syntax pass with Clang 18 and GCC 13.4 (every C++ file of the tree)

455 files, 0 failures each

the fortified cpu-only tree; DYNG_ENABLE_OPENMP=OFF

1,344 / 1,344 without warnings; 1,187 / 1,187

locklog.py open --track M10; locklog.py validate

exit 0 (nothing open); valid

LabelPropagation-CUDA’s working tree; the carried-item files

unchanged (git status --porcelain empty); untouched by the step’s commits

Notes for step 5#

  • graph_impl.hpp and graph.cpp changed (code compiled into the stable algorithms’ paths): the ADR 0024 reading of step 5 covers them.

  • The kit’s float slotted axis must run the CUDA backend through the same hooks (DYNG_TEST_CUDA suites exist); the CUDA budget is run-dependent (algorithm_budget).

  • in_place’s STOP: step 5’s final in_place reading depends on the author’s answer.

  • The 50k end_to_end gate (1.10) has about 1-2 % of margin on this machine.

Re-estimate#

Step 4 took one working session; the machine time was small (the corpus replays take about 12 minutes on GPU 1, the early gate under a minute per case). Step 5 keeps its estimate (one day for the ADR 0024 re-reading, half a day for the gates, the kit, mutations and sanitizers), provided the author answers the in_place STOP.

Step 5: the kit, the checker oracles, the mutations, the gpu_local step, the gates against O, ics26_dynlp and the 0.4 certificate (kit-mutations-gates-certificate)#

Base still b2b1524: git log HEAD..origin/main was empty at the start of every attempt and at the end of the step (origin/main = b2b1524), so there was no merge of main and the gates were read on the branch as it is. Nothing in cpp/src/operators/execution.hpp, cpp/src/hypergraph/escher/flatten.*, cpp/src/algorithms/sssp/openmp.cpp, cpp/src/util/thread_list.hpp or cpp/src/util/list_gather.hpp changed.

The step ran in five sessions: the first (2026-10-29 21:30 to 10-30 04:27 UTC, cut by the spend limit) wrote the kit, the oracles as tests, the mutations, the gpu_local step, the suite and the certificate and took the gate and ADR 0024 readings on 0c815a1; the second (10-30 11:45-14:22, cut by the usage limit) recorded the author’s three decisions of 2026-10-30 and diagnosed the 5m1 gate miss; the third (16:15-22:20, paused by the author for the weekly limit) landed the fix (72eb020), took every replay, the mutations, the gpu_local step, the checks and the gate series on the final library; the fourth (11-02 from 19:05) took the readings the pause had left out (in_place 50k and 50m, the ADR 0024 set on the final library), retook one audit-flagged reading and drafted the records; the fifth (11-03 from 16:30, after the author’s usage pause) verified every reading of the fourth from its files, retook nothing of the gates, took the stage profile and a placement experiment of the sssp CUDA excursion, and committed the records.

What was built#

Commit

What

f556744

the author’s decision of 2026-10-30 on step 4’s in_place reading (a recorded miss, not a pass), first, in its own commit

bf68072

every result of one dyng::update reads the device apply’s counts (found by the kit’s C10 on CUDA)

9ef43ea

the original’s checker oracles as GoogleTests on both backends and three hand cases

d4fad4a

the kit’s float slotted container axis and label_propagation’s kit traits (ADR 0076)

6072c39

the six recorded mutations of AD9 with their CTests (ADR 0077)

aa57986

the label_propagation step of ci/gpu_local.sh and its GPU_LOCAL_STEPS[(0, 4)] entry

5b799d5

perf_ab.py label_propagation kernels and memory --side both

3479057

benchmarks/paper/ics26_dynlp.yaml, label_propagation in bench_suite.py, the 0.4 certificate rules in certify.py, compare.py label_propagation certificate (ADR 0078)

0c815a1

the weekly hosted oracle (.github/workflows/oracle.yml, ci/oracle_weekly.sh; AD7)

6cd7d95, 0c27fbc, 3b38f5d

the conformance page; the author’s two decisions of 2026-10-30 (seed departures, AD7 at delta 1e-4)

72eb020

Step 0 of vertex batches in fewer passes (ADR 0079: the fix of the 5m1 gate miss); the compat’s evaluation reads the pinned labels

3063306

mutate.py run waits for the other track’s GPU-1 quiet windows

4acb0b5, 5dccc96, 83d46d5

the CHANGELOG entries; the records of the replays, mutations, kit, C8 trace, SASS, triad objects and the 5m1 diagnosis; ADR 0079’s approvals row

2ed13dc

the compacted gate records (M10a-gates-final.json) and the 50m release gate’s reason from the final 3 rounds

4844494

the in_place 5m1 reading of a clean tree in M10a-gates-final.json (update[sum] 1.037, end_to_end 1.040)

(records)

ADR 0024’s records on the final library (M10a-ab-final-*.json, M10a-ab-final-diagnosis.json), M10a.md section 12, ADR 0070’s and ADR 0078’s readings, this section, GOVERNANCE.md, plan.md

Results (parity/results/M10a.md section 12)#

  • The kit: label_propagation passes C0-C3, C6-C12 on sequential and cuda (C4 one engine per backend; C5 skipped: not history-independent); C8 on CUDA reserves in 2 updates (b0, b1).

  • The checker oracles on both backends: 4 / 4 each; IrLP agreement 99.81-99.98 %.

  • Mutations: the control passes, 6 / 6 detected on cuda, each also failing a test on sequential.

  • The replays on the final library: container, traces, damped byte parity on P+, hub, IrLP, determinism and the generator exact; in_place: every port run inside the frozen thresholds and envelope (the condition the author set on 2026-10-30); the oracle within on C and L.

  • The gpu_local step: passed in 2,454 s, every sanitizer 0 errors.

  • The gates (12 / 12 gated rows within): damped update[sum] 1.006 / 1.005 / 0.988 / 1.014, end_to_end 1.097 / 1.032 / 1.006 / 1.029, device memory 1.0005 / 1.0005 / 1.0005 / 1.0018 at 50k / 500k / 5m / 5m1; 50m damped 1.014 / 1.065 at base, so AD4’s release gate is gated.

  • The ADR 0024 set on the final library: STOP. Six whole gated regions of sssp read above 1.02: OpenMP apply at roadNet-PA and roadNet-CA 50k (1.025-1.035, 170 rounds over 85 layouts), CUDA apply at roadNet-PA (1.026 / 1.033) and its unsafe50k end_to_end (1.021, 102 rounds). The apply regions run machine code identical in both libraries at other alignments and vanish with the JCC-erratum mitigation on both sides (OpenMP 0.957-0.987, CUDA 1.002-1.006): code placement. Half of the CUDA end_to_end excursion is not placement: the CUDA context of every process takes about 5 ms longer (+3.6 %), because CUDA_MODULE_LOADING=EAGER loads label_propagation’s 11.9 MB of kernels too. mosp and cycle_count are within (cycle_count’s step-3 excursions now 1.002 / 1.001). Decided by the author on 2026-11-03 (GOVERNANCE.md’s approvals log, the row “The D14-path excursions of M10a step 5”): acknowledged as code placement on the D14 path; the module-loading cost is fixed in M10b and the non-product observation located there.

The 5m1 gate miss#

The first reading on 0c815a1 missed AD2’s bar at 5m1 (update[sum] 1.080 over 11 rounds, slower in every round). It was a cost in the port’s code, not noise and not the protocol: the graph’s host Step 0 of 5m1’s one batch of 4.95 million vertices made five random passes over per-vertex arrays (166 ms against O’s 54 ms). The fix (ADR 0079) keeps every check, its order, message and guarantee; the reading on the final library is 1.014. No bar, round count or protocol was touched, and every reading the fix could affect was taken again.

Machine time (UTC; dyng-work/perf-lock.log, step key kit-mutations-gates-certificate)#

Part

Time

the builds (dev, dev-cuda, parity, parity-cuda, cpu-only, fortified, openmp=OFF, head-parity-cuda) after the fix

about 1.5 h of shared-lock build time

the replays on GPU 1 (final library)

10-30 16:22-16:25 and 17:49-18:44 (about 1 h)

mutate.py run label_propagation (GPU 1)

10-30 16:25-18:32 (2 h 7 min)

the gpu_local step (GPU 1)

10-30 18:44-19:25 (2,454 s)

ci/check.sh and the portability trees

10-30 17:49-19:10

the label_propagation gate windows (EXCL, GPU 0) on the final library

17 windows: 10-30 16:22-22:26 (under 50 min of lock time; the rest waiting in line) and 11-02 19:07-19:16, plus the clean retake of in_place 5m1

the memory readings, 4 GPU1-QUIET windows

10-30 16:21-16:22 and 17:16-17:17 (about 1 min)

the ADR 0024 set on the final library (EXCL)

29 windows, 11-02 19:16 to 11-03 04:48 (6.7 h of lock time, shared with M11’s windows)

the ADR 0024 experiments (EXCL; stage profiles, placement builds nb, fb, fbc)

11-02 23:51 to 11-03 01:58 (7 windows, 21 min) and 11-03 16:54-18:02 (2 windows, 8 min of lock time)

superseded: the first attempt’s readings on 0c815a1

30 LP windows (68 min) and 21 ADR 0024 windows (3 h 36 min)

Deviations from the plan and the step’s text (each with the same intent)#

  1. A library change after the first gate reading (72eb020, ADR 0079) fixed the 5m1 miss; as the step requires, every reading it can affect was taken again on the final library, and the readings of 0c815a1 are superseded and kept outside the repository.

  2. The kit’s models start with 70 % of the vertices present and C2 graphs have 5,000-8,000 vertices at degree 5 (ADR 0076): IrLP’s Jacobi converges slowly on sparse present subgraphs.

  3. The hosted ASan / TSan times are not measured (no workflow is dispatched from the branch); the host kit executable carries the label slow (M9a finding 20), the local times are recorded (ADR 0076 section 6).

  4. C8’s nsys trace counts the updates that call an allocation API (b0 and b1 reserve: the pinned staging of Ins \ Del is first allocated by the first vertex batch; ADR 0079’s Consequences); 2 is within the budget of at most 2.

  5. The in_place 5m1 reading was taken three times. The reading of 2026-10-30 had two rounds flagged by ADR 0056’s audit (the load average above 16); the harness’s own check refuses that only for a gated reading, but ADR 0056 takes a flagged reading again, so it was discarded and retaken on 2026-11-02 (clean audit). That retake ran while the suite file was being edited, so its record names a dirty tree, which the certificate refuses; it was discarded too and taken a third time on a clean tree. All three records are kept under discarded/.

  6. The 50m release gate’s reason in ics26_dynlp.yaml was restated from the 3 damped 50m rounds of the final library (2ed13dc), as the step asks (the basis of the feasibility statement); the state stays gated.

  7. M10a-gates-final.json compacts the full gate records (about 0.6 MB) into one committed record with every gated row’s round samples and each full record’s SHA-256 (step 3’s compacted reading records).

  8. The GCC 13 check. The syntax pass with the conda GCC 13.4 over every C++ file passes (501 files, 0 failures). A full -c compile of the dev database with it additionally reports -Wmismatched-new-delete in three test files that the branch did not change since b2b1524 (cpp/tests/graph/allocation_failure_test.cpp, cpp/tests/io/fuzz_regression_test.cpp, cpp/tests/algorithms/mosp/mosp_allocation_failure_test.cpp: their replaced operator new with free): pre-existing, not M10a’s, and not reported by the hosted gcc-13 job of 0.3.0; recorded, not changed here.

  9. The ADR 0024 records of the final library are committed compacted as in step 3 (M10a-ab-final-*.json, 34 records with the CUDA placement experiment, about 2.2 MB: bench_suite’s compaction, the monitor windows dropped, every sample, verdict and rejected round kept); the full records stay under $DYNG_SCRATCH/runs/m10a-kit-mutations-gates-certificate/adr0024/.

  10. A placement experiment on CUDA (fbc: the parity-cuda configuration plus ADR 0061’s set FB on the host code of both sides, compat tools only, deleted afterwards) and a CUDA stage profile were added in the fifth session, so that the author’s decision on the STOP has the same evidence for the CUDA excursion as step 3 had for OpenMP; experiments, not gates.

  11. The STOP did not end the step’s work: every other item was finished, recorded and checked; nothing was changed to move the six regions (no code, flag, bar, round count or protocol), as the stop rules require.

Checks (at 37e1f20 plus the records; the library at 72eb020)#

Check

Result

ci/check.sh (every step; the final library’s sources at 4acb0b5, 2026-10-30 17:49-18:58 UTC)

all passed (the dev and cpu-only trees with the kit, the mutation CTests label_propagation.mutation.*, api-snapshot 1,390 declarations, docs, pre-commit, reuse, provenance, the test-data budget, regen)

ctest -L gpu on dev-cuda (GPU 1, the final library)

958 / 958 passed in 1,662 s (11-02 20:35-21:03 UTC, at 2ed13dc; the M10b placeholders and C4 / C5 skipped)

the LP replays, the mutations, the gpu_local step (12.3-12.5)

passed; 6 / 6 detected; passed in 2,454 s

Clang 18 syntax pass; GCC 13.4 syntax pass (every C++ file)

501 files, 0 failures each (GCC 13.4’s full -c compile: three unchanged 0.3 test files with -Wmismatched-new-delete, retrospective deviation 8)

the fortified cpu-only tree (-D_FORTIFY_SOURCE=3); DYNG_ENABLE_OPENMP=OFF; the CUDA-off (cpu-only) tree

1,428 / 1,428; 1,265 / 1,265; in ci/check.sh

pytest parity/tests ci/tests (after the records)

414 passed (11-03, at 4844494 plus the records)

DYNG_CHECK_ONLY="harness docs precommit reuse provenance testdata regen" ci/check.sh (after the records)

all passed (11-03 19:03 UTC, at aadd04a plus these records; its harness step’s pytest 414 passed; the first run, at 37e1f20, failed only on pre-commit’s end-of-file fixer for three step-5 records, fixed in 5ddb040)

bench_suite.py validate (every suite); certify.py write --dry-run label_propagation (0.4.0)

every suite valid (6); the dry run (0.4.0) from a clean clone at 37e1f20: PASSED (12 / 12 gated rows; the 7 golden sets passed; 21 parts outside it, the release-only release-damped-50m among them as gated, pending R040)

the weekly oracle’s command, locally (ci/oracle_weekly.sh build/parity, the final library)

within on both schedules (smallest margins 2000 delta / mean 2.83 damped, 14.83 in_place; the flips beyond 3m reported only, ADR 0078); the 4,579 s first recorded here was not the job’s cost (corrected by the M10a review; section “Review fixes”)

ci/test_data_budget.py; the goldens root

1,022,240 of 1,250,000 bytes (M10: 19,569 bytes, unchanged since step 2); label_propagation’s sets 605 MB (577 MiB) of the 1.2 GB share

locklog.py validate; locklog.py open --track M10

valid; exit 0

LabelPropagation-CUDA’s working tree; the carried-item files

unchanged (git status --porcelain empty); untouched by the branch’s commits

Notes for M10b#

  • The final library’s end_to_end at 50k is 1.097 of 1.10: the unified library’s start-up (about 30 ms of driver and context initialisation with EAGER loading) is the whole margin. Any start-up cost M10b adds (the operators engine’s modules, Python) must be measured against it.

  • The pinned staging of Ins \ Del is allocated by the first vertex batch (C8 counts 2 reserving updates); reserve() could size it.

  • in_place at 5m1 reads 1.037 (reported, not gated): the host Step 0 of one large batch is still 78 ms against O’s 54 ms; using the resources’ host threads for Step 0 would change graph.cpp’s apply (ADR 0079, not done).

  • eval (after the timer) is up to 3.5x O’s at 5m1 and 50m; it is inside end_to_end, which passes.

  • The library’s CUDA kernels are loaded eagerly by every process under the protocol (CUDA_MODULE_LOADING=EAGER): label_propagation’s 11.9 MB of fatbin cost every CUDA process of the library about 5 ms of context creation (section 12.9). M10b’s operators engine adds more kernels; M10b must measure this cost (the fatbin per algorithm, the context time of sssp, mosp and cycle_count) against ADR 0024’s bar.

  • From the author’s decision of 2026-11-03 (two M10b items): (1) put label_propagation’s kernels in a module of their own that is loaded only when label_propagation runs (so that CUDA_MODULE_LOADING=EAGER no longer adds about 5 ms of context creation to every CUDA process of the library), and read the CUDA end_to_end region of sssp (roadNet-PA unsafe50k) again against ADR 0024’s bar; (2) locate the non-product observation: the OpenMP pair built without CUDA (nb) reads end_to_end 1.065-1.088, the extra time outside the timed stages.

Re-estimate#

Step 5 took five sessions instead of the estimated one and a half days, for two reasons outside the plan: the 5m1 gate miss (diagnosis, fix and a full second series of readings: about 6 h of machine time) and four interruptions by account limits, each costing a re-verification of the records. It ended at a STOP for the author (the ADR 0024 re-reading), decided on 2026-11-03 with no change to the library in M10a and two items for M10b. The ADR 0024 set alone is about 10 h of exclusive lock time per reading of the whole set, and it shares the calendar with the M11 track. M10b (the operators engine with AD6’s refactored bound, the streaming mode, the formats, Python, the CLI, the docs and the freeze) keeps PLAN’s estimate of about one and a half weeks; budget one more full ADR 0024 set (about 10 h of lock time) for M10b’s library changes, and a second only if a reading must be repeated.

Review fixes (after step 5)#

Independent reviewers confirmed 28 findings on 44eb58b (four lenses: parity and float honesty, the container contract and API, the gates’ protocol and memory, robustness of the kit, the mutations and the sequential backend). The fix pass ran in two sessions (2026-11-03 from about 21:30 UTC, cut at 22:35 by the account’s usage limit with uncommitted edits in 12 files; resumed at about 22:50 UTC), kept what was right of the first attempt’s edits and committed the rest in small commits. origin/main had not moved at the start of the pass; it moved to 64a5123 (M11a) after the first series of readings on the fixed library, and was merged as d327950 before the final readings, which were taken again on the merged library (the gates against O, the SASS port gate, ADR 0024’s set, the checks; parity/results/M10a.md section 14). Nothing in the carried-item files changed in the branch’s own commits (M11a’s for_each and flatten_rows arrived through the merge).

What was fixed#

parity/results/M10a.md section 13.1 lists each finding with its fix. In short: the container (the poison kept with the host state; 64-bit slot and row-end arithmetic in the device append; the device vertex arrays grown with headroom; the guard’s suggested copy; the self-loop count), the framework (the entry checks of a non-compact graph before Step 0), label_propagation (a fallback whose IrLP caps reports converged = false; out_of_memory_error from compute, reserve and clone), the tests (the tau boundary, the default threshold, a label-bit digest, the device allocation-failure sweep, the allocations after reserve, the kit’s seeds from its own rule), the parity tools (every case of every set in the certificate, the record recheck, the applied oracle tolerance, every trace field, the whole-instruction SASS gate, the IrLP counts, the oracle replay’s flips and maximum, the memory sampler) and the records (the approvals row of the 50k end_to_end decision, lp_host_model::vertex_state among the extra names, the footprint, the reproducibility of the commands).

The STOP#

The final in_place reading on the fixed library has one run outside the frozen iteration envelope: 50k run 0 at batch 9 (88 iterations against 78.1; its labels, components, initial frontier and iteration sum inside). As the author’s rule of 2026-10-30 requires, it was not re-rolled or replaced and is reported with 30-run evidence: in 30 fresh runs at 50k the unpatched original itself is outside the same envelope 3 times and the port once (parity/results/M10a-review/inplace-rate-50k.json); the gpu_local step’s own 6 in_place runs are inside. The envelope was frozen from 10 reference runs, and the original’s own runs miss it about 10 % of the time at 50k. Decided by the author on 2026-11-04 (approvals log, the row “The in_place tail event of the M10a review fixes”): a recorded miss, not a pass, the rule unchanged, and a later reading with a run outside the envelope is a new STOP.

A second STOP, on the merged library. The gpu_local step’s in_place cloud after the merge of main has one such run again: 50k run 1 at batch 9 (82 iterations against 78.1; labels, components, frontier and sum inside). As the decision requires, it was reported as a new STOP for the author (GOVERNANCE.md, Open decisions, M10 (AD)), with the same 30-run evidence and not re-rolled. Both misses are at the same batch of the same case, where the unpatched original itself leaves the envelope about one run in ten. Decided by the author on 2026-11-04 (approvals log, the row “The in_place tail event after the merge of main”): a recorded miss, not a pass, the rule unchanged; a later run outside the envelope is a new STOP.

A third STOP, in the replays on the merged library: the hook-round count. The damped byte parity of the fused engine (parity/results/M10a.md sections 14.6-14.7) is identical in 9 of the 10 cases of P+; at 500k every byte and every other trace field is equal, but batch 2’s Shiloach-Vishkin round count (connected_components.hook_rounds, the trace golden’s “hook-round delta”) is 3 against the golden’s 4. The original’s hook kernel reads parents that other threads of the same launch lower with atomicMin, so the round count follows the thread schedule: in 70 fresh runs at 500k the original’s recorder twin takes 3 rounds at that batch twice and the port three times (parity/results/M10a-merged/hook-rounds-500k.json). The check that requires the count to be equal is therefore not exact, which the milestone routes to the author (GOVERNANCE.md, Open decisions, M10 (AD)); nothing was re-rolled and no comparator, golden or criterion changed, so the certificate’s dry run of label_propagation failed on the damped set until the author decided. Every other replay on the merged library passed, the in_place cloud with every run inside. Decided by the author on 2026-11-05 (approvals log, the row “The hook-round count of the damped trace parity”): the field is a non-deterministic counter of the original, compared against the values the original’s own runs produce for that case and batch, every other field exact, the goldens unchanged. ADR 0100 carries it out (the committed evidence M10a-hook-rounds.json from the twin’s runs, the comparator, damped-rejudge, the certificate’s check, tests that a value outside the original’s set and any other field still fail). The existing record, judged again without a new run, is identical in 10 of 10 cases (M10a-merged/damped-adr0100.json), and the 0.4 certificate’s dry run of label_propagation passes (M10a-merged/certify-dryrun-adr0100.json; parity/results/M10a.md sections 14.6-14.7).

A fourth STOP, in ADR 0024’s reading of the merged library. Every gated region of sssp, mosp and cycle_count is within the 1.02 bar (the six sssp regions acknowledged on 2026-11-03 among them) but two: cycle_count CUDA DD’s static_end_to_end 1.022 and update_end_to_end (100000) 1.024 (parity/results/M10a.md section 14.4). Their kernels read 0.994-0.999; the 9.7 and 12.3 ms are the library’s start-up: under CUDA_MODULE_LOADING=EAGER the merged library creates its CUDA context 8.6 ms later than b2b1524’s (context-probe.json), 4.8 ms of it label_propagation’s kernels (the cost the author’s decision of 2026-11-03 fixes in M10b) and 3.8 ms M11a’s. Before the merge both regions were within. They are not on the acknowledged list, so they go to the author (GOVERNANCE.md, Open decisions, M10 (AD)); nothing was changed and the M10b fix was not pulled into M10a. Decided by the author on 2026-11-05 (approvals log, the row “The cycle_count module-loading excursions of the merged library”): both regions are acknowledged for M10a, with no change to code, flags, bar or round counts in M10a; M10b’s lazy module loading is widened to every algorithm’s kernels, and M10b reads the two regions again (the hand-over below).

Deviations (each with the same intent)#

  1. The entry checks without a public interface. The first attempt added a virtual check_entry to the public update_participant (update.hpp); the fix keeps the public interface unchanged (a public name beyond AD12’s list would have been an author item) and makes the check an internal interface (framework/entry_check.hpp) that only label_propagation’s participant implements; every other participant gets the guard. A first version put the hook into framework/composition.hpp and problem.hpp, which triad_count’s objects include: it was reverted before any reading, so triad_count’s objects stay unchanged (section 13.5).

  2. The device allocations after reserve are fixed by headroom (and Del_eff’s array sized with the deletions) rather than by a new reserve overload: graph::reserve() knows only edges and result::reserve() not the graph, and a new public overload would be a name beyond AD12’s list. The documentation of both reserves says what each covers; the published streams now allocate in b0 and b1 only.

  3. The kit’s C8 allocation check of the DynLP stream on CUDA is a hand case of the CUDA suite (UpdatesAfterReserveAllocateOnlyInTheFirstBatches), not a kit check: the kit’s C8 reads equal-shape batches by design (ADR 0076).

  4. Every reading was taken again on the fixed library because the fixes changed code that the stable algorithms link (run_update() in composition.cpp, graph.cpp’s Step 0 dispatch): criterion 10’s rule (a region whose compiled code changed is read again) and the gates’ (every gate on the final library). The readings ran from a clone of the branch at the final code commit, so that the records never name a dirty tree while the records were written.

  5. The 50k end_to_end margin is recorded as the author’s decision of 2026-10-30 in its own approvals-log row; it is not added to M10 (AD), which holds only the categories the plan routes there; the margin is a note for M10b and R040 below.

  6. The merge of main in the middle of the pass. origin/main moved to 64a5123 (M11a) after the first series of readings on the fixed library. It was merged (d327950) and every final reading was taken again on the merged library: the gates against O, the SASS port gate, the gpu_local step, the checks and ADR 0024’s whole set (the merge changes the host code of the stable algorithms: M11a’s over_budget hook of the enactor). The first series stays committed as the record of the fixed library before the merge (sections 13.3-13.5); section 14 decides. The merged library’s object comparison is not committed: with the source root and the names nvcc derives from it normalized away, its device code differs from the pre-merge library’s only in those names, but its host code differs for real, which is what decided the re-reading.

  7. O’s check runs taken again from a fresh copy. The oracle replay against O’s checker needs O’s --check runs, which were gone from the scratch area, and the scratch area’s patched copy predates the step-2 recorder. On the merged library they were taken again from a fresh patched copy (parity/build_reference.sh --variant patched --fresh, removed afterwards), so the review’s stricter verdict (flips and maximum gated) ran on real runs, not only on the committed record.

  8. The exclusive-lock calendar. The pass’s shared-lock work (ci/check.sh, the mutation suite’s builds, the gpu_local step’s sanitizers) holds the shared lock for hours, during which no exclusive window of either track can start. The merged library’s GPU checks were therefore started only after its gate readings; ADR 0024’s set and the checks then interleave.

Machine time#

UTC, dyng-work/perf-lock.log, step key review-fixes: on the fixed library (2026-11-04 02:41 to 12:04) 14 exclusive windows of the gates (0.6 h of lock time), 4 GPU-1 quiet windows of the memory readings and 29 exclusive windows of ADR 0024’s set (6.2 h); on the merged library (11-04 11:17 to 11-05 09:48) 14 gate windows (0.7 h), 5 quiet windows (one set aside for a foreign process and taken again), 29 ADR 0024 windows (6.8 h) and the context probe (1 min). Most of the wall time was waiting: the two tracks’ exclusive windows and the shared-lock jobs (the checks, the mutation suite, the replays, about 6 h of GPU-1 replays on the merged library) take turns on one lock, so the merged set took 15.6 h of wall time for 6.8 h of its own windows. Every window ended with its END line, every GPU-0 reset ok.

Notes for M10b and R040#

  • The 50k damped end_to_end is the thinnest gated margin (1.092 against 1.10 on the fixed library, 1.084-1.098 before): the unified library’s start-up with CUDA_MODULE_LOADING=EAGER is the whole margin. M10b’s kernel module of its own for label_propagation (the author’s decision of 2026-11-03) should widen it; R040 reads it again.

  • The D1 footprint (allocations plus the pool’s reserve) at 50k is several times O’s (the stream-ordered pool’s granularity of 32 MiB against O’s 6 MiB of allocations), reported and flagged under D1 with M9’s D11; trimming the pool is outside M10a.

  • graph::reserve() cannot size the vertex arrays of a vertex batch (it takes edges only); M10b’s API review may add a vertex-capacity reserve (a new public name, for the author).

  • The hook-round count of the damped trace parity (the third STOP above, decided on 2026-11-05; ADR 0100): every damped replay compares connected_components.hook_rounds against the original’s values in parity/results/M10a-hook-rounds.json (500k batch 2: 3 or 4; elsewhere the golden’s value alone). M10b’s operators engine applies the same rule to its own fused replays. A replay that finds a count the evidence does not hold fails; if the original’s twin itself produces it, the way to widen the set is a new committed twin record (never the port’s runs), which goes to the author as a change of parity evidence. R040’s certificate replay is judged by the same rule.

  • The M10b hand-over from the author’s decisions of 2026-11-05 (with the two items of 2026-11-03 under “Notes for M10b” of step 5): (1) the module loading widened: M10b’s kernel module of its own, decided for label_propagation’s kernels on 2026-11-03, now covers every algorithm’s kernels (M11a’s hyper_sssp included), so that a process loads only the kernels of the algorithms it runs and CUDA_MODULE_LOADING=EAGER no longer charges every CUDA process of the library for all of them; (2) on the library that carries it, M10b reads again, against ADR 0024’s bar, the two cycle_count CUDA regions acknowledged for M10a (count/DD_k4 static_end_to_end 1.022 and update/DD_k4_100000_100000_s1 update_end_to_end 1.024, parity/results/M10a.md section 14.4) together with sssp’s CUDA end_to_end region of 2026-11-03 (roadNet-PA unsafe50k).

The decisions of 2026-11-05 carried out (2026-11-10)#

The orchestrator stopped the run at the start of acceptance (2026-11-05 10:01 UTC) so that it would not spend its rounds on the two undecided STOPs; the author decided both on 2026-11-05 (2bfeac7). This last part of the pass implemented the hook-round rule (ADR 0100: the evidence, the comparator, the certificate’s check and their tests), judged the merged library’s damped record again under it (10 of 10 identical), wrote the damped certificate record again and ran the 0.4 certificate’s dry run of label_propagation (passed), the parity harness’s tests and the checks the change touches (ci/check.sh steps harness, reuse, provenance, regen, docs, precommit). No reading was taken again: the decisions change no code of the library, and the cycle_count decision changes nothing in M10a.

Re-estimate#

The fix pass took one session of code and tests (about 3 h of work, spread over four sessions cut by the account’s usage limit) and two full sets of readings, one on the fixed library and one on the merged library (the replays and mutations on GPU 1, the gpu_local step, the gates and the ADR 0024 set: 14.3 h of exclusive windows in all and about two days of wall time, most of it waiting for the shared lock). M10b keeps its estimate; budget one more full ADR 0024 set for its library changes, as step 5 said, and plan the readings of both tracks into one calendar: a merge of main in the middle of a reading series costs a whole second series.

Acceptance round 1 (2026-11-11)#

The independent acceptance verifier (round 1, at 1d582ff) passed criteria 1-18 and 20 on its own runs. It failed one sub-item of criterion 19: the scoped 0.4 certificate dry run of hyper_sssp on the merged tree (rc=1). M11a’s committed records (parity/results/M11a-ia3_hsosp/ and the M11 replay records) were measured on 18805af, df6e99b and e118379, before the merge d327950 added label_propagation’s library code, so the certificate finds that they “do not have the release’s code”. The same records with only their measured commits set to HEAD pass, so the certificate’s M11 entries and their merge are sound.

The author’s ruling (2026-11-11; GOVERNANCE.md’s approvals log, the row “M11’s scoped certificate dry run on the merged tree”, 2427269). That dry run, with M11’s replays and ia3_hsosp gates measured again on the merged library, belongs to the integrator, the second of M10b and M11b to freeze (expected M11b), as M11a already planned (parity/results/M11a.md section 11.8). M10a does not take M11’s readings again.

What the fix did#

  • Recorded both dry runs on 2427269, CPU only, over committed records:

    • label_propagation PASSED (parity/results/M10a-merged/certify-dryrun-accept-r1.json: 7 golden sets, 12 / 12 gated rows, 23 parts outside it).

    • hyper_sssp FAILED for the stated cause alone (parity/results/M10a-merged/hyper_sssp-dryrun-accept-r1.json: 17 problems, 10 of them “measured commit … does not have the release’s code” and 7 “no passed replay” that follow from them).

  • Recorded the sub-item in parity/results/M10a.md section 14.9, here, and in ADR 0078’s consequences.

  • Changed no code, record of M11, gate, tolerance or protocol.

  • Took no reading. An earlier attempt of this fix had started M11 readings under the step key acceptance-fixes. The orchestrator stopped it at 04:11 UTC after the ruling and closed its open exclusive window as interrupted. None of its readings is committed.

Hand-over to M10b and M11b (the integrator)#

  • Owed by the integrator (the second of M10b and M11b to freeze; expected M11b): on the merged library, measure M11’s replays (hyper_sssp_mosp_escher: by_id, by_id_public, by_key and store on cuda; by_id, by_id_public and by_key on sequential) and the ia3_hsosp gates again. Then run both scoped dry runs on the merged tree: certify.py write --version 0.4.0 --dry-run hyper_sssp and --dry-run label_propagation, each over its own results directory outside benchmarks/results/. Both must pass.

  • M10b changes the library (its own kernel modules, the operators engine), so the label_propagation records of d327950 will not have the release’s code either. M10b measures them again on its library, and the integrator runs label_propagation’s dry run on the final tree for the same reason as hyper_sssp’s.

Re-estimate#

The fix was records only, about 1 h of work with no GPU time. The integrator’s re-measurement adds no work to the 0.4 plan: M11b measures M11’s records on the final library anyway. M10a’s estimate for M10b is unchanged.