Changelog#
All notable changes to dynG are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning from 0.1.0. Before 0.1.0 anything may change.
Unreleased#
0.4.0 - 2026-11-28#
Summary#
dynG 0.4.0: two more stable algorithms, label_propagation (DynLP), exact against the original
LabelPropagation-CUDA code, and hyper_sssp (H-SOSP), exact against the original MOSP_ESCHER
code, with the graph and hypergraph additions they need. Install it from PyPI (Python >= 3.12,
Linux x86-64):
pip install dyng # the sequential and OpenMP backends
pip install "dyng[cu13]" # with the CUDA backend, for an NVIDIA driver of CUDA 13 ("dyng[cu12]": CUDA 12)
Upgrading from 0.3.0, 0.2.0 or 0.1.0: pip install -U "dyng[cu13]" (or -U dyng without the
plugin). Without -U, pip keeps an installed 0.3.0 or 0.2.0 (with its own plugin, which has no
label_propagation and no hyper_sssp) or 0.1.0 (which has no cu12 / cu13 extras: pip only
warns); pip install -U dyng alone upgrades the core and leaves an installed plugin at its older
version, which the 0.4.0 core does not load.
0.4.0 is the release candidate 0.4.0rc1 (tag v0.4.0rc1, published on TestPyPI only and
smoke-tested from there) with the final-release changes below and no change to the library.
Nothing of 0.3.0 changes incompatibly: sssp, cycle_count, mosp, triad_count and the
hypergraph keep their API; the frozen graph, hypergraph and I/O headers gain additions, and the
few documented behaviour changes (for example triad_count refusing the new slack_csr storage)
are listed below. The entries below the summary are the detailed record of milestones M10a, M10b,
M11a and M11b, of the ADR 0120 fix and of the release preparation (R040, R041).
label_propagationis stable (SemVer applies from 0.4.0): binary harmonic label propagation (DynLP) under vertex batches. Some vertices of a similarity graph are seeds with a class 0 or 1; every other vertex gets a label in [0, 1] thatupdate()keeps a delta-approximation of the harmonic solution while vertices arrive with their edges and leave;compute()is the static IrLP baseline. On the sequential and CUDA backends (no OpenMP backend in 0.4). The CUDA default is LabelPropagation-CUDA@a276a3a’s pipeline, ported verbatim: its damped labels are byte-identical to the original’s on the golden configurations, its in-place schedule stays within tolerances calibrated on the original’s own runs, and both meet the harmonic oracle; it is within the paper’s gates against the original (the update per batch, end to end and device memory, 50k to 5m vertices, and the 50m update at the release). A second CUDA engine,engine::operators, is written with dynG’s operators (binned_frontier,neighbor_reduce,connected_components) and gives the fused engine’s bits on the damped schedule. Besides the published setup, a streaming mode grows the rows as vertices arrive (slack rows) and takes the similarity threshold from the current graph.hyper_ssspis stable (SemVer applies from 0.4.0): dynamic single-source shortest hyperpaths (H-SOSP) of a weighted hypergraph: the distance and the parent of every hyperedge and the distance of every vertex, kept exact while hyperedges are deleted and inserted and vertices leave and join hyperedges, with a work budget that falls back to a recompute. On the sequential and CUDA backends, with two CUDA engines: MOSP_ESCHER@4b86159’s kernels ported as they are (the default) and dynG’s shared shortest-path engine (engine::operators), which gives the same results. Exact against MOSP_ESCHER on every update and recompute of its golden set (itsmake testsessions and the 16 paper configurations; distances and parents by id, on both CUDA engines) and within the paper’s timing and memory gates against it.Graphs for vertex streams:
graph::with_capacity()with slot rows (each vertex’s row has a fixed capacity, LabelPropagation-CUDA’s layout) and slack rows (rows that move and grow, with compaction), vertex batches (edge_batch’s vertex insertions with their seed labels, and vertex deletions with their edges) underbatch_semantics::net_effect(),vertex_statusandnum_active_vertices, and graphs with float weights; in PythonGraph.with_capacity,Graph.vertex_status(), the vertex arrays ofEdgeBatchand float32 graphs (weight_dtype). All of it is part of the stable graph surface from 0.4.0.The hypergraph’s
slack_csrstorage and incidence edits (stable from 0.4.0): MOSP_ESCHER’s slack CSR line graph on every backend, and batches that remove a vertex from a hyperedge or add one (incidence edits, onslack_csrstorage only: theescherstorage refuses them, andtriad_countrefusesslack_csrstorage).New file records and generators (stable, in version 1 of their formats):
.dgtvertex records+v u [label]/-v u, float weight tokens and incidence edits+i/-i;.dgbfloat32 weights (weight code 3) and the flagsvertex_recordsandincidence_edits; the label filesio::write_labels/read_labels(LabelPropagation-CUDA’sdynlp_labels.txt, byte for byte); the vertex-arrival generatorsgenerate_vertex_arrival_stream()(bit-exact per seed everywhere) andgenerators::legacy::dynlp_vertex_arrival_stream()(the original’s generator, byte for byte). Files of 0.3 read and are written as before.Python and the command line:
dyng.label_propagation(the labels a read-only array, handed to PyTorch or NumPy without a copy through DLPack),dyng.hyper_sssp, the vertex-arrival generators and the label files in Python,dyng label_propagation compute|update,dyng hyper_sssp compute|updateanddyng generate vertex_arrival_stream/dynlp_vertex_arrival_stream; the kNN recipedatasets/preprocess/knn_graph.pyturns feature vectors into a similarity graph.Tutorials and docs: “Streaming label propagation” (the paper’s setup byte for byte, then your own data in the streaming mode, with PyTorch) and “Shortest hyperpaths” (C++ and Python); the algorithm pages of both algorithms with their “paper vs fixed code” sections, the concept page “Row layouts”, and the history page of LabelPropagation-CUDA.
Kernel groups: on CUDA each algorithm’s kernels are loaded when the process first uses them, so under
CUDA_MODULE_LOADING=EAGERa process loads only the kernels of the algorithms it runs (DYNG_DEFER_KERNEL_GROUPS, default on; thedyng-cu12plugin, with CUDA 12’s static runtime, loads every kernel at start-up).Fixed: a CUDA graph’s update released the device copy of the previous version on the stream it was built on, so a program that built the graph on one stream and updated it on another could read freed memory (present since 0.1.0; ADR 0120).
Stability: besides the two algorithms, the graph and hypergraph additions and the formats above, the vertex-arrival generators and the label files are stable from 0.4.0 (the author’s decision of 2026-11-18). The testing oracles of label_propagation (
dyng::testing::harmonic_solution,union_find,lp_host_model) are frozen but outside the stable tier, like the testing oracles of 0.1-0.3.The plugins:
dyng-cu13is built with CUDA 13.5 (13.4 in 0.3.0),dyng-cu12with CUDA 12.9.The release certificate
benchmarks/results/0.4.0/(PLAN 8.3 and 8.6): as for 0.3.0, and new: the suitesics26_dynlp(label_propagation against LabelPropagation-CUDA@a276a3a, with the release-only 50m reading) andia3_hsosp(hyper_sssp against MOSP_ESCHER@4b86159); the label_propagation golden replays (generator, stage traces, damped bytes, hub, IrLP, the in-place schedule under its rate rule and the harmonic oracle); hyper_sssp’s replays by id on both CUDA engines and on sequential, and theslack_csrstore check; MOSP_ESCHER’s sessions replayed whole onslack_csrstorage on every backend; and the stable algorithms of 0.3.0 read against 0.3.0 itself (ADR 0024).
Known limitations of 0.4.0: Linux x86-64 only (the aarch64 wheels and the conda-forge packages
are deferred beyond 0.4.0); the plugins need a GPU of compute capability 7.5 or newer;
label_propagation and hyper_sssp have no OpenMP backend; the in-place schedule of
label_propagation is reproducible within its tolerance, not bitwise (the damped schedule is
bitwise per backend and build); incidence edits only on slack_csr storage, and triad_count
not on it; MOSP_ESCHER’s own H-SOSP batch generator is not ported (the gates replay its exported
batches); the hypergraph store’s offsets are 32-bit; on CUDA the memory pool keeps, between
batches, what an update reached (recorded beside the memory gates, not gated); no DOI (Zenodo is
not connected). Against 0.3.0 (ADR 0024’s reading, acknowledged by the author; fixes planned
after 0.4.0, docs/roadmap.md): cycle_count’s OpenMP update reads up to 2.5 % slower on large
batches under set semantics (a cost of the graph additions of 0.4 in the host graph apply,
about 2 ms per 50,000-edge batch), and on CUDA the sssp and mosp updates on roadNet-PA’s
50,000-edge batches read about 4 % slower (where the kernel groups of 0.4 place device memory);
the other regions read within 2 % of 0.3.0, or above it where the code’s placement in memory
differs, located region by region (docs/developer/retrospectives/R040.md, with the author’s
decisions in GOVERNANCE.md). label_propagation
does not check that the weights are positive (a weight <= 0 gives labels that are not the
harmonic solution).
Final release (R041)#
Changed:
VERSION0.4.0,CITATION.cffversion: 0.4.0anddate-released: 2026-11-28(the planned tag day); this section, the release candidate’s[0.4.0rc1], renamed[0.4.0] - 2026-11-28with its link references, its summary with the install lines from PyPI and the upgrade line.Docs: the status texts of the release candidate brought to the release (README, the documentation’s start page, the getting-started and install pages,
SECURITY.mdwith its supported versions,CONTRIBUTING.md,SUPPORT.md,docs/citing.md, the roadmap, the developer plan and the PyPI project pagepython/README.md):pip install dyngandpip install "dyng[cu13]"/"dyng[cu12]"from PyPI,pip install -U "dyng[cu13]"for users of 0.3.0, 0.2.0 and 0.1.0; the tutorials “Streaming label propagation” and “Shortest hyperpaths” no longer send readers to the release candidate’s TestPyPI lines; both, and “Hypergraph triads”, clone the tagv0.4.0(“Streaming label propagation” gets the clone command it lacked; the files “Hypergraph triads” quotes are unchanged sincev0.3.0, so a 0.3.0 user clones that tag); “Your first dynamic algorithm” pins the latest releasev0.4.0. The pages of 0.4’s content (label_propagation,hyper_sssp,slack_csrand the incidence edits, the vertex-arrival generators, the label files, the kNN recipe, the format extensions, the two tutorials) already describe them as stable from 0.4.0, as the author decided on 2026-11-18, with the three testing oracles frozen outside the stable tier.Fixed (tests only): the
cudacase of the hyper_sssp example’s test (python/tests/test_examples.py) had nogpumarker, sopytest -m gpu, the GPU test of the published plugin wheels, did not select it; it is marked, andpython/tests/test_gpu_marker.pyfails on anybackend="cuda"case without the marker. The case passed on the published 0.4.0rc1 wheels; no library code changed.Added:
benchmarks/results/0.4.0/, the certificate of the release, carried over from 0.4.0rc1 (docs/developer/release.md, step 9): the library did not change since the measured commits, so the gates, the golden replays and the golden mutations stand; the checks of thepackagingandreposcopes (the distributions asrelease.ymlbuilds them forv0.4.0,ci/check.sh --parity,ci/api_check.sh, oneci/gpu_local.sh --preset parity-cudarun) and of thetestsscope (the sanitizer presets and the mutation CTests:README.mdchanged) were run again on the final tree. The smoke test of 0.4.0rc1 from TestPyPI (the CPU package and both CUDA plugins, on GPU 1) is recorded there and indocs/developer/retrospectives/R041.md.Governance: the author’s decisions of 2026-11-26: 0.4.0rc1 gets no GitHub pre-release (as 0.1.0rc1, 0.2.0rc1 and 0.3.0rc1), and the planned tag day of 0.4.0 is 2026-11-28 (UTC).
Changed#
The documented
find_package(dyng 0.4 REQUIRED)(README.md, docs/getting_started/install.md and the tutorial’s Op consumerci/consumer/op.CMakeLists.txt) follows the development version, whichci/cmake_consumer.shrequires; a build of 0.3.0 asks for 0.3.An empty block for each milestone of 0.4 where a merge of the two could silently drop the other’s entries (the author’s decision of 2026-10-28 on the 0.4.0 plan, sheet A3; GOVERNANCE.md, approvals log):
parity/certify.py(the oneGPU_LOCAL_STEPSkey (0, 4),REQUIRED_SUITESand theEQUIVALENCE_TARGETS/EQUIVALENCE_FILESlists, one entry per line),parity/mutate.py(SUITESandMUTATIONS),ci/gpu_local.sh, this file and GOVERNANCE.md’s Open decisions. M10 (label_propagation) and M11 (slack_csr,hyper_sssp) are developed in parallel, and each adds its entries to its own block.
M10: label_propagation (0.4)#
The parity harness of
label_propagationagainst LabelPropagation-CUDA@a276a3a (M10a step 1; ADRs 0063-0066; no library change): the reference inparity/references.tomland its link-time recording twin (parity/export_patches/LabelPropagation-CUDA,parity/exporters/dynlp,parity/dynlp_trace.py); the timed-region mapparity/timed_regions/label_propagation.tomlwith M10’s region keysfirst_batchandsum_gateinparity/perf_ab.pyandparity/bench_suite.py;perf_ab.py label_propagation(parity/label_propagation_perf.py: the pre-port baseline and the memory readings of the original); the golden setslabel_propagation_{generator,damped,trace,hub,irlp,inplace}and the in_place calibration (parity/label_propagation_goldens.py, throughexport_goldens.py label_propagationandcompare.py label_propagation --verify), with the thresholds frozen inparity/goldens.toml; the build-flags go/no-go (parity/label_propagation_sass.py); the records underparity/results/(M10a.md).M10a step 2 (api-change, additive; provisional until M10b’s freeze): the DynLP legacy generator (ADR 0067):
<dyng/generators/vertex_arrival.hpp>(added to<dyng/dyng.hpp>) withgenerators::vertex_arrival_options,vertex_arrival_batch,vertex_arrival_streamandgenerators::legacy::dynlp_vertex_arrival_stream(), byte-identical to LabelPropagation-CUDA’s generator for a seed (every corpus case, build and thread count); libstdc++ 12’sstd::shufflewithstd::mt19937andstd::uniform_real_distribution<float>reproduced by the library and compared withstd::at run time;standard_library_matches_legacy_streams()also compares those draws (its description gains a sentence).M10a step 2 (api-change, additive,
dyng::testing): the label_propagation oracles (ADR 0068):testing::harmonic_solution(withharmonic_options,harmonic_result,label_error_against,class_agreement_with),testing::union_findandtesting::lp_host_model(withlp_model_batch,lp_model_report), standard library only, validated against the original’s traces and its--check; the replay tooldyng_lp_replayandcompare.py label_propagation generator|model|check-runs|oracle|margin|subset(parity/label_propagation_replay.py); the recorder’scheck_labelsrecord; the committed digests undercpp/tests/data/goldens/label_propagation(19.6 KB).M10a step 3 (api-change, additive, the frozen
graph/headers; ADR 0069): slotted rows and vertex batches on the host.graph<int32, int32, float>andgraph<int32, int64, float>are instantiated;graph::with_capacity(res, vertex_capacity, row_capacity, props)builds a graph withrow_layout::slotted(fixed per-vertex slot ranges, a row end and avertex_statusper vertex, all inactive), which takes vertex batches under the newbatch_semantics::net_effect()(with the appended fieldbatch_semantics::as_net_effect): Ins \ Del become active, every id of Del ends deleted, ids are single-use, the edges are appended to both rows in batch order, and every contract violation (an id out of range, listed twice, re-inserted, a labelled vertex deleted in its batch, a row overflow) is refused before anything changes. New:enum class vertex_status {active, deleted, inactive},graph_view::statusandgraph_view::row_end(appended; empty for compact rows),graph::num_active_vertices(),apply_summary::dropped_insertions(appended),edge_batch::insert_vertex(v, label = -1),delete_vertex(v)and their accessors (empty(),clear()andview()cover them), andgenerators::vertex_arrival_batch::view(). The 0.1-0.3 instantiations and compact rows are unchanged; a vertex batch on compact rows still raisesnot_supported_error, now namingwith_capacity().M10a step 3 (api-change, documentation only, the frozen algorithm headers; ADR 0070): the compact-only guard (AD11).
sssp,mosp,cycle_count,dynamic_bfsandtriangle_delta(compute,update,from_arrays),dyng::update()through them, the upload of the device copy and the device merge refuse a graph whose rows are notrow_layout::compactwith anot_supported_errorthat names the layout and the fix (graph::from_csr(res, g.to_csr(res).view(), props)with the properties the message lists), before anything changes. Their headers andupdate.hppgain the@throwsline; nothing else in those algorithms changes, andtriad_count(hypergraphs) is untouched.M10a step 3 (api-change, additive; provisional until M10b’s freeze; ADRs 0071-0073):
label_propagation(experimental),<dyng/label_propagation.hpp>(added to<dyng/dyng.hpp>):schedule {in_place, damped},on_limit {error, report, fallback_recompute},options(similarity_threshold,tolerance,max_iterations,on_iteration_limit,update_schedule,cuda_engine),stats(batch,components,sparsified_edges,initial_frontier= |V_aff|),result<vertex_t>(labels(),seed_labels(),reserve(), …),compute()(IrLP, the published baseline) andupdate()(DynLP, one vertex batch on slotted rows) forgraph<int32, int32 | int64, float>, on the sequential backend (cuda in M10a step 4; no OpenMP backend in 0.4: OpenMP resources raisenot_supported_errornaming sequential and cuda). Its deterministic stages equal LabelPropagation-CUDA@a276a3a’s trace on the whole corpus P+, and its labels meet the harmonic oracle. The profiler counterlabel_propagation.irlp_iterations; the stage trace of the original’s recorder format whenDYNG_DYNLP_TRACE_DIRis set (a parity diagnostic).M10a step 3 (api-change, documentation only,
core/stats.hpp; AD20): the last paragraph of theupdate_statscomment: “An algorithm’s stats documentation may state a weaker level (deterministic per backend, or schedule-dependent) for an inherited field; that statement governs for that algorithm.” (label_propagation’saffected,convergedandfallback_used: deterministic per backend underdamped, schedule-dependent underin_place).M10a step 3:
dyng-compat-dynlp(tools/compat/dynlp; ADR 0073), the original’sdynLPcommand line on dynG (public headers only; built against the install tree byci/cmake_consumer.sh; C8’s refusals of--tau 0, a NaN--tauand--maxIter <= 0);compare.py label_propagation container|trace|oracle-port|determinism(parity/label_propagation_port.py) and the modedyng_lp_replay container;perf_ab.py mosp --baseline-exe/--baseline-label/--layouts(the dynG-against-dynG reading of ADR 0024).M10a step 4 (api-change, documentation only, the frozen
graph/graph.hpp; ADR 0074): slotted rows on the device. A slotted graph built with CUDA resources keeps its rows on the device (LabelPropagation-CUDA’s device graph): with CUDA resources of its device a vertex batch is checked on the host (Step 0), copied to the device (pinned arrays directly) and applied there, and the host copy of the rows is downloaded on the next host read; the row capacity is checked on the device instead of before the batch, so an overflow raisescapacity_errorafter the batch was applied and poisons the graph (the basic guarantee; thewith_capacity(),apply()andreserve()descriptions say so).graph::reserve(res, edge_capacity)sizes the device scratch of vertex batches of up toedge_capacityedges for such a graph.M10a step 4 (provisional until M10b’s freeze; ADR 0075):
label_propagationon cuda, the fused engine (the verbatim port of LabelPropagation-CUDA@a276a3a’s pipeline, SASS-identical kernels, compiled with--use_fast_mathon this target only):update()andcompute()(IrLP) onresources::cuda(), the result’s labels in device memory (result::space()), results moving between the backends withresult::clone();options::cuda_engine = engine::operatorsraisesnot_supported_erroruntil M10b. Damped labels bitwise the original’s on the corpus, in_place inside the frozen calibration, the harmonic oracle met. The profiler counterslabel_propagation.hook_roundsandlabel_propagation.persistent_iterations.M10a step 4:
dyng-compat-dynlp --backend cuda(page-locked batches, CUDA-event times of eachupdate(),--phases),compare.py label_propagation damped|irlp|inplace|hubanddyng_lp_replay container --backend cuda,parity/label_propagation_sass.py port(the kernels’ SASS against the original’s objects),perf_ab.py label_propagation runandmemory --side port(the A/B gates and the port’s nsys peak),ci/fast_math_scope.py(--use_fast_mathon label_propagation’s CUDA TUs only).M10a step 5 (ADR 0076): the conformance kit’s float slotted axis (
container_axis,slotted_axis: DynLP graphs of at least 5,000 vertices with vertex batches, the mixes arrival_with_labels, departure, mixed, insert_and_delete_same_batch and edges_between_present, a model with vertex states, C7 and C9 of vertex batches) and label_propagation’s kit traits on sequential and cuda (near_reference = the harmonic solution with AD7’s bound and class rule, compare damped bitwise and in_place by its exact parts and the mean, AD20’s counter levels, C5 skipped with its reason); the near_reference documentation oftest_traits.hppfixed; the original’s checker oracles as GoogleTests on both backends (5k5 and 50k, both schedules).M10a step 5 (ADR 0077): label_propagation’s six recorded mutations (AD9) in
parity/mutate.pyand as the CTestslabel_propagation.mutation.*;mutate.py runwaits before each GPU-1 job while another track’s GPU-1 quiet window is open, whenDYNG_GPU1_QUIET_OKnames the caller.M10a step 5: the label_propagation step of
ci/gpu_local.sh(its CUDA tests, the kit, the replays of P, the in_place cloud, the oracle and compute-sanitizer), required by the 0.4 certificate (GPU_LOCAL_STEPS[(0, 4)]); the weekly hosted workfloworacle.yml(the harmonic oracle at delta 1e-4 on sequential 50k, AD7;ci/oracle_weekly.sh).M10a step 5 (ADR 0078): the suite
benchmarks/paper/ics26_dynlp.yaml(readings with a schedule key, AD4’s release-only 50m reading with its release-gate state and reason;bench_suite.validateextended for these keys) and the 0.4 certificate rules of label_propagation inparity/certify.py(REQUIRED_SUITES['ics26_dynlp'],LABEL_PROPAGATION_REPLAYS_SINCE, the frozen-tolerance check of the calibrated kinds, the per-case gates and the release-only row,dyng-compat-dynlpin the equivalence lists;compare.py label_propagation certificate).M10a step 5 (ADR 0079): Step 0 of a vertex batch (the graph’s checks before a slotted apply) in fewer passes over the batch: the same checks, order, messages and guarantees (the 5m1 gate reading had missed AD2’s bar on the host cost of Step 0).
dyng-compat-dynlp’s evaluation reads the page-locked labels, as the original readsh_labels.M10a step 5 (provisional
<dyng/label_propagation.hpp>, documentation only): the update’s doc comment and the algorithm page state that after a seed’s departure labels far from it can stay stale until later batches reach them (the author’s decision of 2026-10-30).M10a review fixes (api-change, documentation only:
graph.hpp,label_propagation.hpp): a device row overflow’s poison is kept with the graph’s host state, so an apply on any resources and everyclone()/to_backend()copy of a poisoned graph raisecapacity_error; the device append computes slots and row ends in 64 bits (a row near the end of 2^31 - 1 slots wrote out of bounds); the graph’s device arrays of a vertex batch grow with headroom andgraph::reserve(),result::reserve()andoptions::similarity_thresholdsay what each sizes or costs;run_update()makes the compact-only guard and label_propagation’s entry checks before it reads the batch of a non-compact graph (an invalid vertex batch now gets the named refusal, a stale resultstale_result_error); the guard’s message names the properties its suggestedfrom_csr()copy needs (props.semantics = batch_semantics::upsert_last_wins()); underon_limit::fallback_recomputean update whose IrLP reaches the cap too reportsstats::converged = false;compute(),result::reserve()andresult::clone()report a host allocation failure asout_of_memory_error;graph::num_edges()documents that a self-loop counts twice on slotted rows.M10a review fixes (parity and certificate): every label_propagation golden set needs all its cases on each required backend;
certify.pyre-checks the label_propagation gate records withbench_suite.check_lp_record(rounds, samples, guard, clock lock, counted memory with nvidia-smi before, during and after); the oracle’s frozen tolerance is the one its replay applied; the fused engine’s trace replay compares every field the golden records; the SASS port gate compares whole instructions; the IrLP replay checks the snapshot counts; the oracle replay checks the flips and the maximum; the memory sampler polls every 0.25 s and counts a side only when it saw its own process.M10a review fixes (parity and certificate; ADR 0100, the author’s decision of 2026-11-05): the fused engine’s damped replay compares
connected_components.hook_rounds, a non-deterministic counter of LabelPropagation-CUDA, against the values the original’s own runs produce for the case and batch (parity/results/M10a-hook-rounds.json, from its recorder twin’s runs), every other field exactly;compare.py label_propagation damped-rejudgejudges an existing record again;certify.pychecks every accepted value against the committed evidence.M10b step 1 (parity; AD6, ADR 0101): AD6’s c, calibrated and frozen before the refactored engine:
compare.py label_propagation calibrate(parity/label_propagation_engines.py) rebuilds the fused engine with only its association (DYNG_CALIBRATION_LP_PERMUTED_REDUCTION, compiled out of every library build) or contraction (-fmad=false) perturbed, through the new cache variableDYNG_LP_CALIBRATION_CUDA_FLAGS(label_propagation’s CUDA sources only; empty in every preset), and runs every batch of P: c = 2^20 (c·ε = 0.125), frozen inparity/goldens.toml[sets.label_propagation_damped.refactored]with its recordparity/results/M10b-calibration.json.M10b step 1 (api-change, documentation only:
options::cuda_engine; ADRs 0101, 0102): the operators engine of label_propagation on CUDA:options::cuda_engine = engine::operatorsnow runs update() with the framework’s hooks written with label_propagation’s operatorsbinned_frontier,neighbor_reduceandconnected_components(incpp/src/algorithms/label_propagation/operators/by the rule of two), one kernel per phase,schedule::dampedonly (compute() and update() underschedule::in_placeraisenot_supported_errorbefore anything changes; it used to raise for every call);compute()is IrLP on every engine;engine::automaticstays the fused engine. Its labels are the fused engine’s bits with identical per-batch iterations, components and frontier_visits on P+ (compare.py label_propagation operators; the kit’s C4 compares the two engines); the hub golden holds on it; the mutation CTestslabel_propagation.mutation.cuda_operators.<name>run the mutants on its own cases.M10b step 2 (api-change, additive, the frozen
io/headers; AD13 decided by the author on 2026-10-28, ADRs 0105 and 0106): the batch files of vertex batches and float graphs, and label files..dgt(still%dgt 1) reads and writes the graph operations+v u [label]and-v u(edge_batch::insert_vertex/delete_vertex; a hypergraph file refuses them) and, forread_batches<V, float>/write_batches<V, float>, float weight tokens (finite; NaN and infinities refused; written in their shortest round-trip form); integer graphs still refuse a non-integer token..dgb(still version 1) gainsbatch_dtype::float32 = 3(a graph file’s weight byte only) andbatch_file_flags::vertex_records = 16(bit 4, graph files only; a 48-byte count block and the inserted vertices, their int8 seed labels and the deleted vertices after the 0.3 arrays);batch_file_flags::known_graphis nowvertex_records(it was 0;knownstays the union); the header is checked per kind;write_binary_batchessets the flag only when a batch has a vertex operation, andbatch_writerraisesinvalid_argument_errorfor a vertex batch in a file opened without it. Files of 0.3 read and are written byte for byte as before; a reader of 0.3 refuses the additions with anio_error.read_edge_list<V, float>/write_edge_list<V, float>read and write float weight columns (the integer paths unchanged). New:io::write_labels(path, labels)(LabelPropagation-CUDA’sdynlp_labels.txtbytes,"%.6f") andio::read_labels(path, num_vertices);dyng-compat-dynlpwrites its label files with it. The fuzz targets cover the new syntax (docs/api/file_formats.md, “Vertex batches and float weights” and “Labels”).M10b step 2 (api-change, additive,
<dyng/generators/vertex_arrival.hpp>; ADR 0107):generators::generate_vertex_arrival_stream(res, opt), the library’s vertex-arrival stream: the legacy generator’s structure (graph model, batches, published threshold) with library-owned draws (std::mt19937_64with the library’s bounded integers, shuffle and floats), bit-exact per (seed, major version) with every compiler, standard library and thread count (committed digests in the CPU suites); the samevertex_arrival_options(theseedfield’s documentation names both seedings) andvertex_arrival_stream. The legacy stream is unchanged.M10b step 2 (api-change, additive, the frozen
graph/headers; ADR 0103; AD16 decided by the author on 2026-10-28):row_layout::slackon the host and CUDA, built bygraph::with_capacity()from empty, partial or full capacity hints (each rowceil(k * (1 + graph_properties::headroom))slots): a row that overflows moves to the tail of the slot arena with its entries in order, a batch compacts the rows when the dead slots outnumber the owned ones (rows rewritten without the entries of deleted vertices), vertex growth underbatch_semantics::allow_vertex_growth,capacity_erroronly at theedge_tlimit. For slack rowsgraph_view::out.row_ptr[v]is row v’s start and is not monotone (documented ingraph_view.hpp). New:apply_summary::relocated_rowsandapply_summary::compactions(appended). Every compact-only algorithm refuses slack rows (ADR 0070’s guard).M10b step 2 (api-change, documentation and behaviour of
options::similarity_threshold = std::nullopt; ADRs 0103, 0104):label_propagationon slack rows (both backends and engines; a batch that would grow the vertex set is refused before anything changes) and the streaming mode’s threshold, now a double sum and a count maintained by the result with a documented accumulation order (bitwise the same on every backend) instead of a sum over the whole graph in every update. The published setup (with_capacity from the stream’s degrees, the stream’s threshold) stays the documented default; the streaming mode is an advanced mode with no gate, checked by the harmonic oracle, the host model and the kit (its float axis gains the preset “slack, net_effect(), half capacities”).M10b step 2 (Python, behaviour):
dyng.io.read_batchesanddyng.io.BatchReaderraiseNotSupportedErrorfor a batch file with vertex operations (+v/-v, the.dgbflagvertex_records) or float32 weights instead of returning its batches without them (the Python batches carry them from M10b’s Python step, AD14);dyng.io.write_batcheswrites a batch’s vertex operations as+v/-vlines.M10b step 3 (Python, additive; ADR 0108; AD14 decided by the author on 2026-10-28): float32 graphs in Python: float32 weights select the float graphs (
(int32, int32 | int64, float32)); float64 weights only with an explicitweight_dtype="float32"(Graph.from_edges,Graph.from_csr,EdgeBatch), checked (finite, within float32’s range), never narrowed silently; a float graph’s batch weights other than float32 only when exactly float32 values.Graph.weightedkeeps its meaning (int32 weights); newGraph.weight_dtype.Graph.with_capacity(row_capacity, layout="slotted"|"slack", semantics="net_effect", ...),BatchSemantics.net_effect()(fieldas_net_effect), the vertex arrays ofEdgeBatchapplied (and read back:insert_vertices,vertex_labels,delete_vertices),ApplySummary’sdropped_insertions,relocated_rows,compactions,Graph.num_active_vertices,Graph.vertex_status()withdyng.VertexStatus.M10b step 3 (Python, additive; ADR 0108):
dyng.label_propagation(Options,Stats,Result,compute,update; keywords equal to the C++ fields),dyng.updatewith its results;Result.labelsis a read-only float32dyng.Array, zero-copy through DLPack (torch.from_dlpack,numpy.from_dlpack), copy-on-write (an export keeps its labels; the next update copies the per-vertex state once: 13 bytes per vertex on the host, 17 on cuda). OpenMP resources raiseNotSupportedErrornaming ‘sequential’, ‘cuda’ and the fixdyng.Resources("sequential")(AD19).dyng.generators.vertex_arrival_streamanddyng.generators.legacy.dynlp_vertex_arrival_stream(VertexArrivalStream, withwrite_graph_files()in the original’s bytes),dyng.testing.harmonic_solution(HarmonicResult),dyng.io.write_labels/read_labels, and float edge lists and batch files (weight_dtype="float32", the.dgbweight code 3 and flagvertex_records) indyng.io.M10b step 3 (Python, behaviour): the batch readers return the vertex operations and float32 weights (they refused them since step 2);
EdgeBatchaccepts floating-point weights at construction (an int32 graph refuses them at use, where 0.3 refused them at construction);write_binary_batchessets the flagvertex_recordsonly when a batch has vertex operations (an edge-only file is 0.3’s, byte for byte).M10b step 3 (CLI; ADR 0108; AD12 with E1):
dyng label_propagation compute|update(one kebab-case flag perOptionsfield;update --generate legacy|libraryor--batcheswith--capacity auto|FILE; outputsdynlp_labels.txtin the original’s bytes and aresults.csv-stylestats.csv) anddyng generate vertex_arrival_stream/dynlp_vertex_arrival_stream(batches, capacities, tau, true labels, optionally the original’s graph files); thegenerategroup is no longer legacy-only. The CLI’s damped labels on the legacy 5k5 stream equaldyng-compat-dynlp’s sequential output byte for byte.dyng-compat-dynlp’s tests pass the original’s complete flag set and refuse--maxIter -3.M10b step 3 (datasets; ADR 0108; AD18 decided by the author on 2026-10-28): the kNN recipe
datasets/preprocess/knn_graph.py: the symmetric cosine kNN graph (k = 5) of a feature matrix with weights in (0, 1] (negative similarities dropped or shifted), scikit-learn (BSD-3-Clause) an optional import with a NumPy fallback that writes identical files on tie-free inputs, an optional vertex-arrival stream; no vendored code and no dataset.M10b step 3 (examples, CI):
examples/cpp/label_propagation_stream.cppandexamples/python/label_propagation_torch.py(at most 60 lines, explicit resources), their labels compared with committed digests (cuda: the original’s own file) in CTest, against the installed package (ci/cmake_consumer.sh) and intest_examples.py; the plugin smoke test runs label_propagation’s 5k5 damped stream on cuda under the oracle;parity/wheel_vs_parity.pyhas a reported label_propagation row.M10b step 4 (CUDA, behaviour; ADR 0109 part B; the author’s decisions of 2026-11-03 and 2026-11-05): kernel groups. Each algorithm’s CUDA kernels (and the hypergraph containers’) are registered with the CUDA runtime when the process first uses them instead of when libdyng is loaded, so under
CUDA_MODULE_LOADING=EAGERa process loads only the kernels of the algorithms it runs (the core’s and the graph container’s at context creation). Nothing changes in the device or host code;resources::warm_up()still loads every kernel of the library (every group first). New CMake optionDYNG_DEFER_KERNEL_GROUPS(default ON; OFF registers every module at load, as before). The compatibility tools warm up only the groups they run. Loading a group loads every kernel of it (cudaFuncGetAttributesper kernel after the registration): the runtime loads the kernels of a fat binary registered after the context exists only at their first use, even underCUDA_MODULE_LOADING=EAGER, which the step’s first version missed (label_propagation’s first timed update paid about 7.6 ms for its modules; the final re-read caught it). A call that hands the runtime a kernel of a group that is not loaded goes to a loaded group’s kernel of the same device name when there is one (the linker keeps one copy of a CUB or Thrust dispatch function that several groups define, so one algorithm can run another group’s copy), instead of loading that group: label_propagation’s first update no longer loads the hypergraph containers’ kernels (about 8 ms at 50k; the resumed final re-read caught it). The groups cover hyper_sssp’s kernels after M11b’s merge.M10b step 4 (api-change: the freeze; ADR 0109; AD15 decided by the author on 2026-10-28):
<dyng/label_propagation.hpp>,dyng.label_propagationanddyng label_propagationare frozen, with<dyng/generators/vertex_arrival.hpp>and the oracle headers<dyng/testing/harmonic_solution.hpp>,union_find.hppandlp_host_model.hpp(ci/api_snapshot.py’sFROZEN_BEFORE_STABLE; the API baseline lists their sections as frozen; the frozen command-line flags are pinned by a test). No signature changed. The maturity staysexperimentaluntil the author confirmsstableat the 0.4.0 release.M10b step 4 (docs):
docs/algorithms/label_propagation.mdin the ten sections of the algorithm pages (differences from the paper and “paper vs fixed code” quoting the original’s CHANGES.md and README, AD17; everyDynLPConfigfield mapped); the C++ and Python API pages; the history pagedocs/history/label_propagation_cuda.md; the concept pagedocs/concepts/row_layouts.md(compact, slotted and slack rows, vertex status, net-effect batches, the published and streaming setups, the compact-only algorithms); the tutorialdocs/tutorials/streaming_label_propagation.md(quotingexamples/python/label_propagation_torch.pyandpython/tests/test_label_propagation_tutorial.py); the sketch marked frozen.M10b review fixes (fixed): the
dyng-cu12plugin’s CUDA backend works again: CUDA 12’s static runtime cannot use a fat binary registered after the context exists, so a CUDA 12 build with the static runtime registers every module at load (DYNG_DEFER_KERNEL_GROUPSoff; the cu13 plugin and the shared-runtime builds keep the kernel groups; ADR 0109);ci/gpu_local.shbuilds and tests the cu12 plugin too when a CUDA 12 toolkit is found. The legacy vertex-arrival generator andio::write_labelsregain M10a’s speed (the legacy stream’s integer draw out of line again; the label lines formatted in chunks; the same bytes). A slack-row compaction keeps the capacity of an active vertex’s empty row (ADR 0103). The edge offset flag ofdyng generate vertex_arrival_stream/dynlp_vertex_arrival_streamis--edge-type int32|int64, as the 0.3 commands spell it (renamed from--edge-dtypebefore the freeze, the author’s decision of 2026-11-14; Python keepsedge_dtype).knn_graph.py --method sklearnwithout scikit-learn ends in a message, not a traceback.M10b review fixes (api-check):
ci/api_snapshot.py’sFROZEN_DECLARATIONSguards the frozen io declarations (io::write_labels,read_labels,batch_dtype::float32,batch_file_flags::vertex_records,known_graph) inside the tracked io headers; the frozen command-line flags keep their choices and defaults (a test);ci/docs.shfails on an unreplaced*_PLACEHOLDERtoken.M10b review fixes (docs): the algorithm page’s gate table and a checked Python snippet; the complete error contracts of
<dyng/label_propagation.hpp>anddyng.label_propagation(cuda_error, device memory, the operators engine within_place,CapacityErroron cuda); the stats’ determinism levels in Python as in C++ (AD20); a tensor of the labels must not be written; the generators page, the format page’s flags and label normalization.M10b review fixes (parity): every certificate reading taken again on the fixed library (
parity/results/M10b.mdsection 5; records inparity/results/M10b-review/): the gates against LabelPropagation-CUDA within their bars (dampedupdate[sum]0.987-1.010,end_to_end1.010-1.045, device memory 1.002-1.012; the 50m dampedend_to_end1.077, down from 1.105), M11’s ia3_hsosp gates (271 / 271) and replays, the LP replays, the mutations (6 / 6), ADR 0024’s LP slotted path (1.002 / 1.004),ci/gpu_local.shin full and both plugins; the in_place cloud missed by one 50k run at batch 9 in two readings and in the one further reading (a recorded miss, the author’s decisions of 2026-11-14 and 2026-11-18).M10b review fixes (parity): the certificate of the
label_propagation_inplaceset is judged by a rate rule (the author’s decision of 2026-11-18, ADR 0111): per case 30 fresh port runs and 30 fresh runs of the unpatched original on one GPU; the case fails if the port’s count of runs outside the frozen iteration envelope is significantly higher than the original’s (one-sided Fisher exact test at 5 %); the labels, flips, components, iteration sums and the trace are still judged on every port run; the envelope, thresholds and calibration are unchanged.goldens.tomlfreezes it,compare.py label_propagation inplace --ratereads it andcertify.pyrecomputes it from the certificate record’s tables. Its reading on the final library code passes every case (50k: 1 against the original’s 3 of 30 runs outside; the other cases 0 / 0), AD9’s plain Jacobi in_place mutation still fails it (30 of 30 outside), and the scoped dry certifies of label_propagation and hyper_sssp pass (parity/results/M10b.mdsection 5.8).
M11: slack_csr and hyper_sssp (0.4)#
Added:
dyng::testing::hyper_sssp_reference,check_hyper_sssp_treeandline_graph_delta(<dyng/testing/hyper_sssp_reference.hpp>), the independent oracle ofhyper_sssp: node-weighted shortest paths over the line graph rebuilt from the hyperedges, from a source hyperedge or a source vertex, the canonical parents, and the line-graph change of a batch (MOSP_ESCHER@4b86159’s test oracle; the names decided by the author on 2026-10-28, HD12; ADR 0082). It reproduces MOSP_ESCHER’s distances, parents and pair lists on its own dumps.Parity harness: the timed-region map of
hyper_ssspagainst MOSP_ESCHER@4b86159 (parity/timed_regions/hyper_sssp.toml; the per-batch gate rows of HD3; ADR 0080) and its loader inparity/perf_ab.py; the H-SOSP dump of the recording twins (parity/exporters/hsosp, additive) and the golden kindhyper_ssspwith the sethyper_sssp_mosp_escher(parity/hsosp_goldens.py; ADR 0081); the clock probe and quiet pre-read of MOSP_ESCHER (parity/hsosp_perf.py probe);parity/certify.pyrequires the hyper_sssp replays of every backend and parity mode of the set from the 0.4 series (HYPER_SSSP_REPLAYS_SINCE), and earlier certificates list the set without a verdict.Datasets: Benson’s coauth-MAG-Geology archives and H-SOSP’s
geology.hg, re-derived and pinned indatasets/registry.toml(HD15).Fixed: an exception thrown by the work of
operators::openmp_exec::for_each(the host executor of the operators, used by the tutorial algorithms dynamic_bfs and triangle_delta) left its OpenMP region and ended the process; it is now rethrown on the calling thread after the region (the carried item (b) of 0.4, the D13 class of ADR 0061; ADR 0083).Fixed: a host allocation failure inside an OpenMP region of
sssp’s OpenMP engine (a per-thread list that grew inidentify_affected, the pull pass or the near-far loop, or a gathered list resized insideomp single) left the region and ended the process; it is now kept in aregion_exceptionscarrier, every thread still reaches every barrier, and it is rethrown after the region asout_of_memory_errorwithsssp.hpp’s guarantee;mosp’s OpenMP compute and update, which run that engine per objective, inherit it. The fast path of a push is unchanged (the carried item (a) of 0.4, the D13 class of ADR 0061; ADR 0094).Internal:
escher::flatten_rows(the port of ESCHER-GPU’sflatten2DVector), which no library code called and whose OpenMP region ignored the resources’ thread count, moved from the library to a test helper (cpp/tests/support/escher_flatten.hpp; the carried item (c) of 0.4; ADR 0084).Changed (internal): a batch of a weighted hypergraph updates the weights by id in place, in O(batch), instead of copying all of them (O(id bound)) per batch; the guarantees of
apply()are unchanged (ADR 0088).Added (api-change: documentation of the frozen hypergraph headers):
slack_csrstorage (hypergraph_storage::slack_csr,line_graph_policy::slack_csr; the property matrix of HD9, decided by the author on 2026-10-28) on the sequential and OpenMP backends: MOSP_ESCHER’s host incidence model, the best-fit ids of its ESCHER H2V tree, and its slack CSR line graph (slots with headroom, swap-remove deletions, appended insertions, relocations, a rebuild when the tail is full) kept from every batch’s pair delta, computed inside the commit from the incidence changes, exact and independent of the order of the operations (ADR 0086).h2h()sorts each row on request;overlapsis empty. (From Python since M11b, below.)Added (api-change: documented behaviour of
apply()): incidence edits on slack_csr storage (hyperedge_batch::delete_incidence/insert_incidence): applied after the batch’s deletions and before its insertions, in MOSP_ESCHER’s order, an edit that cannot apply skipped and counted inskipped_ops, the summary’sinserted_incidences/deleted_incidencesfilled; escher storage keeps refusing them (not_supported_error, the message names slack_csr);id_reusedocuments the store order of both values with edits (ADR 0085).Changed (api-change: documented behaviour):
triad_countand the experimentalcount_local_patternsrefuse slack_csr storage (not_supported_error, strong guarantee; HD9), incompute()and inupdate(), where the storage is checked before the result’s identity (no result can match a slack_csr hypergraph; M11b review).Added (api-change: appended enumerators, HD12): seven incidence-edit mixes of
generators::hyperedge_batch_mix(incidence_removals,incidence_additions,incidence_mixed,incidence_emptying,incidence_same_batch,incidence_repeats,incidence_out_of_range); every 0.3 stream is unchanged (ADR 0085).Added (api-change:
batch_io, HD10): the batch files hold incidence edits:.dgt-i h v/+i h v(reserved by version 1 for 0.4) and the.dgbflagbatch_file_flags::incidence_edits(bit 3, format version 1 kept), withknown_graphandknown_hypergraph(knownis their union); the writers set the flag only when a batch needs it, so every 0.3 file is written byte for byte as before;batch_writer::writeraisesinvalid_argument_error(wasnot_supported_error) for an edit in a file opened without the flag, and the text writers write edits instead of refusing them. A 0.3 reader refuses the new files (ADR 0087).docs/api/file_formats.mdstates the rule for additions to version 1 (a reserved addition that every earlier reader refuses with anio_erroris not a silent change) and reserves bit 4 and weight code 3 of graph files for label_propagation in 0.4 (documentation, also ofbatch_file_flags::known_graph).Internal: the id allocator models ESCHER’s H2V fills and unfills (the tail occupancy), in lockstep with
testing::cbst_host_modeland MOSP_ESCHER’s recorded trees (ADR 0085).Conformance kit: the hypergraph axis gains the slack_csr presets and the incidence mixes, with a
test_traits::acceptshook for algorithms that take some storages only.Added (api-change: documentation of the frozen hypergraph headers): slack_csr storage on the cuda backend (HD9, decided by the author on 2026-10-28): MOSP_ESCHER@4b86159’s device graph (the incidence mirror, the slack CSR line graph with per-node weights, the order-free device pair delta
deriveDelta, the warp-per-row CSR apply and its rebuild when the tail overflows) transplanted as is withparity/escher_port/transplant.pyand a committed rename map, kept from every batch inside the commit; the host incidence model and the ids stay authoritative on the host, as in MOSP_ESCHER.h2h(),h2v(),v2h(),check_integrity(),store_stats(),clone()andto_backend()across all three backends (ADR 0089);from_hyperedges()no longer documents anot_supported_errorfor slack_csr storage on the cuda backend (documentation only).Changed (internal, faster): the host side of a slack_csr batch runs one pass per list: Step 0 groups the incidence edits by hyperedge and evaluates the groups in parallel, the commit groups the v2h changes by vertex once and merges the record’s rows instead of reading them back, the id allocator keeps its deleted keys as a bitset (an insert no longer scans every key; escher storage’s host model gets the same ids faster), a deleted row keeps its capacity, and every host region of slack_csr storage runs on one fixed team of at most 16 threads (ADR 0089 section 8). The results are unchanged on every thread count.
Parity harness:
dyng-compat-hsosp replay --backend cuda --line-graphanddyng-compat-hsosp bench --maintain-only(hsospBench’s--hgoptions on the cuda backend, the golden’s batches, the per-round digests);parity/hsosp_perf.py run(reached throughperf_ab.py hyper_sssp) with the round guards; the slack_csr steps ofci/gpu_local.sh(the four compute-sanitizer tools on the store’s tests and a forced-overflow session, the make-test replays on cuda), required by 0.4 certificates (GPU_LOCAL_STEPS).Parity harness: MOSP_ESCHER’s sessions are replayed whole on slack_csr storage, its vertex-kind batches included (
dyng_hsosp_replay,parity/compare.py hyper_sssp --part delta;dyng_hypergraph_ids --storage slack_csr);dyng-compat-hsosp to-dgbconverts the H-SOSP dumps to.hg/.dgbfiles (tools/compat/hsosp; the digests inparity/goldens.toml).Added (api-change: a new tracked header, a draft until the freeze at the end of M11b, HD17):
hyper_sssp(<dyng/hyper_sssp.hpp>, included by<dyng/dyng.hpp>): dynamic single-source shortest hyperpaths on a weighted slack_csr hypergraph (weights in [1, 2^28]), kept exact under hyperedge and incidence batches;compute()/update()from a source vertex,options(work_budget,max_iterations,on_budget,cuda_engine,validate_inputs),budget_action,fallback_reason,stats(batch,line_graph_insertions,line_graph_deletions,invalidated,relaxations,fallback_reason) andresult(hyperedge_distances, int32hyperedge_parents,distance_toandvertex_distances: the minimum of D(h) over the vertex’s hyperedges, D(h) already holding w(h), HD11); on sequential (MOSP_ESCHER@4b86159’s host emulation) and cuda (its kernels transplanted as is,engine::fused); openmp resources raisenot_supported_error(HD14). Exact against MOSP_ESCHER on its golden set in the three parity modes (ADRs 0090-0092).Changed (api-change: documentation of the frozen
<dyng/core/stats.hpp>, HD7 jointly with M10’s AD20):update_statssays that an algorithm’s stats documentation may state a weaker determinism level for an inherited field, which governs for that algorithm;hyper_ssspstates thatfallback_usedis schedule-dependent on cuda near the budget.Changed (api-change: an include added to the frozen umbrella header
<dyng/dyng.hpp>):<dyng/hyper_sssp.hpp>.Internal: the framework’s problems may provide
over_budget(ctx), a work budget asked after every loop call of an update (ADR 0092); a fixed-point hypergraph fake checks the update path.Parity harness:
--part resultsofparity/compare.py hyper_ssspanddyng_hsosp_replay --algorithm(every update and recompute of MOSP_ESCHER’s sessions against hyper_sssp’s: by_id, by_id_public, by_key; update == compute; repeats and backends by digest),dyng-compat-hsosp replay --algorithmand the fullbench(the update and static rows, the 44-column CSV, the[e2e]line),parity/hsosp_perf.py runover every row andsass; the hyper_sssp steps ofci/gpu_local.sh(GPU_LOCAL_STEPS); the mutation CTestshyper_sssp.mutation.*of sites #1 and #2 (the pull adds the neighbour’s weight; a non-tight parent) in both engines.Parity harness (M11a step 5): the suite
benchmarks/paper/ia3_hsosp.yaml(hyper_sssp against MOSP_ESCHER@4b86159: a 3-round boost probe per dataset, the gated per-batch rows of the 16 paper configurations, end to end, the nsys peak and the graph-scope accounting of HD6, the ncu kernel table) withparity/bench_suite.py’s hyper_sssp rules;parity/hsosp_perf.py memoryandkernels;dyng-compat-hsosp bench --nvtxand its[memory]lines; the mutation suitehyper_ssspofparity/mutate.py(MOSP_ESCHER’s sites #1-#4, #6-#8 in the CUDA code and their host twins, each detected on its own executables; #5 and the CBST unfill re-run in the cbst suite), which, likeci/gpu_local.sh, waits for the shared calendar before a GPU job;parity/sass_identity.pyandparity/experiments/escher_store_bytes.py(the 0.3 objects and store bytes against a base build),parity/experiments/hypergraph_host_ab.pyon cuda and with--all-stages;compare.py hyper_sssp --certificateandhypergraph_ids.py --storage slack_csr --certificatewrite the certificate’s replay records (ADR 0093).Release certificate: from the 0.4 series
parity/certify.pyrequires the suiteia3_hsosp(REQUIRED_SUITES), the slack_csr store check of the hyper_sssp set on cuda, and MOSP_ESCHER’s sessions replayed whole on slack_csr storage (HYPERGRAPH_ID_REPLAYS, with a per-entry and a per-featuresince; the 0.3 requirements unchanged);EQUIVALENCE_TARGETS/EQUIVALENCE_FILEScomparedyng-compat-hsospanddyng-compat-eschertoo, which widens the equivalence check of every version’s certificate (ADR 0093).Added:
hyper_sssp’sengine::operatorson cuda, the shared sssp engine (O12; ADR 0095): sssp’s CUDA operators over the slack line graph (node weights, one symmetric view, the public mode’s base offers, a work counter in MOSP_ESCHER’s units, one warp per row), the host loop of sssp’s operators engine with MOSP_ESCHER’s budget triggers, and a static solve on sssp’s near-far loop. Its results equalengine::fused’s and MOSP_ESCHER’s bit for bit on every batch of the golden set; it is not the default: by HD13’s rule (decided by the author on 2026-10-28)engine::automatickeeps MOSP_ESCHER’s kernels (engine::fused), because foursosp_updaterows of coauth-DBLP’s hyperedge batches read 1.051-1.061 of MOSP_ESCHER’s against the 1.05 bar (its static solve reads 0.69-0.74; the numbers are on the algorithm page).Internal: sssp’s CUDA operators engine reads its graph through compile-time policies (row access, weight source, base offers, a work counter, neighbour loads, one warp per row;
cpp/src/util/slack_rows.cuhfor slack rows); their defaults compile to the same machine code: every sssp and mosp kernel and host object is identical before and after (parity/sssp_sass.py, which also shows that a planted one-instruction change is caught).Parity harness:
compare.py hyper_sssp --cuda-engine operators,dyng_hsosp_replay --cuda-engineanddyng-compat-hsosp --cuda-engineread the shared engine;hsosp_perf.py ab(ADR 0024’s A/B of the two engines) andmemory --port-arg; the mutation twins of sites #1 and #2 in the shared engine and sssp’s “skipped subtree invalidation” against hyper_sssp’s suite (parity/mutate.py);ci/gpu_local.sh’s hyper_sssp step on both CUDA engines.Changed (api-change: the freeze; ADR 0096):
<dyng/hyper_sssp.hpp>is frozen (the API baseline lists it as frozen,ci/doxygen_coverage.pyholds it to the freeze’s rules) and its manifest says maturitystable, so the algorithm tables and the registry saystable: stable from 0.4.0 only on the author’s confirmation (HD17, pending; without it the release saysexperimentaland the header stays frozen). The API review changed documentation only: both CUDA engines’ limits onfallback_reason::distance_widthandinvalidation_depth, the thread-safety rule ofdistance_to()andvertex_distances()(they fill caches and read the hypergraph: they may not overlap another call on the result or a change of the hypergraph),engine::operators’ static solve,update()’s@sync. No signature changed.Added (api-change: Python):
dyng.hyper_sssp(ADR 0097):compute(hypergraph, source, *, options, resources, **kwargs),update(),Options,BudgetAction,FallbackReason,INFINITE_DISTANCE,Stats(withfallback_used,fallback_reason,relaxationsand the line-graph counters) andResult(hyperedge_distances/hyperedge_parentsas read-onlydyng.Arrays,distance_to(),vertex_distances(),source,options,set_options(),graph_version,space,clone()); errors mapped as for sssp, openmp resources refused with the fixdyng.Resources("sequential")(HD14);dyng.update()over a hypergraph takes hyper_sssp results, several at once;dyng.citation("hyper_sssp");dyng.testing.hyper_sssp_reference()andcheck_hyper_sssp_tree(). Frozen with the header.Changed (api-change: Python, the 0.3 refusals lifted):
dyng.HypergraphProperties(storage= "slack_csr", line_graph="slack_csr")(and"automatic") build a slack_csr hypergraph, anddyng.HyperedgeBatch’sdelete_incidences=/insert_incidences=apply on it (escher storage still raisesNotSupportedError); added the batch propertiesdelete_incidences,insert_incidencesandnum_incidence_edits;dyng.ioreads and writes the.dgtand.dgbincidence edits (BatchFileHeader.incidence_edits;write_binary_batchessets the flag only when a batch has an edit);dyng.generators.random_hyperedge_batchtakes the seven incidence mixes (typeddyng.generators.IncidenceBatchMixName);dyng.testing’s hypergraph model and Hypothesis strategies (max_incidence_edits) draw and apply incidence edits.Added (api-change: the command line):
dyng hyper_sssp compute|update(ADR 0097): the option fields as flags (--work-budget,--max-iterations,--on-budget,--cuda-engine,--validate-inputs), a weighted.hginput on slack_csr storage (--random-weights,--read-options hsosp),--source,.dgt/.dgbbatches with incidence edits, the distances and parents by hyperedge id in sssp’s file formats (--out,--vertex-distances),--compare-recompute; the sequential backend by default.Documentation:
docs/algorithms/hyper_sssp.mdin the ten sections of the algorithm pages (Differences from the paper: MOSP_ESCHER’s README items 1-7 and the speedups that do not reproduce, 0.08-1.28 against the paper’s 1.3-12.1; Paper vs fixed code, HD19: S1, S3, S4, S5, P3; Mapping from the original code; the gate table; the O12 decision); the tutorialdocs/tutorials/shortest_hyperpaths.md(C++ and Python, quoted from tested code); the examplesexamples/cpp/hyper_sssp_update.cppandexamples/python/hyper_sssp.py(run against the installed package and the oracle-derived expected output);docs/history/mosp_escher.md; the concepts page’s storages, incidence edits and ids with edits; the sketch marked frozen.Packaging: the plugin smoke test runs hyper_sssp compute and update on the GPU (both engines) and on the CPU wheel’s sequential backend.
Parity harness (M11b): a 0.4 certificate needs hyper_sssp’s replays on both CUDA engines: every cuda requirement of the golden set’s parity modes holds for
engine::automatic(the as-is kernels) and for the shared engineengine::operators(parity/certify.py,HYPER_SSSP_CUDA_ENGINES).
Fixed (ADR 0120)#
A CUDA graph’s commit (
graph::apply(), and the commit ofdyng::update()) releases the device copy of the previous version in the order of the stream of the call’sresources, after the work already queued there. It was released on the stream the copy was built on, so with the copy built on one stream and the update run on another, cycle_count’s delete phase (an asynchronous kernel on G_t’s copy before the commit) could read memory the pool had already reused (compute-sanitizer memcheck: use after free in cycle_count’s C12 onparity-cuda; present since 0.1.0, hidden byDYNG_CUDA_DEBUG_SYNC). Programs on one stream are unaffected; no result, synchronization or allocation changes. A deterministic test,GraphStreamOrder.*indyng_graph_cuda_tests, catches it with and without the sanitizer, on debug-sync builds too (ADR 0120).The same rule for slack rows on CUDA (new in this release, ADR 0103): a vertex batch that grows the graph or moves a row to the tail of a full arena releases the replaced row arrays on the stream of the call’s
resources, after the copies of them it queued there (memcheck: a use after free per replaced array when the rows were uploaded on another stream;GraphStreamOrder.SlackDeviceApplyReleasesReplacedRowsAfterTheCallsStream, ADR 0120’s amendment on the merged code).
R040: the tag day (0.4, branch release-0.4.0)#
Changed: the release date is 2026-11-26, the planned UTC day of the tag
v0.4.0rc1: the heading of this section andCITATION.cff’sdate-released(written 2026-11-21;docs/developer/release.md, “A tag day later than the final-release pull request”), set in the release pull request before the merge by the author’s decision of 2026-11-24 (GOVERNANCE.md); the certificate’s checks of thepackagingandreposcopes run again on that tree (thelibraryandtestsrecords stand: no path of their scopes changed).
R040: review fixes (0.4, branch release-0.4.0)#
Fixed: the sdist left out
examples/data/label_propagation_5k5_damped.sha256, which cibuildwheel’stest-sourcesname, sowheels.yml’s wheel build from the sdist (and with itrelease.yml) would have stopped before any test ran;sdist.includekeeps it in.ci/cibw_test.py(new) runs cibuildwheel’s test step from the unpacked sdist (the test sources copied into an empty directory, a missing one failing), inci/wheels.shand, for the sources, inwheels.yml’s sdist job; a test checks that every test source is in the sdist.Fixed:
dyng.sssp,mosp,cycle_count,dynamic_bfsandtriangle_deltagiven a float32 graph (label_propagation’s) raiseNotSupportedErrornaming the algorithm and the fix (sssp and mosp called it “unweighted”, the others raised a bareTypeError).Fixed:
dyng.io.read_batchesandread_hyperedge_batchesgiven a.dgbfile raiseFileFormatErrornamingBatchReader(it was aUnicodeDecodeError), and every error message of the native module escapes bytes that are not UTF-8 instead of failing to decode.Fixed:
dyng hyper_sssp’s help names its own default backend, sequential, and no longer offers--threads; its report lines number the batches from 0, as the batch files and the examples; a graph.dgbis refused from its header.Fixed: with a CUDA plugin installed but unusable,
Resources.cuda()’s error leads with the plugin’s reason instead of an install command.Changed: the plugins’ PyPI description and the keywords name label propagation and shortest hyperpaths; the upgrade notes address 0.3.0 users (an environment with a 0.3.0 plugin takes the release candidate’s plugin line); install.md says that the plugins’ PTX for GPUs newer than sm_120 needs a driver at least as new as their toolkit; the tutorials’ commands run as written (the clone of
v0.4.0rc1,read_edge_list(..., directed=False), the--seedsfile, the labels on a GPU); label_propagation’s page says that 0.4 does not check that the weights are positive; stale 0.4 promises of the developer pages corrected.Changed: the release date is 2026-11-21 (
CHANGELOG.md,CITATION.cff; 2026-11-26, the planned tag day, from “R040: the tag day” above).Governance: the author’s decision of 2026-11-21 on step 3’s STOP (ADR 0024’s reading against 0.3.0): the cycle_count OpenMP update region acknowledged as a located cost of 0.4’s graph additions, fixed after 0.4.0; the mosp OpenMP region as code placement on the D14 path; the mosp CUDA roadNet-PA
combinedregion within the 2026-11-13 row’s class (GOVERNANCE.md).Added: ADR 0024 rule 3’s longer readings of the regions with a bootstrap interval wider than about 3 % that the first pass had left at 51 / 34 rounds (
parity/results/R040/adr0024/; a region still above the bar goes to the author: R040.md step 4).Changed: the certificate’s records of the
tests,packagingandreposcopes taken again on fresh clones after these fixes, andparity/certify.py writerun last (no library path changed: the gates, the golden replays and the golden mutations stand).
R040: the release certificate (0.4, branch release-0.4.0)#
Added: the release certificate of 0.4.0rc1,
benchmarks/results/0.4.0rc1/(parity.jsonand itsREADME.md), measured on the release’s final library: the golden replays of sssp, cycle_count and mosp on every backend; the CBST trace goldens; the hypergraph container’s replays and MOSP_ESCHER’s sessions replayed whole onslack_csrstorage; the triad goldens; the label_propagation golden sets (the in_place set under ADR 0111’s rate rule, the harmonic oracle’s release replay); hyper_sssp’s modes on both CUDA engines and on sequential with theslack_csrstore check; the seven performance suites against the unpatched originals (ics26_dynlpandia3_hsospnew,ics26_dynlpwith AD4’s release-only 50m gate); the sanitizer presets and compute-sanitizer; every golden mutation and the mutation CTests; the distributions asrelease.ymlbuilds them forv0.4.0rc1; andci/check.sh --parity,ci/api_check.shand one run ofci/gpu_local.sh --preset parity-cudaon the release tree. The summary, with ADR 0024’s reading of the stable algorithms against 0.3.0, is indocs/developer/retrospectives/R040.md(parity/results/R040/adr0024/).Changed: the test subset that cibuildwheel runs in the installed wheel includes the
label_propagationandhyper_sssptests with their command lines (test_label_propagation.py,test_label_propagation_cli.py,test_hyper_sssp.py,test_hyper_sssp_cli.py; the surfaces stable from 0.4.0, as 0.3 added the hypergraph andtriad_count), with the digest file ofexamples/datathat label_propagation’s tests read.
R040: the release changes (0.4, branch release-0.4.0)#
Changed:
VERSION0.4.0rc1 (it was 0.4.0.dev0, the development version after 0.3.0);CITATION.cffversion: 0.4.0rc1,date-released: 2026-11-26(2026-11-20, then 2026-11-21 when the review fixes moved it to the day they were made, then set to the planned tag day); this section[0.4.0rc1]with the summary above: everything that was underUnreleased(M10a, M10b, M11a, M11b, the ADR 0120 fix and R040) moved here, an emptyUnreleasedabove it, and the link references.Changed (packaging; ADR 0113): the
dyng-cu13plugin is built with CUDA 13.5 (nvcc 13.5.37), the newest 13.x of NVIDIA’s RHEL 8 repository (it was 13.4);dyng-cu12stays CUDA 12.9 (nvcc 12.9.86).ci/cuda_toolkits.tomlis re-pinned (every RPM’s signature verified). CUDA 13.5 has no documentation package (itsEULA.txt, which the plugin ships, comes with the runtime package), soci/cuda_toolkit.py locktakes that package only where the release has one andextractfails without<root>/EULA.txt.Docs: the status texts for the release candidate: the status blocks of
README.mdand the documentation’s start page (“Alpha: 0.4 release candidate”), the install lines of the release candidate from TestPyPI (dyng==0.4.0rc1; with a plugin, NumPy from PyPI first anddyng==0.4.0rc1withdyng-cu13==0.4.0rc1ordyng-cu12==0.4.0rc1from TestPyPI alone) in README anddocs/getting_started,SECURITY.md(0.4.0rc1 supported until 0.4.0),SUPPORT.md,CONTRIBUTING.md, the roadmap, the developer plan,docs/citing.md, the tutorials’ prerequisites (dyng>=0.4, from the release candidate’s lines until 0.4.0 is on PyPI) and label_propagation’s maturity line. The PyPI description (python/README.md) nameslabel_propagationandhyper_sssp, with a tested example and the command line.Docs:
docs/developer/release.md: who does what for 0.4.0 (the author merges the release pull requests and approvespypi-cu12andpypi-cu13, thenpypi; the AI assistant pushes the signed tagsv0.4.0rc1/v0.4.0and creates the GitHub Release on the author’s behalf), the 0.4 certificate in steps 1-3 and the checklist (ics26_dynlpwith AD4’s release-only 50m reading,ia3_hsosp, their memory readings in GPU1-QUIET windows, the label_propagation replays and their two-step certificate records, hyper_sssp’s modes on both CUDA engines and theslack_csrstore check, the wholeslack_csrsessions,ci/gpu_local.sh --preset parity-cuda), and the release candidate’s smoke test coverslabel_propagationandhyper_sssp;benchmarks/README.md(the suites and the certificate of 0.4).
R040: the 0.4 stability records and the carry-overs (0.4, branch release-0.4.0)#
Stable from 0.4.0 (the author’s decision of 2026-11-18 on AD15 and HD17; ADR 0110):
label_propagation(<dyng/label_propagation.hpp>,dyng.label_propagation,dyng label_propagation; maturitystable) andhyper_sssp(<dyng/hyper_sssp.hpp>,dyng.hyper_sssp,dyng hyper_sssp) follow PLAN 5.9’s stable tier (SemVer), with the graph additions of 0.4 (graph::with_capacity, slot and slack rows,vertex_status,graph_view::status/row_end,num_active_vertices,net_effect(), the vertex operations ofedge_batch, the newapply_summaryfields, the float graphs, and their Python counterparts), the vertex-arrival generators (<dyng/generators/vertex_arrival.hpp>, Python,dyng generate vertex_arrival_stream/dynlp_vertex_arrival_stream),io::write_labels/read_labels, theslack_csrhypergraph storage and its incidence edits; and so do the format extensions of 0.4, in version 1 of their formats:.dgt+v/-v, float weight tokens and+i/-i,.dgbweight code 3 (float32) and the flagsvertex_recordsandincidence_edits, and the label files (docs/api/file_formats.md). The testing oraclesdyng::testing::harmonic_solution,union_findandlp_host_modelstay frozen but outside the stable tier, like the testing oracles of 0.1-0.3 (docs/api/cpp/testing.md).ci/api_snapshot.py:FROZEN_BEFORE_STABLEis replaced bySTABLE_HEADERS(the vertex-arrival generators) andFROZEN_OUTSIDE_STABLE(the three oracles); label_propagation’s header is frozen through its manifest. The API baseline’s sections are unchanged.ci/gpu_local.sh: the label_propagation step judges the in_place cloud at 5k5 and 50k by the certificate’s rate rule (compare.py label_propagation inplace --rate: per case 30 port runs and 30 runs of the unpatched original on the step’s GPU, every port run still checked run by run; ADR 0111, carried out here by the author’s decision of 2026-11-18, ADR 0110), instead of requiring every one of 3 port runs inside the frozen envelope; “partial” without the original’s build. The step’s summary row is unchanged.ci/gpu_local.sh: a racecheck run that ends with compute-sanitizer’s “process didn’t terminate successfully” while it reports no hazard, no other error or warning and no failed test is run once more, once (ADR 0112; R031’s open item 6, investigated in R040); any hazard, error, warning or failed test, and a second death, still fail, and the summary lists every retry below its table.Deferred beyond 0.4.0 (the author’s decision of 2026-11-18): the conda-forge packages (checkpoint A4) and the aarch64 wheels (
docs/roadmap.md).
0.3.0 - 2026-10-29#
Summary#
dynG 0.3.0: the dynamic hypergraph, and on it a fourth stable algorithm, triad_count, exact
against the original ESCHER-GPU code. Install it from PyPI (Python >= 3.12, Linux x86-64):
pip install dyng # the sequential and OpenMP backends
pip install "dyng[cu13]" # with the CUDA backend, for an NVIDIA driver of CUDA 13 ("dyng[cu12]": CUDA 12)
Upgrading from 0.2.0 or 0.1.0: pip install -U "dyng[cu13]" (or -U dyng). Without -U, pip
keeps an installed 0.2.0 (with the 0.2.0 plugin, which has no hypergraph) or 0.1.0 (which has no
cu12 / cu13 extras: pip only warns).
0.3.0 is the release candidate 0.3.0rc1 (tag v0.3.0rc1, published on TestPyPI only and
smoke-tested from there) with the final-release changes below and no change to the library.
Nothing of 0.2.0 changes incompatibly: sssp, cycle_count and mosp keep their API. The
entries below the summary are the detailed record of milestones M8a, M8b, M9a and M9b and of the
release preparation (R030, R031).
The dynamic hypergraph (stable from 0.3.0):
dyng::hypergraphin C++ (<dyng/hypergraph/hypergraph.hpp>) anddyng.Hypergraphin Python, on the sequential, OpenMP and CUDA backends, stored in the ESCHER store (ESCHER-GPU’s CBST, with MOSP_ESCHER’s behaviours merged in). A batch deletes hyperedges by id and inserts new ones, whose ids come from the store’s best-fit reuse (id_reuse::erase_first, ESCHER’s order, orinsert_first); the vertex-to-hyperedge and hyperedge-to-vertex views and the line graph (h2h(), kept by a sorted delta merge under every batch) are available after each one. Every backend gives the ids that ESCHER-GPU@abcf9b2 and MOSP_ESCHER@4b86159 gave on their recorded batches, the line graph equals ESCHER-GPU’s after every batch of its recorded runs, and the device memory equals ESCHER-GPU’s own store accounting on coauth-DBLP.dyng::update()(anddyng.update()) keeps several results on one hypergraph with one apply.triad_countis stable (SemVer applies from 0.3.0): the 30 h-motif counts of a hypergraph (ESCHER / ESCHER+) and StatHyper’s triad types 1-3, kept exact under hyperedge batches, with the per-bin change of each batch. The CUDA backend runs ESCHER-GPU’s wedge engine; the sequential and OpenMP backends run the same engine as loops (correct and exact, not yet tuned for speed). It is exact against ESCHER-GPU@abcf9b2 on its 300-case golden set, within the paper’s performance gates against it (update per batch, full count, end to end, device memory), and exact up to 2^64 - 1 (beyond,capacity_error). In C++ (<dyng/triad_count.hpp>), Python (dyng.triad_count) and on the command line (dyng triad_count compute|update, whose--format escherprints ESCHER-GPU’s output byte for byte).Experimental: count your own pattern.
dyng::experimental::count_local_patterns<op_t>(<dyng/experimental/local_patterns.cuh>, C++ with nvcc) counts a new local hypergraph pattern, given as a small Op, with triad_count’s engine on every backend, and keeps the count exact under batches; it may change in any minor release.New files and generators:
.hghypergraph files (with the originals’ preprocessing as the option setsescher_gpu()andhsosp()), hyperedge batches in.dgtfiles, the binary batch format.dgb(DYNGBAT1, CRC-checked, read as a stream) for graph and hypergraph batches, and the triad counts as JSON ("dyng.triad_bins"); all four are stable formats at version 1 (docs/api/file_formats.md). The hypergraph generatorsuniform_hypergraph()andrandom_hyperedge_batch()(bit-exact per seed) and ESCHER-GPU’s own generators (generators::legacy).Python and the command line:
dyng.Hypergraph,dyng.HyperedgeBatch, the hypergraph readers and writers ofdyng.io(with the streamingBatchReader),dyng.generators,dyng.triad_count,dyng.update()over hypergraphs, anddyng triad_count.Tutorials: “Hypergraph triads” (C++ and Python) and “Count a new hypergraph pattern (an Op)”; the algorithm page of
triad_countwith its “Paper vs fixed code” section; the scaffoldscripts/new_algorithm.py --container hypergraphfor a new hypergraph algorithm.The release certificate
benchmarks/results/0.3.0/(PLAN 8.3 and 8.6): as for 0.2.0 (sssp, cycle_count and mosp: golden parity on every backend and the release gates against the unpatched originals), and new: the triad_count suitesipdps26_escherandtkde26_escher_plusagainst ESCHER-GPU@abcf9b2 (CUDA at locked clocks, ADRs 0018 and 0021; the store accounting and the device-memory peak), the CBST trace replays of both ESCHER originals, the hypergraph id, row and line-graph replays, and the triad replays of every backend, by key and by content.
Known limitations of 0.3.0: Linux x86-64 only (aarch64 wheels later); the plugins need a GPU of
compute capability 7.5 or newer; a hypergraph batch deletes and inserts whole hyperedges (the
incidence edits and vertex operations raise not_supported_error until 0.4); the store’s
offsets are 32-bit (a hypergraph of up to about 2^31 member slots); triad_count’s host backends
are untuned (their performance is not gated); on CUDA the memory pool keeps, between batches,
what the line graph’s merge reached (recorded beside the memory gates, not gated); ESCHER-GPU’s coarse
triangles are not ported; label_propagation and hyper_sssp with 0.4.0; no DOI (Zenodo is not connected).
Final release (R031)#
Changed:
VERSION0.3.0,CITATION.cffversion: 0.3.0anddate-released: 2026-10-29(the planned tag day); this section, the release candidate’s[0.3.0rc1], renamed[0.3.0] - 2026-10-29with its link references, its summary with the install lines from PyPI and the upgrade line.Docs: the status texts of the release candidate brought to the release (README, the documentation’s start page, the getting-started and install pages,
SECURITY.mdwith its supported versions,CONTRIBUTING.md,SUPPORT.md,docs/citing.md, the roadmap and the developer plan):pip install dyngandpip install "dyng[cu13]"/"dyng[cu12]"from PyPI,pip install -Ufor users of 0.2.0 and 0.1.0; the pages of 0.3’s content (the hypergraph,triad_count, the.hg,.dgband triad-bins formats, the hypergraph tutorials) describe them as released, stable from 0.3.0 as the author confirmed on 2026-10-22 (count_local_patternsstays experimental).Docs (the review of the final-release pull request): the upgrade line
pip install -U "dyng[cu13]"also on the PyPI project page (python/README.md) and in the prerequisites of the tutorial “Hypergraph triads” (pip install -U dyngalone leaves a 0.2.0 plugin, which the 0.3.0 core does not load); the Python hypergraph how-to no longer points to the install page’s former TestPyPI lines; the--format eschertranscripts ofdyng triad_count updateshow theupdate_seconds=line of standard error;docs/developer/release.mdnames the branchrelease-0.3.0-finaland listspython/README.mdand the tutorials’ prerequisites among the pages with the upgrade line.Added:
benchmarks/results/0.3.0/, the certificate of the release, carried over from 0.3.0rc1 (docs/developer/release.md, step 9): the library did not change since the measured commits, so the gates, the golden replays and the golden mutations stand; the checks of thepackagingandreposcopes (the distributions asrelease.ymlbuilds them forv0.3.0,ci/check.sh --parity,ci/api_check.sh,ci/gpu_local.sh) were run again on the final tree. The smoke test of 0.3.0rc1 from TestPyPI (the CPU package and both CUDA plugins, on GPU 1) is recorded there and indocs/developer/retrospectives/R031.md.
R030: the tag day (0.3, branch release-0.3.0)#
Changed: the release date is 2026-10-28, the UTC day the tag
v0.3.0rc1is pushed: the heading of this section andCITATION.cff’sdate-released(written 2026-10-22;docs/developer/release.md, “A tag day later than the final-release pull request”); the certificate’s checks of thepackagingandreposcopes run again on that tree, and the hostedsanitizers.ymljobs of the release pull request are recorded in it (sanitizers-hosted).Governance: the author’s acknowledgements of 2026-10-23 in the approvals log of
GOVERNANCE.md: D14 acknowledged, the two sub-regions above ADR 0024’s bar kept for 0.3.0 (the open decision closes; ADR 0062 and the ADR index say so), and the alignment-flags option deferred beyond 0.3.0 until a CPU without the JCC erratum is available (the roadmap).Fixed (tests):
parity/tests/test_release_cert.py’s test of the GoogleTest mutation rows diffs the last commit that changedcpp/testsagainst its parent only where the history has that parent, so it passes in the hosted harness job’s one-commit checkout.
R030: review fixes (0.3, branch release-0.3.0)#
Fixed:
io::read_hypergraph(dyng.io.read_hypergraph,dyng triad_count --input) read a Matrix Market file as a hypergraph without an error (its%%MatrixMarketbanner is a comment line under the.hgrules, its size line a hyperedge). A.hgfile whose first line is a Matrix Market banner or a.dgtheader (%dgt ...), or that starts with the.dgbmagicDYNGBAT1, is now refused with anio_errorthat names the format and its reader (ESCHER-GPU’s loader skips the two lines as comments; no file of either original starts with them).Changed: the reader’s messages of the common mistakes name the remedy in C++, Python and the command line (a weighted file read unweighted; a 0-based file read with
index_base1; a.dgtline); a quoted token is cut after 32 bytes and every reader’s message writes its control bytes as\xHH(a binary token put raw bytes, and a NUL that endedwhat(), into it); a hyperedge.dgtmember outside the vertex set, andhypergraph::apply()’s member check (“inserted hyperedge 0 of the batch”, no longer “hyperedge 0”), say that the vertex count is fixed when the hypergraph is built.Fixed: on a release candidate, the CUDA install hints of the Python package (
show_config(),Resources.cuda(), the command line’s--backend cuda, the device-array error, the version-mismatch reason) saidpip install "dyng[cu13]", which replaced 0.3.0rc1 by 0.2.0 from PyPI; they now give the release candidate’s TestPyPI line (and for a development version, the source build).Docs: the Python hypergraph how-to’s examples run as snippets (the “Apply batches” block applied a batch twice; the Hypothesis example sets
deadline=None, which a CUDA plugin’s first device use needs), and it showsdyng.update()over hypergraphs; the hypergraph tutorial asks for dynG 0.3 and clones the repository for its files;docs/how_to/read_and_write_files.mdcovers the hypergraph files, the hyperedge batches and the triad-bins JSON;OutOfMemoryErrorwith its guarantee in the docstrings ofHypergraph.apply(),from_hyperedges(),h2h(),dyng.triad_count.update()anddyng.update(); coarse triangles are planned for 0.5 (the roadmap lists them); the ADR index records the author’s decisions of 2026-10-22; the exampletriad_count_updateprints its usage, refuses an unknown backend and reports a failed read.Changed: the plugins’ licence notice names the Thrust algorithms compiled into them from 0.3; the distributions’ keywords name the hypergraph and triad counting, and the plugins’ PyPI description the hypergraph and
triad_count.Docs (records): ADR 0024’s longer reading of the D13 fix (170 rounds over 85 layouts) on the final library: the apply and update regions read 0.942-0.971; the insert step and the construction on sequential stay above the 1.02 bar, located (the guard’s small cost; code placement) and listed for the author (open decision D14); ADR 0061’s reading of the restructured guard corrected (ADR 0062).
Changed (the release process):
parity/certify.pyrequires every step ofci/gpu_local.shthat the release’s series added (from 0.3 the CBST, hypergraph, triad_count and count_local_patterns steps), and the script records a step whose part was skipped for missing inputs aspartial;parity/experiments/hypergraph_host_ab.pytakes the exclusive lock itself and records it, with each side’s commit and build.
R030: the release certificate (0.3, branch release-0.3.0)#
Added: the release certificate of 0.3.0rc1,
benchmarks/results/0.3.0rc1/(parity.jsonand itsREADME.md), measured on the release’s final library (the D13 fix included): the golden replays of sssp, cycle_count and mosp on every backend; the CBST trace replays of both ESCHER originals under their presets and dynG’s default; the hypergraph id, row and line-graph replays; the triad replays of every backend of the coverage table by key and by content; the five performance suites against the unpatched originals (ipdps26_escherandtkde26_escher_plusnew); the sanitizer presets and compute-sanitizer; every golden mutation and the mutation CTests; the distributions asrelease.ymlbuilds them forv0.3.0rc1; andci/check.sh --parity,ci/api_check.shandci/gpu_local.shon the release tree. The summary is indocs/developer/retrospectives/R030.md.Changed: the test subset that cibuildwheel runs in the installed wheel includes the hypergraph and
triad_counttests (test_hypergraph.py,test_triad_count.py,test_triad_count_cli.py), the surfaces that are stable from 0.3.0.Docs: the ADRs that kept a reservation for the author (0045, 0047-0049, 0051, 0052, 0056, 0058-0060) record the author’s decisions of 2026-10-22, and the coverage table of the triad goldens (
parity/goldens.toml) is the accepted D6.
R030: the release changes (0.3, branch release-0.3.0)#
Changed:
VERSION0.3.0rc1 (it was 0.3.0.dev0, the development version after 0.2.0);CITATION.cffversion: 0.3.0rc1,date-released: 2026-10-28(written 2026-10-22, then set to the tag day); this section[0.3.0rc1]with the summary above: everything that was underUnreleased(M8a, M8b, M9a, M9b and R030) moved here, an emptyUnreleasedabove it, and the link references.Docs: the status texts for the release candidate: the status blocks of
README.mdand the documentation’s start page (“Alpha: 0.3 release candidate”), the install lines of the release candidate from TestPyPI (dyng==0.3.0rc1; with a plugin, NumPy from PyPI first anddyng==0.3.0rc1withdyng-cu13==0.3.0rc1ordyng-cu12==0.3.0rc1from TestPyPI alone) in README anddocs/getting_started,SECURITY.md(0.3.0rc1 supported until 0.3.0),SUPPORT.md,CONTRIBUTING.md, the roadmap, the developer plan anddocs/citing.md; the “Paper vs fixed code” wording ofdocs/algorithms/triad_count.mdis the author’s accepted wording (D10). The PyPI description (python/README.md) names the hypergraph andtriad_count, with a tested example and the command line.docs/developer/release.md: who does what for 0.3.0 (the author merges the release pull requests and approvespypi-cu12,pypi-cu13, thenpypi; the AI assistant pushes the signed tagsv0.3.0rc1/v0.3.0and creates the GitHub Release on the author’s behalf), and the release candidate’s smoke test coverstriad_count.Governance: the author’s decisions of 2026-10-22 for 0.3.0 in the approvals log of
GOVERNANCE.md(the names of ADRs 0049-0052 and 0058-0060, D9; the parity coverage, the gate rows and the suites, D6-D8; the “paper vs fixed code” wording, D10; the host model reported beside the gated update, D12; the publishing of 0.3.0); the open decisions D6-D10 and D12 close.The pinned CUDA toolkits of the plugins (12.9, nvcc 12.9.86; 13.4, nvcc 13.4.92) are still the newest 12.x and 13.x of NVIDIA’s RHEL 8 repository (2026-10-22): a fresh lock reproduces
ci/cuda_toolkits.tomlbyte for byte, and the cached RPMs passverify --signatures, so nothing is re-pinned.
R030: the 0.3 stability records and the D13 fix (0.3, branch release-0.3.0)#
Stable from 0.3.0 (the author’s decision of 2026-10-22): the hypergraph surface (
dyng/hypergraph/*.hpp,dyng.Hypergraph; frozen at M8b, ADR 0047) andtriad_count(<dyng/triad_count.hpp>,dyng.triad_count,dyng triad_count; frozen at M9b, ADR 0060) follow PLAN 5.9’s stable tier (SemVer); so do the file formats.hg,.dgb(DYNGBAT1) and the triad bins ("dyng.triad_bins"), each at version 1 (docs/api/file_formats.md).experimental::count_local_patternsstays experimental (it may change in any minor release).Fixed (D13, ADR 0061): a host allocation failure inside one of the hypergraph container’s OpenMP loops ended the process with
std::terminateinstead of throwing the documentedout_of_memory_error, in every build with OpenMP (the default builds and the wheels), on the sequential backend as on openmp and with any thread count: the vertex-to-hyperedge rows thathypergraph::apply()changes (sodyng::update(),triad_count::update()andcount_local_patterns::update()over a hypergraph) and the line graph’s build (from_hyperedges()with a line graph, the firsth2h()orcompute()underline_graph_policy::automatic). The loops now keep the first exception, stop, and raise it after the loop on the calling thread, so the documented error and guarantee hold (the hypergraph poisoned when the failure is inside the store phase; unchanged before it). The same for the oracletesting::triad_reference(its documentedstd::bad_alloc). Tests:dyng_hypergraph_allocation_failure_testsand theupdate()sweep ofdyng_triad_count_allocation_failure_tests, each of which ended the process before the fix.parity/certify.py: a golden-mutation record whose rows include a GoogleTest suite ofparity/mutate.py(cbst, hypergraph, triad_count, kit, the triad oracle) must also have the release’scpp/tests(ADR 0061 section 4);parity/experiments/hypergraph_host_ab.py, the dynG-against-dynG reading of the container’s host apply and triad_count’s host update (ADR 0024).CMakeLists.txt: the help text and the warning ofDYNG_BUILD_BENCHMARKSsay that the micro-benchmark suites anddyng-benchare planned for a later release (R021’s deferred finding). The alignment flags of the 2026-10-08 decision are deferred beyond 0.3.0 (docs/roadmap.md).
Added#
M9b: the triad_count docs and examples:
docs/algorithms/triad_count.mdwith every section of PLAN 9.5 (the 30-bin table, tested against the code’s tables byTriadCountDocs.*; the requirements per pattern; the template mapping; complexity and memory; “Differences from the paper”; “Paper vs fixed code” with ESCHER-GPU’s E-C1, E-C3 and E-C7, the wording the author accepted on 2026-10-22, D10; the mapping from the original code; the gate record); the tutorial “Hypergraph triads” (docs/tutorials/hypergraph_triads.md, C++ and Python, quoted from tested code);examples/cpp/triad_count_update.cppandexamples/python/triad_count.py(each at most 60 lines, the same output on every backend, compared withexamples/data/triad_count_update.expected.txtin-tree, bypython/tests/test_examples.pyand, against the installed package, byci/cmake_consumer.sh);docs/history/escher_gpu.md.ci/tutorial_quotes.pyquotes Python files by# [tutorial: <name>]markers.examples/cpp/compare_output.cmaketakes the program’s arguments (-DARGS=a|b|c) and a skip code 77.dyng.triad_count(M9b, ADRs 0059 and 0060; Python; stable from 0.3.0 with the C++ API, the author’s decision of 2026-10-22: see Changed):compute(hypergraph, kind="h_motif" | "stathyper_type1" | "stathyper_type2" | "stathyper_type3" | Pattern),update(hypergraph, batch, result),Options(kind,cuda_engine),Result(counts, a read-only uint64 NumPy copy;count(),total,num_bins,kind,options,set_options(),graph_version,space,clone()),Stats(batchwith int64inserted_ids,deltaan int64 array ofnum_binsvalues,triads_removed,triads_added,deleted_frontier,inserted_frontier), thePatternStrEnum,MAX_BINS;dyng.citation("triad_count").dyng.update()over hypergraphs:dyng.update(hypergraph, batch, *results)updates severaldyng.triad_countresults with one apply.dyng.testing.triad_reference()binds the oracle.Triad bins as JSON (M9b, ADR 0059; tracked):
dyng::io::triad_bins,io::write_triad_bins_json(),io::read_triad_bins_json(),io::triad_bins_size()(format"dyng.triad_bins"version 1,docs/api/file_formats.md), with the libFuzzer targetfuzz_triad_bins; Pythondyng.io.TriadBins,write_triad_bins(),read_triad_bins(),triad_bins_json().The command line
dyng triad_count compute|update(M9b, ADR 0059):--kind,--cuda-engineand the.hgread flags generated from the fields and keywords,--batches(.dgt/.dgbfiles; a recording’s expected ids checked),--format json(the triad-bins JSON) or--format escher(ESCHER-GPU@abcf9b2’s count lines byte for byte, diffed against its unpatched stdout of every make-test case),--compare-recompute.Experimental (M9b, ADR 0058; may change in any minor release, tracked by the API check without failing it):
dyng::experimental::count_local_patterns<op_t>(<dyng/experimental/local_patterns.cuh>, needs nvcc): count a new hypergraph pattern, given as an Op (num_bins, ashapeoftriangles,pairsorkeys, DYNG_HD callbacks that see 0-based hyperedge ids and the members as opaque ascending codes withhyperedge_rows::decode()), with triad_count’s wedge engine on cuda, sequential and openmp;compute(res, h[, op]),update(res, h, batch, result)(the exact delta: the engine owns the frontier, the sign and the exactly-once rule),local_patterns_result<op_t>(counts(),count(),total(),op(),clone()),local_patterns_stats(removed,added,delta); its results compose with triad_count and the other hypergraph results in onedyng::update(). The host-compilable<dyng/experimental/local_patterns.hpp>:shape,max_pattern_bins(1024),member_span,hyperedge_rows, the set helpersintersect_size(),venn3(),intersects3(), andexperimental::access_rows(h), the rows the engine reads (compiled into libdyng for both hypergraph instantiations). From the M9b review:max_op_size(4,096 bytes, checked by its ownstatic_assert), andDYNG_EXPERIMENTAL_CHECK_HOST_CALLBACKS(op_t), which makes nvcc report a__device__-only callback (nvcc does not report it at the engine’s call, and the host backends would end the process with exit status 1); the documentation states that the ids of a callback come in no particular order, so an Op must be symmetric in them. The.cuhheaders are installed. triad_count’s four patterns are four built-in Ops of the same engine and driver (their kernels’ machine code unchanged).Docs: the tutorial “Count a new hypergraph pattern (an Op)” (
docs/tutorials/ count_a_new_hypergraph_pattern.md; its code inexamples/tutorial_algorithms/local_patterns/, tested on every backend and both instantiations, the host half in the CPU jobs), the API pagedocs/api/cpp/experimental.md;ci/tutorial_quotes.py(run byci/docs.sh) pins every quote of the tutorials, so a quoted line that moves or changes without its page fails the docs check.CI: the API snapshot’s experimental tier (
dyng/experimental/*: listed, a difference reported, never failed); Doxygen reads*.cuhandci/doxygen_coverage.pyholds the groupexperimentaland its banner;ci/cmake_consumer.shalso builds a host-only consumer of the experimental header and, from a CUDA build, a user Op compiled by nvcc against the installed package (ci/gpu_local.shstepexperimental, with compute-sanitizer memcheck, racecheck and synccheck over the tutorial’s CUDA run);parity/compare.py triad_count --counter local_patterns(the built-in Ops through count_local_patterns, bit for bit against triad_count and against ESCHER-GPU’s goldens).triad_count(M9a; stable from 0.3.0, ADR 0060 and the author’s decision of 2026-10-22: see Changed; aggregate delta;<dyng/triad_count.hpp>): the 30 h-motif counts and StatHyper’s triad types 1-3 of a hypergraph, kept exact under hyperedge batches (options::kind;stats::delta,triads_removed/triads_added; several patterns in onedyng::update()). The cuda backend runs ESCHER-GPU@abcf9b2’s wedge engine (exact against ESCHER-GPU on every golden case); the sequential and OpenMP backends run the same engine as loops (an incremental host engine, untuned; the author’s decision D3, ADR 0054), exact against ESCHER-GPU on the golden cases of the coverage table, with identical results on every OpenMP thread count.dyng-compat-escher runcounts and prints ESCHER-GPU’s output;parity/compare.py triad_count --counter algorithm.Internal (internal-stable, ADR 0055):
operators::count_delta/count_owned, the signed count of one aggregate-delta phase with a required ownership rule (I2), on every executor (host: private bins per thread added in thread order; cuda: atomic bins read once);triangle_deltaandtriad_count’s host engine count with it (the rule of two). The executors gaindownload()andthreads().Benchmarks (M9a, ADR 0056): the paper suites
benchmarks/paper/ipdps26_escher.yaml(the timing gates oftriad_countagainst ESCHER-GPU@abcf9b2: update per batch, full count, end to end on coauth-DBLP and syn1M / syn2M) andtkde26_escher_plus.yaml(the store accounting and the Nsight Systems peak; the StatHyper types and other batch sizes recorded);parity/certify.pyrequires both, and the triad golden replays of every backend of the coverage table by key and by content, from the 0.3 series (compare.py triad_count --certificate;certify.py write --dry-run <algorithm>);perf_ab.py triad_count kernels(the update’s kernels under ncu at the base clocks) and the contamination audit of the triad readings.Tests: ESCHER-GPU’s
make testreplayed on the host backends in hosted CI (dyng_triad_count_make_test_tests), exact against 3.7 KB of committed counts (parity/triad_goldens.py fixture); the committed test-data budget is 1.25 MB (the author’s decision D5, ADR 0013 amended), checked byci/test_data_budget.py(ci/check.shsteptestdata, a pre-commit hook). The recorded triad mutations of PLAN 8.4 (CTeststriad_count.mutation.*,parity/mutate.py run --suites triad_count).M8b (api-change, tracked until the hypergraph headers are frozen at the end of M8b): the hypergraph container
dyng::hypergraph<vertex_t, weight_t>(dyng/hypergraph/*.hpp, ADR 0041) on the ESCHER CBST store, for (int32, unweighted) and (int32, int32) on the sequential, openmp and cuda backends:from_hyperedges(),apply()of ahyperedge_batch(deletions by id and insertions; the ids of the inserted hyperedges from the store’s best-fit reuse inhyper_apply_summary::inserted_ids), the viewsh2v()andv2h()(sorted CSR, built once per version),clone()/to_backend()that keep ids, deleted slots and payload accounting,store_stats(),check_integrity(), weights by id;hypergraph_propertieswithhypergraph_storage,line_graph_policy,id_reuse(erase_first, ESCHER’s order, the default;insert_first, H-SOSP’s) andcapacity_policywith the presetsescher_gpu()andmosp_escher(extra);hyperedge_list,hyperedge_batch(incidence edits raisenot_supported_erroruntil 0.4),incidence_view,line_graph_view,storage_stats. The host backends use a best-fit id allocator written independently of the CBST host model, so every backend gives the same ids; the batch records of ESCHER-GPU@abcf9b2’s and MOSP_ESCHER@4b86159’s CBST traces replay through the container with the originals’ ids (parity/compare.py hypergraph_ids).M8b: the line graph of the hypergraph (ADR 0042):
line_graph_policy::sorted_merge(built with the hypergraph, kept by everyapply()with ESCHER-GPU@abcf9b2’s sorted delta merge, ported in stages; a host form of the same merge on the CPU backends, with the same layout) andautomatic(built by the firsth2h(), then kept);hypergraph::h2h()(sorted rows by id,outthe first neighbour above the row’s id, the weights by id), the stagehypergraph.apply.line_graph;store_stats().device_bytesin ESCHER-GPU’sDynamicHypergraph::deviceBytes()scope (the trees and the row views kept per commit), equal to ESCHER-GPU’s on coauth-DBLP after the build and every batch; the line graph equals ESCHER-GPU’s after every batch of itsmake test, coauth-DBLP 50K and synthetic 1M runs (parity/compare.py hypergraph_ids --line-graph).dyng::testing::rebuild_line_graph(dyng/testing/line_graph_oracle.hpp, tracked): the line graph rebuilt from the hyperedges by MOSP_ESCHER@4b86159’s HypergraphOracle algorithm.parity/perf_ab.py hypergraph memoryandmaintain: the memory gate and the maintain reading against ESCHER-GPU.M8b (api-change, tracked until the hypergraph headers are frozen at the end of M8b):
dyng::update()andupdate_each()over hypergraphs (ADR 0043):<dyng/hypergraph/ hypergraph.hpp>specializesdetail::participant_of<hypergraph<V, W>>with the participant interfacedetail::hyper_update_participant<V, W>and the hypergraph’sdetail::run_update()(one Step 0 and one commit for every result: the batch staged and normalized once, every before-apply on G_t, one commit, every after-apply on G_{t+1} with the applied record, a failing result poisoned while the others complete), and addsdetail::is_hypergraph_v;update.hppand the graph headers are unchanged. Internally, the hypergraph’s two-phase transaction (begin,before()with the old view valid until the commit, commit,after()), the framework’s adapter for problems on hypergraphs, the conformance kit’s container axis (container_traits: the hypergraph presets {erase_first, insert_first} x {escher_gpu, mosp_escher, default}, model and twelve batch mixes) with test-only aggregate-delta fakes run through C0-C12 on every backend and a planted bug the kit catches.M8b:
scripts/new_algorithm.py --container hypergraph(ADR 0044): a hypergraph algorithm of either family fromcpp/src/algorithms/_template_hypergraph, green on the first build;graph_requirementsof a hypergraph manifest names the requirements onhypergraph_properties(line_graph,store_v2h,reuse,storage), checked byscripts/regen.py;ci/scaffold_check.shscaffolds, builds and checks a hypergraph algorithm of each family.M8b (api-change, tracked): hypergraph files and batch files (ADR 0045):
<dyng/io/hypergraph_io.hpp>withread_hypergraph()/write_hypergraph()for.hgfiles (one hyperedge per line;dedupe_hyperedges,max_cardinality,relabel=none,dense_sorted,first_appearance,random_weights, and the originals’ preprocessing as the option setshypergraph_read_options::escher_gpu()andhsosp(), which reproduce ESCHER-GPU@abcf9b2’s and MOSP_ESCHER@4b86159’s loaded hypergraphs of coauth-DBLP bit for bit); hypergraph batches in.dgtfiles (+h v1 .. [; w],-h id;read_hyperedge_batches(),write_hyperedge_batches(); the first line may name the container kind,%dgt 1 graphor%dgt 1 hypergraph, and a file holds the batches of one kind); the binary batch format.dgb(version 1: magicDYNGBAT1, a CRC32-checked header with the container kind, dtypes, K and flags, length-prefixed records with CRC32;batch_writer, the streamingbatch_reader, which stages records through pinned buffers to the device with CUDA resources, and whole-file helpers), whose reader checks every size field against the file before allocating; fuzz targetsfuzz_hgandfuzz_batch_binary;datasets/preprocess/benson_to_hg.py, which writes the originals’ coauth-DBLP.hgbyte for byte;dyng-compat-escher(ESCHER-GPU’s batch dumps as.hg+.dgb, and their replay by id and by content).M8b (api-change, tracked): hypergraph generators (ADR 0045):
<dyng/generators/ hypergraphs.hpp>withuniform_hypergraph()andrandom_hyperedge_batch()(thirteen mixes: insertions, deletions, delete-then-reuse, heavy deletion, delete-all, re-insert, larger than the hypergraph, duplicate members, dead ids, a skewed hyperedge of 1,100 members, ids at the index limits, empty), with distributions owned by the library (bit-exact per seed and major version on every platform; golden hashes);generators::legacy::escher_hypergraph()andescher_batch_generator(ESCHER-GPU@abcf9b2’s generators, reading the live state of a dynG hypergraph: they reproduce itsmake test, coauth-DBLP and synthetic 1M hypergraphs and batches) andstandard_library_matches_legacy_streams(). The conformance kit’s hypergraph mixes come from these generators.M8b (api-change): the hypergraph headers frozen (ADR 0047; the pull request needs the
api-changelabel): every declaration ofdyng/hypergraph/*.hppis part of the frozen API baseline after the hypergraph API review (io/hypergraph_io.hpp,io/batch_io.hpp,generators/*andtesting/*stay tracked); a removal or change now failsci/docs.shandci/api_check.shwithout the label. Stable from 0.3.0 (the author’s decision of 2026-10-22). The review addedhyperedge_batch:: delete_incidence_hyperedge(),delete_incidence_vertex(),insert_incidence_hyperedge()andinsert_incidence_vertex()(the owning batch reports its incidence edits) and declaredhyperedge_batch’s default constructornoexcept;ci/doxygen_coverage.pyholds the frozen hypergraph headers to the group,@throwsand@sync/@asyncrules; compile-only fitness skeletons (cpp/tests/api/fitness) pin what M9 and M11 need.M8b: the hypergraph in Python (ADR 0046):
dyng.Hypergraph(from_hyperedges(offsets, members, ...),from_lists([[...], ...]),apply(),h2v(),v2h(),h2h()as host copies,weights,to_hyperedge_list(),clone(),to_backend(),store_stats(),check_integrity()),dyng.HyperedgeBatch(delete_hyperedges=..., insert_hyperedges=...),dyng.HypergraphPropertiesanddyng.CapacityPolicy(the C++ names and defaults; the presetsescher_gpu()/mosp_escher();id_reuse=,capacity=and the enumerations as strings),dyng.HyperApplySummary(inserted_idsan int64 array),dyng.StorageStats;dyng.io.read_hypergraph()(options="escher_gpu" | "hsosp",dedupe_hyperedges,max_cardinality,relabel,random_weights=(lo, hi, seed)and the property keywords) andwrite_hypergraph(),read_hyperedge_batches()/write_hyperedge_batches()(.dgt),write_binary_batches(),read_binary_batches()and the streamingBatchReader(.dgb, graph and hypergraph batches with their annotations);dyng.generators.uniform_hypergraph()andrandom_hyperedge_batch(),dyng.generators.legacy.EscherEngine,escher_hypergraph()andEscherBatchGenerator;dyng.testing.rebuild_line_graph(),dyng.testing.oracles.HypergraphModeland the Hypothesis strategieshypergraphs()/hyperedge_batches(). int64 member arrays are never narrowed silently (vertex_dtype="int32"converts them with a range check); every native call releases the GIL.dyng.update()over hypergraphs arrives withtriad_count(M9;python_gaps.md).M8a (internal, not public API): the ESCHER CBST store (
cpp/src/hypergraph/escher,dyng::detail::escher::cbst_store, ADR 0038), the port of ESCHER-GPU@abcf9b2’s store in the new moduledyng_hypergraph: construct, rebuild from the device, best-fit insert with surplus rows and the rebuild, append (fill) with overflow segments and payload growth, erase, remove_values (unfill), the row locator and the integrity checker, on the resources’ stream and memory resource, with exceptions instead of process exits; dynG additions: the empty tree,clone(),download(),allocated_bytes(), poisoning after a failed operation, the payload policystore_policy::escher_gpu(). It replays ESCHER-GPU’s CBST traces in every recorded field but one documented divergence (construct_below_payload: the targeted construct whose capacity is below its payload throws instead of keeping a tree without nodes) and the 57 operations that cannot be replayed (the 3 H2H rebuilds of coauth50k, whose inputs are recorded as hashes only, and the 54 operations of the batches-mode set syn1m) (parity/compare.py cbst_trace --store device);parity/escher_port/transplant.pyregenerates its first commit from the original.M8a (internal): MOSP_ESCHER@4b86159’s CBST behaviours merged into the store (ADR 0039): construct validation, the fill clamps, caller row counts as a fast path of construct, one bounded chain walk for every reader and the unfill writer (bounded by the used payload; a broken chain raises the store’s device error word,
internal_errorat the next read point), its integrity checks and dynG’s checks of the index arrays,rows(), the scratch growth rule, an explicitcompact(), storage counters (stats()),check_errors(), and a defined rule for appends and removals on dead or absent keys; the staging presetmosp_escher_staged()of the merge steps.M8a (internal): MOSP_ESCHER’s automatic compaction and the store presets (ADR 0040):
store_policy::mosp_escher()(compaction at MOSP_ESCHER’s fill and insert trigger points, thencapacity_error; flat * 1.3 + extra, at most 2.0e9) replaces the staging preset, and dynG’s defaultstore_policy::dyng_default()compacts first and then grows (capacity_erroronly beyondmax_payload, the int32 offsets;out_of_memory_erroron an allocation failure). MOSP_ESCHER’s CBST traces replay in every recorded field undermosp_escher()but the documented divergencesconstruct_without_row_counts(31 constructs of make test without row counts, whose occupancy 0 the store does not take over; ADR 0039 (c)) andconstruct_below_payload(one targeted construct); every set replays under the default with the field setpolicy, its documented divergences pinned per set and rule (parity/cbst_documented.toml), and the store’s layout under every preset is checked in lockstep with the host model on the traces’ operations. Tests: MOSP_ESCHER’s 9 CBST scenarios and its smoke test under every preset in lockstep with the host model, random operation sequences, the graph-on-CBST test (PLAN 6.1 D8), the partial-failure rule, and the 7 CBST mutations (ctest -L mutation,parity/mutate.py run --suites cbst);parity/perf_ab.py cbst early, the early-warning table of the store against ESCHER-GPU.M8a:
dyng::testing::cbst_host_policy::max_payload, the largest payload a growth reaches (tests lower it), andcbst_host_policy::dyng_default()no longer provisional.M8a review:
dyng::testing::cbst_host_policy::compaction_headroom, the hysteresis of an automatic compaction (dyng_default(): 8, also the store’s default preset: after a compaction at a trigger point the payload grows when fewer than 1/8 of its slots are free).M8a:
dyng::testing::cbst_host_model(dyng/testing/cbst_host_model.hpp, ADR 0037), a sequential host model of the ESCHER CBST store of ESCHER-GPU@abcf9b2 and MOSP_ESCHER@4b86159 (best-fit reuse, surplus keys and the rebuild, fill overflow segments, unfill, A’s growth, B’s compaction and exceptions) with the policy presetscbst_host_policy::escher_gpu(),mosp_escher()and the provisionaldyng_default(), and the layout helperscbst_rank_of_positionandcheck_cbst_layout(ESCHER-GPU’scbst_testsizes). It replays every replayable operation of both originals’ CBST traces with 100% agreement; the oracle of the store port. Parity harness: the trace replay comparator (cpp/tests/parity/escher/cbst_compare), the tooldyng_cbst_replayandparity/compare.py cbst_trace --store host_model.M8a (parity harness, not part of the library): the CBST trace recorders of ESCHER-GPU@abcf9b2 and MOSP_ESCHER@4b86159 (ADR 0036): the originals’ unchanged objects relinked into recording twins with
-Xlinker --wrap(parity/exporters/escher), the trace format 1 and its readers (parity/escher_trace.py, the host-onlycpp/tests/parity/escher/cbst_trace.hpp), the trace goldens of both originals’ suites, coauth-DBLP, DBLP and targeted scenarios (parity/export_goldens.py cbst_trace),datasets/registry.tomlwith the coauth-DBLP pins, the cross-check of the two ESCHER cores (parity/escher_crosscheck.py) and the timed-region mapparity/timed_regions/hypergraph.toml.M9a (parity harness, not part of the library): the reference side of
triad_count(ADR 0048), before any port code: the timed-region mapparity/timed_regions/triad_count.toml(updategated per batch asupdate[b1..b3],full_count,end_to_end;perf_ab.pyandbench_suite.pyread per-batch rows and refuse unknown region keys); the golden settriad_count_escher_gpuof ESCHER-GPU@abcf9b2’s triad counts and batches on itsmake testand PLAN 6.4.6’s grid, 300 cases exported twice with identical manifests (parity/triad_goldens.py,parity/export_goldens.py triad_count,parity/compare.py triad_count --verify); ESCHER-GPU checked against its own CPU reference (90 runs agree).M9a (tracked):
dyng::testing::triad_reference(dyng/testing/triad_reference.hpp, ADR 0049): brute-force triad counts of a hypergraph, the 30-bin h-motif counts and StatHyper’s types 1-3, following ESCHER-GPU@abcf9b2’s CPU reference (64-bit, sequential or OpenMP), with the h-motif classes derived from the permutations of the Venn regions (equal to ESCHER-GPU’s table on all 128 ids),removed()/added()per bin, and a test that it shares no code withtriad_countor the container.M9a (tracked):
generators::legacy::escher_host_modelandescher_batch_generator::next(model)(ADR 0051): ESCHER-GPU’s batches drawn from host rows the caller keeps in step with the hypergraph (apply(batch, summary)), the same draws asnext(res, hypergraph)without reading the hypergraph’s views.M9a (parity harness, not part of the library): the triad replays (ADR 0050): the tool
dyng_triad_replayandparity/compare.py triad_count --backend B --mode by_key|by_content|both --counter oracle|algorithm(each golden case’s batches replayed through the hypergraph, the counter after the build and every batch, integrity after every batch, the expected ids by key, every deleted row resolved by content; planted defects must fail it); the port driverdyng-compat-escher run(ESCHER-GPU’s argv, the batches drawn from the host model; counting arrives withtriad_count);parity/perf_ab.py triad_count run|memory(parity/triad_perf.py: A/B rounds under the clock lock and the contamination monitor, the Nsight Systems peaks of both whole processes, the store accounting);parity/triad_replay.py singlesanddraws(the oracle against ESCHER-GPU on one triad per bin; the driver’s batches against the goldens).
Changed#
triad_countisstableand frozen (M9b, ADR 0060; the plan’s default D4, confirmed by the author on 2026-10-22):<dyng/triad_count.hpp>(frozen in the API baseline;ci/doxygen_coverage.pyholds it to the freeze’s rules),dyng.triad_countanddyng triad_countfollow PLAN 5.9’s stable tier from 0.3.0. api-change: the header moves from tracked to frozen; no signature changed. Documentation amendments of the review: the stats’triads_removed/triads_addedfor the types 1-3 (contributions, not weights),compute()’s shape per pattern,max_binsbounds every later pattern; the Python docstrings list every documented exception.experimental::count_local_patternsstays experimental.The generated CLI flags (ADR 0059): a keyword typed
X | Noneis the flag ofX(abool | Nonekeyword is a--x/--no-xpair), and a union with oneLiteraltakes its choices; no existing flag changes. The fuzz workflow’s dispatch limit is 660 s per target (nine targets; was 750 s for eight).The documented
find_package(dyng 0.3 REQUIRED)(README.md, docs/getting_started/install.md) follows the development version, whichci/cmake_consumer.shrequires; a build of 0.2.0 asks for 0.2.Merging 0.2.0 into M8a:
datasets/(the parity harness’s dataset registry) is excluded from the sdist, whose members stay those of 0.2.0; andparity/certify.pyreads the replays of a GoogleTest mutation suite (the CBST mutations ofparity/mutate.py) without a golden manifest, while every golden-suite replay still needs one.M8b:
io::write_batches()rejects a negative vertex id withinvalid_argument_error(such a.dgtfile did not read back);io::read_batches()namesread_hyperedge_batches()when it meets a hyperedge operation or a%dgt 1 hypergraphline, and reports the incidence edits+i/-iand the vertex operations as reserved for 0.4.M8b: the release certificate needs the hypergraph container’s replays from 0.3 (
parity/certify.py): the batch records of every CBST trace set with hypergraph batches replayed throughdyng::hypergraphwith the originals’ ids and rows on sequential, openmp and cuda, and ESCHER-GPU’s sets with the line graph on cuda (parity/compare.py hypergraph_ids --certificate, the hypergraph-id record schema;ci/gpu_local.shwrites the CUDA records of the small sets). The memory reading of the hypergraph (perf_ab.py hypergraph memory) loads coauth-DBLP throughio::read_hypergraph(..., escher_gpu()). The vertex-operation fields of the Python bindings’ batch and thegood-first-issue:oplabel name 0.4 and 0.3.M8b review (api-change; the hypergraph headers are frozen, not yet stable): the frozen headers’ documentation says what the code does:
hyper_apply_summary::skipped_opscounts every skipped operation (in 0.3ignored_deletions + dropped_members; the incidence edits of 0.4 add theirs),capacity_policy::row_alignmentdescribes the allocator’s reservation,line_graph_view::weightsis host memory,apply()’s batch-sizecapacity_errorand stagingout_of_memory_errorleave the hypergraph unchanged, and on CUDAapply()/dyng::update()order the store’s work with the stream of their resources. Behaviour fixes:weights()of a poisoned hypergraph throws;hyperedge_batch(_view)::empty()sees the incidence vertex arrays;add_hyperedgeraisesout_of_memory_error, notstd::bad_alloc; a hugeinitial_slack/initial_headroomsaturates at the payload limit; an allocation failure whileh2h()builds the line graph leaves it buildable. The API baseline lists the hypergraph’sdetailcontract (hyper_update_participant,run_update(),is_hypergraph(_v)), frozen by ADR 0047.M8b review (io, tracked):
batch_readerstops at its first error (later calls throw instead of returning the record after a damaged one); a.dgbfile of the other kind given toread_binary_batches/read_binary_hyperedge_batchesis anio_errornaming the right reader; the text readers reject a directory or a device withio_error(a directory gaveout_of_memory_error);.hgis documented as unversioned. Python:BatchReadermay be shared by threads and raisesInvalidArgumentErrorwhen closed; an integer argument outside int64 (a seed: uint64) is anInvalidArgumentError, not aTypeError.M8b review (parity tooling): the hypergraph-id replays compare the by-content ids up to the first ambiguous resolution, check the line graph against
testing::rebuild_line_graphon both originals’ sets, and count B’s vertex-kind batches; certificates count only full replays.Merge policy: every pull request is merged with a merge commit; squash merging is off since 2026-10-14 (the author’s decision after M8a was squash-merged as
2de6ebe; ADR 0019 amended,GOVERNANCE.md, CONTRIBUTING.md, the pull request template).ci/gpu_local.shruns the hypergraph container’s two-host-thread C12 test under synccheck and memcheck, not racecheck.
Fixed (M9b)#
triad_count::compute(),update()andresult::clone()(andcount_local_patterns’ compute, update and clone) report a host allocation failure asout_of_memory_error, as their documentation says; astd::bad_allocof the host work left the library (ADR 0060 finding 7;dyng_triad_count_allocation_failure_tests).
Fixed (M9a review)#
triad_countat the 64-bit limit (ADR 0057): C(|e|, 3) is exact for every hyperedge size (it wasn (n - 1) (n - 2) / 6in signed 64-bit, wrong from 2,097,152 members, as in ESCHER-GPU); the type-2 and type-3 products and every sum are checked on both engines, and a count past 2^64 - 1 throwscapacity_erroron cuda as on the host backends (it wrapped on cuda, and for types 2 and 3 everywhere); a batch that removes and adds 2^63 or more triads of a bin is exact (the signed phase bins refused it), and a net change of a bin outsidestats::delta’s signed 64-bit range throwscapacity_erroron every backend.testing::triad_referencecounts in 128-bit and throwsstd::overflow_errorpast 2^64 - 1.triad_count::update: the scratch of an update keeps headroom (scratch_buffer::reserve_with_headroom), so a growing hyperedge id bound no longer frees and reallocates the frontier flags in nearly every batch (ADR 0053 amendment); the documented guarantee names the outcome of a failure inside the commit (the hypergraph poisoned, the result unchanged with the counts before the batch).generators::legacy::escher_host_model::applygrows its rows geometrically (an exact reservation moved every row when the id bound grew).Parity harness and certificate: the triad golden set hashes no run parameter (the GPU and the raw trace’s digest move to unhashed provenance files; content is hashed, a
.zstfile decompressed;export --twice --second-gpu); the replay comparator checks the hyperedges the container deleted against A’s batch;certify.pyrequires every gated row of every case of a triad reading, recomputes the medians and round counts from the samples, checks the protocol fields of the triad records and refuses a--versionof another release series thanVERSION; the memory readings guard the counts of every measured process; the oracle’s isolation check preprocesses with the build’s flags; the triad phase’s compile-failure test matches itsstatic_assert; the host-model asymmetry of the gated update is recorded andupdate_with_host_model[b<N>]reported beside the gate.CI: the host triad mutants run on the cases that kill them;
cpu.ymlruns its tests on 4 jobs.
0.2.0 - 2026-10-14#
Summary#
dynG 0.2.0: a third stable algorithm, the CUDA backend from Python, and the hardening planned after 0.1.0. Install it from PyPI (Python >= 3.12, Linux x86-64):
pip install dyng # the sequential and OpenMP backends
pip install "dyng[cu13]" # with the CUDA backend, for an NVIDIA driver of CUDA 13 ("dyng[cu12]": CUDA 12)
Upgrading from 0.1.0: pip install -U "dyng[cu13]" (or -U dyng). Without -U, pip keeps the
installed 0.1.0, which has no cu12 / cu13 extras, and only warns.
0.2.0 is the release candidate 0.2.0rc1 (tag v0.2.0rc1, published on TestPyPI only and
smoke-tested from there) with the final-release changes below and no change to the library. Nothing of 0.1.0 changes incompatibly: sssp and cycle_count keep their API.
The entries below the summary are the detailed record of milestones M7, M6a and M6b and of the
release preparation (R020, R021).
mospis stable (SemVer applies from 0.2.0): dynamic multi-objective shortest paths, the MOSP update of DynaMOSP (the K single-objective trees, the combined graph of the preferences, its shortest-path tree and the path costs), on the sequential, OpenMP and CUDA backends, in C++ (<dyng/mosp.hpp>), Python (dyng.mosp) and on the command line (dyng mosp, the original tools’ files byte for byte). It is byte-identical to MOSP-OpenMP@c352151 and MOSP-CUDA@e220ee2 on their golden corpus and on 20 paper-scale cases, and its API was reviewed before the freeze (ADR 0035);dyng.update()keeps mosp, sssp and cycle_count results on one graph.The
ssspoperators engine: CUDAsssp(and somosp) also runs on GPUs and drivers without cooperative launch, byte-identical to the fused engine;cuda_enginechooses (automatic,fused,operators).CUDA from Python: the plugin wheels
dyng-cu13anddyng-cu12, installed withpip install "dyng[cu13]"(NVIDIA driver 580 or newer, CUDA 13) or"dyng[cu12]"(driver 525 or newer, CUDA 12). They bring their own CUDA runtime (no toolkit needed) and code for sm_75 to sm_120 (Turing to Blackwell).import dyngpicks the plugin of the driver’s CUDA major and falls back to the CPU backends with onedyng.BackendWarningthat says why; results stay in device memory and go to PyTorch or CuPy through DLPack or__cuda_array_interface__without a copy;dyng.show_config()says what was chosen.The tutorial “Your first dynamic algorithm” and the teaching algorithms
dynamic_bfsandtriangle_delta(maturitytutorial, not under the stability promise): from a fresh clone to a new algorithm that passes the conformance kit on every backend.The documentation site https://dyng-dev.github.io/dyng/, built from
main.Robustness: libFuzzer targets for every file reader (the reader bugs they found are fixed), the recorded bug mutations of sssp, cycle_count and mosp checked against their golden suites, long Hypothesis runs, and ASan + UBSan and TSan (with OpenMP and Archer) on every pull request, now required checks.
The release certificate
benchmarks/results/0.2.0/(PLAN 8.3 and 8.6): golden parity of sssp, cycle_count and mosp on every backend, the release performance gates of all three against the unpatched originals (mosp’s for the first time, the new suitebenchmarks/paper/ipdps25_dynamosp_mosp.yaml; CUDA at locked clocks, ADRs 0018 and 0021), the sanitizers and the mutation checks.
Known limitations of 0.2.0: Linux x86-64 only (aarch64 wheels later); the plugins need a GPU of
compute capability 7.5 or newer; cycle_count counts simple cycles only (no time-window or
temporal modes, no approximate TruCy mode); the hypergraph and triad_count come with 0.3.0,
label_propagation and hyper_sssp with 0.4.0; no DOI (Zenodo is not connected).
Final release (R021)#
Changed:
VERSION0.2.0,CITATION.cffversion: 0.2.0anddate-released: 2026-10-14(the planned tag day); this section, the release candidate’s[0.2.0rc1], renamed[0.2.0] - 2026-10-14with its link references, its summary with the install lines from PyPI.Docs: the status texts of the release candidate brought to the release (README, the documentation’s start page, the getting-started and install pages,
SECURITY.mdwith its supported versions,CONTRIBUTING.md,SUPPORT.md,docs/citing.md, the roadmap and the developer plan):pip install dyngandpip install "dyng[cu13]"/"dyng[cu12]"from PyPI.Docs (the review of the final-release pull request): the upgrade line
pip install -U "dyng[cu13]"for users of 0.1.0 (README, the start page, the install guide, this summary); the maturity lines ofsssp,mosp,dynamic_bfsandtriangle_deltaand the tutorial no longer call 0.2.0’s content unreleased; the roadmap’s “Where we are” opens with 0.2.0;CONTRIBUTING.mdno longer promises micro-benchmarks for 0.1;docs/developer/release.mdstep 9 names those pages and widens its grep, its local-build block reads the tag fromVERSION; the certificate’s README says which of the release candidate’s check records were replaced.Governance: the author’s decisions of 2026-10-09 in the approvals log of
GOVERNANCE.md: the plugin namesdyng-cu12/dyng-cu13stay unreserved on PyPI until 0.2.0 creates both projects, without placeholder releases (the open decision R020 added is closed); and the state of the trusted publishers (TestPyPI’s re-created for the plugins, PyPI’s checked).docs/developer/release.mdrecords the lesson of the release candidate’s failed publish jobs (a plugin’s pending publisher needs the project namedyng-cu<N>and its own environment);docs/developer/repository_settings.mdthe publishers’ state.Added:
benchmarks/results/0.2.0/, the certificate of the release, carried over from 0.2.0rc1 (docs/developer/release.md, step 9): the library did not change since the measured commits, so the gates, the golden replays and the golden mutations stand; the distributions (asrelease.ymlbuilds them forv0.2.0),ci/check.sh --parity,ci/api_check.sh,ci/gpu_local.shand the C++ test suites (the sanitizer presets, the mutation CTests;README.mdchanged) were run again on the final tree, and the hostedsanitizers.ymljobs of the release candidate’s pull request are recorded. The smoke test of 0.2.0rc1 from TestPyPI (the CPU package and both CUDA plugins, on GPU 1) is recorded there and indocs/developer/retrospectives/R021.md.
R020: the release changes (0.2, branch release-0.2.0)#
Changed:
VERSION0.2.0rc1 (it was 0.2.0.dev0, the development version after 0.1.0);CITATION.cffversion: 0.2.0rc1,date-released: 2026-10-09(written 2026-10-07, set to 2026-10-08 when the review fixes were certified, then to the tag day); this section[0.2.0rc1]with the summary above: everything that was underUnreleased(M7, M6a, M6b and R020) moved here, an emptyUnreleasedabove it, and the link references.Docs: the status texts for the release candidate: the status blocks of
README.mdand the documentation’s start page (“Alpha: 0.2 release candidate”), the install lines of the release candidate from TestPyPI ("dyng[cu13]==0.2.0rc1","dyng[cu12]==0.2.0rc1",dyng==0.2.0rc1) with the plugins’ driver and GPU requirements (README,docs/getting_started),SECURITY.md(0.2.0rc1 supported until 0.2.0),SUPPORT.md,CONTRIBUTING.md, the roadmap and the developer plan. The documentation site’s banner names a release candidate as such (TestPyPI only;docs/conf.py).Governance: the author’s decisions for 0.2.0 in the approvals log of
GOVERNANCE.md: the AI assistant pushes the signed tagsv0.2.0rc1/v0.2.0and creates the GitHub Release on the author’s behalf (2026-10-06); the author merges the release pull requests and approves the three PyPI deployments,pypi-cu12andpypi-cu13together, thenpypi(2026-10-07); the sanitizer checksasan / gcc-13,tsan / gcc-13andtsan-openmp / clang-18are required checks ofmain(2026-10-07; 27 required checks); and the repository state of 2026-10-07 (M6b merged, the first Pages deployment, the website field).docs/developer/release.mdsays who does what for 0.2.0;docs/developer/repository_settings.mdlists the 27 required checks.CI: the pinned CUDA toolkits of the plugin wheels were checked against NVIDIA’s RHEL 8 repository on 2026-10-07: CUDA 12.9 (nvcc 12.9.86) and 13.4 (nvcc 13.4.92) are still the newest 12.x and 13.x, and a fresh
ci/cuda_toolkit.py lockof both reproducesci/cuda_toolkits.tomlbyte for byte (no re-pin; the cached RPMs passverify --signatures).Docs: two informational investigations in
docs/developer/retrospectives/R020.md(recordparity/results/R020-investigations.json; no gate applies, nothing in the library changed): (a) the CUDA 13.4 cu13 wheel’s cycle_count update is not slower than the CUDA 13.1 builds (0.965-0.986x over 8 processes per side; the update kernels within 1 % under Nsight Compute): M6a’s 8.8 % was the process mode of the host stagecycle_count.normalize, so the wheel keeps CUDA 13.4; (b) a measured proposal for the open decision on layout control (function, loop and branch alignment against the originals and dynG against dynG), attached to the decision inGOVERNANCE.md, which stays open; the certificate uses the accepted one-layout protocol.
R020: the mosp API review and freeze (0.2, branch release-0.2.0)#
Changed:
mospis stable from 0.2.0 (the author’s decision of 2026-10-07, GOVERNANCE.md):<dyng/mosp.hpp>, the Python moduledyng.mospand the command linedyng mospfollow the stable tier of the stability policy, asssspandcycle_countsince 0.1.0. The API review before the freeze (ADR 0035) changed no signature, so existing code needs no change. The manifest, the registry (dyng::algorithms(),dyng.algorithms()), the algorithm tables anddocs/algorithms/mosp.mdsaystable;dynamic_bfsandtriangle_deltastaytutorial.Docs: the review’s amendments of
<dyng/mosp.hpp>: what the inheritedupdate_statscounters mean for mosp and which are deterministic; the exceptionsresult::from_arrays()inherits from sssp’s import;clone()sizes the pooled workspace;path_costs()stays host memory by default;max_objectivesandmax_preference_scalemay be raised, never lowered;set_options()allocates nothing after its checks (its strong guarantee, pinned by the newdyng_mosp_allocation_failure_tests).CI:
ci/api_snapshot.pymarks an algorithm’s header frozen exactly when its manifest says maturitystable(sssp, cycle_count, mosp) and tracked otherwise (the tutorial algorithms); the baseline’s header comment says so. New tests: the label follows the manifest, a changed mosp signature fails the C++ check, andci/tests/test_api_check.pyshows that griffe (the Python check ofci/api_check.sh) reports changes ofdyng.mospsignatures, defaults and names as breaking.
R020: the mosp benchmark suite (0.2, branch release-0.2.0)#
Added: the benchmark-suite record
benchmarks/paper/ipdps25_dynamosp_mosp.yaml: the MOSP update of DynaMOSP (IPDPS 2025) on roadNet-PA, roadNet-CA, rgg_n_2_20_s0 and road_usa (K = 3, the 50K safe, 50K unsafe and 10K local batches of seed 777, the sssp suite’s inputs and digests), “(a) compute” and “(b) end to end” against the unpatchedbin/mospof MOSP-OpenMP@c352151 and MOSP-CUDA@e220ee2 (CUDA at the boost clock lock, the default-clock reading recorded, not gated), the device memory against MOSP-CUDA’s; the gates M7 took.Parity tools:
parity/bench_suite.pyruns a mosp suite throughparity/perf_ab.py mospandperf_ab.py memory --mosp, and refuses a record that is not of mosp or not of the suite’s K, batches, preferences, CUDA engine and output scope, or whoseinvalidatedcounts differ between the two sides;--batchesnarrows an sssp or mosp execution (a partial one), and--keep-contaminatedmakes a diagnostic one for a busy machine (rounds with foreign load kept and flagged, never a gate reading: a record that kept them is refused otherwise).Parity tools:
parity/certify.py writerequires the suites of each release series (REQUIRED_SUITES: the sssp and cycle_count suites from 0.1, the mosp suite from 0.2: a 0.2 certificate without the mosp gates fails), and a gated reading of every gated metric of each suite on every backend it is gated on.
R020: the release certificate (0.2, branch release-0.2.0)#
Added: the release certificate of 0.2.0rc1,
benchmarks/results/0.2.0rc1/(parity.jsonand itsREADME.md): the golden replays of sssp, cycle_count and mosp (the paper-scalemosp_scaleset included) on every backend, the three performance suites against the unpatched originals, the sanitizer presets and compute-sanitizer, the mutation checks, the distributions asrelease.ymlbuilds them forv0.2.0rc1, andci/check.sh --parityandci/gpu_local.shon the release tree; the summary is indocs/developer/retrospectives/R020.md.Parity tools: the generated-metadata exception of
parity/certify.py(METADATA_PATHS) covers the manifest of every algorithm (mosp and the tutorial algorithms too, not only sssp and cycle_count); no build reads a manifest.
R020: review fixes (0.2, branch release-0.2.0)#
Changed (documentation of the frozen mosp API; no signature changed):
options:: compute_path_coststakes effect at the nextcompute()orupdate()(set_options()changes it for the nextupdate();path_costs()follows the option of the last one), aspath_costs()documented; it is no longer called a tunable.mosp::update()documents the backend-mismatch and copy-policy errors it shares withsssp::update(). The Python module andStatsdocstrings state the determinism exception for trees imported without canonicalization and the meaning ofconverged,fallback_usedandengine_used(ADR 0035, amendment A1).Changed: the API check enforces the C++ freeze:
ci/api_check.sh(api-check.yml) compares the frozen sections of the C++ API baseline with the base branch (ci/api_snapshot.py --against) and fails on a breaking change without theapi-changelabel and a CHANGELOG entry, as it does for Python; the freeze tests ofci/tests/test_api_check.pyrun in CI (griffe installed,DYNG_REQUIRE_GRIFFE=1) (ADR 0035, amendments A2 and A3).Changed:
parity/certify.pyrequires every release check of the version’s series (REQUIRED_CHECKS: the sanitizer presets, the mutation CTests and golden mutations, the distributions,check-parity,api-check,gpu_localwith its compute-sanitizer steps), reads the golden-mutation record againstparity/mutate.py list, recomputes every gate row from the records and the suite’s tolerance instead of copying its flags, names each measured commit once as a full SHA, and itspackagingandtestsscopes cover the CUDA plugins’ build inputs, every file the sdist ships and the fuzzers’ regressions.Fixed:
find_package(dyng 0.2 REQUIRED)in README.md and the install guide (0.1 refuses an installed 0.2,SameMinorVersionbefore 1.0);ci/cmake_consumer.sh(ci/check.sh,cpu.yml) builds a consumer with the documented block against an installed build.Changed: the release candidate’s plugin install takes
dyngand the plugin from TestPyPI alone (--no-deps, NumPy from PyPI first), because the namesdyng-cu12/dyng-cu13are not on PyPI before 0.2.0.Fixed:
dyng.show_config()no longer suggestspip install "dyng[cu13]"when a plugin is installed but unusable, and the selection reason says whether a plugin of the driver’s CUDA major is installed; thedyngcommand prints aBackendWarningasdyng: warning: ...instead of naming the console-script wrapper’s line.Changed: the PyPI description (
python/README.md) names mosp and runs it; the wheel’s test subset runstest_mosp.py; the getting-started next steps name mosp and the tutorial algorithms. The benchmark suites andbenchmarks/README.mdsay that rgg’s unsafe50k batch is byte-identical to its safe50k batch (no deletion disconnects a vertex there).Changed:
docs/developer/release.mdfor 0.2 (every packaging- and repo-scope check is re-run on a later tag day,api-checkincluded; the record of the hosted sanitizer jobs;wheels.ymlgreen before the merge; mosp in the smoke test; the final-release checklist in version-neutral terms); GOVERNANCE.md: the author’s decision on layout control (2026-10-08: the one-layout protocol stays for the gates, ADR 0024 for dynG-against-dynG bars, the alignment flags are a performance option for 0.3) closes that open decision, and the PyPI names of the plugins are a new open decision.Changed:
io::read_csr_triplet()parses a plain decimal token while it scans it and writes each weight straight into its objective’s column. The release candidate’s first certificate showed dynG’s end-to-end readings of sssp and mosp 5-12 % slower than 0.1.0’s, all of it in reading the graph (the reader’s source was unchanged, so code placement: the hot loop of the text reader moved). Reading rgg_n_2_20_s0 now takes about 507 ms (0.1.0: 578 ms; the first certificate’s build: 692 ms); values and errors are exactly those of the general path, which every other token still takes, and the fuzz guards are unchanged.The release certificate was measured again on the reviewed code (R020 retrospective, step 5).
Added (M6b)#
M6b: the tutorial algorithms (teaching material, maturity
tutorial; ADR 0033), created withscripts/new_algorithm.pyand completed on the sequential, OpenMP and CUDA backends (Tier A), each with hand cases, an independent oracle and the conformance kit C0-C12 on every backend:dynamic_bfs(fixed point: BFS levels from a source; the subtrees under deleted BFS-tree edges are invalidated and re-seeded, a frontier propagates the improvements) andtriangle_delta(aggregate delta: the triangle count of an undirected graph; count(-) on the old graph, count(+) on the new one,ownership::min_member). Python:dyng.dynamic_bfs,dyng.triangle_delta(not indyng.update(), no CLI command).M6b: the tutorial “Your first dynamic algorithm” (
docs/tutorials): from a fresh clone to a green conformance kit withscripts/new_algorithm.pyand the fixed-point template. Its reference solution isexamples/tutorial_algorithms/my_bfs/, whichci/scaffold_check.shbuilds and tests.M6b:
maturity_level::tutorial(appended;"tutorial"in the manifests, the registry and the generated tables).M6b: the framework operators’ executors (
cpp/src/operators/):sequential_exec,openmp_execandcuda_execrun aDYNG_HDfunctor per element on their backend, with the atomics of such functors, so one source serves the three backends (the two tutorial algorithms use them; PLAN 4.5.3’s rule of two).M6b: the conformance kit generates undirected graphs for an algorithm that requires them (
graph_properties::directed = false); its edge and batch counters count each stored direction.M6b: reader fuzzers (
cpp/fuzz, ADR 0034): libFuzzer targets for every file reader (Matrix Market, edge lists, the MOSP CSR triplet, MOSP batches,.dgtbatches, distance and parent files) with ASan and UBSan, checking the documented exceptions, the consistency of accepted input and write/read round trips; the CMake optionDYNG_BUILD_FUZZERSand the presetfuzz(Clang),ci/fuzz.sh, a seed corpus, and.github/workflows/fuzz.yml(pull requests that touch a reader: 60 s per target; weekly: 10 minutes). Every test build replays the seed corpus and the reproducers of fixed findings (ctest -L fuzz).M6b:
parity/mutate.pycovers the cycle_count and mosp golden suites (CycleEnumeration-GPU’s double-counted 5-cycles and weakened ownership rule, host and device; a combined-graph edge weight from one tree only and path costs from one objective’s weights, on each backend), next to sssp’s;--suitesselects them.M6b: the Hypothesis profile
full(10,000 examples per property, not derandomized;DYNG_HYPOTHESIS_EXAMPLES) and.github/workflows/property.yml(weekly, on demand); property tests ofdynamic_bfsandtriangle_deltaover chains of batches.M6b: the documentation is published on GitHub Pages, https://dyng-dev.github.io/dyng/:
docs.ymldeploys the site of every push tomain(actions/configure-pages,upload-pages-artifact,deploy-pages; environmentgithub-pages); README,CITATION.cff(url) and the Sphinx canonical URL name it.docs/developer/robustness.mddescribes the fuzzers, the mutation checks and the long property runs.M6b: sanitizer jobs on every pull request (
.github/workflows/sanitizers.yml, not a required check yet): the CPU tests under ASan + UBSan (asan, GCC 13), under TSan with OpenMP off (tsan, GCC 13) and under TSan with the OpenMP backends (the new presettsan-openmp: Clang and libomp, whose OMPT tool Archer tells TSan about OpenMP’s synchronization). The scriptci/sanitizers.shruns the same presets locally.M6b: the author’s re-grouping of the releases after 0.1.0 (2026-10-02) is recorded in
GOVERNANCE.md,docs/roadmap.mdanddocs/developer/plan.md: 0.2.0 =mosp+ the hardening planned as 0.1.x (CUDA plugin wheels, tutorials, GitHub Pages, fuzzers, mutation checks, sanitizers); 0.3.0 = the hypergraph andtriad_count; 0.4.0 =label_propagationandhyper_sssp. The planned versions in the documentation, the docstrings and the messages of features that are not there yet follow it.
Changed (M6b)#
M6b: configuring
DYNG_SANITIZE=threadwithDYNG_ENABLE_OPENMP=ONand a compiler other than Clang is an error (GCC’s libgomp is not instrumented, so every parallel region would be reported as a race); use the presettsan(OpenMP off) ortsan-openmp(Clang with Archer).M6b review: configuring with a
DYNG_ALGORITHMSname that no algorithm has is an error (a stale name such as the tutorial’smy_bfsafternew_algorithm.py --removeused to skip every other algorithm quietly);scripts/new_algorithm.pytakes the default of--sincefromVERSION;scripts/regen.py --checkrejects the scaffold line in a manifest whose maturity is notexperimental.M6b review: the conformance kit also runs every check with
deletions_first = false(a third property preset) and the batch mixcancel(edges inserted and deleted, or deleted and re-inserted, in one batch) in C2, C3, C4, C9 and C10.M6b review: the reader fuzzers treat any exception in the write -> read round trip as a finding (a rejected copy used to count as a rejected input);
fuzz.selftest.<target>plants a writer bug and checks that the replay reports it; the corpus replay of the libFuzzer build runs with a 256 MB allocation limit and the third finding’s reproducer;fuzz.ymlsetsvm.mmap_rnd_bits=28, accepts at most 1000 s per target on demand and uploads the reproducers of a cancelled run.M6b review: the documentation site (built from
main) shows a banner naming the development version and the latest release; the README and the landing page name 0.1.0 as the latest release; the algorithm pages name releases instead of milestones; M6b’s ADRs are 0033 and 0034 (M6a has 0030-0032); ADR 0029 is accepted (the author, option A).
Fixed (M6b)#
M6b, found by the reader fuzzers (and the review their memory use prompted):
io::read_matrix_market()reserved memory for the number of entries the size line announced (up to 3 GB for a 74-byte file), andio::read_csr_triplet()for the edge count ofRowPtr.txt(4 GB for a 13-byteRowPtr.txt) and for edges x weights ofValues.txtbefore counting its lines. The reservations are now bounded by what the file can hold; the errors are unchanged (cpp/tests/io/fuzz_regression_test.cpp).M6b, found by
python/tests/test_reader_robustness.py: the command line’s text batches (--batch) raisedOverflowErrorfor an integer beyond 64 bits andUnicodeDecodeErrorfor a file that is not UTF-8; both are nowdyng.FileFormatErrorwith the path and line.M6b: the cycle_count kernel tests did not build with Clang’s ASan or TSan (their counting
operator newcollided with the sanitizer runtime’s); they now detect Clang’s sanitizers too.M6b review:
dynamic_bfs(every backend) and the tutorial’smy_bfsreturned levels that were too low whenbatch_semantics::deletions_first = falseand a batch inserted an edge and deleted it again: the seed offered a level along the requested insertion, which is not in the graph. It now offers only along an edge of G_{t+1}.applied_batch::deltais documented as what it is, the requested changes, not the net change.M6b review:
dynamic_bfsandtriangle_deltakept the scaffold line in their manifests, sonew_algorithm.py <name> --removedeleted them without--force.M6b review: the tutorial “Your first dynamic algorithm”: step 4.2 now replaces the scaffold’s
reads_prepared_graph()(adding a second one did not compile), the clean-up resetsDYNG_ALGORITHMS, the prerequisites follow the install page (no compiler in the conda environment), and the reference solution’s comments describe the incremental algorithm.
M7: the sssp operators engine (0.2, branch m7-mosp)#
Added: the CUDA operators engine of
sssp(decision O24, ADR 0026;cpp/src/algorithms/sssp/operators.{cuh,cu}): MOSP_ESCHER@4b86159’s multi-kernel host loop with MOSP-CUDA@e220ee2’s semantics, one framework hook per phase (Tier A), byte-identical to the fused engine on every input (the same trees,invalidatedandaffected; conformance check C4). It needs no cooperative launch and synchronizes 3 + iterations + epochs times per update.Changed (behaviour, no signature change): on CUDA,
sssp::options::cuda_engine = engine::automaticruns the operators engine on a device without cooperative launch (it threwnot_supported_error), andengine::operatorsruns the operators engine (it threw everywhere);engine::fusedstill throwsnot_supported_errorwithout cooperative launch, and its message now namesengine::operators.stats::engine_usedreportsoperatorsfor it. ADR 0017 item 2 is superseded by ADR 0026.Changed: the device building blocks the two CUDA engines share (packed words, stamp claims, the warp-aggregated append, the warp reductions) moved unchanged from
fused.cuhtokernels.cuh; the fused kernel’s SASS is identical for all three instantiations.Changed: the conformance kit’s C4 compares the two engines after
compute()and after three consecutive batches for every preset, the small and medium sizes and every batch mix (it compared one batch); it runs forssspon CUDA.Tests: the CUDA
ssspsuites run both engines: the MOSP fixtures, the packing boundary (n = 2^17 - 1), the distance-only fallback (320 x 320 grid, weights 2 * 10^9), the input checks (an out-of-range distance, a parent cycle), the steady-state allocations, the budget with strict budgets, and the randomized chains, where the CUDA executable compares the operators engine with the fused engine and the host backends on every chain; a larger engine-equality test (30K-40K vertices, many near-far rounds).Parity tools:
dyng-compat-mosp --cuda-engine automatic|fused|operators(also ininit; the per-objective report line names the engine),parity/compare.py --configs cuda-fused[:d],cuda-operators[:d], andparity/perf_ab.py engines(the operators engine against the fused one, A/B/A/B at locked clocks; reported, not gated).
M7: mosp (0.2, branch m7-mosp)#
Added:
dyng::mosp(<dyng/mosp.hpp>, ADR 0027), dynamic multi-objective shortest paths (DynaMOSP; MOSP-CUDA@e220ee2mospUpdate.cu/combinedGraphGpu.cu, MOSP-OpenMP@c352151mospUpdate.cpp/combinedGraphCpu.cpp) on the sequential, OpenMP and CUDA backends:compute(res, g, source, options),update(res, g, batch, result),options{preferences (lcm <= 2^20), delta, cuda_engine, compute_path_costs, validate_inputs, num_objectives},resultwith the K sssp trees, the combined distances (units of 1/L), the MOSP tree, the path costs (host memory) andfrom_arrays()over K trees,statswith the K sssp stats,combined_edges,preference_scaleandaffected(vertices whose combined distance or MOSP parent changed). mosp is a composition: the batch is applied once, the K objectives are sssp problems updated one after the other on one workspace, then the combined graph (weightsL (K + 1) - sum L / Pref_i; count, scan, fill) is solved with sssp’s engine through the static enactor, and the path costs are recomputed;dyng::update()composes it with other results. The conformance kit passes C1-C12 on every backend (K = 3, preferences {2, 1, 3}).Added:
io::write_path_costs()(MOSP’smospCosts.txt),<dyng/testing/mosp_oracle.hpp>(testing::combined_graph_reference(),testing::mosp_path_costs_reference()), and<dyng/mosp.hpp>in the umbrella header.Changed (behaviour, no signature change):
sssp::update()accepts a batch without insertions whatever itsnum_weights(asgraph::apply()); before, an empty or deletion-only batch built with the default one weight column was rejected on a graph with several weight columns.Changed (tests): the conformance kit’s graphs can have several weight columns (
test_traits::num_weights), C7 checks a batch with one column more than the graph, and C10 builds its graph with the larger column count of the pair.Parity tools:
dyng-compat-mosp --mosp [--pref p1,..,pK] [--no-path-costs], the wholemospdriver (combinedGraph/{distancesCsr,SSSPTreeCsr,mospCosts}.txt, thecombreport line,RESULT compute_ms=); the default mode (SOSP only, which the sssp gates measure) is unchanged.parity/compare.pyreplays the corpus with--mospand comparescombined/too;parity/fixtures/mosp/make_mosp_fixtures.shwrites the preference cases ofcpp/tests/data/mosp_combined(the thesis example with Pref {4, 1, 4} and {4, 4, 1}, K = 2..4,-kbelow the graph’s columns) after MOSP-OpenMP and MOSP-CUDA agreed on them.
M7: parity and gates of mosp (0.2, branch m7-mosp)#
Changed (performance, same values): on the openmp and cuda backends
mosp’s path costs run on the host threads of the resources handle (a level-synchronous traversal of the MOSP tree; the sequential port ofmospPathCostsstays on the sequential backend and reports a missing tree edge for the other two). On cuda the download of the MOSP tree for the path costs is timed inmosp.path_costs, notmosp.finalize, and is one more synchronization of an update withcompute_path_costs(ADR 0027, amendment).Parity tools:
parity/perf_ab.py mosp(the MOSP update against MOSP-OpenMP@c352151’s and MOSP-CUDA@e220ee2’smosp, both writing every output file as the originals’bench/run.sh; regions in the newparity/timed_regions/mosp.toml: “(a) compute” and “(b) end to end” gated, the per-objective updates, the combined step and the path costs reported;-k,--pref,--cuda-engine,--no-output),parity/perf_ab.py prepare --widen BASE:K(the K sweep’s input:mospPrep widen, its trees and its 50K safe batch), and the paper-scale goldensparity/export_goldens.py mosp_scale/parity/compare.py mosp_scale(parity/mosp_scale_goldens.py: the SHA-256 of every output file of MOSP-OpenMP’smospon 20 benchmark cases, cross-checked with MOSP-CUDA, in[sets.mosp_scale]ofparity/goldens.toml).dyng-compat-mosp --mosp --timingwrites the setup’s stages assetuprows.Changed (device memory, same values): on cuda the combined solve of
mospoverwrites the previous MOSP tree in place and countsaffectedin its unpack pass (the fused and the operators engine count the changed vertices of a static solve on request, as an update’saffected), so a cuda result no longer keeps a second pair of combined arrays (12 bytes per vertex): mosp’s peak device memory went from 1.068-1.075x to 1.015-1.019x of MOSP-CUDA’s on the road graphs (PLAN 8.6: <= 1.05x); one synchronization less per update (K + 3 with the path costs and the fused engine; ADR 0027, amendment).Parity tools:
parity/perf_ab.py memory --mosp(the device memory of the whole MOSP update);perf_ab.pywaits for the perf lock in the kernel instead of polling it once a second;perf_ab.py mospleaves the path-cost region out when the port computes none (-kbelow the graph’s columns,--no-output).Records:
parity/results/M7.mdsections 4-10 (the paper-scale parity, the K sweep, the mosp gates on both backends, the combined step, the device memory, the sssp gate re-check).
M7: mosp in Python and on the command line (0.2, branch m7-mosp)#
Added:
dyng.mosp(ADR 0028):compute(graph, source, *, options=None, resources=None, **kwargs),update(graph, batch, result, *, resources=None),Options(preferences,delta,cuda_engine,compute_path_costs,validate_inputs,num_objectives),Stats(with the Kdyng.sssp.Statsinobjectives,combined_edges,preference_scale) andResult(distances(k),parents(k),combined_distances,combined_parents,path_costsas a zero-copy (n, K) int64 array,preference_scale,from_arrays()over lists of K arrays,clone()), andMAX_OBJECTIVES/MAX_PREFERENCE_SCALE.dyng.update()accepts mosp results next to sssp and cycle_count results.Added:
dyng.io.write_path_costs()(MOSP’smospCosts.txt),dyng.testing.combined_graph()anddyng.testing.mosp_path_costs()(the C++ references).Added: the command line
dyng mosp compute|update, MOSP’s files in and out byte for byte as themospdriver writes them (obj<k>/,combinedGraph/{distancesCsr,SSSPTreeCsr, mospCosts}.txt);--preferences 4,1,4is the driver’s--pref,--num-objectivesits-k. List-valued option fields become comma-separated flags.Added:
examples/cpp/mosp_update.cppandexamples/python/mosp_update.py(the thesis example’s combined files, compared with the originals’ in CTest and pytest).Changed:
dyng.Array.ndimand.shapereport the array’s dimensions (2 for the path costs; every other result array is 1-D as before), andlen()is the length of the first dimension.Changed (build):
DYNG_BUILD_PYTHON=ONneeds mosp in the build (DYNG_ALGORITHMS=all).Docs: the mosp page’s Python and command-line sections and its performance table, the sssp page’s engine table (operators against fused) and engine choice from Python and the command line, the command-line and Python API references, ADR 0028.
CI:
ci/gpu_local.shreplays the golden corpus with both CUDA engines (--configs cuda,cuda-operators, the whole MOSP update per case) and runs synccheck on the CUDA mosp suite.
M7: review fixes (0.2, branch m7-mosp)#
Fixed: on CUDA, a
mosp::update()that added vertices went one host synchronization over its I9 budget (the release of the old pinned copy of the MOSP tree), which a Debug build logged and strict budgets turned intointernal_errorand a poisoned result; the reserving run now counts it. The budget of mosp’s combined solve on the operators engine is a static solve’s, 2 + iterations + epochs (it was the update’s 3 + …, one too many).Fixed (tests): conformance check C8 runs with
engine::automaticand, where a backend has a second engine,engine::operators, against the budget of the engine that ran (test_traits::host_sync_budget(backend, stats), optional); it failed on a device without cooperative launch, whereengine::automaticruns the operators engine. The mosp test executables run every test with strict budgets.Docs: the packing window (ADR 0029, proposed, for the author): for non-canonical imported trees inside (n - 1) * W <= max_distance < n * W the host backends (MOSP-OpenMP’s packing rule) and cuda (MOSP-CUDA’s) return different tie parents, each byte-identical to its original; pinned by
SsspPackingWindow.NonCanonicalTreesFollowEachOriginalsPackingRule. The@synccontracts ofsssp::compute()/update()give the operators engine’s counts;mosp.hpp’s determinism and error texts corrected; the gate record lists PLAN 8.6’s noisy flags; the.dgbbatches move to M8.Merged
mainat 0.1.0rc1 (pull request #5); the release certificate (parity/certify.py) knows mosp’s paper-scale goldens and fixtures.
M6a: the CUDA plugin wheels (0.2, branch m6a-cuda-wheels)#
Added: the CUDA plugin distributions
dyng-cu12anddyng-cu13(ADR 0030; PLAN 5.4, 7.7, 7.8), built from the core sdist:ci/plugin_pyproject.pyrenders a plugin’spyproject.tomlfrom the root one (name,dyng==<same version>, thedyng.backendsentry point,DYNG_ENABLE_CUDA=ON, the static CUDA runtime, the release architectures ofcmake/cuda_architectures.cmake: SASS for sm_75-sm_120 and PTX for sm_120), andci/plugin_wheels.shbuilds, repairs (manylinux_2_28, libgomp bundled,libcudanever), checks and install-tests them locally. The import packagesdyng_cu12/dyng_cu13come from one source,python/plugin/dyng_plugin(a ctypes probe of the driver:status(),available(); the extension modulenativeimported on first access). About 5.5 MB per wheel.Added: the extras
cu12/cu13ofdyng(pip install "dyng[cu13]"), pinned to the same version through scikit-build-core’s dynamic metadata, andcupy-cu12/cupy-cu13.Added: the CMake option
DYNG_PYTHON_PLUGIN(empty,cu12,cu13): the Python module of a plugin (dyng_cu<N>._core, nanobind domaindyng_cu<N>); the module’sbuild_configreportsplugin,cuda_toolkit,cuda_architecturesandcuda_runtime, anddyng.show_config()prints them for a CUDA module.Changed:
CMAKE_CUDA_RUNTIME_LIBRARY=Staticnow links the static CUDA runtime everywhere (libdyng, its modules and the tests linked the sharedCUDA::cudartexplicitly) and needsBUILD_SHARED_LIBS=OFF(a shared libdyng would put two CUDA runtimes into one process);Sharedstays the default.Changed:
ci/wheel_check.pychecks plugin wheels (contents, entry point, dependency, licence files, nolibcuda/libcudartneeded or bundled, read from the module’s ELF dynamic section) and the CPU wheel’s pinned extras; the sdist must contain the plugin sources.Changed: the messages of
Resources.cuda()andshow_config()in the CPU module namepip install "dyng[cu13]"instead of “the 0.1.x releases”.Licences:
THIRD_PARTY_LICENSES_CUDA.txt(the CUDA runtime, CUB, Thrust, libcu++, NVTX) and the CUDA toolkit’s EULA (NVIDIA_CUDA_EULA.txt, copied from the toolkit at build time) are licence files of the plugin wheels. Their licence expression stays the CPU wheel’s until the author decides (GOVERNANCE.md, open decisions).Added: the choice of the CUDA plugin in
dyng(ADR 0031; PLAN 5.4): of the installed plugins of the same version that can run here, the one of the driver’s CUDA major wins (else the newest older major); a plugin of another version thandyngis never loaded; a plugin whose module fails to load passes to the next. With plugins installed but none usable, dynG runs ondyng._coreand issues onedyng.BackendWarning(new; aUserWarning) naming each plugin’s reason and the remedy; without plugins nothing changes.DYNG_CPU_ONLY=1anddyng.use_cpu_only()choose the CPU module without the warning.dyng.show_config()prints why the module was chosen and every plugin’s state;dyng.config()hasselectionandplugins;Resources.cuda()in the CPU module says why no plugin is used.Added:
dyng.Arrayin device memory (ADR 0031; PLAN 5.4 rule 4):__cuda_array_interface__(version 3, read-only, with the stream of the call that last wrote the result), DLPack >= 1.0 exports ordered on the consumer’s stream with a CUDA event (__dlpack__(stream=...);to_torch()/to_cupy()use it),shape/dtypewithout reading elements,to_numpy()as a host copy, andto_numpy(copy=None)(new: the read-only view of host memory or a kept read-only host copy of device memory). Inputs in CUDA device memory (CuPy, PyTorch, JAX, a devicedyng.Array) are accepted and copied to the host once. AResources.cuda(stream=...)keeps its stream object alive, and so do the graphs, results and arrays made with it.Added: the GPU tests of the Python package,
python/tests/test_cuda.py(markergpu): sssp, cycle_count and mosp on CUDA equal the sequential backend element by element, a subset of the goldens on CUDA (MOSP’s files byte for byte, CycleEnumeration-GPU’s CUDA histograms), device arrays, device inputs, PyTorch / CuPy round trips, the fallback; they run inci/plugin_wheels.sh(and in a venv with PyTorch / CuPy viaDYNG_PLUGIN_INTEROP_PYTHON) and in the new steppluginofci/gpu_local.sh.test_backend_selection.pychecks the choice with fake plugins on any machine.Docs: the install guide’s section on the CUDA plugin wheels (which plugin for which driver, troubleshooting the fallback warning); the Python API page’s rules for the native module and device arrays.
Added: the CUDA plugin wheels in CI (ADR 0032; PLAN 7.7, 7.8, 8.8):
wheels.ymlbuildsdyng-cu12anddyng-cu13from the run’s sdist with cibuildwheel in the manylinux_2_28 image (ci/cibuildwheel-plugin.toml;before-all=ci/cibw_plugin.shinstalls the CUDA toolkit, checks it and renders the plugin’s tree), checks them (twine check --strict,ci/wheel_check.pywith the 90 MB budget), and install-tests each with the CPU wheel in fresh venvs on Python 3.12 and 3.13 without a GPU:ci/plugin_smoke.py --expect fallback(onedyng.BackendWarning, “no CUDA driver”, the plugin’s module importing without a driver) and the whole pytest suite. Artifactswheel-cu12-...andwheel-cu13-...; the inputpluginsturns the plugin jobs off.Added:
ci/cuda_toolkits.toml, the CUDA toolkits of the CI builds pinned file by file (every RPM of NVIDIA’s RHEL 8 repository the build installs, with its SHA-256): CUDA 12.9 forcu12and CUDA 13.4 forcu13, the latest of each major.ci/cuda_toolkit.pyre-pins them from the repository’s metadata (lock), downloads and verifies them (download,verify; the runner caches the files), and unpacks them without root (extract), so the CI toolkits can be used locally (DYNG_CUDA13_ROOT=... ci/plugin_wheels.sh).Changed:
release.ymlpublishes the CUDA plugins from v0.2.0 (release candidates included):selectnames the distributions of the tag (ci/wheel_check.py --release-distributions),wheels.ymlbuilds the plugins too,collectchecks that the files are exactly those distributions (--release-set) and sorts them into one directory each (--split), and the publish jobs run once per distribution, each in its own environment:dyngthroughtestpypi/pypi,dyng-cu12throughtestpypi-cu12/pypi-cu12,dyng-cu13throughtestpypi-cu13/pypi-cu13. TestPyPI first; PyPI only for final versions, after every TestPyPI upload, with the author’s approval of eachpypi*environment (three for 0.2.0). v0.0.x and v0.1.x tags publishdyngalone, as before.Added:
ci/plugin_smoke.py(the smoke test of an installed plugin wheel:--expect cudaon a GPU machine,--expect fallbackwithout a driver or device), used bywheels.ymlandci/plugin_wheels.sh, andci/without_cuda_driver.sh(runs a command with the NVIDIA driver hidden in a user and mount namespace, no root), with whichci/plugin_wheels.shalso runs the hosted runners’ smoke test.Added:
parity/wheel_vs_parity.py, the informational “wheel vs parity build” row of PLAN 7.7: the same CUDA work (sssp’s update on roadNet-CA, cycle_count on DD) timed from Python through the plugin wheel and through theparity-cudabuild, under the exclusive perf lock with locked clocks; recorded inparity/results/M6a-wheel-vs-parity.json, never gated.Docs:
docs/developer/wheels.md(the plugins in CI, the pinned toolkits and how to re-pin them, the CI toolkits locally, CI vs local builds, the per-distribution environments),docs/developer/release.md(three approvals for a final release with the plugins, the local rehearsal with the plugins),docs/developer/repository_settings.md(the protection rules of the four plugin environments, for the author), and the install guide (which plugin for which driver, the requirements, a GPU-less machine).
M6a: review fixes (0.2, branch m6a-cuda-wheels)#
Fixed:
DYNG_CPU_ONLYis read as a boolean:1,true,yes,on(any case) choose the CPU module;0,false,no,offand empty leave the choice to dynG (before, every value but0and empty forced the CPU module,falseincluded); any other value is ignored with adyng.BackendWarning.Fixed: choosing the CUDA plugin no longer initializes CUDA in the process (ADR 0031, amendments): the plugin reads the driver’s version with
cuDriverGetVersionand the devices through NVML (or a short child process when NVML cannot tell which devices CUDA will see), so a process that used dynG (evendyng.__version__or CPU work) can still fork workers that use CUDA. Before, every first use calledcuInit, and a forked child’s CUDA calls failed with a misleading “no CUDA device is visible”. A child forked after its parent really used CUDA now gets an error that names fork and the remedy (spawn/forkserver).Fixed: a plugin is used only when a visible GPU has compute capability 7.5 or newer (the plugins’ oldest architecture); on Volta, Pascal and older GPUs dynG falls back to the CPU module with a
dyng.BackendWarningthat names the GPU’s architecture, instead of choosing the plugin and failing every default call withcudaErrorNoKernelImageForDevice. That CUDA error now names the device’s compute capability.Fixed:
Resources.cuda(stream=0)is the legacy default stream, ascudaStream_t0 is in CUDA and in C++ (stream_ref(0)), and so aretorch.cuda.default_stream()andcupy.cuda.Stream.null;stream=None(the default) is the per-thread default stream. Before, 0 and the frameworks’ default streams were silently mapped to the per-thread default stream.Fixed: a graph or result used with other resources (
resources=Resources.cuda(stream=s)in the algorithms’computeandupdate,dyng.updateorGraph.apply) keeps the stream object of every such resources alive as long as itself and its Arrays (memory a call adds is released on the call’s stream); before, dropping the stream left__cuda_array_interface__naming a destroyed stream, andto_numpy(), freeing the graph or dropping an Array failed with a CUDA error or crashed the process.Fixed:
dyng.config()/dyng.show_config()no longer initialize CUDA when a plugin is chosen (the CUDA entry comes from the plugin’s probe), so printing the configuration does not stop the process from forking workers that use CUDA.Changed (release):
release.ymluploads the CUDA plugins beforedyngon each index, anddyngonly when every plugin upload succeeded, sopip install "dyng[cu13]"never meets adyngwhose plugin is missing (pip would fall back to an olderdyngwithout the extra with only a warning).ci/tests/test_release_select.pytests theselectstep for every kind of tag. The release checklist runs the GPU tests on the CI-built wheels of both plugins before their PyPI environments are approved.Changed (CI): the plugin wheels are checked for exactly the SASS and PTX of their toolkit’s release list (
ci/wheel_check.py --code-objectswith cuobjdump, in the container; the smoke test checks the architectures the module reports), their module is linked with-Wl,--exclude-libs,ALLas in the local build and may export only its init function and std / nanobind / type_info symbols; the pinned CUDA RPMs are checked against NVIDIA’s OpenPGP signature (key fingerprint pinned; gpg on the runner,rpm -Kandlocalpkg_gpgcheckin the container);wheels.ymlbuilds the plugins for pull requests that change the library or the licence files too.
M6a: acceptance fixes (0.2, branch m6a-cuda-wheels)#
Fixed:
ci/plugin_wheels.shchecks every plugin’s CUDA toolkit forbin/nvccandbin/cuobjdumpbefore anything is built (or the output directory cleared) and names what is missing; before, a toolkit without cuobjdump failed the code-object check only after the build.Docs:
docs/developer/wheels.md: the conda-forge CUDA 12.9 recipe for the local cu12 build installscuda-cuobjdump(it could not pass the code-object check without it).docs/developer/repository_settings.mdandrelease.md: a final release with the plugins is approved in two “Review deployments” dialogs (pypi-cu12andpypi-cu13, thenpypi), asrelease.ymlorders them.
M6a: the plugins’ licence expression (0.2, branch m6a-cuda-wheels)#
Changed: the
License-Expressionofdyng-cu12/dyng-cu13names what the plugins add to the CPU wheel’s contents:... AND Apache-2.0 WITH LLVM-exception AND LicenseRef-NVIDIA-End-User-License-Agreement(libcu++ and NVTX; the statically linked CUDA runtime under NVIDIA’s CUDA Toolkit EULA). The author’s decision of 2026-10-06 (GOVERNANCE.md; ADR 0030 item 9). The CPU wheeldyngand the sdist keep their expression.ci/wheel_check.pyrefuses a plugin wheel with any other expression.Docs:
docs/developer/repository_settings.mditem 11b is done: the four plugin environments have the protection rules oftestpypi/pypi.
0.1.0 - 2026-10-02#
Summary#
The first release of dynG: two dynamic algorithms, each ported from a pinned research code and
proved equal to it, with one C++ API, a Python package and a command line. Install it with pip install dyng (Python >= 3.12, Linux x86-64). 0.1.0 is the release candidate 0.1.0rc1 (tag
v0.1.0rc1, published on TestPyPI only and smoke-tested from there) with the final-release
changes below and no change to the library. The entries below the summary are the detailed
record of milestones M1a to M5 and of the release preparation.
Algorithms.
sssp(dynamic single-source shortest paths: DynaMOSP’s SOSP update, byte-identical to MOSP-OpenMP@c352151 and MOSP-CUDA@e220ee2 on their 495-case golden corpus) andcycle_count(exact k-bounded directed simple-cycle histograms: the TruCy / DynTruCy update, bit-identical to CycleEnumeration-GPU@0a976ad on its CPU and CUDA corpora), each on the sequential, OpenMP and CUDA backends, within the performance gates against the originals. Both are stable (SemVer applies from 0.1.0).One update model (the template of thesis Chapter 3) in an internal framework, with the conformance kit, the scaffold
scripts/new_algorithm.py, anddyng::update(res, g, batch, r1, r2)for several results on one graph.The C++ API of
core/*,graph/*,update.hpp,sssp.hppandcycle_count.hpp, reviewed and frozen for 0.1 (ADR 0023); CMake packagedyng::dyng.The Python package
dyng(Python >= 3.12; one abi3 manylinux_2_28 x86_64 CPU wheel with the sequential and OpenMP backends; ADR 0011) and thedyngcommand line (ADR 0025), which reads and writes the originals’ file formats.Documentation: getting started in Python and C++, the update model, the algorithm pages with “Differences from the paper” and “Paper vs fixed code”, the C++, Python and CLI references, the history of the ported codes, and the developer guides.
The release certificate
benchmarks/results/0.1.0/(PLAN 8.3 and 8.6): golden parity on every backend (sssp 4950 of 4950 replays byte-equal, cycle_count 144 of 144), the release performance gate of both algorithms against the unpatched originals (sssp 132 of 132 gated regions, ratios 0.63-1.05; cycle_count 78 of 78, ratios 0.23-1.01; CUDA at locked clocks, ADRs 0018 and 0021), the sanitizers and the mutation checks; the benchmark-suite records of the papers inbenchmarks/paper/.
Known limitations of 0.1.0: no CUDA backend in the Python wheel (the plugin wheels dyng-cu12 /
dyng-cu13 follow in 0.1.x); on CUDA, sssp needs cooperative launch (the operators engine
follows in 0.2); cycle_count counts simple cycles only (no time-window or temporal modes, no
approximate TruCy mode); Linux x86-64 only. dyng 0.0.1 on PyPI was only the name reservation.
Final release (R011)#
Changed:
VERSION0.1.0,CITATION.cffversion: 0.1.0; this section, the release candidate’s[0.1.0rc1], renamed[0.1.0]with its link references.Docs: the status texts of the release candidate brought to the release (README, the documentation’s start page and install page,
SECURITY.mdwith its supported versions,CONTRIBUTING.md,SUPPORT.md, the roadmap and the developer plan):pip install dyngfrom PyPI.Added:
benchmarks/results/0.1.0/, the certificate of the release, carried over from 0.1.0rc1 (docs/developer/release.md, step 9): the library did not change since the measured commits, so the gates, the golden replays and the golden mutations stand; the distributions,ci/check.sh --parity,ci/gpu_local.shand the C++ test suites (the sanitizer presets, the mutation CTests;README.mdchanged) were run again on the final tree. The smoke test of 0.1.0rc1 from TestPyPI is recorded there.
Tag day (R012)#
Changed: the release date 2026-10-02, the day of the tag
v0.1.0(UTC), in this heading and inCITATION.cff’sdate-released(docs/developer/release.md, step 10).Docs: the author’s decisions recorded in
GOVERNANCE.md: theNOTICEwording confirmed as drafted (O3, 2026-10-01;NOTICEunchanged); Zenodo not connected for 0.1.0, so 0.1.0 has no DOI (2026-10-01); the licence expression of the distributions: no objection by the tag day, the approval of thepypideployment is the final confirmation. The release guide, the repository settings (Zenodo), the citing page, the roadmap, the developer plan and the R011 retrospective say so.Changed: the certificate’s checks of the
packagingandreposcopes (the distributions,ci/check.sh --parity,ci/gpu_local.sh) run again on the tag-day tree and recorded; the certificate written again (benchmarks/results/0.1.0/).
Release preparation (R010)#
Added: the benchmark-suite records of PLAN 8.5,
benchmarks/paper/ieee_tc_dyntrucy.yaml(cycle_count, the static and update cases of DynTruCy on the TU datasets DD, github_stargazers, twitch_egos and COLLAB; the temporal datasets wait for the time-window mode of 0.4) andbenchmarks/paper/ipdps25_dynamosp_sosp.yaml(sssp, the per-objective regions of DynaMOSP on roadNet-PA, roadNet-CA, rgg and road_usa_g, three batches each), with datasets (SHA-256 or recipe), batches, backends, runs, metrics, baselines and tolerances;parity/bench_suite.py(validate,run,summary) runs a suite through the A/B harnesses and writes its results JSON, listing the runs flagged for foreign CPU load (docs/developer/benchmarks.md).Added:
parity/certify.pywrites the parity certificatebenchmarks/results/<version>/parity.jsonand the tables of itsREADME.md(commit, hardware, driver, CUDA, the originals’ SHAs, every golden set with its result, the gate table, the checks), records the release checks (certify.py check) and compares the builds of a measured commit and of the release when they differ only in the registry’s metadata (certify.py equivalence);parity/mutate.pychecks that mutations of sssp fail its goldens on every backend.Added:
benchmarks/results/0.1.0rc1/, the certificate of the release candidate.Changed:
ssspandcycle_countarestable(their manifests, the registry and the tables generated byscripts/regen.py).Changed: the distributions’
License-Expressionnames the licences of what the wheel bundles:Apache-2.0 AND BSD-3-Clause AND MIT AND GPL-3.0-or-later WITH GCC-exception-3.1(dynG’s Apache-2.0, nanobind, robin-map and the GCC runtime; the author’s decision of 2026-09-30).ci/wheel_check.pychecks it inpyproject.tomland in every distribution’s metadata.Changed:
VERSION0.1.0rc1;CITATION.cffversion 0.1.0rc1, released 2026-10-01; the README and the documentation’s status line say “alpha: 0.1 release candidate”.Governance: the author lets the AI assistant push the release tags and create the GitHub Release on the author’s behalf, and keeps the approval of the
pypideployment (2026-09-30;docs/developer/release.mdsays who does what); themainruleset requires 24 checks (the Python, sdist, scaffold and API checks of M5 added), and the Actions allow-list includespypa/cibuildwheel(docs/developer/repository_settings.md).Fixed: the dataset parity tests run in builds without OpenMP.
Fixed (R010 review): the certificate requires each suite summary to cover the whole committed suite (SHA-256 of the suite file, every reading of its plan once, complete) with verified inputs; it names the driver of the measurements (the harness records it now), every committed fixture set of
cpp/tests/datawith its digest, original and test results (parity/fixtures/fixtures.toml), and each check’s scope (new:packaging,repo) and evidence (SHA-256 and a committed excerpt).bench_suite.pykeeps a narrowed run out of the release results (<suite>.partial.json) and never replaces records without--force; the sssp harness hashes its inputs when a run starts.ci/wheel_check.py --release-metadatachecksVERSION, this file andCITATION.cffagainst each other (inrelease.yml’sselectjob andci/tests);scripts/new_algorithm.pywrites its CHANGELOG entry again whenUnreleasedis empty; the PyPI description names the bundled licences.
Added#
The batch text format
.dgtof PLAN Section 5.7 (M5 review):dyng::io::read_batches<V, W>()/write_batches<V, W>()withbatch_file_optionsin<dyng/io/batch_io.hpp>(a tracked header; the API baseline gains these three declarations),dyng.io.read_batches()/write_batches(), and.dgtfiles fordyng cycle_count update --batch. The format:docs/api/file_formats.md. Vertex and hypergraph operations are reserved (0.3, 0.2).Documentation for 0.1 (M5, PLAN Sections 9.2-9.6): the Python API reference generated by sphinx-autoapi from
python/dyngand the committed stubs (no compiled module needed;docs/api/python/, with the package-wide rules of dtype dispatch, arrays, stale results, exceptions and threads), getting started in Python (pip install dyng, the ten-line quickstarts, “A first update in Python”), Python and CLI examples on thessspandcycle_countpages, the “Port research code” how-to (PLAN 6.3), the history pages of MOSP-OpenMP, MOSP-CUDA and CycleEnumeration-GPU, and the release process (docs/developer/release.md, PLAN 10.3).environment.ymlpins sphinx-autoapi 3.8.1.The README quickstarts (ten lines of Python and of C++, PLAN 9.6) are executed by the tests:
python/tests/test_doc_snippets.pyruns every marked Python snippet of the READMEs and the pages and compares its output, the CTestexample.readme_quickstartbuilds and runs the C++ one, andci/doc_snippets.py --check(inci/docs.sh) keeps them present and short.examples/python(first_update.py,sssp_update.py,cycle_count_update.py), tested against the originals’ outputs bypython/tests/test_examples.py..github/workflows/api-check.ymlandci/api_check.sh(PLAN 5.9): griffe compares the Python API with the base branch and fails on a breaking change without theapi-changelabel and a CHANGELOG entry; theapistep ofci/check.sh.environment.ymlpins griffe 2.3.0.Governance:
DCOis a required check of themainruleset (2026-09-30); the maintainer’s commits are SSH-signed.The Python package
dyng(M5, PLAN Sections 5.4 and 7.7; ADR 0011): a rootpyproject.toml(scikit-build-core, nanobind 3.1.0, one abi3 wheel for CPython >= 3.12, the version fromVERSION), the CMake optionDYNG_BUILD_PYTHONbuilding the extension moduledyng._core(stable ABI, nanobind andlibdynglinked statically, the sequential and OpenMP backends), and the typed layer inpython/dyng:Resources(sequential, openmp;cudaraisesNotSupportedErrorin the CPU wheel and names the CUDA plugins of 0.1.x) and the default resources,Graph(from_edges/from_csrwith dtype dispatch that never narrows ids silently, property presets by name),EdgeBatch,dyng.ssspanddyng.cycle_count(compute/update/Options/Result/Stats),dyng.update(graph, batch, *results), the exception hierarchy (InvalidArgumentErroris aValueError,FileFormatErroranOSErrorwith.path/.line, …),dyng.io(edge lists, Matrix Market, MOSP’s CSR, batches, distances, trees, histogram CSV),dyng.generators.legacy,dyng.testing(native oracles, pure-Python oracles, Hypothesis strategies),profile(),citation(),show_config(),algorithms(),__version__. Result arrays are zero-copydyng.Arrayviews (__dlpack__,__array_interface__,to_numpy()) that keep their result alive and raiseStaleResultErroronce it is updated. The GIL is released around native work. The stubspython/dyng/_core.pyiare committed and checked withpython scripts/regen.py --stubs --check;scripts/regen.pyalso generatespython/dyng/_algorithms.py. What 0.1 does not bind is listed indocs/developer/python_gaps.md.The pytest suite
python/tests(M5): API surface, dtype dispatch, DLPack / NumPy round trips, exception mapping, stale results, threads, a Hypothesis profile (random graphs and batches against pure-Python Dijkstra and brute-force cycle oracles), and Python-level parity with the committed goldens of MOSP-OpenMP (byte-identical files) and CycleEnumeration-GPU (identical histograms).environment.ymlpins nanobind, scikit-build-core and Hypothesis.The
dyngcommand line (M5, PLAN Section 5.6; ADR 0025), a console script of the Python package (alsopython -m dyng):dyng sssp compute|update(MOSP’s distance and tree files, byte-identical tomospPrep initandmosp),dyng cycle_count compute|update(CycleEnumeration-GPU’s histogram CSV),dyng prep mtx2csr|widen|cache|changes|init|expected(themospPrepsubcommands with their arguments and outputs, the binary cache included),dyng convert(MOSP CSR, Matrix Market, edge lists) anddyng generate mosp_changes|cycle_enum_batch. Option flags are the option fields in kebab case (--max-length). Reference:docs/api/cli.md; tests against the originals’ fixtures inpython/tests/test_cli.py.The distributions (M5, PLAN Section 7.7; ADR 0025):
[tool.cibuildwheel]and.github/workflows/wheels.yml(the sdist and the manylinux_2_28 x86_64 abi3 CPU wheel with libgomp bundled, a pytest subset in the built wheel under 3.12 and 3.13, install tests of the wheel alone, artifacts),.github/workflows/python.yml(editable install, stubs, pytest; the suite against an installed sdist on 3.12 and 3.13),ci/wheel_check.py(the 90 MB budget, tags, contents), and the local buildci/wheels.sh/ci/check.sh --wheels(docs/developer/wheels.md).release.ymlbuilds the real distributions for tags v0.1.0 and later throughwheels.yml(TestPyPI first, PyPI for final versions after the author’s approval); v0.0.1 still builds the name reservation. Nothing has been published.Framework (M3, internal-stable): the update template as code in
cpp/src/framework/:problem_base(CRTP hooks with no-op defaults, familiesfixed_pointandaggregate_delta),update_enactorandstatic_enactor(the fixed hook order, one profiler stage per implemented hook, the convergence cap withon_limit, the device error check),old_view/new_view(invariant I1),context, the policies, the budgets of the algorithm phase (invariant I9, with allocation and host-synchronization counters inDYNG_DEBUG_BUDGETSbuilds), compile-time conformance checks, and the participant adapter forrun_updatecomposition. The guide isdocs/developer/framework.md.ssspruns through the framework (M3):detail::sssp_problemwith the Tier A hooks on the sequential and OpenMP backends and the fused persistent kernel behindenact_fused(Tier B) on CUDA; migrated one backend per commit with the golden parity (495 / 495 on every backend) and the performance re-checked after each (parity/results/M3.md). No change to the public API, the profiler stages or the results.parity/perf_ab.py run --baseline-exetimes dynG against an earlier dynG build.cycle_countruns through the framework (M3):detail::cycle_count_problem, an aggregate-delta problem with the ownership ruleownership::min_member, runs the Tier A hooks on the sequential and OpenMP backends (counton the old view subtracts on G_t,counton the new view adds on G_{t+1},finalizeapplies the signed delta) and the ported CUDA kernels behindenact_fused/compute_fused(Tier B), with the resident device graph and Step 0 once per update (ADR 0020) unchanged; migrated one backend per commit with the golden parity (72 / 72 on the CPU and the CUDA corpus) and the performance re-checked (parity/results/M3.md). The public multi-resultdyng::updatenow composes two framework problems. Profiles: under set semanticscycle_count.normalizeis called twice per update (the framework’s Step 0 and the hook that takes its lists), and on CUDA the ported code’s stages sit inside a newcycle_count.enact_fusedstage; every other stage is unchanged. The CUDA engines of both algorithms and the graph’s device paths count their host synchronizations for the budgets (I9).The conformance kit (M3, PLAN Section 8.2;
cpp/tests/conformance/,docs/developer/conformance.md): checks C0-C12 for every registered algorithm on every backend and graph type, from atest_traitsspecialisation and one lineDYNG_CONFORMANCE_SUITE(<name>)(dyng_<name>_conformance_tests, labelscpu;conformance;<name>, anddyng_<name>_conformance_cuda_testsin CUDA builds); sssp and cycle_count pass it on sequential, OpenMP and CUDA. C8 runs inDYNG_DEBUG_BUDGETSbuilds (the dev presets) and counts host heap allocations too (a countingoperator newin the conformance executables).The algorithm registry:
dyng::algorithms()/dyng::find_algorithm()in<dyng/core/registry.hpp>(name, title, family, container, maturity, determinism, oracle kind, backends, cite keys of every algorithm built into the library), generated from the manifests;dyng::citation()knows every registered algorithm.scripts/regen.py(the algorithm tables of the README, the landing page and the algorithms index, the CODEOWNERS block, the registries;--checkin pre-commit,ci/check.shandlint.yml; it enforces the registration rules of invariant I8) andscripts/new_algorithm.pywithcpp/src/algorithms/_template(a fixed-point or aggregate-delta algorithm on the host backends that builds and passes the kit on the first build;ci/scaffold_check.sh, CTestscaffold.new_algorithm, jobscaffoldofcpu.yml). The manifests gaincomputes,paperandsince; the planned algorithms are listed incpp/src/algorithms/planned.toml. The README has the generated algorithm table.The 0.1 API freeze (M3, ADR 0023, accepted under delegation; ADR 0006, the algorithm contract, accepted with it): the review of
core/*,graph/*,update.hpp,sssp.hpp,cycle_count.hppand the top-level headers, and the committed public-API listingcpp/tests/api/api_snapshot/public_api.txt, generated from the Doxygen XML byci/api_snapshot.pyand checked byci/docs.sh(so by thedocsworkflow andci/check.sh): a change of a public signature, default value, field or enumerator fails until it is reviewed and the baseline updated (docs/developer/api_review_checklist.md, “Updating the API baseline”). The frozen headers are markedfrozen,io/*,generators/*andtesting/*tracked(frozen in M5).to_string()forengine,determinism,memory_space,copy_policy,algorithm_family,container_kind,maturity_levelandoracle_kind(the enumerators’ own names, as in the manifests).Reviewed API sketches of the later algorithms, written against the frozen contract:
docs/design/sketches/(mosp, thehypergraphwithhyperedge_batch,triad_count,label_propagation,hyper_sssp).The “Add an algorithm” guide outline (
docs/how_to/add_an_algorithm.md, PLAN Section 9.4) and the M3 retrospective with the re-estimate (docs/developer/retrospectives/M3.md); the M3 gate suites on the final code inparity/results/M3.mdsection 4.Governance: ADRs 0020 and 0021 accepted by the author (2026-09-29); technical ADRs may be accepted under delegation; the maintainer’s commits are SSH-signed so that the DCO app exempts them.
ADR 0018 accepted (option B): the CUDA performance gate is read with the GPU clocks locked for the whole A/B; default-clock readings are recorded, not gated.
Repository bootstrap: Apache-2.0 license, NOTICE, CITATION.cff, AUTHORS, governance and contribution guides, ADRs 0001 (name), 0002 (license and credit), 0004 (naming) and 0014 (approval checkpoints).
Project infrastructure (M4): SECURITY.md with the disclosure process, SUPPORT.md, MAINTAINERS.md, a complete CONTRIBUTING.md, eight GitHub issue forms and the issue chooser, the pull request template with the review checklist, CODEOWNERS, the DCO app configuration, the label taxonomy (
.github/labels.yml, applied by thelabelsworkflow;docs/developer/labels.md),ci/github_meta_check.py(a pre-commit hook),.readthedocs.yaml(not connected yet) and the repository settings guide (docs/developer/repository_settings.md).Documentation site (M4): Sphinx + MyST + pydata-sphinx-theme + Breathe over the Doxygen XML, in the Diataxis sections (getting started, tutorials, how-to guides, explanation including the update model, reference with the curated C++ API and file formats, developer pages with the ADRs, retrospectives and the parity guide); a landing page, “How to cite” from
docs/references.bib, the public roadmap (docs/roadmap.md) and the short plan (docs/developer/plan.md).ci/docs.shbuilds it with warnings as errors and checks internal links (--doxygen-onlyfor the Doxygen check alone); thedocsworkflow builds it on hosted runners fromenvironment.yml(which now pins the Sphinx tools) and uploads the site.Workflow hardening (M4): every
actions/checkoutsetspersist-credentials: false,release.ymlpasses step outputs to its scripts throughenv:, dependabot waits 7 days before proposing a new action release; pre-commit runsactionlint(with shellcheck) andzizmoron the workflows, andci/github_meta_check.pyenforces the least-privilege and SHA-pinning rules (--verify-pinschecks each SHA against its version tag).Contributor infrastructure after review (M4): a hosted clang-tidy naming job (
tidyinlint.yml;DYNG_CHECK_ONLYinci/check.sh), the action pins verified in CI, timeouts on every job, the first-interactionwelcomeworkflow;ci/docs_links.pychecks links to repository files and the site’s anchors;examples/cpp/first_update.cpp(run by CTest, quoted by the docs);DYNG_ORIGINALS_DIRfor the parity harness; the API review checklist and the provenance record (docs/developer/); a Code of Conduct escalation path and GOVERNANCE contacts.Build system: CMake >= 3.30 with presets
dev,release,relwithdebinfo,cpu-only,asan,tsanandparity; thedyng-devconda environment (environment.yml) andscripts/dev_env.sh; install and export ofdyng::dyngforfind_package(dyng).Core: error hierarchy with
DYNG_EXPECTS/DYNG_FAIL; backends andresources(sequential, OpenMP with a thread count);stream_ref;memory_resource_refand the host memory resource;array_view;buffer; host copies; logging with a replaceable sink; an instance-based profiler with<algo>.<hook>stage names;citation().Quality: GoogleTest unit tests with CTest labels, the header self-containment check,
ci/check.sh, the Doxygen check, pre-commit (clang-format, REUSE, codespell), and thelintandcpuGitHub workflows.Graph:
graph<V,E,W>(pimpl, host storage, compact rows, objective-major weight columns, stored in-edges, version counter),graph_view,csr/csr_view,edge_list/edge_list_view,edge_batch/edge_batch_view,apply_summary,graph_propertieswithrow_order,multi_edges,batch_semanticsand the presetmosp_compatible();graph::applyis MOSP’sapplyChangeBatch()ported straight (ADR 0010).I/O: Matrix Market reader and writer (seeded random weights bit-exact with
mospPrep mtx2csr), the MOSP text CSR,insert.txt/delete.txtbatches, distance and SSSP-tree files; strict parsing withio_errorcarrying path, line and column (docs/api/file_formats.md).Byte-parity fixtures for the updated CSR, its transposition and the weight-increase flags against MOSP-OpenMP@c352151 (
parity/fixtures/graph_io/).sssp:compute()andupdate()on the sequential backend (MOSP’ssequentialSOSPUpdateadapted into hooks) and the OpenMP backend (MOSP-OpenMP’ssospUpdateCpu/sospFromScratchCpuported straight); canonical trees identical across backends and byte-identical to MOSP-OpenMP@c352151 on the test corpus;result::from_arrayswith canonicalization andvalidate_inputs;stale_result_errordetection (docs/algorithms/sssp.md, ADR 0006).update_stats, anddyng::update(res, g, batch, results...)/dyng::update_each()to apply a batch once for several results.dyng::testing(installed target):dijkstra()with lowest-id ties andcheck_sssp_tree().tools/compat/dyng-compat-mosp(drop-in clone of the per-objective part of MOSP’smospdriver and ofmospPrep init), thesssp_updateexample,parity/timed_regions/sssp.tomland the sssp byte-parity fixtures (parity/fixtures/sssp/).The parity harness (
parity/, ADR 0013):references.toml(MOSP-OpenMP c352151, MOSP-CUDA e220ee2 and their baseline SHAs),build_reference.sh(verifiedgit archivescratch copies, unpatched and patched, archive-build check), additive export tools,export_goldens.py(the sssp golden corpus, now 495 cases, with the originals cross-checked, reproducible export),goldens.toml,compare.py(CTest labelparity),perf_ab.py(A/B/A/B under the perf lock), and the M1a parity certificateparity/results/M1a.md.dyng-compat-mosp --write-graphwrites the updated graph in MOSP’s CSR text format.A pure-Python name-reservation package
dyng0.0.1 (tools/name_reservation/) and the Trusted Publishing workflowrelease.yml.ci/check.sh --parity(the golden replay as part of the local gate) and a clang-tidy step with the naming rules of ADR 0004;ci/doxygen_coverage.py(a@briefon every public entity, every entity in a group,@backends/@determinism/@paperoncomputeandupdate) run byci/docs.sh, also as the CMake targetdocs-doxygen.CODE_OF_CONDUCT.md(Contributor Covenant 3.0),SECURITY.mdandSUPPORT.md.The M1a retrospective with the acceptance record and a re-estimate of the roadmap (
docs/developer/retrospectives/M1a.md).legacy_batch_options::mosp_lenient(MOSP’s accept/reject rules for batch files; used bydyng-compat-mosp),sssp::stats::packed_parentson both CPU backends, and the golden groupnoncanonical(107 cases with perturbed tie parents; 495 golden cases in total).ci/provenance_check.py(provenance headers of ported files), ruff lint and format for the Python harness, smoke tests of the harness (parity/tests), Clang 17/18 jobs incpu.yml.resourcesowns a workspace pool:compute()/update()lease the engines’ scratch memory from it, so results run through one handle share one workspace (ADR 0015);resources::release_workspaces()andresources::workspace_bytes().graph::from_csr(res, csr&&, props): takes over the arrays of a CSR that already has the requested form.The OpenMP A/B on roadNet-PA, roadNet-CA, rgg_n_2_20_s0 and road_usa with the PLAN 8.6 gates (
parity/results/M1b.md);perf_ab.pygatesend_to_endandapplyat 1.10x.CUDA core (ADRs 0003 and 0016):
DYNG_ENABLE_CUDA=ONbuilds (cmake/cuda_architectures.cmake:nativefor development, the release list per toolkit, CUDA >= 12.4), the presetsdev-cuda,release-cuda,parity-cuda,sanitize-cuda,ci-cuda12andci-cuda13;resources::cuda(device, stream)with the device’s capabilities recorded once, a device guard on every call,synchronize()andwarm_up()(context, every library kernel through the kernel registry, stream and pool);cuda_async_memory_resource(own stream-ordered pool, the default throughdefault_device_memory_resource()) andpinned_host_memory_resource; devicebuffer<T>and copies between every pair of spaces; the privateDYNG_CUDA_TRY,DYNG_CUDA_TRY_NO_THROW,DYNG_CHECK_KERNEL, the sticky device error word, the fill kernels, CCCL 3.x memory-resource adapters and device workspaces (scratch_buffer) in the pool of ADR 0015.ci/gpu_local.sh(the local GPU gate:ctest -L gpuon GPU 1, the CPU tests of the CUDA build, compute-sanitizer memcheck, clang-tidy on the CUDA branches),ci/build_cuda.shand the compile-only workflowcuda-build.yml(CUDA 13.1.1, 13.3.1 and 12.9.2 containers, register and library-size report).ssspon the CUDA backend (ADR 0017): MOSP-CUDA@e220ee2’s persistent cooperative kernel ported verbatim as the fused engine (options::cuda_engine:automatic/fused;not_supported_errorwithout cooperative launch,operatorsin 0.2);compute(),update(),from_arrays()(host or device arrays) andclone()across host and device; result arrays in device memory. Byte-identical to MOSP-CUDA on all 495 golden cases; the CUDA test executabledyng_sssp_cuda_tests(labelgpu) runs the shared sssp suites on cuda and compares cuda with the host backends on randomized inputs.Graphs built with CUDA resources: a resident device copy per graph state (out- and in-edges, objective-major weight columns; the in-edges built on the device as MOSP-CUDA’s
uploadDeviceGraphdoes), uploaded on first use and inside the commit ofdyng::update.profiler_options::cuda_events: device times of profiler stages from CUDA events.generators::legacy::mosp_changes(): MOSP’s change generator (mospPrep changes), bit-exact for fixed seeds, with committed fixtures from both originals;dyng-compat-mosp changes.dyng-compat-mosp --backend cuda [--device d](CUDA-event times in its--timingCSV),compare.py --configs cuda, the CTest golden replayparity.sssp.mosp_cuda_e220ee2, andperf_ab.py run --backend cudaagainst the unpatched MOSP-CUDA;ci/gpu_local.shreplays the golden corpus on cuda.The M1b parity certificate (
parity/results/M1b.mdsections 7-12): byte parity with MOSP-CUDA@e220ee2 and MOSP-OpenMP@c352151 on all 495 golden cases for every backend and both edge offset types, and the CUDA and OpenMP performance gates on roadNet-PA, roadNet-CA, rgg_n_2_20_s0 and road_usa; ADR 0018 (the GPU clock state in the CUDA gate, proposed).parity/export_goldens.py --reference MOSP-CUDA --compare-to(the corpus from MOSP-CUDA’s own tools, compared file for file with the committed one);compare.pyconfigurations with/int32or/int64;dyng-compat-mosp --edge-type;perf_ab.py kernels(the fused kernels of both programs under Nsight Compute at locked clocks) andperf_ab.py edge-type.The
sssp_updateexample takes thecudabackend (CTestexample.sssp_update.cuda, labelgpu, skipped without a device); the README describes the CUDA build, the CUDA presets and the local GPU gate; the sssp page documents the CUDA engines, the determinism level, the performance against both originals and a “paper vs fixed code” section.The M1b retrospective with the acceptance record and a re-estimate of the roadmap (
docs/developer/retrospectives/M1b.md).M2a, CycleEnumeration-GPU graph pieces:
graph<V, E, unweighted>((int32, int32) and (int32, int64)) andis_unweighted_v;batch_semantics::as_setswith the presetbatch_semantics::set()andgraph_properties::cycle_enum_compatible()(Step 0 is the original’sprepare_batch(), the apply its sorted-rowapply_batch(); byte-equal CSR and normalized batches on committed fixtures and on the TUDataset graphs; ADR 0010 amendment);edge_batch::insert_edge(u, v)without weights.io::read_edge_list/io::write_edge_list: the original’s parallelfrom_charsparser (TUDataset*_A.txt, comments, commas, signs, timestamps, Matrix Market of every symmetry), generalized with weight columns,vertex_ids::as_is, symmetrization, kept duplicates and self- loops and a thread cap (docs/api/file_formats.md).generators::legacy::cycle_enum_batch(): the original’sgenerate_batch(), bit-exact, with the library-owned reproductions of libstdc++’s 64-bituniform_int_distributionandshuffle.dyng::testing:oracle_simple_cycles(subset DP),brute_force_simple_cyclesandedge_set_after_batch(the recount of a batch).Parity harness: the CycleEnumeration-GPU@0a976ad reference (
references.toml, OpenMP and CUDA build as in its RESULTS.md), its exporterexport_cycle_enum, the fixture scriptparity/fixtures/cycle_enum/, and the dataset digest test (CTest labelparity).cycle_counton the sequential and OpenMP backends (M2a,<dyng/cycle_count.hpp>,docs/algorithms/cycle_count.md): exact k-bounded directed simple-cycle histograms;compute()is CycleEnumeration-GPU’s sequential Johnson and OpenMP counter,update()its DynTruCy-styleupdate_static_histogram[_openmp](count(-) on G_t, one apply, count(+) on G_{t+1}, edge-id ownership), ported straight; every batch semantics accepted through Step 0 on G_t (detail::compute_structural_change). Histograms bit-identical to the original’s on the committed fixtures (80 random cases, k = 2..7 and unbounded; fixture graphs and generated batches) and, with--datasets, on the TUDataset graphs (CTest labelparity). The two recorded mutations are built into copies of the library and must fail the randomized suite (CTestcycle_count.mutation.*, labelmutation). The host port of the original’s pruned lower_bound search of its CUDA kernels (dfs.hpp) is tested for M2b.io::write_histogram_csv(std::ostream&, counts)(the original’s# cycle_size, num_of_cycles…Total, N; PLAN 5.7’s name),tools/compat/dyng-compat-cycle-enum(the originalcycle-enumCLI, byte-equal standard output on the committed CLI cases), thecycle_count_updateexample andparity/timed_regions/cycle_count.toml.update_participant::reads_prepared_graph():dyng::updatebuilds the in-edges (or the device copy) in the commit only for results that read them.Parity harness for
cycle_count(M2a): the golden corpus of CycleEnumeration-GPU@0a976ad (parity/export_goldens.py cycle_count: 24 cases, histograms, update priors, deltas and generated batches, exported twice identically), its replay (parity/compare.py cycle_count, CTestparity.cycle_count.cycle_enum_0a976ad), the OpenMP A/B (parity/perf_ab.py cycle_count run) anddyng-compat-cycle-enum --write-batch. Results inparity/results/M2a.md: 72 of 72 replays byte-identical (sequential, OpenMP 4 and 56 threads); every OpenMP-56 gate met (at1148d15: static end to end 0.64-0.96x, update 25K+25K 0.76-0.96x of the original).M2a close-out:
docs/algorithms/cycle_count.mdcompleted (graph requirements, determinism, the performance table, ‘Differences from the paper’: exact k-bounded enumeration, not the paper’s approximate kappa-truncated TruCy, and the ‘Paper vs fixed code’ table of CycleEnumeration-GPU’s fixes); the README listscycle_counton the CPU backends (CUDA: M2b); the M2a retrospective. The TruCy / DynTruCy paper is cited as submitted.M2a review fixes (
cycle_count, graph, io, tests, harness): the searches keep their paths on explicit stacks (the default unbounded options no longer overflow the thread’s stack; a 300,000-vertex ring is counted and updated in the tests); histograms and engines are sized by min(k, max(n, 2)) and the update’s per-thread counters grow with the cycles found, so an unbounded update costs what its searches cost (it was O(changes x n)); the ownership index is a flat table that allocates nothing in a steady-state update (I9); the OpenMP phase sizes its scratch in the region that uses it;static_asserton unsupported graph types;as_setscombinations that cannot apply a batch are rejected at graph construction; the stats and the unbounded cost per backend are documented; seed replay (DYNG_TEST_SEED,DYNG_TEST_SEEDS) in the randomized cycle_count suites; a third mutation test (skip_workspace_resize);DYNG_STDLIB_ASSERTIONS(_GLIBCXX_ASSERTIONSin Debug builds); the contamination monitor and isolation experiments of the cycle_count performance harness (parity/contamination.py,--baseline-exe,parity/experiments/cycle_enum); the parity certificateparity/results/M2a.mdre-measured at0679ed1(72 of 72 replays; static end to end 0.53-0.93x, update 0.44-0.65x of the original, COLLAB k = 3 0.29x) with the improvements isolated in their own section.
Fixed (M5 review)#
Result arrays exported from Python (
np.from_dlpack,np.asarray,to_numpy(copy=False), DLPack consumers) read freed memory after an update that grew the vertex set: the result’s state now lives in reference-counted storage, every export holds a reference to the state it views, and an update copies the state first while an export is alive (copy-on-write). The staleness counter ofdyng.Arraymoved into the native result, socopy.copy(result)can no longer bypassStaleResultError;Result.__copy__/__deepcopy__clone (ADR 0011 item 4).EdgeBatchcached converted id arrays but read same-dtype arrays live, so a refilled batch applied a mix of old and new values depending on the id dtype; it now converts its arrays at every use.Scalar arguments and option fields were coerced with
int()/bool()(sssp.compute(g, 1.9)ran from vertex 1,max_length=2.7counted with bound 2); they are checked withoperator.indexsemantics and raiseInvalidArgumentErrornaming the argument.dyng.profile()andResources.copy_policychanged the shared resources handle while other threads’ calls read it; they now wait until no native call runs (a writer-preferring native-call lock, so the wait ends under load).Buffer-protocol inputs (
array.array('q'),memoryview) now declare their element type for the dtype dispatch (int64 buffers no longer select int32 ids).pickle/copyof a usedEdgeBatchfailed; batches,Resources(rebuilt),Array(a NumPy copy) now pickle, andGraph/ results explain the supported path (ADR 0011 item 13).The native module is chosen on first use instead of at
import dyng, sodyng.use_cpu_only()works as PLAN 5.4 says and a plugin process never loadsdyng._core(ADR 0011 item 14).dyng cycle_count updatewithout--max-lengthran an unbounded update that did not finish; it is a usage error, as in the original. sssp CLI errors name the command line’s flags (--random-weights),--sourceis range-checked with a readable message, and the library’sdyng:prefix is no longer doubled.The typed layer passes
mypy --strict(checked inci/python.shandpython.yml), anddyng.updatehas overloads for its stats types.Packaging: the wheel carries
THIRD_PARTY_LICENSES.txt(nanobind, robin-map, the GCC runtime); the sdist leaves out the repository-only files (the CC-BY-SA-4.0 Code of Conduct, governance, tool configuration); the version uses[[tool.dynamic-metadata]]and scikit-build-core is bounded below 2;release.ymlrequires a canonical PEP 440VERSIONand derives the pre-release flag from it;wheels.ymlbuilds the wheel from the sdist; the local toolchain pins the GCC 12 runtime;release.mdsetsVERSIONtoX.Y.ZrcNfor a candidate.ci/python.shno longer re-points an environment whosedyngis an editable install of another checkout (it uses a throwaway venv);python.ymlbuilds the module with Clang 18 too;DYNG_BUILD_DOCS=ONbuilds the site (targetdocs).Documentation: the “add an algorithm” guide’s bindings step, the CLI in the algorithm pages’ mapping tables, the cycle-enum flag table, the MOSP-OpenMP history (the
-O3baseline, the packed-format boundary fix), the CUDA message of the CPU wheel, and a getting-started link.
Changed (M5 review)#
dyng.Array.__dlpack__()withoutmax_version >= (1, 0)(the unversioned capsule, which cannot mark an export read-only) returns a copy;copy=Falsethen raisesBufferError.dyng sssp computeno longer has--validate-inputs(it only checks trees read withupdate --init).
Fixed (M3 review)#
Budgets (invariant I9) count per calling thread and exclude the profiler’s
sync_stagessynchronizations; an excess is logged in a Debug build and throws only under strict budgets (DYNG_STRICT_BUDGETS=1, armed by the conformance kit), so a correct update on another thread no longer fails and poisons its result. The half before the commit is measured too (cycle_count’s CUDA budget: 4 host synchronizations).The framework chooses and checks the engine before the commit (an engine that does not exist or cannot run, or
fallback_recomputewithout a recompute hook, leaves the graph and the result unchanged);engine::automaticpicks a fused engine only where the problem’s newfused_available(ctx)says it runs.dyng::update()/update_each()dispatch throughdetail::participant_of<container_t>::run(), so a later container (the hypergraph) needs no change toupdate.hpp; passing the owning batch or a non-container stops at a plain-Englishstatic_assert;update_each()rejects an empty list and a list in device memory (invalid_argument_error, before anything changes).edge_batch::insert_edge/delete_edgeandedge_list::add_edgeare strong under allocation failure (a failed call leaves the arrays as they were);to_vector()reports allocation failure asout_of_memory_error. Every mutating member of the container, batch and result classes states its guarantee (@guarantee, checked byci/doxygen_coverage.py).edge_list’s fields are in the order ofedge_list_view(num_weightslast) (breaking for positional brace-initialization ofedge_list; the API baseline is updated).Tooling:
regen.pywrites a space between long CODEOWNERS paths and their owners and rejects a manifest that omits a backend whose source exists;new_algorithm.pyrefuses names that cannot compile, removes only scaffolds (restoring theirplanned.tomlentry) and writes the API page;ci/docs.sh --update-apiupdates the API baseline (the documented&&command never could).The kit: C4 is exercised on a fake two-engine algorithm, the registration rules have compile-fail tests, and C0 catches a manifest that drops a backend.
Measurement:
parity/perf_ab.py memorymeasures sssp’s device memory against MOSP-CUDA (0.81-0.86x; cycle_count 1.000x); the gate suites, parity replays and the readings against pre-M3 dynG were repeated on the final code (parity/results/M3.mdsection 5, which also corrects the conclusions of section 4.2);parity/experiments/sssp_stage_ab.pycompares two builds stage by stage.sssp::compute()/update()stop at a plain-Englishstatic_assertfor an unsupported graph type (they failed to link), as cycle_count’s do;sssp::result’sdistance_tmust bestd::int64_t(the only width in 0.1). The scaffold’s template follows the same rule.to_string()forrow_layout,row_order,multi_edges,batch_semantics::existing_insert/missing_delete/self_loopandcycle_count::search_method/cycle_mode/cuda_scheduler/cuda_work_items.profilerrecording is thread-safe (copies of aresourceshandle share it and may run concurrently); graphs, results anddyng::update()document their thread safety.The API snapshot also lists the
dyng::detailcontract of the public signatures (update_traits,participant_of,stats_of, the*_supported_vtraits), every macro, and the includes of<dyng/dyng.hpp>; macros need@ingroup.Documentation: no references to the unpublished plan in the public headers; “deterministic per backend” defined for
update_stats::engine_usedandsssp::stats::packed_parents; the sssp synchronization text and the umbrella header’s description corrected; sketch fixes (mospstage names,hyper_sssp’s budget guarantee,triad_count, the hypergraph’shyperedge_list).
Fixed (M3 acceptance)#
cycle_count’s CUDA DD 25K + 25K update read 1.02x of the pre-M3 dynG: the redundant host copy of the normalized lists is gone (see “Changed”); 0.989-0.998x now.
-DDYNG_ALGORITHMS=<one algorithm>(PLAN 9.4) links: sssp is added to every subset.Measurement (ADR 0024, accepted under delegation): a dynG-against-dynG A/B cycles its rounds through heap layouts (
perf_ab.py run --layouts N,cycle_count_perf.py run --layouts N), because the same two builds read 0.99x or 1.10x of each other depending on the length of the--timingfile name;parity/ab_modes.pyreads bimodal regions mode by mode with a bootstrap interval;parity/experiments/cycle_count_stage_ab.pyandsssp_layout_scan.py. Every suite re-measured on the final code (parity/results/M3.mdsection 6): the gates against the originals hold, and no gated region regresses by more than 2 % against019ef13.
Changed#
Exception guarantees (the 0.1 API review):
compute(),update(),from_arrays(),graph::apply(),dyng::update()anddyng::update_each()state them in a new@guaranteeparagraph (strong before the commit; basic after it, with the result poisoned;graph::apply()strong), andci/doxygen_coverage.pyrequires it. The checker takes the algorithm namespaces from the manifests (it checked onlyssspbefore).dyng::update(),update_each()anddyng::algorithms()report host allocation failures asout_of_memory_errorinstead of lettingstd::bad_allocleave the library;sssp::compute()/update()documentcuda_error.The header self-containment targets (
cpp/tests/api) also fail when a public header includes a CUDA, CUB, Thrust or libcu++ header.Budgets (I9): a run that grows a reusable array on purpose (
detail::note_reservation(): a new workspace, a grown scratch buffer or per-thread list, a grown result) is a reserving run whose allocations are reported, not failed; the graph’s own materializations inside an update (its device copy uploaded on first use,detail::container_scope) are container work and never held against a problem’s budget;run_update()records the commit’s counts. sssp and cycle_count declare their budgets (no allocation once reserved; 0 host syncs on the host backends, 1 and 2 on CUDA), checked by the update enactor inDYNG_DEBUG_BUDGETSbuilds.OpenMP
sssp:list_gatherkeeps its offsets in an inline array (up to 256 threads) instead of astd::vectorper gather, so the near-far rounds allocate nothing (found by C8); the same trees.A build of a subset of the algorithms (
-DDYNG_ALGORITHMS=...) configures: the suites of an algorithm are built with it, and the examples and compat tools (sssp and cycle_count) only when both are built. sssp is part of every build (the library’s MOSP batch generator and the shared suites call it): a list without it gets it added, so-DDYNG_ALGORITHMS=<name>builds and links (it failed to link before);ci/scaffold_check.shbuilds every target of such a subset.CUDA
cycle_countunder set semantics reads the framework’s normalized change lists (their device copy and their lengths) instead of copying them into its workspace first; the same histograms and stats (the DD 25K + 25K update: about 0.07 ms less of 3.4 ms)..github/workflows/welcome.ymlno longer greets owners, organization members and repository collaborators (the event’sauthor_association); first-time outside contributors are greeted as before.The default edge offset type is
int32:dyng::graph<>isgraph<int32, int32, int32>, and building or updating a graph past 2^31 - 1 edges throwscapacity_errornaming the int64 instantiation (ADR 0009, from theedge_tbenchmark).OpenMP
sssp: a near-far round passes three barriers instead of six (list_gather::gather_pair(),nowaitloops) and the per-thread lists live in the workspace on their own cache lines; the same trees, 0.63-0.89x of MOSP-OpenMP’s time on the 10K local batches.The Doxygen convention check (
ci/doxygen_coverage.py) requires@syncor@asyncon every CUDA-capable public function: those takingresources, astream_refor amemory_resource_ref, and the stream-ordered members ofbufferandresources; the memory resources,bufferandresourcesdocument how they order their work.Placement (PLAN 4.6 rule 5): a graph belongs to the backend of the resources that built it; sssp on resources of the other kind (host backends versus cuda) throws
invalid_argument_errorinstead of copying, andgraph::clone(res)/result::clone(res)move a graph or a result.graph::from_*,clone,reserve,apply,to_csrandcheck_integrityaccept CUDA resources;graph::space()isdevicefor a CUDA graph.dyng::testing::check_sssp_tree(g, r)copies a device result to the host first.The host-side work of a call with CUDA resources uses the OpenMP threads; since the M1b review their count is fixed when the handle is created (
resources::cuda(device, stream, host_threads)) and reported bynum_threads().The CPU presets (
dev,release,relwithdebinfo,parity) pinDYNG_ENABLE_CUDA=OFF; a build without a preset enables CUDA when a CUDA compiler is found. With CUDA built and a device visible,default_backend()iscuda.resources::set_memory_resource()on a CUDA handle accepts device and managed resources; the host sanitizer flags apply to host code only.The host transposition runs in parallel on the OpenMP backend (same, deterministic result).
io::read_csr_tripletreads its three files concurrently (same result and the same first error as reading them one after the other);dyng-compat-mospreads and writes its files concurrently, like the original driver. dynG now linksThreads::Threadsprivately.sssp: the sequential backend uses the tie rule ofsospUpdateCpu(an improved vertex offers its (distance, id) pair) instead of the re-scan ofsequentialSOSPUpdate, so both backends return the same tree also from non-canonical input trees (ADR 0006); the documentation states the tie rule.A failed (poisoned)
sssp::resultnow throws on every use, not only onupdate(); both backends report a parent cycle of an imported tree.Results also record the identity of the graph state, so a result used with another graph (or a reassigned graph variable) throws
stale_result_error(ADR 0006).resourcesmoves share the handle like copies; the log sink is called without the logging lock; host allocation failures leave the library asout_of_memory_error.The OpenMP performance A/B loads its regions from
parity/timed_regions/sssp.toml, counts the moved first-touch cost, maps the original’sprepareand end-to-end timers completely, and works underflock(1);build_reference.shkeeps its logs and fingerprints each build.Tests run with
OMP_WAIT_POLICY=PASSIVE; the lint workflow uses Doxygen 1.18.0, asenvironment.yml(now pinned) does.sssp::resultno longer owns a workspace; the M1a pre-touch of every result’s frontier lists is removed, and the A/B compares every objective as measured (ADR 0015).Graphs build their in-edges on first use (not at construction, not in
graph::apply());dyng::update()builds them inside the commit, for the updated graph only.OpenMP backend:
graph::apply()assembles the new CSR in parallel,from_csr()checks in parallel,sssp::result::from_arrays()imports and validates in parallel (same results and messages).I/O: files are read with one allocation and one read; distance and tree files are parsed in one pass (the strict reader reports errors); CSR weights are parsed straight into their objective-major columns.
Fixed (M1b review)#
CUDA
sssp: the fused kernel countsinvalidatedper thread instead of reading the candidate-list counter while other threads append insertion heads to it (a data race inherited from MOSP-CUDA@e220ee2; the trees were never affected).ci/gpu_local.shruns the CUDA sssp suite undercompute-sanitizer --tool synccheck.CUDA
sssp: vertex growth releases the old result arrays on the updating stream, after the copies that read them (buffer::set_stream()).Pooled workspaces are ordered across streams (a CUDA event per workspace): copies of a default-stream handle used on two threads run on two per-thread streams, which the docs now state for
resources,stream_refandbuffer;release_workspaces()waits for the last use.Inputs in device memory are accepted everywhere and copied to the host once under
copy_policy(errorrefuses,warnlogs,allowlogs at debug and acts aswarnwhile a profiler is attached): batches ofgraph::apply(),dyng::update(),update_each()andsssp::update(), graph builds andsssp::result::from_arrays(). A batch with only some arrays in device memory no longer crashessssp::update().copy(res, src, dst)andupdate_each()deduce their types from mutable views;to_space()allocates from the resource that matches the requested space;graph::to_backend(res)exists and the placement errors name it.DYNG_WITH_NVTX:profiler_options::nvtxemits NVTX ranges per stage.Documentation:
@syncofsssp::compute()/update()names the graph upload;@syncand@throwson the synchronous allocation members andbuffer; the Doxygen check covers them.Build and CI:
nativeCUDA architectures without a visible GPU fall back to the release list with a warning;cuda-build.ymlbuilds CUDA 13.4.1 (the latest 13.x) and caches ccache; a GCC 13/14-Werrorfalse positive in a test is gone; thecompat_mospcuda tests skip without a device (ci/gpu_local.shrequires one);ci/check.shand the clang-tidy steps run under the shared perf lock.Harness:
perf_ab.pyrecords a contamination monitor per round (foreign CPU load, run queue, GPU P-state and clocks, foreign GPU processes) and repeats contaminated rounds; the CUDAapplyregion includes the host tree copies (sssp.import).
Fixed (M1b acceptance)#
Harness:
perf_ab.py run --backend cudalocks the GPU’s clocks for the whole A/B without root (--lock-clocks boost|base|none, defaultboost; Nsight Compute holds the lock through the idle helperparity/clock_lock/clock_holder.cu, neither timed program is profiled), checks every busy GPU sample against the locked clocks and resets the clocks at the end (ADR 0018, rule 4).Build:
DYNG_WITH_NVTXdefaults to ON only when the toolkit’snvtx3/nvToolsExt.hexists (CUDA::nvtx3alone does not guarantee the headers);cuda-build.ymldocuments theLD_LIBRARY_PATHa conda-forge toolkit needs for the local equivalent.
Integration 1 (M1b and M4 merged)#
mainmerges the project infrastructure (M4, branchm4-infra) with a merge commit on top of the CUDA backend (M1b).ci/check.shkeeps M4’s steps (clang-tidy naming, harness tests,DYNG_CHECK_ONLY, the Sphinx site) under M1b’s shared-lock wrapper; CONTRIBUTING.md and the README describe the CUDA presets and the local GPU gateci/gpu_local.sh.cuda-build.ymlmeets the workflow checks of M4 (a job timeout, no persisted credentials).Documentation site: the M1b ADRs (0003, 0009, 0015-0018) and retrospective, an API page for the
generatorsgroup, the CUDA backend on the install, backend, getting-started, roadmap and tutorial pages, the CUDA parity replay and links to the M1a and M1b parity certificates; the algorithm tables listssspon sequential, OpenMP and CUDA.examples/cpp/first_update.cppusesgraph<>and runs on thecudabackend (example.first_update.cuda, labelgpu).Credit and citations (the author’s facts of 2026-09-27): the ESCHER IPDPS 2026 title and authors; TruCy cited as a submitted manuscript; S M Ferdous’s affiliation (PNNL); the placeholder-identity commits of the originals credited to S M Shovan; no funding line yet.
Merge policy (ADR 0019): milestone and integration pull requests are merged with merge commits, external contributions squash-merged, rebase merging disabled.
GOVERNANCE.mdand the repository settings guide record it, mark the settings already applied, and list thecuda-buildanddocsjobs among the required checks of themainruleset (pending the first pull request).The INT1 retrospective (
docs/developer/retrospectives/INT1.md).
M2b: M2a merged (branch m2b-cycle-cuda)#
The CPU
cycle_countof M2a (branchm2-cycle) is merged with a merge commit on top of INT1. The graph keeps both sides: M1b’sint32defaultedge_twith checked construction (ADR 0009), the device graph and the copy-policy staging, and M2a’sunweightedinstantiations,graph_properties::cycle_enum_compatible()/batch_semantics::set()and the sorted-row set apply. The host batch checks are one function (validate_batch_shape) for both applies;checked_edge_countexists once.Documentation site: an API page for the
cycle_countgroup; the algorithm tables, landing page, README, roadmap and short plan listcycle_countas working on sequential and OpenMP, CUDA in progress. M2a added no ADR (it amended ADR 0010), so no ADR was renumbered.The
mainruleset exists since pull request #1 (17 required checks, strict; the Repository admin role bypasses only through pull requests);DCObecomes required once the author’s organization membership is public.GOVERNANCE.md, CONTRIBUTING.md and the repository settings guide say so.Re-verification after the merge:
parity/results/M2b.md, section “Merge re-verification”.
M2b: cycle_count on CUDA (branch m2b-cycle-cuda)#
The CUDA backend of
cycle_count(<dyng/cycle_count.hpp>): the straight port of CycleEnumeration-GPU@0a976ad’s static counters (the work queue with root, edge and implicit two-hop prefix items and its automatic choice; the naive one-thread-per-root counter) and of its update (the delete phase on G_t, the insert phase on G_{t+1}:mark_owners_kernel,item_counts_kernel,count_owned_cycles_kernel), behindcompute()andupdate(). New options:cuda_engine(automatic/fused;operatorsthrowsnot_supported_error),scheduler(cuda_scheduler::work_queue/naive) andwork_items(cuda_work_items). The effective bound is limited to 64 on cuda (invalid_argument_error). Histograms are bit-identical to the original’s CUDA backend on the fixtures and the TUDataset corpus.The resident device graph (ADR 0020): a CUDA graph under
batch_semantics::as_setswithout weight columns is updated on the device (build_next_rows_kerneland friends,graph/apply_set_device.cu) and stays there across batches; its host CSR is downloaded when something reads it. The device in-edges are built on first use. Under set semantics a batch is normalized once per update (<algo>.normalize), for every result and the commit (the host commit no longer normalizes again).dyng-compat-cycle-enum --backend cudawith the original’s CUDA flags (--cuda-device,--cuda-scheduler,--cuda-work-items,--report-timingfrom CUDA events) and--scope original|resident,--edge-type; the CLI testcompat_cycle_enum.cli.cuda(labelgpu).Parity harness: the exporter’s CUDA build (
export_cycle_enum_cuda) and the CUDA fixtures (cases/*.cuda,counts/*.cuda,cli/cuda*, each checked equal to the original’s sequential backend when written); the golden setcycle_count_cuda(24 cases fromcycle-enum --backend cuda, including the 100K + 100K updates of DD and GitHub and the COLLAB update), replayed bycompare.py cycle_count --configs cuda,cuda:resident,cuda:int64(CTestparity.cycle_count.cycle_enum_cuda_0a976ad);parity/cycle_count_perf.py run --backend cuda(the regions of[reference.cycle_enum_cuda]in both scopes, the clocks locked for the whole A/B, ADR 0018) andkernels(register counts of both sides).Tests: the shared
cycle_countsuites on cuda (dyng_cycle_count_cuda_tests, labelgpu) and the CUDA cases (bounds 2..64 and beyond, schedulers, cross-backend chains of batches, the device apply against the host apply, the lazy host copy, the host-commit fallbacks, corner cases).ci/gpu_local.shreplays the CUDA golden set and runs synccheck and racecheck on the CUDAcycle_countsuite.
M2b: the CUDA gates of cycle_count (branch m2b-cycle-cuda)#
The CUDA gate of
cycle_countagainst CycleEnumeration-GPU@0a976ad’s CUDA backend (parity/results/M2b.mdsections 4-6): ten cases (static k = 4 on DD, GitHub, Twitch, k = 3 on COLLAB; the updates 25K+25K on all four and DD 50K+50K, 100K+100K) in both scopes, clocks locked; every gated reading within its gate (the COLLAB update at the base lock, now pending ADR 0021, see the review entries below). Default-clock readings, the registers, stack and occupancy of all 33 kernels (equal to the original’s) and the peak device memory of every case (equal to the original’s) are recorded.Faster Step 0 under set semantics:
std::sortby (source, target, position) instead ofstd::stable_sort, and no sort for lists already in order (every backend; the DD 100K+100K CUDA update 12.2 -> 8.0 ms). Results unchanged. (Replaced by the review’s bucket sort: the skip helped only the gate’s already sorted batches.)Less device memory in the CUDA
cycle_countupdate: the static-count work items are returned when an update begins, and the deletion marks of G_t are computed once per update and shared by the cycle_count delete phase and the device apply (ADR 0020, point 6).dyng-compat-cycle-enum --scope resident(count task) makes the graph resident with a 2-cycle count, so the timed kernel does not follow a full count (which runs it 5-12 % slower even at locked clocks).Harness:
parity/cycle_count_perf.py kernelscovers every kernel with its sm_86 occupancy and pairs both sides;run --backend cudarecords an unmeasurable case (more rejected rounds than--runs) as incomplete and continues, writes the JSON after every case, keeps the original’s monitor window apart from the port’s and summarizes the GPU clocks per side;memoryrecords the peak device memory of both sides per case (Nsight Systems’ memory trace).A case whose GPU cannot hold the boost lock under its power cap (the COLLAB update, whose prior counts for 6.5 s) is read at the base lock, applied equally to both sides: first written as an update of the accepted ADR 0018, now the Proposed ADR 0021, pending the author.
M2b: close-out (branch m2b-cycle-cuda)#
cycle_countworks on the sequential, OpenMP and CUDA backends (M2 done). The algorithm page describes the CUDA work items of every scheduler and update phase, determinism on cuda (the claim order of the work queue changes, the sums do not; the device sums are not checked for overflow, as in the original) and the default-clock readings next to the locked-clock gate table.The
cycle_countmanifest lists the cuda backend and the original’s CUDA sources.The short plan’s estimate is re-estimated after M2 (0.1.0 in about 1-2 weeks of focused work, 3-5 weeks of calendar time); the M2b retrospective has the milestone summary, the M2 summary, the acceptance record and the final verification from a fresh clone.
parity/results/M2b.mdsection 7: the three gate scripts pass in a fresh clone, and the sssp CUDA and OpenMP gates and the cycle_count OpenMP update gate hold on the final code.
M2b: review fixes (branch m2b-cycle-cuda)#
Fixed: under
batch_semantics::set()withself_loop::keepthecycle_countupdate counted a spurious 2-cycle through every self-loop of a batch on every backend (the normalized lists keep self-loops as change edges); the phases now skip them.Fixed: a chain of CUDA updates on a resident graph downloaded all of G_t in every update after the first (Step 0 read the stale host copy). Step 0 of such a graph now tests the membership of the changes in G_t on the device (
graph_access::normalize); the graph is downloaded only when something reads it on the host, on the stream of the resources that built the state (no longer the legacy default stream), without copying stale content into a regrown vector.Changed: Step 0’s sort under set semantics is a bucket sort (stable, no shortcut for sorted lists; 0.7x of the original’s
std::sorton sorted input, 0.3x on shuffled input). The sortedness skip of the gate campaign is gone.Added:
cycle_count::result::set_options()for the tunablescuda_engine,schedulerandwork_items(max_length,methodandmodestay fixed atcompute()).Changed:
bound()andget_options()of a poisonedcycle_countresult throwstale_result_error;compute()on cuda counts an edgeless graph of any size (the zero histogram before the 64-vertex check, as the original); the 32-bit change-id limit of the cuda update raisescapacity_error; the documentation says that the device sums wrap at 2^64 on cuda, as the original’s.Fixed: staging errors of
cycle_count::updatename it instead ofdyng::update.The device set apply keeps its scratch in the pooled normalized batch: a steady CUDA update allocates only the arrays of G_{t+1}.
Tests: the recorded mutations in the CUDA kernels (
cycle_count.mutation.cuda.*, labelgpu), the original’s large-graph device test (300,000 vertices), device Step 0 against host Step 0, chained updates, steady-state allocations, kept self-loops on all backends; the host-only kernel tests no longer run in the gpu executable.Harness:
dyng-compat-cycle-enum --chain n; the CUDA gate records chained updates on the resident graph (update_chain_steady,update_chain_worst), dynG’s CUDA-event time of the short updates (update_device) and the CPU-load threshold.Docs: the public graph documentation covers the device merge; ADR 0020 is Proposed (it had been marked Accepted without an acceptance) with the review’s amendments; the M2b clock rule that had been appended to the accepted ADR 0018 is ADR 0021 (Proposed), pending the author; README lists the M2b certificate.
M2b: acceptance fixes (branch m2b-cycle-cuda)#
Docs: the status pages (the developer plan, the roadmap, README, the algorithm page) no longer say that every CUDA gate is met; they name the COLLAB update, read at the base clock lock and pending the author’s decision on ADR 0021, which the developer plan also lists as an open decision. The certificate and the retrospective point at ADR 0021 instead of the removed “ADR 0018 update”.
0.0.1 - 2026-09-27#
Added#
The PyPI name reservation: a pure-Python placeholder package
dyng0.0.1 (tools/name_reservation/), published to PyPI and TestPyPI byrelease.ymlthrough Trusted Publishing from tagv0.0.1(commit15a6051). It contains no library code.