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 |
|---|---|
|
AD6’s calibration tool (`compare.py label_propagation calibrate |
|
the calibration flags’ generator expression quoted (the first run’s |
|
c frozen before any operators-engine code: c = 2^20 in |
(operators) |
|
(engine) |
the operators engine on CUDA (ADR 0101; |
(perf) |
|
(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)#
The operators stay in the algorithm’s folder (
algorithms/label_propagation/operators/, namespacelp_ops), not incpp/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.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, whichoperators::cuda_execkeeps private, and M10 does not changecpp/src/operators/(the shared headers;execution.hppis M11’s carried item).No operators twin of
schedule::in_place(PLAN 4.5.4 and the step’s text: optional): compute() and update() withengine::operatorsunderin_placeraisenot_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 CTestslabel_propagation.mutation.cuda_operators.*), and the in_place mutant keeps its fused and host rows.compute() is IrLP on every engine (the published baseline, PLAN 6.4.7: “IrLP stays deliberately unchanged”);
engine::operatorsno longer raises in compute() underdamped.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.
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.
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
242be2dbefore 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 |
the 30-run in_place evidence at 50k (GPU 1) |
about 6 min |
the engine reading: one exclusive window on GPU 0 ( |
16:45:25-16:47:00 ( |
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) |
|
20 / 20 (every mutant detected, the controls passing; the 6 new |
the full GPU ctest (dev-cuda, |
1,067 / 1,069: the two in_place |
after that fix (the resumed step, |
105 / 105 (both in_place C8 rows pass; the in_place C4 rows skip, one engine) |
after that fix: |
20 / 20 |
after that fix: label_propagation’s CPU ctests (dev) |
97 / 97 |
after that fix: Clang 18 |
15 files, 0 failures |
after that fix: the fortified cpu-only and the |
built; 97 / 97 each |
after that fix: |
all checks passed (2026-11-11, 20:12-21:34 UTC) |
Clang 18 |
692 files, 0 failures |
GCC 13.4 (conda, compile only, |
692 files, 0 failures |
cpu-only with |
built without a warning; |
|
built; |
|
1,436 declarations match ( |
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 |
|---|---|
|
the formats (AD13 with HD10; ADRs 0105, 0106): |
|
|
|
|
|
|
|
|
|
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) |
|
|
|
label_propagation’s slack suites (5k5 in the CPU suites, 50k labelled slow; both backends), the kit’s slack preset, |
|
the final checks’ fixes: |
(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)#
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_ptrof slack rows is not monotone (documented ingraph_view.hpp; ADR 0103 point 1). No new public name.M11a’s slack-row accessor is not reused (ADR 0103 point 13):
hyper::slack_row_viewdescribes aslack_csrline 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.update()refuses vertex growth on slack rows (a result keeps one label per vertex of its graph);with_capacity()’svertex_capacityis the stream’s final vertex count. Vertex growth itself is the container’s and is tested there.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).
The forced compaction is internal (
detail::graph_access::compact_slack, for the tests); no public compaction call or tunable bound (no new public name).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.
The checker’s oracles on slack rows run in the slack suite (
Streaming*: the same oracles aslabel_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).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_summarygains twoint64fields (copied into everystats::batch),normalized_batcha 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.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 fromgit archive, built the same way).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.
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_batchesanddyng.io.BatchReaderraiseNotSupportedErrornaming them rather than return the batches without them (a silent drop the final checks exposed);write_batcheswrites 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::slackon 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_labelsbyte-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 ( |
02:15:20-02:16:17, 02:21:34-02:23:56, 02:24:13-02:26:31 (each |
one GPU-1 quiet window ( |
02:26:31-02:27:04 ( |
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 |
label_propagation’s, the graph’s and io’s CPU ctests (dev; |
776 / 776 |
label_propagation’s and the slotted / slack GPU ctests (dev-cuda, GPU 1; |
162 / 162 |
the fuzzers ( |
no finding |
Clang 18 |
699 files, 0 failures |
GCC 13.4 (conda, compile only, |
699 files, 0 failures |
|
1,093,598 of 1,250,000 bytes (this step commits no test data) |
|
cpu-only |
the fixes ( |
the |
|
all passed (pytest 738 passed, 81 skipped; the first python rerun hit |
Clang 18 and GCC 13.4 |
0 failures each |
cpu-only with |
built without a warning; |
|
built without a warning; |
dev |
1,679 / 1,679 |
the full GPU ctest of dev-cuda at |
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 |
|---|---|
|
the Python layer: the float graph types of the bindings and the dtype rule of AD14 ( |
|
the CLI ( |
|
|
|
the C++ and Python examples, their digests, the CTests, |
|
the kNN recipe and its test |
|
|
|
the docstring examples as a test; the CUDA test’s device string (found by the first plugin install test) |
|
ADR 0108, its approvals row, the new names under |
Deviations from the plan and the step’s text (each with the same intent)#
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.
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).
AD19’s refusal is checked in Python before the native call (also in
dyng.update,cloneandreserve): the CPU wheel’s default resources are OpenMP’s, and only the Python message can namedyng.Resources("sequential").The CLI’s
--backendhas the choicessequentialandcuda(no OpenMP choice; default cuda when the active module has it, asdyng-compat-dynlp’s default), not the shared--backend sequential|openmp|cuda --threadsof the other commands.--similarity-threshold publishedwith--batchesis the average of the files’ edges summed as the original’scomputeAvgEdgeWeightsums, in another order (it may differ from a generator’s tau in the last float bit;stream.jsoncarries the exact tau). On the 5k5 stream both give the original’s labels byte for byte.EdgeBatchaccepts 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 onweight_dtype="float32"). The 0.3 tests that expected the construction error now expect the use error (test_batch.py,test_graph.py).The float32 option fields read back as the shortest decimal of the float32 (
1e-4, not9.99999974e-05), and so doesVertexArrivalStream.similarity_threshold: passing either back gives the same float.write_graph_files()calls the library’s writer (detail::write_dynlp_graph_filesthrough the private header, as the bindings already useutil/rng.hpp) instead of a Python writer: one implementation, checked against the original’s digests.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.
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.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.
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 sequentialdynlp_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 fromwrite_graph_files(); the original’s iterations and components.The dtype rule and the surfaces as ADR 0108; griffe: no breaking change; stubs current;
mypy --strictclean;docs/api/cli.mddocuments 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:
dyng2.63 MB (+24 % against 0.3.0),dyng-cu1214.31 MB (+65 %),dyng-cu1314.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 gpu73 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 ( |
06:50-07:02 |
the wheel-vs-parity row ( |
07:00-07:02 (window 07:01:29-07:01:44, |
the install tests again with the fixed test ( |
07:02-07:12 |
the final checks ( |
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, |
769 passed, 86 skipped, 1 failed ( |
|
clean |
|
no breaking change (the C++ additions of step 2 only) |
Clang 18 and GCC 13.4 |
0 failures each |
the CTests |
8 / 8; 9 / 9 (the cuda example the original’s bytes) |
|
OK (REUSE after the digest file’s header, |
|
format, cpu-only |
the fix ( |
all checks passed (pytest 771 passed, 86 skipped; the scaffold’s 80 + 54 + 41 tests; Sphinx -W and the link check) |
cpu-only with |
built without a warning (Werror; the 20 binding sources compiled); |
|
built without a warning; |
the carried-item check ( |
empty; still |
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 ofdyng.label_propagation, the streaming tutorial) can quoteexamples/python/label_propagation_torch.pyand 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 |
|---|---|
|
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 |
|
the freeze (ADR 0109 part A): the manifest (maturity |
|
the docs: the ten-section page, the history page, the row-layouts concept page, the streaming tutorial, the API pages, ADR 0109 |
|
M10’s Python additions moved off the lines M11b changes (found by the first trial merge with |
|
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 |
|
formatting; the CHANGELOG; the tutorial’s quote pin after the merge |
|
the kernel groups’ first miss: loading a group loads every kernel of it |
|
the merge of |
|
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 ( |
|
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 |
Deviations from the plan and the step’s text (each with the same intent)#
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.Two fixes of the kernel groups after readings had started (
1fb8165, then36fb95a/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 predatesd946bd0’s code.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.The stable set’s ADR 0024 side A is
ae5fc47, notb2b1524:ae5fc47is 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 againstb2b1524, where they were found.dyng-compat-hsospkeeps 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.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).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.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.The in_place 50k reading’s first window was rejected round by round by the contamination monitor (the concurrent
ci/check.shran pre-commit and Sphinx, which take no lock) and wrote no record; it was taken again in a later window.The env’s editable install was re-pointed by mistake from
/home/sskg8/Projects/dyngto this worktree by a manualpip 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.shthen used its throwaway venv, as designed.ci/gpu_local.shon the default preset, with label_propagation’s step on parity-cuda. The clean set’s first start with--preset parity-cudafailed 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 (b912b02fixed it; build and clang-tidy then passed again), and label_propagation’s step ran again on--preset parity-cudaalone (the build and that step; every other step’s code is the same library), so that every step of the 0.4 certificate’sGPU_LOCAL_STEPShas a “passed” reading of this library.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.shwas rebuilt (14.63 MB). The release builds both (R040).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 atf31e398refused 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.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 againstae5fc47: cycle_count within, sssp / mospapplyandcomputewithin except the roadNet-PA CUDA SOSP regions (the STOP),end_to_endabove 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 ( |
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); |
CPU checks |
|
wall time of the step |
2026-11-12 09:20 UTC to 2026-11-14 01:00 UTC (four attempts) |
Checks#
Check |
Result |
|---|---|
|
format, cpu-only |
the final tree’s checks after the records ( |
all checks passed (2026-11-13 19:41-19:50 UTC, the records’ tree before their commit, |
Clang 18 and GCC 13 |
0 failures each |
cpu-only with |
0 warnings, |
the kernel-group tests (dev-cuda, GPU 1), also under |
9 / 9 each; passed (one test, the allocation budget, caught the first version of the fix) |
the freeze’s demonstration on the final tree ( |
the changed header default fails |
|
1,093,598 of 1,250,000 B; M10’s own committed test data 20,438 B (19,569 B of digests under |
the carried-item check, LabelPropagation-CUDA’s |
empty; clean; valid; exit 0 |
clang-tidy on the CUDA branch after |
passed (360 files) |
Clang 18 |
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 forgit status --porcelainto 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
b2b1524the set mixes M10a’s, M11’s and M10b’s changes; againstae5fc47(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.
flockgives no priority to a waiting exclusive lock, so a CPU check suite of two hours delayed every gate window behind it; thepolite()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 |
|---|---|---|
|
blocker: the |
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 |
|
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 |
|
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; |
|
low: no test of compactions inside |
|
|
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 |
|
low: the engines comparator’s fixed work directories |
a work directory per run |
|
low: the calibration hook’s comment named a missing script |
the comment names |
|
medium: incomplete |
the header and the Python docstrings complete (documentation only, the baselines unchanged) |
|
medium: the io declarations frozen by policy only |
|
|
low: the frozen-flags test pinned names only; |
the test pins choices, defaults and required-ness; |
|
low: |
a clean message; a test with scikit-learn stubbed absent |
|
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, |
|
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 |
|
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) |
|
(the author’s decision on the names, 2026-11-14) |
the generators’ flag renamed |
|
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 |
|
(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 |
Deviations#
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).
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.
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.The records of this round are in
parity/results/M10b-review/, beside step 4’sM10b-final/, which stays as section 4.14’s record (nothing replaced).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.
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).ci/gpu_local.shkeeps 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.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.
AD9’s mutant under the rule ran as a compat tool linked by hand from the parity-cuda build’s object of
dyng-compat-dynlpand 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#
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.
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 afterquiet-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 ( |
21 windows, 2.1 h (2026-11-14 02:13-18:14): one CPU-only generator diagnostic and 20 GPU-0 windows, every END |
GPU1-QUIET windows |
5 windows, 0.1 h (2026-11-14 06:53-06:59), every END |
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), |
CPU checks |
|
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.