Retrospective: M10b (label_propagation: the refactored engine, streaming, formats, Python, freeze)#

Status: the review fixes done: the 22 confirmed findings of the review fixed (the cu12 plugin’s kernel groups, the end_to_end time outside the timed updates restored, the compaction hint, the docs and the freeze’s checks), and every certificate reading taken again on the fixed library: every gate, replay and check within, except the in_place cloud under the every-run rule, where one 50k run of three crossed the per-batch iteration envelope at batch 9 in each of three readings (a recorded miss, the author’s decisions of 2026-11-14 and 2026-11-18). By the author’s decision of 2026-11-18 the in_place set’s certificate is judged by a rate rule (ADR 0111: 30 port and 30 original runs per case, one-sided Fisher exact test at 5 %, the run-by-run checks kept); its reading on the final library code passes every case, AD9’s in_place mutation still fails it, and both scoped dry certifies pass. Pending the author: the approval of ADR 0111’s wording before M10b’s pull request, and AD15’s stability confirmation at 0.4.0 (section “Review fixes”).

Step 4 (docs-api-review-freeze-final-reads) done, with two STOPs for the author: the docs (the ten-section page, the history page, the row-layouts concept page, the streaming tutorial), the API review and freeze (ADR 0109 part A), the kernel groups (part B: each algorithm’s CUDA kernels load only when it runs; two misses found by the final re-read and fixed), the integration after M11b’s merge (116eb58; both scoped 0.4.0 dry runs passed), and the final re-read on the merged library (every LP gate and replay within; the stops: sssp’s and mosp’s CUDA SOSP regions on roadNet-PA against the pre-M10b library, and the ia3_hsosp first-batch row of dblp_hyperedge_25000 in a superseded reading, both recorded as decided by the author on 2026-11-13 in 0190df3, a commit this step did not make; the certificate set read a third time at the final code b912b02; section “Step 4”).

Step 3 (python-cli-knn-examples-wheels) done: Python with the float32 graphs of AD14, Graph.with_capacity and the vertex batches, dyng.label_propagation with zero-copy, copy-on-write labels, the generators, the oracle and the label files; dyng label_propagation and the two vertex-arrival generators of dyng generate; the kNN recipe of AD18; the examples (their labels the compat tool’s on sequential and the original’s own on cuda); the wheels (each far below 90 MB, the plugin smoke test under the oracle). Step 2 (slack-streaming-generator-io) done: row_layout::slack and the streaming mode (damped on slack rows bitwise slotted’s while no compaction ran; the oracles on every batch), the library vertex-arrival generator, the batch files’ vertex records and float weights, float edge lists and io::write_labels; the LP slotted path against M10a’s tip 1.000 (ADR 0024); every M10a replay green. Step 1 (operators-engine) done: the operators engine is the fused engine’s bits with identical counts on P+ (AD6 met at max |dF| = 0; no fallback). The step’s check of M10a’s replays found the in_place cloud missed by two 50k runs of the unchanged fused engine, a STOP that the author decided on 2026-11-11 (a recorded miss, not a pass; the rule unchanged; section “Step 1”, “The STOP”). M10b is the second half of PLAN 11.4’s M10 row (label_propagation, release 0.4.0; Appendix F; ADR 0063, the plan of record): the operators engine within AD6’s c·ε, row_layout::slack and the streaming mode, the library vertex-arrival generator and the formats, Python, the CLI, the kNN recipe, the docs and the freeze. It runs in four steps, and each step adds its section here.

