Plan: the short roadmap#

This is the living plan of dynG in short form: what the library is, the decisions it rests on, the milestones with their exit criteria, the risks and the open decisions. The full planning record (the design of every module, the per-algorithm migration plans, the review history) is the approved planning document of 2026-09-27, which is not published; as each milestone starts, the part it needs moves into a design page under docs/developer/. Maintainer records (the ADRs, the retrospectives, the repository-settings guide, comments in the workflows) cite it as “PLAN Section N”; contributor documentation does not depend on it. Decisions that change are recorded as ADRs (Architecture Decision Records), progress and re-estimates in the milestone retrospectives (Milestone retrospectives). The public, user-facing version is Roadmap.

Status: 2026-11-28. M1a, M1b (CUDA sssp), M2 (cycle_count), M3 (the framework, the conformance kit and the 0.1 API freeze), M4 (this infrastructure) and M5 (the Python package, a CPU wheel, the dyng command line and the documentation of 0.1; pull request #4, merged at 8842acf) are done and merged into main. 0.1.0 is released: the release preparation R010 made the release candidate 0.1.0rc1 (pull request #5, on TestPyPI; Retrospective: R010 (release preparation for 0.1.0rc1)), and the final-release pull request R011 made 0.1.0 with the certificate carried over (Retrospective: R011 (the final-release pull request for 0.1.0); the checklist: Release process); R012 set the release date to the tag day, 2026-10-02, and recorded the author’s last decisions (Retrospective: R012 (the tag day of 0.1.0)). After the release the author re-grouped the next releases into smaller steps (2026-10-02, recorded in GOVERNANCE.md): 0.2.0 is M7 (mosp and the sssp operators engine; merged into main by pull request #8) plus M6 (the hardening planned as 0.1.x), which runs as two parallel milestones, M6a (the CUDA plugin wheels) and M6b (the tutorial algorithms, the documentation on GitHub Pages, fuzzers, mutation checks, sanitizer jobs; Retrospective: M6b (hardening for 0.2.0)), merged by pull requests #9 and #10. 0.2.0 is released: the release preparation R020 made the release candidate 0.2.0rc1 (pull request #11, on TestPyPI; Retrospective: R020 (release preparation for 0.2.0rc1)), and the final-release pull request R021 made 0.2.0 with the certificate carried over, after the smoke test of 0.2.0rc1 and both CUDA plugins from TestPyPI (Retrospective: R021 (the final-release pull request for 0.2.0); the release date 2026-10-14, the planned tag day). 0.3.0 is released: it is M8 and M9 (the hypergraph and triad_count; M8 ran as M8a, the ESCHER CBST store, and M8b, the hypergraph container; M9 as M9a, triad_count with its parity and gates, and M9b, count_local_patterns, Python, the command line, the docs and the freeze: the author’s decision D2 of 2026-10-15), all four merged into main (pull requests #14-#17); the release preparation R030 made the release candidate 0.3.0rc1 (the D13 fix, the 0.3 stability records, the certificate, the distributions and the release changes; pull request #18, on TestPyPI; Retrospective: R030 (release preparation for 0.3.0rc1)), and the final-release pull request R031 made 0.3.0 with the certificate carried over, after the smoke test of 0.3.0rc1 and both CUDA plugins from TestPyPI (Retrospective: R031 (the final-release pull request for 0.3.0); the release date 2026-10-29, the planned tag day). 0.4.0 is released: it is M10 and M11 (label_propagation, hyper_sssp; M10 ran as M10a and M10b, M11 as M11a and M11b, the author’s split HD1 of 2026-10-28), all four merged into main (pull requests #22-#25), with the ADR 0120 fix (#26); the release preparation R040 made the release candidate 0.4.0rc1 (the 0.4 stability records, the carry-overs, the certificate, the ADR 0024 reading against 0.3.0, the distributions and the release changes; pull request #27, on TestPyPI; Retrospective: R040 (release preparation for 0.4.0rc1)), and the final-release pull request R041 made 0.4.0 with the certificate carried over, after the smoke test of 0.4.0rc1 and both CUDA plugins from TestPyPI (Retrospective: R041 (the final-release pull request for 0.4.0); the release date 2026-11-28, the planned tag day). The conda-forge packages (checkpoint A4) and the aarch64 wheels, planned for 0.4.0, are deferred beyond it (the author’s decision of 2026-11-18).

1. What dynG is#

dynG is one C++17/CUDA library, with Python bindings designed in, that keeps the results of graph and hypergraph algorithms up to date while the structure changes in batches, without recomputing from scratch. It unifies six research repositories of the author (S M Shovan, with Arindam Khanda, S M Ferdous, Sanjukta Bhowmick, Anurag Satpathy and Sajal K. Das) into one library:

Algorithm

Origin (pinned commit)

Paper

sssp

MOSP-OpenMP@c352151, MOSP-CUDA@e220ee2

DynaMOSP (IPDPS 2025, TPDS 2025)

cycle_count

CycleEnumeration-GPU@0a976ad

TruCy / DynTruCy (IEEE TC, submitted)

mosp

MOSP-CUDA, MOSP-OpenMP

DynaMOSP

triad_count, the hypergraph store

ESCHER-GPU@abcf9b2, MOSP_ESCHER@4b86159

ESCHER (IPDPS 2026), ESCHER+ (TKDE 2026)

label_propagation

LabelPropagation-CUDA@a276a3a

DynLP (ICS 2026)

hyper_sssp

MOSP_ESCHER@4b86159

H-SOSP (IA3 at SC 2026)

The shape of the library in one paragraph: the public side is API-first in the RAPIDS style (one resources handle, one graph type, one hypergraph type, one batch type per structure, and the same compute / update verbs, options, result and stats types for every algorithm); the inside is framework-first in the Gunrock style (every algorithm is an instance of the thesis Chapter 3 update template, The update model; hand-fused paper kernels run as fused engines inside the same pipeline); the process is contributor-first (a mandatory sequential reference backend, a start-green scaffold, a conformance kit, maturity levels, ADRs). The originals stay untouched; every port is proved byte-identical to its pinned commit.

Who it is for#

User

What they need

Researchers who use dynamic algorithms (Python, notebooks, PyTorch/CuPy)

pip install, zero-copy arrays, clear errors, a first result in 10 lines

C++ / HPC developers who embed it

find_package(dyng), stream-ordered calls, a pluggable allocator, host-compilable headers, no global state

Researchers who write update algorithms

a template, a scaffold that is green on day one, a CPU path without a GPU, a documented framework, conformance tests

Paper reviewers and readers

reproducible benchmark suites, honest “paper vs code” notes, citable releases (DOI)

What makes it one library#

One contract (the same five names per algorithm), one container and one batch type per structure, one update pipeline, one shared engine where algorithms share one (the SSSP engine serves sssp, mosp and hyper_sssp; the signed recount serves cycle_count and triad_count), one vocabulary (errors, profiler stage names, statistics, CLI verbs, page sections), one style and one test kit. Each is enforced by code, tests or review.

Non-goals for 0.x#

Distributed memory and multi-GPU; HIP or SYCL backends (the maintainers will not build these; a contributor-led proposal is welcome, see the end of Section 3); a general static analytics library (Gunrock and cuGraph exist); graph databases or persistence; floating-point weights for shortest paths; reproducing paper claims the code never implemented (the kappa-truncated TruCy search, incident-vertex and temporal triads, the insert-only MOSP of thesis Chapter 5, open h-motifs: these are roadmap items and the docs say plainly that they are missing); kNN graph construction (a Python recipe instead); a C API before 1.0.

Success criteria#

  1. Every port matches its fixed original exactly (byte-identical outputs or bit-identical counts), or within a documented, calibrated tolerance where the original is non-deterministic; approximate algorithms are also checked against a converged reference.

  2. Built with the parity preset on the reference GPU (RTX A5000, sm_86, CUDA 13.1), every port is within 5 % of the original on paper-timed regions of 10 ms or more, and within 10 % on shorter regions and end to end.

  3. pip install dyng works without a GPU; pip install "dyng[cu13]" adds CUDA.

  4. The 1.0 criterion: an outside contributor adds an algorithm using only the documentation.

2. Decisions#

The decisions at a glance (D1-D17 of the plan), with the author’s decisions at approval (2026-09-27), which override the plan’s earlier defaults:

Topic

Decision

Name

dynG; identifiers dyng (namespace dyng, dyng::dyng, DYNG_*, import dyng); ADR 0001

Home

GitHub organization dyng-dev, repository dyng-dev/dyng, public from the start

License

Apache-2.0 + NOTICE + CITATION.cff + dyng::citation(); a Zenodo DOI per release once Zenodo is connected (checkpoint A4; not for 0.1.0, which has no DOI: the author, 2026-10-01); ADR 0002

IP and consent

the university IP office asked for the code to be public (cleared); no consent gating of ports: a port is published as soon as it passes its gates

History

fresh git history; provenance through file headers and parity/references.toml

PyPI

dyng reserved with a real 0.0.1 through Trusted Publishing (release.yml, environments pypi / testpypi)

Contact

sm.shovan@gmail.com for the Code of Conduct and security reports, plus GitHub private vulnerability reporting

Toolkit

C++17 (CI also C++20); CUDA >= 12.4 for source builds; CMake >= 3.30; GCC >= 11 / Clang >= 15; Python >= 3.12

Layout

RAPIDS-style cpp/ + python/; host-compilable public headers in cpp/include/dyng/; framework and operators private in cpp/src/

Naming

snake_case, no _t on types, _t only on template parameters, .hpp / .cuh / .cpp / .cu, DYNG_ macros; ADR 0004

Contract

compute(res, container, inputs, options) -> result; update(res, container&, batch, result&) -> stats applies the batch; stale results throw; per-algorithm oracle kind; ADR 0006

Several results

dyng::update(res, g, batch, r1, r2, ...) applies the batch once (0.1)

Backends

sequential (mandatory reference), openmp, cuda, chosen at run time through resources

Framework

the thesis template as a CRTP problem + enactors, extracted from sssp and cycle_count in M3; internal-stable; public (experimental) in 0.6

Performance

straight port first, refactor commit by commit; fused engines allowed; gates 1.05x / 1.10x

Python

nanobind + scikit-build-core; CPU wheel dyng + CUDA plugin wheels dyng-cu12 / dyng-cu13

Docs

Doxygen XML -> Breathe -> Sphinx (MyST, pydata theme), Diataxis; hosted on GitHub Pages, https://dyng-dev.github.io/dyng/ (the author’s decision of 2026-10-02: the plan’s fallback to Read the Docs)

Versioning

SemVer from 0.1.0, one VERSION file, Keep a Changelog, vX.Y.Z tags

Contributions

DCO sign-off for external contributors (no CLA; maintainers exempt, M4 retrospective), Contributor Covenant 3.0, private vulnerability reporting, per-algorithm CODEOWNERS

Execution

“execute entirely”: milestone by milestone; the author is asked only for account-level actions (GitHub, PyPI, Read the Docs, Zenodo) and real blockers

The approval checkpoints (ADR 0014): A1 (create the GitHub home) and A2 (public) are approved; A3 (PyPI name reservation) is approved and done; of A4, the documentation hosting is decided (GitHub Pages, 2026-10-02; Read the Docs is not connected) and Zenodo is not connected for 0.1.0 (2026-10-01); Zenodo for later releases and a domain are still to be asked, and conda-forge (planned for 0.4) is deferred beyond 0.4.0 by the author’s decision of 2026-11-18 (no submission and no account action for 0.4.0); A5 (per-port consent) is not needed. Every approval is logged in GOVERNANCE.md.

3. Milestones#

M0 decisions ─► M1a CPU sssp ─┬─► M1b CUDA sssp ─┐
                              └─► M2 cycle_count ─┴─► M3 framework + 0.1 API freeze ─┐
A1 ─► M4 GitHub infrastructure (parallel with M1-M3) ─────────────────────────────────┴─► M5 Python, CLI, docs ─► 0.1.0
0.1.0 ─► M7 sssp operators + mosp │ M6a CUDA plugin wheels │ M6b hardening ─► 0.2.0
0.2.0 ─► M8a ESCHER store ─► M8b hypergraph container ─► M9a triad_count ─► M9b count_local_patterns ─► 0.3.0
0.3.0 ─► M10 label_propagation │ M11 hyper_sssp ─► 0.4.0 ─► 0.5 ─► 0.6 (framework public) ─► 1.0

Milestone

Deliverables

Exit criteria

Status

M0 Decisions and drafts

LICENSE, NOTICE, CITATION.cff, AUTHORS, README; the 0.0.1 package and its workflow; the provenance record

drafts reviewed; A1 and A3 answered

done (the provenance record, Provenance and copyright holders, was written in M4; the NOTICE wording confirmed as drafted by the author on 2026-10-01, O3)

M1a Walking skeleton: CPU sssp

repository, presets, minimal core, graph (compact rows, MOSP semantics), MOSP I/O, sssp sequential + OpenMP, parity harness (first slice), ci/check.sh, cpu.yml, ADRs 0001/0002/0004/0006/0010/0013

byte-identical to MOSP-OpenMP@c352151 on the small corpus; updated CSR byte-equal to applyChangeBatch; OpenMP A/B recorded; a retrospective with a re-estimate

done (495/495 golden cases byte-identical on every CPU backend)

M1b CUDA sssp (fused) + performance harness

CUDA build, streams, CCCL-shaped memory resources, device buffers; resident device graph; the persistent cooperative kernel behind enact_fused; generators::legacy; parity/perf_ab.py; the edge_t benchmark (ADR 0009)

byte parity with MOSP-CUDA@e220ee2 and CUDA = OpenMP = sequential; the performance gate on roadNet-PA/CA, rgg_n_2_20_s0, road_usa

done (495/495 golden cases byte-identical on the CUDA backend; gates recorded in the M1b parity certificate; ADR 0009 fixes edge_t = int32)

M2 cycle_count (parallel with M1b)

sorted-rows / set-semantics preset, the CycleEnum parser, static Johnson and the update on 3 backends, work queue, ported tests, randomized parity suites

bit-identical histograms on the golden corpus; generator identity; performance gate (DD, GitHub, Twitch, COLLAB); two recorded mutations fail

done (M2a, the CPU backends, and M2b, CUDA: bit-identical to CycleEnumeration-GPU@0a976ad’s OpenMP and CUDA backends on their golden corpora, cross-backend equal; every OpenMP gate met, every CUDA gate met in both scopes (the COLLAB update read at the base clock lock, ADR 0021, accepted 2026-09-29); device memory equal to the original’s; on the branch m2b-cycle-cuda, merged by pull request)

M3 Framework extraction + 0.1 API freeze

problem_base, enactors, views, workspace, policies, run_update; both algorithms moved onto it one commit at a time; conformance kit C1-C12; new_algorithm.py + template; regen.py; API review

both algorithms pass the kit on every backend with parity and performance unchanged; the scaffold is green on first build; the API review recorded

done (merged into main by pull request #3; ADRs 0022-0024)

M4 GitHub repository and infrastructure (parallel)

community files, issue forms, PR template, CODEOWNERS, labels, DCO; workflows lint, cpu, docs; this documentation site; the repository-settings guide

hosted workflows green; a contributor goes from clone to green build with the documented commands

done (merged into main with M1b in INT1; the hosted runs start with the first push)

M5 Python CPU wheel, CLI, docs for 0.1

root pyproject.toml, nanobind bindings, stubs, pytest; the CPU wheel + sdist; CLI; getting started, the update-model page, the sssp and cycle_count pages, the API reference, history pages

pytest green against the goldens; pip install of the release candidate works on a clean CPU machine; docs build with -W

done on m5-python (ADRs 0011 and 0025; the wheel installs and passes the suite in fresh venvs on Python 3.12 and 3.13; merged into main by pull request #4); dyng prep of M7 was delivered here

0.1.0

the release preparation R010: the benchmark-suite records, the parity certificate, VERSION 0.1.0rc1, the release changes; the final-release pull request R011

the release checklist, including the parity certificate

done (R010, Retrospective: R010 (release preparation for 0.1.0rc1): 0.1.0rc1 with its certificate, on TestPyPI; R011, Retrospective: R011 (the final-release pull request for 0.1.0): VERSION 0.1.0, the certificate benchmarks/results/0.1.0/ carried over; R012, Retrospective: R012 (the tag day of 0.1.0): the release date 2026-10-02 (the tag day); the tags and the GitHub Release are pushed by the AI assistant on the author’s behalf, the PyPI deployment is approved by the author)

M6 hardening (planned as 0.1.x; now part of 0.2.0), run as M6a and M6b

CUDA plugin wheels; the tutorial algorithms dynamic_bfs and triangle_delta; hosted documentation (GitHub Pages; Zenodo later, A4); fuzzers; mutation checks; sanitizer jobs

pip install "dyng[cu13]" works; tutorials pass the kit; mutations fail as expected

see M6a and M6b

M6a CUDA plugin wheels

dyng-cu12 / dyng-cu13 built from the core sdist, the choice of the plugin, device arrays in Python; the plugin publishing environments (GOVERNANCE.md, 2026-10-02)

pip install "dyng[cu13]" works on the GPU machine

done (ADRs 0030-0032; merged by pull request #9, 9e0622f; Retrospective M6a: the CUDA plugin wheels (dyng-cu12, dyng-cu13))

M6b hardening

the tutorial algorithms and “Your first dynamic algorithm”; the documentation on GitHub Pages; reader fuzzers; the cycle_count and mosp mutation suites; the Hypothesis profile full; sanitizer jobs (ASan + UBSan, TSan, TSan with OpenMP and Archer)

tutorials pass the kit on every backend; mutations fail as expected; sanitizer and fuzz jobs green

done on m6b-hardening (ADRs 0033 and 0034; Retrospective: M6b (hardening for 0.2.0))

M7 sssp operators engine + mosp

the multi-kernel engine as the non-cooperative fallback; composition over K x sssp; combined graph; path costs; dyng prep

fused == operators byte-identical; byte parity of all MOSP CLI outputs; performance gate

done on m7-mosp (0.2; ADRs 0026-0028): the operators engine byte-identical to the fused one (C4, the corpus), mosp byte-identical to both originals and within every gate, dyng.mosp and dyng mosp; merged into main by pull request #8 (7d64c90) after 0.1.0. PLAN 11.3 also lists the .dgb binary batches for M7; they moved to M8, with which PLAN 6.2 (order 7) ships them, because no M7 deliverable reads them (Retrospective: M7 (the sssp operators engine and mosp), “Review and fix”)

0.2.0

M7 + M6 (M6a, M6b); the release preparation R020 and the final-release pull request R021

release checklist

done (R020, Retrospective: R020 (release preparation for 0.2.0rc1): the mosp API review and freeze, ADR 0035; the mosp benchmark suite; 0.2.0rc1 with its certificate, on TestPyPI; R021, Retrospective: R021 (the final-release pull request for 0.2.0): the smoke test of 0.2.0rc1 and both plugins from TestPyPI, VERSION 0.2.0, the certificate benchmarks/results/0.2.0/ carried over; the release date 2026-10-14; the tags and the GitHub Release are pushed by the AI assistant on the author’s behalf, the author merges the pull request and approves the three PyPI deployments)

M8 ESCHER store + hypergraph, run as M8a and M8b (a planning change of 2026-10-07, reported to the author: both stay in 0.3.0)

see M8a and M8b; together they carry every item of PLAN 11.3’s M8 row

see M8a and M8b

see M8a and M8b

M8a the ESCHER CBST store (internal)

reference builds and additive link-time CBST trace recorders of ESCHER-GPU@abcf9b2 and MOSP_ESCHER@4b86159 (ADR 0036), the trace goldens and batch dumps of both originals’ suites, coauth-DBLP and DBLP; the CBST host model testing::cbst_host_model validated against both originals before any port; the staged CBST merge (ESCHER-GPU verbatim first, then the MOSP_ESCHER behaviours one by one); the capacity presets; the 9 CBST scenarios; kernel-path coverage; the early store-memory reading

CBST trace replay identical for both originals’ policies after every merge step; the 9 CBST scenarios; kernel-path coverage; the host model agrees 100% with both originals; store memory <= 1.05x on coauth-DBLP

done on m8a-escher-store, merged by the author as 2de6ebe (#14, 2026-10-13; steps 1-5: the references, recorders and trace goldens; the host model; the verbatim port; MOSP_ESCHER’s behaviours; automatic compaction and the presets mosp_escher() and dyng_default(), B’s scenarios, the graph-on-CBST test, the 7 CBST mutations; both originals’ traces replayed in every recorded field but the documented divergences construct_below_payload and construct_without_row_counts (31 ops) and 57 ops with hash-only or batches-mode inputs, store memory = 1.00x of ESCHER-GPU’s accounting; the review fixes; Retrospective: M8a (the ESCHER CBST store))

M8b the hypergraph container

hypergraph with escher storage on the accepted store; the sorted_merge line graph; row views; hyperedge_batch (hyperedge insert / delete; incidence edits in 0.4); .hg I/O; the .dgb binary batches and the streaming batch_reader (PLAN 5.7; moved from M7); hypergraph generators (+ legacy); Python; the hypergraph headers frozen

container-level id parity with both originals; integrity after every batch; device memory <= 1.05x; the header freeze

done on m8b-hypergraph, merged by the author as 9cde147 (#15, 2026-10-15; steps 1-5: the container on the ESCHER store with container-level id parity against both originals on every backend; the sorted_merge line graph equal to ESCHER-GPU’s H2H after every batch, device memory = 1.00x of ESCHER-GPU’s deviceBytes() on coauth-DBLP; dyng::update() over hypergraphs and the kit’s container axis; .hg, .dgt hyperedge batches, .dgb, the generators (legacy included) and their fuzzers; Python; the API review and the freeze, ADR 0047; Retrospective: M8b (the hypergraph container))

M9 triad_count, run as M9a and M9b (the author’s decision D2 of 2026-10-15; both in 0.3.0)

wedge engine, h-motif patterns, incremental host engines (the author’s decision D3: an untuned transliteration of the wedge engine on sequential and OpenMP, not PLAN 4.6’s recounts; testing::triad_reference is the independent oracle), experimental count_local_patterns

exact counts and deltas on the golden batches; “baseline + deltas == recount”; performance gate; memory <= 1.05x

see M9a and M9b

M9a triad_count exact against ESCHER-GPU@abcf9b2

the timed-region map before the port; the golden set over PLAN 6.4.6’s grid and A’s make test, A cross-checked against its CPU reference; the independent oracle; the CUDA port and the host engines; the conformance kit and the mutations; the paper gates incl. the Nsight Systems peak (D1); the 0.3 certificate plumbing

full counts and per-batch deltas exact on every backend per the coverage table, by content and by key; the gates of PLAN 8.6; memory <= 1.05x (store accounting and the nsys peak)

done on m9a-triad-count (branched from origin/main at 9cde147, the merge of M8b; merged by the author with a merge commit as 4cc5c3f (#16, 2026-10-21, with the review fix 511f8ff: the triad replay test uses OpenMP only where it is built); all five steps done: regions-goldens-crosscheck (the region map before any port code, ADR 0048; the golden set triad_count_escher_gpu, 300 cases exported twice with identical manifests; ESCHER-GPU agrees with its own CPU reference on 90 runs) and oracle-harness-driver-prereads (the oracle testing::triad_reference, ADR 0049; the replays by key and by content with the oracle reproduce ESCHER-GPU on every go/no-go case and backend, ADR 0050; the port driver and the A/B harness, the go/no-go pre-reads met, ADR 0051) and cuda-port-api-early-gate (the API dyng/triad_count.hpp, ADR 0052; ESCHER-GPU’s wedge engine transplanted and ported in six mechanical classes with a replay after each, the Op form with identical machine code, ADR 0053; exact on cuda on all 300 golden cases by key and by content; the early gate reading inside every margin target) and host-engine-kit-mutations (the incremental host engine on sequential and OpenMP, ADR 0054, exact against ESCHER-GPU on the host coverage table by key and by content, OpenMP identical at 1 and 8 threads; operators::count_delta with triangle_delta and triad_count as its users, ADR 0055; the kit on all three backends; the five triad mutations and cbst_unfill_drops_last detected on both engines; ESCHER-GPU’s make test in hosted CI under the 1.25 MB data budget, D5) and gates-suites-certificate (every gate within its bar against ESCHER-GPU re-measured in the same session: update per batch 0.858-1.028, full count 0.999-1.002, end to end 0.941-0.987, the store accounting 1.0000 and the Nsight Systems peak 1.0010-1.0015; the suites ipdps26_escher and tkde26_escher_plus; certify.py requires both and the triad replays of every backend from 0.3, the dry 0.3 certificate passes, ADR 0056); the review fixes (counts exact to 2^64 - 1 and refused past it on every backend, ADR 0057; the update’s scratch with headroom; the certificate checked case by case), with the replays and every gate read again on the final library: update per batch 0.853-1.019, full count 0.998-1.003, end to end 0.915-0.983, the store accounting 1.0000, the Nsight Systems peak 1.0015-1.0021; Retrospective: M9a (triad_count against ESCHER-GPU))

M9b count_local_patterns, Python, CLI, docs, the freeze

experimental::count_local_patterns<op_t> and its tutorial; dyng.triad_count and dyng.update over hypergraphs; the CLI; the docs and examples; the triad_count API review and freeze

M9a’s kernels SASS- and resource-identical; the freeze

done on m9b-local-patterns (stacked on m9a-triad-count, with origin/main merged in after #16; merged by the author with a merge commit as e6f87ed (#17); three steps: local-patterns-experimental (one driver and one engine, the four patterns as built-in Ops with SASS-identical kernels, the Op concept, the packaging and the Op tutorial, ADR 0058), python-cli-wheels (dyng.triad_count, dyng.update over hypergraphs, the triad-bins JSON, dyng triad_count with --format escher byte for byte against ESCHER-GPU, the wheels at 2.1 / 8.7 / 8.6 MB, ADR 0059) and docs-freeze-release (the algorithm page, the tutorial “Hypergraph triads”, the examples, the ESCHER-GPU history page, the API review and freeze with one fix, ADR 0060, every M9a gate read again on M9b’s library, the dry 0.3 certificate); Retrospective: M9b (count_local_patterns, Python, the CLI, the docs and the triad_count freeze)). M9 is done; then the 0.3.0 release preparation R030 (the alignment flags are deferred beyond 0.3.0, Roadmap)

0.3.0

M8a + M8b + M9; the release preparation R030 and the final-release pull request R031

release checklist

done (R030, Retrospective: R030 (release preparation for 0.3.0rc1): the D13 fix, ADR 0061; the stability of the hypergraph, triad_count and the formats .hg, .dgb and the triad bins, confirmed by the author on 2026-10-22; 0.3.0rc1 with its certificate, on TestPyPI; R031, Retrospective: R031 (the final-release pull request for 0.3.0): the smoke test of 0.3.0rc1 and both plugins from TestPyPI, VERSION 0.3.0, the certificate benchmarks/results/0.3.0/ carried over; the release date 2026-10-29; the tags and the GitHub Release are pushed by the AI assistant on the author’s behalf, the author merges the pull request and approves the three PyPI deployments)

M10 label_propagation

slotted / slack row layouts, vertex batches, the DynLP pipeline, IrLP, the harmonic reference oracle

generator byte identity; damped byte parity; calibrated in-place tolerances; performance gate 50K-5M

done (the author’s decisions of 2026-11-13 on M10b step 4: GOVERNANCE.md, approvals log, the rows “The roadNet-PA device-placement excursion of M10b step 4”, “D14-path acknowledgements of M10b step 4” and “ia3_hsosp’s dblp_hyperedge_25000 first batch on the merged library”; of 2026-11-14 on the review: the rows “The public names of M10b’s review”, “AD7’s scope after M10b’s review” and “The in_place tail event of the M10b review fixes”; of 2026-11-18: the row “The in_place certificate’s rate rule”; AD15’s stability confirmation at 0.4.0 and the author’s approval of ADR 0111’s wording before M10b’s pull request, both decided on 2026-11-18: the rows “AD15 and HD17: the stability of 0.4’s surfaces” and “ADR 0111’s wording”), in two pull requests: M10a (m10a-label-propagation, from origin/main at b2b1524; ADR 0063) and M10b: M10a step 1 (the reference side: the recorder twin, the region map, the pre-port baseline, the frozen in_place calibration, the goldens exported twice, the SASS go/no-go; ADRs 0064-0066) is done; its go/no-go stopped on the original’s own --check margin on C (1.32 on one batch, below 2), which the author decided on 2026-10-29 (the margin waived for that batch only); step 2 (the oracles harmonic_solution, union_find, lp_host_model and the byte-identical legacy generator; ADRs 0067-0068) is done, its go/no-go passed, and it confirms the margin finding; step 3 (the float slotted container with vertex batches under net_effect on the host, the compact-only guard and its ADR 0024 reading, the provisional <dyng/label_propagation.hpp>, the sequential backend and dyng-compat-dynlp; ADRs 0069-0073) is done, its sequential stage parity exact on P+; two code-placement excursions of 0.1 % above the ADR 0024 bar were acknowledged by the author on 2026-10-29 (the D14 path); step 4 (the device rows, the verbatim fused CUDA engine and IrLP on CUDA; ADRs 0074-0075) is done: damped byte parity on P+, the hub and IrLP identical, every ported kernel’s SASS the original’s, the oracle met, the early gate within its targets; it stopped on one in_place run outside the iteration envelope at one batch, decided by the author on 2026-10-30 as a recorded miss; step 5 (the conformance kit’s float slotted axis, the checker oracles as tests, the six mutations, the gpu_local step, the gates against the original, ics26_dynlp and the 0.4 certificate rules; ADRs 0076-0079) is done: every gated row within its bar on the final library (damped update[sum] 0.988-1.014, end_to_end 1.006-1.097, device memory 1.0005-1.0018), the 5m1 miss of the first reading fixed in the graph’s Step 0 (ADR 0079), every in_place run inside, 6 / 6 mutations detected; it stops on the ADR 0024 re-reading of the stable algorithms on the final library: six gated regions of sssp above 1.02 (code placement, and on CUDA about 5 ms more context creation from loading label_propagation’s kernels eagerly), decided by the author on 2026-11-03 (acknowledged on the D14 path; the module-loading cost fixed in M10b); the M10a review’s fixes (the container’s poison and 64-bit appends, the entry checks before Step 0, the fallback’s convergence, out_of_memory_error, the certificate’s coverage and record checks) were followed by every affected reading again, after the merge of main (M11a) on the merged library: every gate against the original within its bar, the replays exact, in_place inside; it stopped on two items for the author, both decided on 2026-11-05: the hook-round count of the damped trace parity, not deterministic in the original itself, is compared against the original’s own values (ADR 0100; damped byte parity then identical in 10 of 10 cases and the 0.4 certificate’s dry run of label_propagation passed), and two cycle_count end_to_end regions of ADR 0024’s reading at 1.022 / 1.024 from the larger library’s start-up are acknowledged for M10a, M10b’s lazy module loading widened to every algorithm’s kernels and the regions read again there; acceptance round 1 failed only M11’s scoped certificate dry run on the merged tree (M11a’s records predate the merged code), which the author assigned on 2026-11-11 to the integrator, the second of M10b and M11b to freeze; label_propagation’s own dry run passes (Retrospective: M10a (label_propagation against LabelPropagation-CUDA)); M10b (m10b-label-propagation, from origin/main at 9bf1bd3): step 1 (AD6’s c = 2^20 frozen before the refactor; label_propagation’s operators and the operators engine on CUDA, schedule::damped, non-automatic; ADRs 0101-0102) is done: the fused engine’s bits with identical counts on P+ (max |dF| = 0, no fallback); it stopped on two 50k in_place runs outside the envelope, decided by the author on 2026-11-11 as a recorded miss; step 2 (row_layout::slack and the streaming mode, generators::generate_vertex_arrival_stream, the batch files’ vertex records and float weights under AD13, float edge lists, io::write_labels; ADRs 0103-0107) is done: damped on slack rows bitwise slotted’s while no compaction ran, the oracles on every batch of the streaming mode, the 0.3.0 reader refusing every addition loudly, the LP slotted path against M10a’s tip 1.000 (ADR 0024), every M10a replay green; step 3 (Python with float32 graphs under AD14, Graph.with_capacity and the vertex batches, dyng.label_propagation with zero-copy, copy-on-write labels, the generators, the oracle and the label files; dyng label_propagation and dyng generate vertex_arrival_stream / dynlp_vertex_arrival_stream; the kNN recipe under AD18; the examples; the wheels; ADR 0108) is done: the CLI’s and the examples’ damped labels the compat tool’s on sequential and the original’s own on cuda, byte for byte; step 4 (the docs, the API review and freeze, ADR 0109; the kernel groups; the integration after M11b’s merge, 116eb58; the final re-read on the merged library) is done: every LP gate against the original within its bar, every LP replay green with the in_place cloud inside, both scoped 0.4.0 dry runs passed (M10b integrated), the mutations detected; it stopped on two items for the author (sssp’s and mosp’s CUDA SOSP regions on roadNet-PA 1.035-1.045 against the pre-M10b library, a device-layout effect of loading only the kernels a process runs; the ia3_hsosp first-batch row of dblp_hyperedge_25000 above its bar in a superseded reading) and listed the graph reader’s end_to_end excursions on the D14 path, all three decided by the author on 2026-11-13; M10b’s review fixes (the cu12 plugin’s kernel groups, the end_to_end time outside the timed updates restored, the compaction hint, the docs and the freeze’s checks) were followed by the certificate readings again on the fixed library: every gate against the original within its bar (the 50m damped end_to_end 1.077, down from 1.105), M11’s gates and replays, the LP replays, the mutations, ADR 0024’s LP slotted path and ci/gpu_local.sh in full passed, except the in_place cloud, where one 50k run of three crossed the per-batch envelope at batch 9 in two readings (a recorded miss, the author’s decision of 2026-11-14) and again in the one further reading that decision allowed (2026-11-18): a recorded miss by the author’s decision of 2026-11-18, which judges the in_place set’s certificate by a rate rule (ADR 0111: 30 port and 30 original runs per case, the port’s runs outside the envelope not significantly more than the original’s); its reading on the final library code passes every case, AD9’s in_place mutation still fails it, and both scoped dry certifies pass (Retrospective: M10b (label_propagation: the refactored engine, streaming, formats, Python, freeze))

M11 hyper_sssp

slack_csr storage, incidence edits, the as-is port, then the shared sssp engine

distances and parents by id; line-graph delta equality; the seven mutations fail; performance gate

done in two pull requests (the author’s split HD1 of 2026-10-28; Retrospective: M11 (slack_csr and hyper_sssp)): M11a (merged as 64a5123, PR #22; Retrospective: M11a (hyper_sssp’s store side and the as-is H-SOSP port), parity/results/M11a.md; ADRs 0080-0093): the reference side against MOSP_ESCHER@4b86159 (the region map, the H-SOSP goldens, the oracle), the incidence edits and the slack_csr storage on every backend, hyper_sssp on sequential and the as-is CUDA engine exact by id on every batch of the golden set, the mutation suite, the gates (271 of 271 gated rows within their bars) and the 0.3 no-regression readings, whose escher-path excursions the author acknowledged on 2026-11-03 (HD16); M11b (m11b-hyper-sssp, from 64a5123; parity/results/M11b.md; ADRs 0094-0097): the carried sssp D13 fix (ADR 0094), hyper_sssp on the shared sssp engine with sssp’s and mosp’s machine code unchanged and the as-is kernels kept as the default by the gates (O12, HD13; ADR 0095), Python, the command line, the docs, the examples and the freeze (ADRs 0096, 0097; stable from 0.4.0 only on the author’s confirmation, HD17, given on 2026-11-18: the row “AD15 and HD17: the stability of 0.4’s surfaces”), and the final readings, the replay matrix on both engines and the dry 0.4 certificate of hyper_sssp on the final library, taken again after the merge of M10a (9bf1bd3): every gated row of ia3_hsosp within its bar, parity on every batch on both engines, parity/results/M11b.md sections 4 and 5; M11b freezes first, so the integration duties of 0.4 are M10b’s)

0.4.0

M10 + M11; the release preparation R040 and the final-release pull request R041 (conda-forge (libdyng + dyng, checkpoint A4) and aarch64 wheels, planned here, are deferred beyond 0.4.0 by the author’s decision of 2026-11-18, Roadmap)

release checklist

done (R040, Retrospective: R040 (release preparation for 0.4.0rc1): the 0.4 stability records, confirmed by the author on 2026-11-18 (label_propagation, hyper_sssp and the additions they need stable from 0.4.0, the three testing oracles frozen outside the stable tier); the ADR 0024 reading against 0.3.0, decided by the author on 2026-11-21; 0.4.0rc1 with its certificate, on TestPyPI; R041, Retrospective: R041 (the final-release pull request for 0.4.0): the smoke test of 0.4.0rc1 and both plugins from TestPyPI, VERSION 0.4.0, the certificate benchmarks/results/0.4.0/ carried over; the release date 2026-11-28; the tags and the GitHub Release are pushed by the AI assistant on the author’s behalf, the author merges the pull request and approves the three PyPI deployments)

0.5.0

OpenMP incremental triad_count; Read-Tarjan, time-window and temporal cycle modes; int64 hypergraph offsets

parity and performance for every new piece

0.6.0

the framework promoted to dyng::experimental::framework

three algorithms share each promoted piece without loss

1.0.0

API freeze of core and stable algorithms; ABI checks; optionally a JOSS paper

an outside contributor has added an algorithm using only the docs

Later, open to contributors through the new_algorithm issue form: the kappa-truncated cycle search (as an explicitly approximate mode); time-window and temporal cycle updates; the insert-only MOSP of thesis Chapter 5; incident-vertex and temporal triads; open h-motifs; an implicit line-graph policy; new dynamic algorithms (k-core, connected components, PageRank, BFS); a HIP backend; multi-GPU only if a research need appears.

4. Estimate (re-estimated after M3; the releases after 0.1.0 after M6b)#

The plan estimated 0.1 at 12-17 working weeks. With the AI assistant doing the coding, each port of a good original (M1a, M1b, M2a, M2b) took about a day of wall-clock time including its gates, and M3 (the framework, both migrations, the kit, the scaffold and the API freeze) one long day for its five steps; each independent review found real defects (M1a 25, M1b 19, M2a 16) and took about half a day more to fix. What dominates now is measurement time on the one shared machine (the exclusive perf lock, other users’ jobs, the GPU’s power cap; a full M3 campaign is four to five hours of lock time), reviews and their fix steps, the author’s decisions and account actions, and merges of parallel branches (details: the M3 retrospective):

Milestone

Plan (working weeks)

Focused effort, incl. review and fix

Calendar, incl. author gates

Main risk

M1a, M1b, M2, M3, M4

9-13

done (M3’s review and fix step: 0.5-1 day)

M5 Python, CLI, docs

2-3

done in 1 day (3 steps)

the first hosted runs of wheels.yml, python.yml and api-check.yml

0.1.0

12-17

the release steps only (R010; the RC tag, smoke installs, the final tag, pushed by the AI assistant on the author’s behalf)

days, until the author approves the PyPI deployment

the release approval

0.2.0 (M7 mosp + operators engine: done; M6a CUDA plugin wheels; M6b tutorials, Pages, fuzzers, mutations, sanitizers: done)

6-9

M7 about 2 days, M6b about 1.5 days (three steps), M6a in parallel; then the merges, the hosted runs of the new workflows and the release steps

1-2 weeks from 2026-10-06

the first hosted runs of the plugin wheels, sanitizers.yml, fuzz.yml and the Pages deployment; the plugins’ licence expression (author); the 0.2 performance record

0.3.0 (M8a ESCHER store: done, about 2 days of focused effort for its five steps; M8b hypergraph container: done, its five steps in about one day; M9 triad_count)

5-8

1.5-2 weeks (re-baselined after M8b: M9 about 3-5 days more, plus the review and fix steps of M8b and M9)

3-4 weeks

the container’s id parity with both originals; the line-graph merge (A’s H2H inputs are hash-only in the goldens); the nsys memory peak gated in M9; layout control in the parity preset

0.4.0 (M10 label_propagation, M11 hyper_sssp)

8-12

1.5-2.5 weeks

4-6 weeks

DynLP’s calibrated float tolerances and slotted/slack layouts (conda-forge, once a risk here, is deferred beyond 0.4.0)

Up to 0.4.0

about 31-46 (0.1.0 included)

about 3-4.5 weeks after 0.1.0

about 8-12 weeks after 0.1.0

The calendar column assumes the author reviews at each gate within a few days. The estimate is revisited in each milestone retrospective (the latest: Retrospective: M9b (count_local_patterns, Python, the CLI, the docs and the triad_count freeze)).

5. Risks#

The risks that shape the plan (the planning record lists 23), with their mitigations:

Risk

Mitigation

Performance loss from layering (dispatch, templated hooks, resident apply, version checks, extra syncs)

dispatch once per call; straight port first; fused engines (Tier B); per-commit gates; SASS and register diffs

The framework is bent by later algorithms (DynLP, H-SOSP in 0.4)

internal-stable until 0.6; extracted from two real, opposite algorithms; the rule of two; changes by ADR

Public API designed before the ports turns out wrong

only the 0.1 headers are frozen; the rest are reviewed sketches; 0.x allows breaks with migration notes

The CBST merge (two diverged copies, two policies)

trace replay against both originals before triad_count; its own milestone (M8)

update applies the batch surprises users sharing a graph

stale_result_error makes misuse loud; the multi-result dyng::update is the documented pattern

No GPU CI (shared lab machine)

manual ci/gpu_local.sh before CUDA merges and releases, summary posted on the PR; hosted compile-only CUDA builds

Paper-vs-code gaps

a mandatory “Differences from the paper” section on every algorithm page; names say what is computed

Maintainer bandwidth

small tooling surface; release automation; maturity levels; Discussions for support; a 7-day review target, not a promise

Scope creep

the walking skeleton first; 0.1 is two algorithms and a CPU wheel; exit gates per release; retrospectives re-scope

Parity evidence lost

persistent $DYNG_SCRATCH; SHAs in references.toml; the archive-build check; a committed parity certificate per release

6. Open decisions#

Each has a recommended default, so work proceeds; it is recorded as an ADR when taken.

#

Decision

Default

Needed by

O6

default edge_t

decided by the M1b benchmark: int32 with checked construction if int64 costs > 3 % (ADR 0009)

end of M1b

O11

GPU CI

manual ci/gpu_local.sh until IT answers about a container runtime; a paid hosted T4 when outside contributors arrive

after IT answers

O24

sssp operators engine

0.2; in 0.1 a clear not_supported_error without cooperative launch

M1b

O27

oracle of approximate algorithms

a converged reference within a tolerance derived from the stopping rule

M3 (kit), M10

O18

governance

lead maintainer until three active maintainers

M4

O15

changelog mechanics

hand-edited Unreleased until merge conflicts hurt

M4

—

milestone merges

through pull requests (the review rules of CONTRIBUTING.md), or pushed directly to main with a ruleset bypass (recorded in GOVERNANCE.md, which notes the interim practice)

M4

O23, O28, O7

Python floor, wheel scheme, CPU wheel

Python 3.12; CPU dyng + CUDA plugins; a CPU wheel from 0.1

M5

O14

docs hosting

decided 2026-10-02: GitHub Pages (the plan’s fallback; Read the Docs not connected), deployed by docs.yml from main

M6

O8, O17

CUDA wheels, oldest GPU

plugins dyng-cu12 / dyng-cu13 in 0.2 (M6a); sm_75

M6a

O21

0.2 if the CBST merge runs late

settled by the re-grouping of 2026-10-02: mosp ships in 0.2.0, the hypergraph and triad_count in 0.3.0

M8

O16

hypergraph id_reuse default

decided 2026-10-07 by the author: erase_first (the ESCHER paper’s order); the H-SOSP parity runs set insert_first

M8

O9, O10

DynLP default mode, kNN construction

the published setup; a Python recipe

M10

O12

H-SOSP engine

the shared sssp engine after an as-is port proves parity

M11

Closed at approval: the name (O1), the license (O2), the GitHub home (O1′), the local path (O19), history import (O22), privacy until IP clearance (O26: public now), the contact address (O13), the algorithm names (O4: sssp, cycle_count, hyper_sssp), type-name style (O5), row order and multigraph semantics (O25; ADR 0010), publishing before consent (O20: not needed). Closed later: the NOTICE institution line and years (O3: confirmed as drafted, 2026-10-01, GOVERNANCE.md).

7. How this plan changes#

This page is updated at the end of each milestone, from its retrospective. A changed decision gets an ADR (old ADRs are marked superseded, never rewritten); a scope change or re-estimate is made in the retrospective, not in the middle of a port. A version number only guarantees behaviour once it is released: before 0.1.0 anything can change; after it, SemVer applies.