Base and merges of main. The branch m10b-label-propagation was created by the orchestrator from origin/main at 9bf1bd3 (the merge of M10a, #23, which contains M11a’s merge 64a5123). At the start of step 1 (2026-11-11) git log HEAD..origin/main was empty: no merge of main yet. Steps 1-3 had no merge either. In step 4 (2026-11-12, about 13:55 UTC) origin/main moved to ae5fc47, the author’s merge of M11b (dyng-dev/dyng#24, with its own merge of main c854f69), and it was merged into the branch as 116eb58 (a merge commit): M11b had frozen and merged first, so M10b is the second to freeze and the integrator (rule 5). That is the last merge of main; every final reading of step 4 is on the merged library.

Step 1: the operators engine within c·ε (operators-engine)#

Base still 9bf1bd3 at the start and the end of the step (git log HEAD..origin/main empty): no merge of main.

What was built#

Commit

What

7f5e156

AD6’s calibration tool (`compare.py label_propagation calibrate

cc9641b

the calibration flags’ generator expression quoted (the first run’s both variant had lost -fmad=false)

242be2d

c frozen before any operators-engine code: c = 2^20 in parity/goldens.toml with parity/results/M10b-calibration.json

(operators)

cpp/src/algorithms/label_propagation/operators/ (ADR 0102): binned_frontier, neighbor_reduce, connected_components, sequential and CUDA halves, with their sequential-model tests on sequential_exec and cuda_exec (the hub degrees)

(engine)

the operators engine on CUDA (ADR 0101; operators_engine.hpp / .cu, the problem’s hooks on CUDA), its tests (bits and counts against the fused engine under strict budgets, the hub golden, the limits and scope, the checker oracles at 5k5 and 50k), the mutation CTests label_propagation.mutation.cuda_operators.*, ci/gpu_local.sh’s operators rows

(perf)

perf_ab.py label_propagation engines

(records)

ADRs 0101, 0102; parity/results/M10b.md section 1; GOVERNANCE.md (the two ADR rows; the AD6 outcome); the CHANGELOG (M10 sub-block); the algorithm page; this section

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

  1. The operators stay in the algorithm’s folder (algorithms/label_propagation/operators/, namespace lp_ops), not in cpp/src/operators/ as PLAN 11.4’s M10 row lists them: PLAN 4.5.3’s rule of two (one user each); ADR 0102 records the promotion rule.

  2. The operators take the resources and name their executor (neighbor_reduce<cuda_exec>(res, ...)), not an executor object: an operator with its own kernels needs the stream, which operators::cuda_exec keeps private, and M10 does not change cpp/src/operators/ (the shared headers; execution.hpp is M11’s carried item).

  3. No operators twin of schedule::in_place (PLAN 4.5.4 and the step’s text: optional): compute() and update() with engine::operators under in_place raise not_supported_error (the first GPU ctest found the kit’s C8 building an in_place chain on the operators engine that compute() accepted; compute() refuses it since). So the in_place mutant (inplace_plain_jacobi) has nothing to act on in the operators engine; the five other mutants fail its own cases (the CTests label_propagation.mutation.cuda_operators.*), and the in_place mutant keeps its fused and host rows.

  4. compute() is IrLP on every engine (the published baseline, PLAN 6.4.7: “IrLP stays deliberately unchanged”); engine::operators no longer raises in compute() under damped.

  5. One kernel per phase, and the arithmetic of the fused engine: the large bin’s block is 1024 threads while the frontier holds at most 1024 vertices (the fused engine’s persistent kernel takes those iterations) and 256 above, so the labels are the fused engine’s bits; the persistent kernel itself has no operators twin.

  6. The calibration builds the compatibility tools’ algorithms only (DYNG_ALGORITHMS = label_propagation, sssp, cycle_count, mosp, triad_count; a reconfigure per variant recompiles label_propagation’s CUDA sources alone); the control variant proves the build reproduces the goldens’ bits.

  7. The stage trace records the fused engine only (the operators engine’s parity is its bits and counts).

Carried items (none in M10)#

All three carried items of 0.4 are M11’s (the orchestrator’s reconciliation of 2026-10-27): operators::openmp_exec::for_each (M11a step 2, ADR 0083: on origin/main, e84d338), escher::flatten_rows (M11a step 2, ADR 0084: on origin/main, 5cafb88) and the D13 class of sssp’s OpenMP regions with list_gather’s omp single (M11b step 1: on the branch m11b-hyper-sssp, e0d6129, not on origin/main yet). This step changes none of 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.

Results (parity/results/M10b.md section 1)#

  • AD6’s c: 2^20 (c·ε = 0.125), frozen in 242be2d before any engine code; every perturbation of the fused engine changed a count.

  • The operators engine on P+: max |dF| = 0 on every batch, identical iterations, components and frontier_visits (5m by its digests); the hub golden on it; C4 bitwise on the damped suite; the checker oracles at 5k5 and 50k on it; five of the six mutants detected on its own cases (the sixth, in_place, has nothing to act on there).

  • The fused damped bytes on P unchanged; trace (cuda, sequential), generator and oracle replays green; the fused kernels’ SASS the original’s.

  • The engine reading (reported): operators / fused update[sum] 1.828 at 50k, 1.248 at 500k.

The STOP#

The in_place cloud (compare.py label_propagation inplace --cases 5k5,50k, the step’s check of M10a’s replays): two of the three 50k runs are outside the iteration envelope (run 0 at batches 6 and 8, run 1 at batch 9), their labels, sums, components and initial frontiers inside. M10b changed no code the fused in_place path runs (its kernels are the original’s instruction for instruction). The 30-run evidence (parity/results/M10b-inplace-rate-50k.json): the original 0 of 30 outside, the port 2 of 30; with M10a’s evidence 3 of 60 each. The protocol (the author’s rows of 2026-10-30 and 2026-11-04) makes a run outside a new STOP for the author with this evidence; nothing was relaxed, re-rolled or replaced. It is listed in GOVERNANCE.md’s Open decisions, M10 (AD). The reading was taken on GPU 1 while the machine’s other track also used it (the in_place schedule’s iteration counts depend on the device’s scheduling).

The author’s decision (2026-11-11, 8f7de15; GOVERNANCE.md, the approvals-log row “The in_place tail event of M10b step 1”): a tail event of the non-reproducible in_place schedule, as on 2026-10-30 and 2026-11-04: a recorded miss, not a pass; the rule, the envelope and the calibration are unchanged, and the reading is not taken again. A later in_place reading with a run outside the envelope is a new STOP for the author. The open-decision row is closed.

Machine time (UTC 2026-11-11)#

Part

Time

the calibration (two runs: the build of the compatibility tools’ algorithms, four variants, the nine cases of P each)

about 20 min each, GPU 1, shared lock

the operators replays and M10a’s replays (GPU 1)

15:51-16:07 and the clean re-run of operators and damped after 100dbb2

the 30-run in_place evidence at 50k (GPU 1)

about 6 min

the engine reading: one exclusive window on GPU 0 (operators-engine engines-50k-500k)

16:45:25-16:47:00 (rc=0 reset=ok)

the builds and checks (dev-cuda, parity-cuda, dev, fortified cpu-only, openmp=OFF, ci/check.sh)

shared lock

No GPU-1 quiet window was taken (no gated memory reading in this step).

A GPU-1 job inside another track’s quiet window. The step’s first attempt (cut at about 19:05 UTC by the account’s usage limit, not by a failure) ran a rerun of label_propagation’s GPU ctests on GPU 1 from 18:54 UTC: its driver checked tools/locklog.py quiet-ok M10b once before it started, and its jobs then ran on inside M11b’s window GPU1-QUIET M11b review-fixes-merged memory-nsys-hd6-merged (18:56-19:15 UTC, rc=1), which spoiled that memory reading of M11b. The resumed step’s driver (runs/m10b-operators-engine/resume/driver.sh) checks quiet-ok before every GPU-1 job; a GPU-1 series that outlasts one check must check again before each job.

Checks#

Check

Result

the operators’ tests (host, cuda), the engine’s CUDA tests (strict budgets), the checker on the operators engine, C4

passed (dev-cuda, GPU 1)

ctest -R label_propagation.mutation (dev-cuda)

20 / 20 (every mutant detected, the controls passing; the 6 new cuda_operators rows included)

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

1,067 / 1,069: the two in_place C8_TheAlgorithmPhaseStaysWithinItsBudget rows of the CUDA kit failed (C8 built an in_place chain on engine::operators, which compute() accepted and update() refused); fixed by compute()’s refusal (deviation 3)

after that fix (the resumed step, runs/m10b-operators-engine/resume/): label_propagation’s GPU ctests (ctest -L gpu -R 'label_propagation|LabelPropagation|lp_|operators', GPU 1)

105 / 105 (both in_place C8 rows pass; the in_place C4 rows skip, one engine)

after that fix: ctest -R label_propagation.mutation (dev-cuda, GPU 1)

20 / 20

after that fix: label_propagation’s CPU ctests (dev)

97 / 97

after that fix: Clang 18 -fsyntax-only over the changed translation units

15 files, 0 failures

after that fix: the fortified cpu-only and the DYNG_ENABLE_OPENMP=OFF builds (incremental), label_propagation’s CPU ctests

built; 97 / 97 each

after that fix: ci/check.sh (every step: format, cpu-only and dev with ctest -L cpu 1,605 / 1,605 on cpu-only, the consumer, tidy, REUSE, provenance, test data, the harness, the docs, regen, Python, griffe and api_snapshot.py --against origin/main, the scaffold, pre-commit)

all checks passed (2026-11-11, 20:12-21:34 UTC)

Clang 18 -fsyntax-only over the dev database (ci-local/clang_syntax.py)

692 files, 0 failures

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

692 files, 0 failures

cpu-only with -D_FORTIFY_SOURCE=3

built without a warning; ctest -L cpu 1,605 / 1,605

DYNG_ENABLE_OPENMP=OFF (cpu-only)

built; ctest -L cpu 1,396 / 1,396

ci/api_snapshot.py

1,436 declarations match (options::cuda_engine’s documentation only)

Step 2: slack rows, the streaming mode, the library generator, the formats (slack-streaming-generator-io)#

Base still 9bf1bd3 at the start and the end of the step (git log HEAD..origin/main empty): no merge of main. The step’s first attempt was cut at about 23:05 UTC on 2026-11-11 by the account’s usage limit (not by a failure); the orchestrator resumed it on 2026-11-12 at about 01:10 UTC. The resume kept the first attempt’s commits (4389f81 to c3e4309) and its uncommitted work, fixed what its last GPU run had found (the kit’s C8 on the new slack preset), finished the rest and committed it in small commits.

What was built#

Commit

What

4389f81, 8e1dded

the formats (AD13 with HD10; ADRs 0105, 0106): .dgt +v / -v and float tokens, .dgb code 3 and flag bit 4 with the 48-byte count block, known_graph (M11a’s per-kind masks), header_problem per kind, flags fixed at open; float edge lists; io::write_labels / read_labels in O’s bytes (dyng-compat-dynlp writes through it); the fuzz targets and seeds; docs/api/file_formats.md (M10’s section)

8dcc1f1

generators::generate_vertex_arrival_stream with library-owned draws (ADR 0107) and its committed digests

b390bf5, c3e4309

row_layout::slack on the host and on CUDA (ADR 0103): the moves, the compaction, vertex growth, apply_summary::relocated_rows / compactions, the kit’s slack model, the graph tests

900e16e

perf_ab.py label_propagation ab (ADR 0024’s dynG-against-dynG reading; the slack report)

cf9917a, ae68070

detail::graph_access::compact_slack (a forced compaction for the tests); the frozen graph/ headers’ documentation of slack rows

57481de

label_propagation on slack rows on CUDA without allocations once reserved (the queue capacities’ host scratch in the leased workspace; capacities that grow take headroom outside the kernels); the streaming mode’s documentation (AD16, ADR 0104)

eeebd59

dyng-compat-dynlp --layout slack and --streaming-tau (diagnostics; reported readings)

b32f517, 22db631

label_propagation’s slack suites (5k5 in the CPU suites, 50k labelled slow; both backends), the kit’s slack preset, ci/gpu_local.sh’s slack rows

4be08c3, 8dc7596, a3c7cb4, 413c9ed

the final checks’ fixes: vertex_arrival_options::seed’s documentation; the Python batch readers refuse vertex operations, vertex records and float32 weights instead of dropping them; the C++ API baseline (additions only); write_batches’ documentation

(records)

ADRs 0103 and 0104 (0105-0107 with the first commits), GOVERNANCE.md’s rows, the CHANGELOG (M10 sub-block, api-change notes), parity/results/M10b.md section 2, this section

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

  1. No graph_view::row_start (ADR 0069 section 8 planned one): out.row_ptr[v] is row v’s start for slotted and slack rows, so the engines read both through (row_ptr[v], row_end[v]) and share their kernels; out.row_ptr of slack rows is not monotone (documented in graph_view.hpp; ADR 0103 point 1). No new public name.

  2. M11a’s slack-row accessor is not reused (ADR 0103 point 13): hyper::slack_row_view describes a slack_csr line graph’s node rows (unordered sets, a weight per node); graph rows need a weight per entry, vertex states and the entry order a move keeps. Its file comment (“label_propagation reuses it in M10b”) is M11’s text, left to M11.

  3. update() refuses vertex growth on slack rows (a result keeps one label per vertex of its graph); with_capacity()’s vertex_capacity is the stream’s final vertex count. Vertex growth itself is the container’s and is tested there.

  4. The streaming threshold on CUDA walks the deleted rows on the host (a download of the rows of G_t per update in the streaming mode only; ADR 0104’s alternative “a device kernel” is deferred: no gate, AD16).

  5. The forced compaction is internal (detail::graph_access::compact_slack, for the tests); no public compaction call or tunable bound (no new public name).

  6. The kit’s slack preset builds with half of the capacities so that rows move in every check (C7’s row overflow becomes a move on slack rows); the full-capacity case is the slack suite’s.

  7. The checker’s oracles on slack rows run in the slack suite (Streaming*: the same oracles as label_propagation_checker_test.cpp, the rows against the kit’s slack model instead of the slotted rows’ exact slot order, which a move changes by design).

  8. The stable algorithms are not re-read in this step (the step: “re-read them only if code they compile changed; state the diff either way”). The diff: the branch changes code every algorithm compiles: apply_summary gains two int64 fields (copied into every stats::batch), normalized_batch a vector and a flag, graph.cpp’s dispatch the slack branches; the compact rows’ apply, the device merge and every algorithm’s own code are unchanged. The re-read under ADR 0024 is taken once, on the final library, in step 4’s final re-read (criterion 12), which also covers the module-loading change the author’s decision of 2026-11-05 assigns to M10b (taking it twice would spend about a day of the shared exclusive calendar on a library that step 3 changes again). Nothing is relaxed: the step-4 reading is the gate.

  9. The readings use the compatibility tools’ build (DYNG_ALGORITHMS = label_propagation, sssp, cycle_count, mosp, triad_count, as step 1’s calibration) on both sides of every dynG-against-dynG reading (A and this step’s library from git archive, built the same way).

  10. The memory report (slack against slotted) ran in a GPU-1 quiet window although it is reported, not gated, so that no foreign process contaminates it.

  11. The Python batch readers refuse what they cannot carry yet. The C++ readers now accept the vertex operations, vertex records and float32 weights of AD13; the Python batches carry neither (step 3’s work), so dyng.io.read_batches and dyng.io.BatchReader raise NotSupportedError naming them rather than return the batches without them (a silent drop the final checks exposed); write_batches writes a batch’s vertex operations, as the C++ writer does.

Carried items (none in M10)#

Unchanged from step 1: operators::openmp_exec::for_each and escher::flatten_rows are on origin/main; the D13 class of sssp’s OpenMP regions is on m11b-hyper-sssp only. git log --no-merges 9bf1bd3..HEAD --not origin/main -- <the carried-item files> is empty.

Results (parity/results/M10b.md section 2)#

  • row_layout::slack on the host and CUDA, with the step’s tests (hubs, repeated overflows, every row overflowing in one batch, deletions of moved rows, natural and forced compactions, growth, the guard) and the kit’s slack model equal to the graph after every batch.

  • label_propagation on slack rows: damped with the published tau bitwise slotted’s while no compaction ran (5k5 and 50k, both backends); the streaming mode passes the harmonic oracle and the checker’s oracles on every batch of C at delta 1e-6, also after forced compactions; the kit (C1-C8) on the slack preset on both backends.

  • The library generator’s committed digests, independent of the thread count and of edge_t; the legacy stream equal to every M10a generator golden.

  • The formats: everything of AD13 with HD10 for graph files, the 0.3.0 reader refusing every addition loudly, the round trip of M10a’s generator batches, the fuzzers 10 minutes each without a finding; io::write_labels byte-identical to O’s labels files.

  • ADR 0024: the LP slotted path of A (a0734e1) against this step’s library, damped update[sum] 1.0002 at 50k and 1.0000 at 500k (bar 1.02).

  • Reported (AD16): slack rows against the published setup 1.14 / 1.39 (50k / 500k update[sum]), the streaming mode 1.19 / 1.48, device memory 1.6x.

  • M10a’s replays on this step’s library: the fused damped bytes on P (P+) identical, the operators engine bitwise, trace / container / generator / IrLP / hub exact, the oracles within, every in_place run inside the frozen envelope; memcheck of the slack rows and the streaming mode at 50k clean.

Machine time (UTC)#

Part

Time

the first attempt (2026-11-11): the formats, the generator, slack on host and CUDA; the fuzzers (4 x 10 min, CPU); the old-reader check; the GPU ctests of the slack rows, io and label_propagation (GPU 1)

2026-11-11, about 21:40-23:57

the resume (2026-11-12): rebuilds and label_propagation’s / the graph’s ctests (162 GPU tests on GPU 1, 776 CPU tests)

01:11-02:14

three exclusive windows on GPU 0 (slack-streaming-generator-io adr0024-50k, adr0024-500k, slack-report)

02:15:20-02:16:17, 02:21:34-02:23:56, 02:24:13-02:26:31 (each rc=0 reset=ok)

one GPU-1 quiet window (slack-streaming-generator-io slack-vs-slotted-memory)

02:26:31-02:27:04 (rc=0)

the replays and memcheck (GPU 1, shared lock, quiet-ok before every job)

02:27-02:52

the final checks (ci/check.sh, the fortified and openmp=OFF builds, the full CPU and GPU ctests)

02:52-06:10

No GPU-1 job of this step ran inside another track’s quiet window: the first attempt’s GPU-1 jobs ran after the last quiet window of the log (M11b’s, which ended at 19:15 UTC), and the resume’s drivers check quiet-ok M10b before every job (chunk).

Checks#

Check

Result

the first attempt’s GPU ctests (2026-11-11 23:07-23:57, GPU 1): the slotted and slack device applies, io

14 / 14 and 216 / 220: the four CUDA kit rows C8_TheAlgorithmPhaseStaysWithinItsBudget on the new slack preset failed (two host allocations of 54,000 bytes per update: the queue capacities’ per-vertex scratch); fixed in 57481de (the scratch in the leased workspace)

label_propagation’s, the graph’s and io’s CPU ctests (dev; -R 'label_propagation|lp_|Slack|Slotted|slack|slotted|graph')

776 / 776

label_propagation’s and the slotted / slack GPU ctests (dev-cuda, GPU 1; -R 'label_propagation|LabelPropagation|lp_|operators|Slotted|Slack': the kit on both presets with C8 under strict budgets, the slack suites at 5k5 and 50k, the checker, the operators, the 20 mutation rows)

162 / 162

the fuzzers (batch_text, batch_binary, edge_list, result_io), 600 s each

no finding

Clang 18 -fsyntax-only over the dev database (ci-local/clang_syntax.py)

699 files, 0 failures

GCC 13.4 (conda, compile only, -fsyntax-only, -fno-use-linker-plugin) over the dev database

699 files, 0 failures

ci/test_data_budget.py

1,093,598 of 1,250,000 bytes (this step commits no test data)

ci/check.sh in full (1e16a3b, 02:52-04:48 UTC)

cpu-only ctest -L cpu 1,636 / 1,636, dev 1,679 / 1,679, format, consumer, tidy, REUSE, provenance, test data, regen, the harness, griffe, api_snapshot.py --against origin/main, pre-commit passed; three steps failed: python (the reader test still expected +v to be a reserved operation), docs and scaffold (Doxygen: vertex_arrival_options::seed’s /// block read as undocumented; then the API baseline lacked the step’s additions)

the fixes (4be08c3, 8dc7596, a3c7cb4, 413c9ed)

the seed member documented in a @brief block; the Python batch readers refuse vertex operations, vertex records and float32 weights (NotSupportedError) instead of dropping them (the Python layer carries them from step 3; a new test writes such files from the format’s specification); write_batches writes +v / -v lines and says so; the C++ API baseline updated (ci/docs.sh --update-api: additions only)

ci/check.sh steps python, api, scaffold, docs and pre-commit again (413c9ed, 04:55-05:02 UTC)

all passed (pytest 738 passed, 81 skipped; the first python rerun hit dyng-compat-mosp while the final checks were relinking build/dev, and passed when run again)

Clang 18 and GCC 13.4 -fsyntax-only on python/bindings/io.cpp (the editable build’s command)

0 failures each

cpu-only with -D_FORTIFY_SOURCE=3 (fresh tree)

built without a warning; ctest -L cpu 1,636 / 1,636

DYNG_ENABLE_OPENMP=OFF (cpu-only, fresh tree)

built without a warning; ctest -L cpu 1,427 / 1,427

dev ctest -L cpu at 413c9ed

1,679 / 1,679

the full GPU ctest of dev-cuda at 413c9ed (ctest -L gpu, GPU 1, in chunks of 150 with quiet-ok before each)

1,081 / 1,081 (05:06-06:09 UTC)

Notes for steps 3 and 4#

  • The stable algorithms’ ADR 0024 re-read belongs to step 4’s final re-read (deviation 8), on the library with per-algorithm module loading (the author’s decision of 2026-11-05).

  • end_to_end at 50k against O is thin (1.097 in M10a’s final reading, bar 1.10). This step’s library reads 1.0006 against A at 50k (1.015 at 500k, outside the timed updates, not located); the per-algorithm module loading should lower the start-up that dominates 50k.

  • The streaming mode’s CUDA threshold walks the deleted rows on the host (ADR 0104): a device kernel would remove the download if the mode ever gets a gate.

  • slack_rows.hpp’s comment that label_propagation reuses M11a’s accessor is M11’s text (ADR 0103 point 13).

  • Step 3 replaces the Python readers’ refusal of vertex operations and float32 weights (deviation 11) with the vertex arrays and float batches of AD14.

Step 3: Python, the CLI, the kNN recipe, the examples and the wheels (python-cli-knn-examples-wheels)#

Base still 9bf1bd3 at the start and the end of the step (git log HEAD..origin/main empty): no merge of main. The step changes no library code (the bindings, the Python layer, the CLI, the examples, the recipe, the compat tool’s tests, CI scripts and records).

What was built#

Commit

What

e02c7b1

the Python layer: the float graph types of the bindings and the dtype rule of AD14 (_dtypes.GraphType.weight, Graph.weight_dtype, weight_dtype="float32"), Graph.with_capacity, BatchSemantics.net_effect, the vertex arrays of EdgeBatch (in the native batch tuple, the readers and writers), ApplySummary’s fields, num_active_vertices, vertex_status() / dyng.VertexStatus; dyng.label_propagation and dyng.update with it; the vertex-arrival generators and VertexArrivalStream; dyng.testing.harmonic_solution; dyng.io’s float edge lists, batch files and label files; the manifest’s python flag, the registry, the stubs; python_gaps.md; the tests

6dedd20

the CLI (python/dyng/cli/_label_propagation.py, registered after mosp), dyng generate vertex_arrival_stream / dynlp_vertex_arrival_stream, docs/api/cli.md

ed277ab

dyng-compat-dynlp’s tests with the original’s complete flag set and --maxIter -3

081cde9, f312fa1

the C++ and Python examples, their digests, the CTests, ci/cmake_consumer.sh

8ff3eeb

the kNN recipe and its test

0c2be0d

ci/plugin_smoke.py (label_propagation under the oracle), parity/wheel_vs_parity.py --task label_propagation

f03e3dc, e55db81

the docstring examples as a test; the CUDA test’s device string (found by the first plugin install test)

a8562f7 and this record

ADR 0108, its approvals row, the new names under M10 (AD), the CHANGELOG, plan.md, parity/results/M10b.md section 3

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

  1. One ADR (0108) for the three subjects the step names (the dtype rule; the Python and CLI surfaces; the kNN recipe and its licensing): M10’s range has two numbers left (0108, 0109) and step 4 needs one for the API review.

  2. Copy-on-write copies the per-vertex state, not only the n labels the step’s text names: the seed labels and the propagation tags go with them (13 bytes per vertex on the host, 17 on cuda), because a state without them cannot continue the next update. Documented in the module and the ADR; tested on both backends (the export unchanged, the address moved; without an export the update writes in place).

  3. AD19’s refusal is checked in Python before the native call (also in dyng.update, clone and reserve): the CPU wheel’s default resources are OpenMP’s, and only the Python message can name dyng.Resources("sequential").

  4. The CLI’s --backend has the choices sequential and cuda (no OpenMP choice; default cuda when the active module has it, as dyng-compat-dynlp’s default), not the shared --backend sequential|openmp|cuda --threads of the other commands.

  5. --similarity-threshold published with --batches is the average of the files’ edges summed as the original’s computeAvgEdgeWeight sums, in another order (it may differ from a generator’s tau in the last float bit; stream.json carries the exact tau). On the 5k5 stream both give the original’s labels byte for byte.

  6. EdgeBatch accepts floating-point weights at construction (0.3 refused them there); an int32 graph refuses them at use, and a float graph takes float64 batch weights only when they are exactly float32 values (or converted on weight_dtype="float32"). The 0.3 tests that expected the construction error now expect the use error (test_batch.py, test_graph.py).

  7. The float32 option fields read back as the shortest decimal of the float32 (1e-4, not 9.99999974e-05), and so does VertexArrivalStream.similarity_threshold: passing either back gives the same float.

  8. write_graph_files() calls the library’s writer (detail::write_dynlp_graph_files through the private header, as the bindings already use util/rng.hpp) instead of a Python writer: one implementation, checked against the original’s digests.

  9. The kNN recipe’s arrival batches split a seeded permutation into B equal parts with a seed share per part (the original’s b0 holds the first ground truth alone); the edge placement max(batch(u), batch(v)) is the original’s. Documented in the script.

  10. The C++ example’s CI comparison is against committed digests, not the golden bytes (the goldens are not in the repository): sequential’s digest is dyng-compat-dynlp’s output (dyng’s host port is not the original’s bits; M10a), cuda’s the original’s own file.

  11. No full GPU CTest run in this step: the library’s C++ is step 2’s (whose full GPU CTest passed, 1,081 / 1,081); the step’s GPU work (the CUDA example, the compat tests on dev-cuda, the plugins’ GPU tests and smoke) ran on GPU 1.

  12. scikit-learn 1.9.1 was installed into the throwaway venv build/py-venv (with its dependencies scipy, joblib, threadpoolctl) to run the identical-files test locally; the fresh wheel venvs and the hosted CI skip it, as the criterion says.

Results (parity/results/M10b.md section 3)#

  • Byte parity: the CLI, the Python API, the batch-file replays and both examples write dyng-compat-dynlp’s sequential dynlp_labels.txt (5k5, damped) byte for byte; on cuda, through the C++ example and the cu12 / cu13 wheels, the original’s own file; the original’s graph text files from write_graph_files(); the original’s iterations and components.

  • The dtype rule and the surfaces as ADR 0108; griffe: no breaking change; stubs current; mypy --strict clean; docs/api/cli.md documents every flag.

  • The kNN recipe: 0.9995 accuracy for compute and for the update chain on the two-blob set; scikit-learn’s and NumPy’s files identical.

  • Wheels: dyng 2.63 MB (+24 % against 0.3.0), dyng-cu12 14.31 MB (+65 %), dyng-cu13 14.18 MB (+55 %), all far below 90 MB; the CPU suites 767 passed (3.12, 3.13); every plugin and Python: the smoke test (label_propagation under the oracle), pytest -m gpu 73 passed, the CPU suite 768 passed; the interop venv 81 passed (PyTorch zero-copy on cuda:0).

  • Wheel against the parity build (reported): update[sum] 1.011, the largest batch 1.042.

Machine time (UTC 2026-11-12)#

Part

Time

the editable builds and the Python suites (CPU, shared lock)

06:00-06:50

the wheels (runs/m10b-python-cli-knn-examples-wheels/wheels.sh): the core wheel and its install tests 194 s, both plugins 362 s, the first install tests (GPU 1)

06:50-07:02

the wheel-vs-parity row (wvp.sh): the parity module 61 s, a trial on GPU 1, one exclusive window on GPU 0 (wheel-vs-parity-lp)

07:00-07:02 (window 07:01:29-07:01:44, rc=0 reset=ok)

the install tests again with the fixed test (retest.sh, GPU 1, quiet-ok before every job)

07:02-07:12

the final checks (final.sh: ci/check.sh, the fortified build with the bindings, openmp=OFF; then the failed steps again)

07:13-09:20

No GPU-1 quiet window was taken (no gated memory reading in this step); every GPU-1 job of the drivers checked quiet-ok M10b first. The drivers and logs are in $DYNG_SCRATCH/runs/m10b-python-cli-knn-examples-wheels/; the temporary trees (m10-builds/s3-wheels, m10-builds/wvp) were deleted.

Checks#

Check

Result

the Python suite (editable install, build/py-venv; before the docs of the CLI)

769 passed, 86 skipped, 1 failed (test_every_flag_is_documented, fixed by docs/api/cli.md’s section); the final run is ci/check.sh’s below

scripts/regen.py --check, --stubs --check; mypy --strict; ruff

clean

ci/api_check.sh (griffe and the C++ snapshot against origin/main)

no breaking change (the C++ additions of step 2 only)

Clang 18 and GCC 13.4 -fsyntax-only over the 20 binding sources and the C++ example

0 failures each

the CTests example.label_propagation_stream.*, compat_dynlp.* (dev; dev-cuda on GPU 1)

8 / 8; 9 / 9 (the cuda example the original’s bytes)

ci/doc_snippets.py --check, ci/provenance_check.py, reuse lint

OK (REUSE after the digest file’s header, f312fa1)

ci/check.sh in full (563fa6d, 07:13-08:49 UTC; runs/m10b-python-cli-knn-examples-wheels/check.log)

format, cpu-only ctest -L cpu 1,637 / 1,637, dev 1,682 / 1,682, the consumer (the label_propagation example against the installed package), tidy, REUSE, provenance, test data, regen, the harness 511 passed, Python (stubs, mypy, pytest 771 passed, 86 skipped), griffe and the C++ snapshot passed; three steps failed: docs (Sphinx -W: |V_aff|, |r| and |F - F*| in docstrings read as substitutions, four property first lines “X: Y” read as types), scaffold (its last part builds the docs of the copy) and pre-commit (the end-of-file fixer on this file)

the fix (c5d249a), then DYNG_CHECK_ONLY="python api scaffold docs precommit" ci/check.sh

all checks passed (pytest 771 passed, 86 skipped; the scaffold’s 80 + 54 + 41 tests; Sphinx -W and the link check)

cpu-only with -D_FORTIFY_SOURCE=3 and the Python bindings (fresh tree)

built without a warning (Werror; the 20 binding sources compiled); ctest -L cpu 1,637 / 1,637

DYNG_ENABLE_OPENMP=OFF (cpu-only, fresh tree)

built without a warning; ctest -L cpu 1,428 / 1,428

the carried-item check (git log --no-merges 9bf1bd3..HEAD --not origin/main -- <the five paths>), origin/main, LabelPropagation-CUDA’s git status, locklog.py validate / open --track M10

empty; still 9bf1bd3; unchanged (clean); valid; exit 0

Notes for step 4#

  • The API review lists ADR 0108’s Python and CLI names beyond AD12’s list (GOVERNANCE.md, M10 (AD)); the docs (the Python API page of dyng.label_propagation, the streaming tutorial) can quote examples/python/label_propagation_torch.py and the recipe’s header.

  • The step-4 final re-read reads the library of this step unchanged in its C++ (no library change here), plus whatever the per-algorithm module loading changes.

Step 4: the docs, the API review and freeze, the integration, and the final re-read (docs-api-review-freeze-final-reads)#

The step ran in four attempts. The first (2026-11-12, from about 09:20 UTC) wrote the docs, the API review and freeze (ADR 0109 part A) and the kernel groups (part B), and started the final re-read on the pre-merge library; it was cut at 11:18 UTC by the account’s usage limit. The second (from about 12:50 UTC) recorded the author’s decisions of 2026-11-12 and found the kernel groups’ first miss (label_propagation’s modules loaded inside the first timed update: the 50k gate 1.077, above 1.05; fixed in 1fb8165); the orchestrator stopped it at 13:52 UTC because origin/main had moved: the author had merged M11b (ae5fc47). The third (this record) merged main (116eb58), integrated, found and fixed the kernel groups’ second miss (36fb95a, d946bd0), and took every final reading on the merged library; it was cut at 18:30 UTC by the account’s session limit. The fourth (from about 19:00 UTC) fixed the clang-tidy finding of the final ci/gpu_local.sh run (b912b02), ran the steps that finding and the preset left open, and committed the records.

What was built#

Commit

What

0140c31, ef6f514

the kernel groups (ADR 0109 part B; the author’s decisions of 2026-11-03 and 2026-11-05): each algorithm’s CUDA kernels registered when it first runs; the compatibility tools warm up only the groups they run

b359d20, 2439b21

the freeze (ADR 0109 part A): the manifest (maturity experimental until AD15’s confirmation), FROZEN_BEFORE_STABLE, the griffe baseline, the pinned command-line flags

c95739a

the docs: the ten-section page, the history page, the row-layouts concept page, the streaming tutorial, the API pages, ADR 0109

37b58a5, e0ca90f

M10’s Python additions moved off the lines M11b changes (found by the first trial merge with m11b-hyper-sssp)

9260812

the author’s decisions of 2026-11-12 (the in_place tail event of step 4; the names beyond AD12’s list), with the in_place record

bebd04b, f05ea4e, 9e634fe

formatting; the CHANGELOG; the tutorial’s quote pin after the merge

1fb8165

the kernel groups’ first miss: loading a group loads every kernel of it

116eb58

the merge of origin/main (ae5fc47, M11b)

36fb95a, d946bd0

the kernel groups’ second miss: a call through another group’s copy of a shared template goes to the loaded group’s kernel of the same name (kernel_group::ensure_for()), with the test KernelGroups.LabelPropagationLoadsItsGroupOnly

b912b02

the CUDA runtime’s registration entry points exempt from clang-tidy’s naming check by name (the line-scoped NOLINT comments; comments only)

the records

parity/results/M10b.md section 4 and parity/results/M10b-final/, this section, GOVERNANCE.md, plan.md, the roadmap, the CHANGELOG

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

  1. Kernel groups, not one module per algorithm loaded with dlopen (ADR 0109 part B): the decisions of 2026-11-03 / 11-05 ask that a process loads only the kernels of the algorithms it runs; deferred registration does it without touching any algorithm’s files (M11’s included) and works for the static wheels too.

  2. Two fixes of the kernel groups after readings had started (1fb8165, then 36fb95a / d946bd0): each was found by the final re-read itself (the LP gate at 50k), and each forced every reading again; no reading of the record predates d946bd0’s code.

  3. The integration (rule 5): M11b merged into main before this step’s final re-read, so M10b integrated: main merged (116eb58), the generated files rerun (no change), M11’s replays and ia3_hsosp gates taken again on the merged library, both scoped dry runs.

  4. The stable set’s ADR 0024 side A is ae5fc47, not b2b1524: ae5fc47 is the library before M10b’s change with M11b’s code on both sides, so the reading is M10b’s own change; the author’s three regions of 2026-11-03 / 11-05 were read against b2b1524, where they were found.

  5. dyng-compat-hsosp keeps its full warm-up (M11’s tool; ADR 0109 part B’s note to the integrator): changing it after M11b’s readings would have changed M11’s measured tool.

  6. M11b’s note on run_update()’s prepare-failure path: checked, no change (the path cannot meet a pending slotted device apply; parity/results/M10b.md section 4.3).

  7. The final readings were taken twice. The first set (2026-11-12 14:48 to 11-13 03:51 UTC) was measured while the worktree held an uncommitted edit of this file (documentation only; every library file committed), so its records name <commit>+dirty, which certify refuses (the scoped dry runs failed on it). The edit was committed and every certificate-relevant reading (the LP gates and memory, every LP replay, M11’s replays and gates, the mutations, ci/gpu_local.sh) was taken again on a clean tree with the same library; the drivers now wait for a clean tree before each job. The first set is kept as superseded evidence (runs/bench/m10b-merged, M10b-merged-hsosp, merged/replays); the ADR 0024 readings (dynG against dynG, not certified) are the first set’s.

  8. Two job names of the ADR 0024 driver matched an earlier case pattern (dd, wide) and were rejected by perf_ab.py before any timing (“unknown case”); they were run again with the case names, in their own windows.

  9. The in_place 50k reading’s first window was rejected round by round by the contamination monitor (the concurrent ci/check.sh ran pre-commit and Sphinx, which take no lock) and wrote no record; it was taken again in a later window.

  10. The env’s editable install was re-pointed by mistake from /home/sskg8/Projects/dyng to this worktree by a manual pip install -e . (to regenerate the stubs after the merge); it was restored at once by rewriting the editable finder’s paths (the main repository’s tree was not touched); ci/python.sh then used its throwaway venv, as designed.

  11. ci/gpu_local.sh on the default preset, with label_propagation’s step on parity-cuda. The clean set’s first start with --preset parity-cuda failed at once (rc 127: the driver wrapped it in /usr/bin/time, which this machine lacks); the second was stopped by this step before its summary (10:43 UTC) and replaced by a run on the default preset, dev-cuda, as M11b ran it, where label_propagation’s step reads “partial” by design (its damped byte parity and operators replay need parity-cuda). Its clang-tidy step failed on the CUDA branch’s registration declarations (b912b02 fixed it; build and clang-tidy then passed again), and label_propagation’s step ran again on --preset parity-cuda alone (the build and that step; every other step’s code is the same library), so that every step of the 0.4 certificate’s GPU_LOCAL_STEPS has a “passed” reading of this library.

  12. The cu12 plugin wheel was not rebuilt in this step: step 3 built and tested it (14.31 MB); the kernel groups changed the library afterwards, and only the cu13 plugin of ci/gpu_local.sh was rebuilt (14.63 MB). The release builds both (R040).

  13. The certificate set was taken a third time, at the final code (merged/b912/master.sh, 2026-11-13 19:53 to 11-14 00:42 UTC; parity/results/M10b.md section 4.14): b912b02’s comment-only fix touches a library file, and certify accepts a record only when its measured commit has the release’s library sources, so the scoped dry runs at f31e398 refused every clean-set record. Every LP gate, memory reading and replay, M11’s gates, memory and replays, and the mutations were read again (one sequential driver, nothing of it on GPU 1 in the quiet windows); both dry runs then passed at the final HEAD. The ADR 0024 readings (dynG against dynG, not certified) were not taken again.

  14. A commit this step did not make: 0190df3 (2026-11-13 19:55 UTC, between this step’s records commit and the final set’s third reading) records in GOVERNANCE.md and the roadmap the author’s decisions of 2026-11-13 on the STOPs and the D14-path row this step raised, and closes their open rows. It changes no library file; the final set’s later records name it.

Carried items (none in M10)#

M11 owned all three: operators::openmp_exec::for_each and escher::flatten_rows (M11a step 2) and the sssp D13 class (M11b step 1) are on origin/main (ae5fc47). git log --no-merges 9bf1bd3..HEAD --not origin/main -- <the five paths> is empty: M10b’s own commits change none of them (M11b’s changes arrived through the merge).

Results (parity/results/M10b.md section 4)#

  • The gates against LabelPropagation-CUDA, the merged library, the final set (section 4.14; the clean set of 4.5 read the same within 0.01): damped update[sum] 1.006 / 1.008 / 0.987 / 1.013 at 50k / 500k / 5m / 5m1 (bar 1.05), end_to_end 1.050 / 1.030 / 1.040 / 1.086 (bar 1.10), device memory 1.002-1.012 (bar 1.05); in_place, default clocks, kernels and 50m recorded (50m damped end_to_end 1.105, a thin margin for R040).

  • Every LP replay green: generator, container, trace, damped, operators, hub, IrLP, the in_place distribution (every run inside the envelope), the oracle on C and L, determinism; the mutations 6 / 6 detected.

  • ADR 0024: the LP slotted path 1.001 / 1.003; the author’s three module-loading regions within against b2b1524 (0.972-1.004); the stable set against ae5fc47: cycle_count within, sssp / mosp apply and compute within except the roadNet-PA CUDA SOSP regions (the STOP), end_to_end above on most graphs (the graph reader, code placement: D14 path).

  • The integration: both scoped dry runs passed at the final HEAD on the final set; M11’s replays and gates on the merged library (271 / 271 gated rows; dblp_hyperedge_25000’s first batch 1.028 in the final set).

Machine time (UTC)#

What

Time

exclusive windows on GPU 0 (perf-lock.log, M10b docs-api-review-freeze-final-reads and its -nb / -diag keys)

120 windows, 15.3 h: 0.7 h before the merge, 1.15 h the interrupted window, 9.4 h the first set, 2.1 h the clean set, 2.0 h the final set

GPU1-QUIET windows

21 windows, 0.65 h

GPU 1 under the shared lock

the first set’s LP and M11 replays (2026-11-12 14:48 to 11-13 03:52 UTC, with waits); the clean set’s LP replays, M11’s replays and the mutations (2026-11-13 03:53-09:02); ci/gpu_local.sh on dev-cuda (10:53-18:46, 7.9 h); the build and clang-tidy steps and the label_propagation step on parity-cuda (18:55-19:40); the final set’s LP replays, M11’s replays and the mutations (21:59 to 11-14 00:41)

CPU checks

ci/check.sh in full at d946bd0 (2 h 11 min, 2026-11-12 14:48-16:59); the final tree’s checks; the portability builds (fortified cpu-only, DYNG_ENABLE_OPENMP=OFF, Clang 18 and GCC 13 syntax)

wall time of the step

2026-11-12 09:20 UTC to 2026-11-14 01:00 UTC (four attempts)

Checks#

Check

Result

ci/check.sh in full on the merged library (d946bd0, 2026-11-12 14:48-16:59 UTC; merged/check.log)

format, cpu-only ctest -L cpu 1,654 / 1,654, dev 1,699 / 1,699, the consumer (the label_propagation and hyper_sssp examples and tools/compat/dynlp against the installed package), clang-tidy, REUSE, provenance, test data, regen, the harness 530 passed (the 0.1-0.4 certificate tests among them), Python (stubs, mypy, pytest 814 passed, 96 skipped), griffe and the C++ API snapshot against origin/main, the scaffold, the docs (Sphinx -W, links, doxygen coverage, snippets, tutorial quotes): passed; pre-commit failed on ruff’s line length in three comment lines of the freeze (ci/api_snapshot.py, ci/tests/test_api_check.py), fixed in 5b2a770

the final tree’s checks after the records (DYNG_CHECK_ONLY="harness docs precommit reuse provenance testdata regen api")

all checks passed (2026-11-13 19:41-19:50 UTC, the records’ tree before their commit, merged/clean/final-check/check-1.log; again 2026-11-14 00:44-00:53 UTC with the final set’s records, check.log): format, REUSE, provenance, test data, regen, the harness 530 passed (the 0.1-0.4 certificate tests among them), griffe and the C++ API snapshot against origin/main (additions only), the scaffold, the docs (Doxygen coverage of 238 compounds, 14 snippets, 63 tutorial quotes, 1,442 snapshot declarations, Sphinx with warnings as errors, the links), pre-commit

Clang 18 and GCC 13 -fsyntax-only (the dev database, 705 files; the dev-cuda database’s files of the kernel groups, the compat tools, composition.cpp and hyper_sssp, 58 files)

0 failures each

cpu-only with -D_FORTIFY_SOURCE=3 and the Python bindings (fresh tree); DYNG_ENABLE_OPENMP=OFF (fresh tree)

0 warnings, ctest -L cpu 1,654 / 1,654; 0 warnings, 1,440 / 1,440

the kernel-group tests (dev-cuda, GPU 1), also under CUDA_MODULE_LOADING=EAGER; the label_propagation GPU suites on dev-cuda after the redirection

9 / 9 each; passed (one test, the allocation budget, caught the first version of the fix)

the freeze’s demonstration on the final tree (merged/demo.sh, a throwaway clone at 5b2a770)

the changed header default fails ci/docs.sh --doxygen-only and ci/api_check.sh; the changed Python default fails ci/api_check.sh; reverted, both pass

ci/test_data_budget.py

1,093,598 of 1,250,000 B; M10’s own committed test data 20,438 B (19,569 B of digests under cpp/tests/data, 869 B under examples/data), within AD10’s 120 KB

the carried-item check, LabelPropagation-CUDA’s git status, locklog.py validate / open --track M10

empty; clean; valid; exit 0

clang-tidy on the CUDA branch after b912b02 (ci/gpu_local.sh’s build and clang-tidy steps, dev-cuda; merged/clean/tidy/)

passed (360 files)

Clang 18 -fsyntax-only of cpp/src/core/kernel_groups.cpp (the dev-cuda database) after b912b02

0 failures

Lessons for M10 as a whole#

  • Run every lint of the CUDA branch before the final readings. ci/check.sh’s clang-tidy compiles the CPU branch only; ci/gpu_local.sh’s, which compiles the CUDA branch, found the kernel groups’ registration declarations after the whole certificate set had been read, and the comment-only fix forced the set again (about 5 h of machine time), because certify compares sources, not binaries.

  • A reading’s commit must be clean, and the drivers must enforce it. A documentation edit left uncommitted for a few hours made a whole night of readings uncertifiable (+dirty); the second set took another 10 h of machine time. The drivers now wait for git status --porcelain to be empty before every job; records are drafted outside the worktree and committed in one step at the end.

  • A change that only moves the load time of code can still change performance, twice in this milestone: the kernel groups first deferred label_propagation’s module loading into its first timed update (two misses), then, with every group lazy, shifted the device memory layout enough to slow sssp’s persistent kernel by 4 % on one graph. Only the full gate and ADR 0024 sets found them: a quick A/B of the changed algorithm alone (the LP slotted path) would have passed.

  • The ADR 0024 set against the right base. Against b2b1524 the set mixes M10a’s, M11’s and M10b’s changes; against ae5fc47 (main before M10b) it reads M10b’s own change and confirms the author’s regions separately. With two tracks merging into one release, each milestone’s final dynG-against-dynG reading should name the base that isolates its own change.

  • Interleaving exclusive windows with shared-lock work wastes GPU time. flock gives no priority to a waiting exclusive lock, so a CPU check suite of two hours delayed every gate window behind it; the polite() yield of the GPU-1 driver helped, the CPU checks had none.

  • The in_place schedule’s tail (five recorded misses in M10, the last in this step’s pre-merge reading, decided by the author each time) did not recur in the final cloud on the merged library: every run of I inside the frozen envelope, in the replays and in ci/gpu_local.sh’s label_propagation step.

  • Integration owes readings, not only merges: M11’s gates read against the original on a different evening can move by a few percent through the original alone (the ia3_hsosp first-batch row: 0.992 in M11b, 1.065 / 1.050 / 1.042 in this step’s three readings); the release reading R040 should expect it.

Review fixes (review-fixes)#

The independent review of the frozen branch found 22 confirmed problems (one blocker, two high, seven medium, twelve low); all are fixed in this round, none was deferred. The round started on 2026-11-14 at about 01:50 UTC at 058e079 (no merge of origin/main: it is still ae5fc47, which the branch merged in step 4, and it had not moved when the round ended on 2026-11-18).

What was fixed#

Commit

Finding

What

a9bc42d

blocker: the dyng-cu12 plugin of the kernel groups fails on CUDA (cudaErrorInvalidResourceHandle)

CUDA 12’s static runtime cannot use a fat binary registered after the device’s context exists. A two-file reproduction (a kernel whose registration is renamed and replayed after cudaFree(nullptr), as the groups do) fails under 12.9’s static runtime and passes under 12.9’s shared runtime and both runtimes of 13.1; __cudaInitModule after the replay does not help. CMakeLists.txt turns DYNG_DEFER_KERNEL_GROUPS off for a CUDA 12 build with the static runtime (a configure message says so); ci/gpu_local.sh’s plugin step builds and tests the cu12 plugin too when a CUDA 12 toolkit is found. The rebuilt cu12 plugin (14.76 MB) passes its full install test

6318fee, f3cb14d

high: end_to_end outside the timed updates slower than M10a’s (5m1 1.040 -> 1.086, 50m 1.065 -> 1.105)

located (section 5 of the parity record): the legacy generator’s graph phase +220 ms at 5m1 (the templated draws inlined legacy_uniform_int() with the engine’s refill into the random-edge loop) and io::write_labels +60 ms (a put per token); the integer draw is out of line again and the labels are formatted in chunks: the same streams and bytes, M10a’s speed

a5db073

medium: a compaction drops the hint of an active empty slack row

every row without entries that is not a deleted vertex’s keeps its capacity; Slack.ACompactionKeepsTheHintOfAnActiveEmptyRow

cd66b36

low: no test of compactions inside update()

LabelPropagationSlack.NaturalCompactionsInsideUpdate5k24 (sequential and cuda)

eef9c27

low: the operators mutation rows passed through the fused-engine comparisons

the rows run the cases that judge the operators engine against fixed truth; the comparisons run in a control-only row

ebc633a

low: the engines comparator’s fixed work directories

a work directory per run

efb42b1

low: the calibration hook’s comment named a missing script

the comment names parity/label_propagation_engines.py calibrate

d9864b6

medium: incomplete @throws; Python’s CapacityError, ConvergenceError and stats determinism; the labels’ aliasing

the header and the Python docstrings complete (documentation only, the baselines unchanged)

a6bc3ab

medium: the io declarations frozen by policy only

FROZEN_DECLARATIONS in ci/api_snapshot.py, a test that a changed signature or value is breaking, bit 4 pinned with a literal

854d2b8

low: the frozen-flags test pinned names only; --edge-dtype ARG_EDGE_DTYPE

the test pins choices, defaults and required-ness; --edge-dtype {int32,int64}

ac6e007

low: knn_graph.py --method sklearn without scikit-learn

a clean message; a test with scikit-learn stubbed absent

d40931a

high / medium: an unreplaced gate-table placeholder token on the algorithm page; low: no checked snippet

the gate table, a registered Python snippet with its output, the C++ block using its stats, ci/docs.sh failing on a placeholder token; the aliasing caveat on every LP surface

f4fafb5

low: generators.md, the format page’s flags line, ADR 0105’s “exactly the batch”, ADR 0101’s batch, the long-stream calibration note

corrected

11caa23

medium: public names frozen without approval

ADR 0109’s delta; GOVERNANCE.md’s new open row “A public name beyond AD12’s list (M10b’s review)” for the author’s acknowledgement; ADR 0109 amended (findings 5/6, 13, 15, 16; part B)

7fd5610

(the author’s decision on the names, 2026-11-14)

the generators’ flag renamed --edge-type int32|int64; Python keeps edge_dtype

97b7bbc

medium: plan.md and section 4.13 called the STOPs pending; low: section 4.12’s reset sentence, section 1.1’s batch

the records cite the approvals-log rows of 2026-11-13; corrected

f1812fc, 4620ff3, 0f07fbc

(the author’s decision of 2026-11-18 on the in_place STOP)

the decision in the approvals log and the STOP row closed; the rate rule of the in_place certificate (ADR 0111) in goldens.toml, compare.py label_propagation inplace --rate, the certificate record and certify.py, with tests; the ADR, its delegated row and the open row for the author’s approval of its wording

Deviations#

  1. The CUDA 12 static-runtime builds do not defer (ADR 0109 part B, amended): the author’s decisions of 2026-11-03 / 11-05 hold for every build that can defer (the cu13 plugin, the shared-runtime builds and every gate); the cu12 plugin registers every module at load, as 0.3 did. The reviewer’s other option, making the replay work with CUDA 12’s static runtime, has no public runtime entry point (re-creating the runtime’s context state is not exposed).

  2. The ADR 0024 set of the stable algorithms was not read again after the fixes (the LP slotted path against M10a’s tip was, criterion 4). The fixed code is executed only by the legacy generator, the label writer and slack rows; no stable algorithm runs it, and the CUDA 12 rule changes no gated build. A code-placement shift of the stable algorithms’ regions from these edits is possible in principle (step 4’s lesson); it is recorded as an open item for R040’s release reading rather than another 10 h set.

  3. The natural-compaction test compares with slotted rows, not with AD7’s bound: the bound is calibrated on C’s short streams and O’s rule drifts past it on long streams on slotted rows too (ADR 0068, noted). Under in_place (not repeatable on cuda) only the structural checks apply.

  4. The records of this round are in parity/results/M10b-review/, beside step 4’s M10b-final/, which stays as section 4.14’s record (nothing replaced).

  5. ADR 0111 takes a number of the release line’s block: M10’s blocks (0063-0079, 0100-0109) are used up, the rule is one R040 applies too, 0110 is left to the release line’s first ADR and 0120 is the unmerged fix branch’s. Listed for the author with the ADR’s wording.

  6. The 2026-11-14 50k evidence (inplace-rate-50k.json) was not used as 50k’s reading of the rule: it was taken on the same library code with 30 runs per side, but it judged the iteration envelope only (no labels, components or trace of the port’s runs, no certificate stamp) and ran the sides in two blocks; the rule’s record needs the run-by-run checks, so 50k was read again with the other cases (ten minutes for all four).

  7. ci/gpu_local.sh keeps its every-run cloud (5k5 and 50k, 3 runs; stricter than the certificate). The author’s decision names the certificate; whether the local check moves to the rate rule is left to the author with ADR 0111’s wording.

  8. The trace is checked as before, on one traced run per case, not on each of the 30 runs: the rule says “as now”, and tracing the rate runs would change the port’s conditions against the untraced original runs. The run-by-run checks (labels, flips, components, the iteration sum) are on every one of the 30 port runs.

  9. AD9’s mutant under the rule ran as a compat tool linked by hand from the parity-cuda build’s object of dyng-compat-dynlp and its mutant library (rate2/), as evidence; the repository’s check of the mutation under the rule is the synthetic comparator test (no new build target).

Results (parity/results/M10b.md section 5)#

One sequential nohup’d driver (runs/m10b-review-fixes/final/master.sh, 2026-11-14 04:50-18:14 UTC, on a clean tree at de17b35 / 7fd5610, which have the same library sources) took every certificate-relevant reading again on the fixed library: the LP gates against the original (every gated row within: damped update[sum] 0.987-1.010, end_to_end 1.010-1.045, device memory 1.002-1.012; the 50m damped end_to_end 1.077, down from 1.105, so R040’s release reading has a margin again), M11’s ia3_hsosp gates (271 / 271) and replays (0 mismatches), every LP replay but one, the mutations (6 / 6), ADR 0024’s LP slotted path (1.002 / 1.004), both scoped dry runs and ci/gpu_local.sh in full on dev-cuda (all steps passed, the cu12 and cu13 plugins among them). The one that failed is the in_place cloud: a 50k port run outside the per-batch iteration envelope at batch 9, in the certificate’s replay (07:14 UTC) and again in the parity-cuda ci/gpu_local.sh label_propagation step (18:09 UTC), every other part of that step passing. The scoped dry certify of label_propagation failed on it; the hyper_sssp one passed.

The rate rule’s reading (2026-11-18, runs/m10b-review-fixes/rate2/run.sh; section 5.8): 30 port and 30 original runs per case on GPU 1 on the final library code (the parity-cuda build of 7fd5610’s library sources, the tree clean at 0f07fbc): 5k5 0 / 0 outside, 50k 1 / 3 (p 0.944), 500k 0 / 0, 5m 0 / 0; every port run’s labels, components and iteration sum inside and every trace equal: every case within. AD9’s plain Jacobi in_place mutant under the same rule: 30 / 30 outside at 5k5 and 50k (p 8.5e-18 and 4.6e-14), detected. The scoped dry certify of label_propagation with that record PASSED (with a gated row removed it fails), and the hyper_sssp one again PASSED.

The STOPs#

  1. The in_place misses of 2026-11-14 (two readings, the same code): a STOP; 30 fresh runs at 50k as evidence (the original outside in 2 of 30, the port in 2 of 30). The author decided on 2026-11-14 (GOVERNANCE.md, approvals log, “The in_place tail event of the M10b review fixes”): a recorded miss, not a pass; the rule unchanged; the certificate’s in_place reading taken once more on the same library code and the scoped dry certify of label_propagation run again with it; a run outside the envelope there is a new STOP.

  2. The one further reading (2026-11-18 01:27 UTC, runs/m10b-review-fixes/final2/run.sh, the certificate’s command unchanged on GPU 1 after quiet-ok): 5k5, 500k and 5m inside; at 50k run 1 outside at batch 9 (82 iterations against 78.1), everything else inside. The dry certify of label_propagation failed on that set alone (hyper_sssp’s passed). A new STOP (GOVERNANCE.md, Open decisions, M10 (AD)); as the decision said, no further reading was taken, and nothing was re-rolled, replaced or deleted. The author decided on 2026-11-18 (approvals log, “The in_place certificate’s rate rule”): the three readings are a recorded miss and stay recorded; the set’s certificate is judged by the rate rule (ADR 0111), whose reading on the final library code passed every case (section 5.8); the author approves the ADR’s wording before M10b’s pull request (Open decisions, M10 (AD)).

Machine time (UTC)#

What

Time

exclusive windows on GPU 0 (perf-lock.log, M10b review-fixes)

21 windows, 2.1 h (2026-11-14 02:13-18:14): one CPU-only generator diagnostic and 20 GPU-0 windows, every END rc=0 reset=ok

GPU1-QUIET windows

5 windows, 0.1 h (2026-11-14 06:53-06:59), every END rc=0

GPU 1 under the shared lock

the GPU suites (02:54-03:18), the cu12 plugin’s install test (02:53-03:02), the LP replays, M11’s replays and the mutations (06:59-09:42), ci/gpu_local.sh on dev-cuda (09:42-17:27, 7.8 h) and its parity-cuda label_propagation step (17:27-18:09), the 30-run evidence (18:14), the further in_place reading (2026-11-18 01:27-01:28), the rate rule’s reading (03:29-03:40) and the mutant’s (04:14-04:17)

CPU checks

ci/check.sh in full at 58f778c (1 h 51 min); the portability builds (Clang 18, GCC 13, fortified cpu-only, OpenMP off); the records’ checks at the end; after the rate rule ci/check.sh’s Python, docs and records steps at 735fea0 (all passed)

wall time

2026-11-14 01:50-18:14 UTC; resumed 2026-11-18 01:00 UTC after the account’s weekly limit cut the round at 15:54 UTC on 2026-11-14 (the driver ran on to 18:14 by itself); stopped at 01:55 UTC to take the STOP to the author; resumed at 02:00 UTC with the author’s decision of 2026-11-18 and ended at 06:00 UTC (most of it waiting for the shared lock between the windows of the author’s separate session)

Lessons#

  • A tail event of probability about 1/15 per run gets hit by one of three runs in roughly one reading of five, and a certificate needs several readings per milestone (the replay, the gpu_local step, each re-read after a code change). M10 now has eight readings of the in_place cloud with a run outside (the five before this round, each decided by the author, and this round’s three). The author’s rate rule of 2026-11-18 (ADR 0111) ends the cycle for the certificate: it judges the port’s rate against the original’s own rate in the same session (the original crossed the envelope in 3 of 30 runs at 50k in the rule’s reading, twice within the hour). A threshold calibrated on a distribution needs a rule for its tails from the start; the calibration of AD5 had none.

  • A review’s fixes outside the timed region still force the whole certificate set, because certify compares sources: here 2.1 h of exclusive windows and about 12 h of GPU-1 time for fixes of the generator, the label writer and slack rows.