Retrospective: R041 (the final-release pull request for 0.4.0)#
Status: steps 1 (rc-smoke), 2 (final-pr) and 3 (review-fixes) done on the branch
release-0.4.0-final (from main at 4016b469, the merge of pull request #27 with R040; the
signed tag v0.4.0rc1 points there). R041 was accepted at ef4fae4a; step 4 fixes the two text
slips the acceptance noted.
Release 0.4.0 is M10 + M11 (PLAN Appendix F); its release candidate 0.4.0rc1 is on TestPyPI since
2026-11-26 (dyng, sdist and wheel, dyng-cu12 and dyng-cu13, release.yml run
45728140156). R041 smoke-tests that release candidate from TestPyPI (docs/developer/release.md
step 8), makes the final-release pull request (step 9: the version, the CHANGELOG,
CITATION.cff, the status texts, the pages of 0.4’s content) and carries the release candidate’s
certificate over to benchmarks/results/0.4.0/. Nothing is published by this milestone: the
orchestrator pushes the branch; the author merges the pull request; the AI assistant pushes the
signed tag v0.4.0 and creates the GitHub Release on the author’s behalf (GOVERNANCE.md,
2026-11-18); the author approves the PyPI deployments pypi-cu12 and pypi-cu13 (one dialog),
then pypi. The planned tag day is 2026-11-28 (UTC).
Step 1: the smoke test of 0.4.0rc1 from TestPyPI (rc-smoke)#
Result: passed everywhere, on the published files. Every check of release.md step 8 and of
“The GPU tests of the published plugin wheels” passed in every venv, and the step-10 procedure,
rehearsed on the release run’s artifact, passed too. The smoke test found no defect of the
library or of the release candidate’s documents. Reading the skip counts turned up one gap in
the Python tests (a CUDA test case without the gpu marker, so pytest -m gpu never selected
it; below). That test passes on the published wheels. Its marker is fixed in this branch, with a
check that keeps every CUDA case marked (184042a4). The fix changes only python/tests, which
is in the packaging scope of parity/certify.py. No path of the library or tests scope
changes, so the certificate can still be carried over (release.md step 9). The packaging and
repo checks run again on the final tree anyway. The commits of this step: 184042a4 (the test
fix) and the commit that adds this section and the log benchmarks/results/0.4.0/checks/smoke-rc1.txt.
How it was run#
The orchestrator ran $DYNG_SCRATCH/runs/r040-smoke/run_smoke.sh (R031’s script, extended for
0.4: label_propagation and hyper_sssp in smoke_rc_cpu.py, their examples and CLI commands,
and the full pytest output kept per venv with -rs). It ran after the upload, in its five parts
(cpu, plugin cu12, plugin cu13, extras cu12, extras cu13; run_all.sh, each part under
flock -s perf.lock nice -n 10). The run was on 2026-11-26 between 00:51 and 01:02 UTC by the
machine’s clock, which runs about 3 minutes behind (below). The machine is the GPU machine: Debian
12, glibc 2.36, Linux 6.1; 2x RTX A5000, NVIDIA driver 590.48.01, which reports CUDA 13.1. The
GPU tests ran on GPU 1.
Every venv is new, made by python -m venv from a plain interpreter. Python 3.12 is CPython
3.12.14 of the conda environment dyng-dev, used only as the base interpreter. Python 3.13 is
CPython 3.13.15 of $DYNG_SCRATCH/tools/py313. Every command ran in a clean environment: env -i
with PATH=/usr/local/bin:/usr/bin:/bin, HOME, LANG=C.UTF-8, OMP_NUM_THREADS=4 and
PIP_NO_CACHE_DIR=1. So no dev environment, no CUDA toolkit and no build of dynG was on PATH,
and there was no pip cache: every file came from the indexes. The venvs’ own pip was used (25.0.1
on 3.12, 26.2.1 on 3.13), as a user’s would be. The install commands are exactly those of the
release candidate’s README.md and docs/getting_started/install.md. The tests, examples and
ci/ scripts are those of the tag v0.4.0rc1 ($DYNG_SCRATCH/runs/r040-smoke/src-v0.4.0rc1).
That tree equals git archive v0.4.0rc1 file for file, apart from the __pycache__ and
.hypothesis caches the runs left. The tag’s signature verifies (“Good git signature for
sm.shovan@gmail.com”, ED25519).
Every part ran to its end. Each part’s log was read to its last line, and each printed its
=== <part>: done line with every check in it passed. parts.log records the order:
Part ( |
Machine clock (UTC) |
Exit status |
|---|---|---|
|
00:51:54-00:52:04 |
1: a bug of the harness script, not of dynG (below) |
|
00:52:04-00:55:16 |
0 |
|
00:55:16-00:58:23 |
0 |
|
00:58:23-00:58:37 |
0 |
|
00:58:37-00:58:52 |
0 |
|
00:58:57-01:01:53 |
0 |
The harness bug of attempt 1. The cpu part compares the bytes of the label_propagation
example and of the CLI command with the committed digest. The digest file is
examples/data/label_propagation_5k5_damped.sha256. The script read the expected value with
awk '$2 == "sequential" {print $1}'. That pattern also matched a comment line of the file,
# sequential output (dyng's host port; equal to ...), so the expected value became two lines,
# and the digest. The comparison then failed with sha256 81f174fe... != # (the digest
followed on the next line), and set -e stopped the part on Python 3.12, before the pytest
suite and before Python 3.13. The produced files were right. The outputs of attempt 1 are kept
in attempt1-cpu-3.12-outputs/. Both lpex/dynlp_labels.txt (the example) and
lprun/dynlp_labels.txt (the CLI) have sha256 81f174fe0ea9b6e5cb8ec18be8eba64e55176e47fd6a179b6833c248062e5778,
the committed sequential digest. Every check before that point had passed. The orchestrator fixed
the pattern to '!/^#/ && $2 == "sequential" {print $1}' and ran the whole cpu part again from
new venvs (attempt 2), where both comparisons passed on both Pythons.
The fix was saved at 00:52:27, while plugin cu12 was running (it started at 00:52:04). Bash had
already parsed that part’s loop, so that part ran the script text from before the fix. The fix
touches only the cpu branch, and the plugin cu12 log shows every step of the plugin branch as
it stands now. Attempt 1’s log is kept as smoke-cpu-attempt1-harnessbug.log and closes the
combined log below.
R041 added three readings in the same clean environment, under the shared lock of perf.lock
on 2026-11-26 (machine clock 01:25-01:33 UTC). First, the hyper_sssp example’s CUDA case in the
four plugin venvs (below, “A CUDA test case pytest -m gpu did not select”). Second, a rehearsal
of the step-10 procedure on the release run’s artifact (below). Third, the release state of the
indexes and the machine’s clock.
The scripts and logs are in the work area. They are not committed; the combined log is the
certificate’s checks/smoke-rc1.txt:
File |
sha256 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The files tested are the ones the release candidate published. pip’s installation reports
(pip install --report, ten of them) name the same three wheels in every venv, all from
test-files.pythonhosted.org. Their sha256 equal both the digests TestPyPI serves
(https://test.pypi.org/pypi/<name>/0.4.0rc1/json) and the files of the dist artifact of run
45728140156. The artifact was downloaded with gh run download (read-only), once by the
orchestrator and once again by the step-10 rehearsal. The run: tag v0.4.0rc1 at 4016b469, push
event, attempt 1, success, 00:21:22-00:35:14 UTC. Its three TestPyPI publish jobs were green, and
its PyPI jobs and the name-reservation build were skipped, as for a pre-release:
File (TestPyPI, uploaded by |
Uploaded (UTC) |
sha256 |
|---|---|---|
|
00:35:07 |
|
|
00:34:25 |
|
|
00:34:31 |
|
|
00:35:09 |
|
pypi.org was read on 2026-11-26 at 01:28 UTC. It had 0.3.0 as the latest release of dyng
(releases 0.0.1, 0.1.0, 0.2.0, 0.3.0), dyng-cu12 and dyng-cu13 (0.2.0, 0.3.0), and no 0.4.0rc1:
a pre-release stops at TestPyPI. TestPyPI has 0.4.0rc1 of all three. As 0.1.0rc1 to 0.3.0rc1
did, 0.4.0rc1 has no GitHub pre-release (the author’s decision of 2026-11-26).
The machine’s clock. The development machine’s system clock is still not synchronized
(timedatectl: “System clock synchronized: no”, “NTP service: n/a”). On 2026-11-26 at 01:28 UTC
it ran about 2 min 58 s behind the HTTP Date of pypi.org (01:25:19 by the machine against
01:28:17), up from about 2 min 22 s on 2026-10-28 (R031). The log times above are the machine’s.
In real time the smoke test started about 00:54:50 UTC, after the last upload (00:35:09). The
skew matters only for ci/wheel_check.py --release-metadata --release-date today within a few
minutes of midnight UTC on the tag day (open items).
The CPU package dyng==0.4.0rc1 (release.md step 8)#
In fresh venvs on Python 3.12 and 3.13, the command of the README and of install.md:
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ dyng==0.4.0rc1
It installed dyng 0.4.0rc1 (the wheel above, from TestPyPI) and NumPy 2.5.5 (from PyPI), and
nothing else. Then, from an empty directory:
Check |
3.12.14 |
3.13.15 |
|---|---|---|
|
0.4.0rc1 |
0.4.0rc1 |
|
|
the same |
installed metadata |
|
the same |
|
five vertices: |
the same |
|
histogram |
the same |
|
path cost of |
the same |
|
h-motifs: total 4 over 30 bins; after |
the same |
|
every array above equal |
equal |
new in 0.4: |
both schedules: float32 labels in [0, 1], every batch converged without a fallback, every active seed’s label equal to its class; damped per batch (iterations, components, affected) |
the same values |
new in 0.4: |
compute: hyperedge distances |
the same |
|
the BibTeX entries |
the same |
|
|
the same |
a graph CLI command: |
both output trees byte-identical ( |
the same |
the example |
the example’s output equals |
the same |
new in 0.4: the example |
the example’s output equals |
the same |
new in 0.4: the example |
both |
the same |
beyond step 8: the release candidate’s |
835 passed, 99 skipped |
835 passed, 99 skipped |
Every run printed SMOKE OK. The 99 skips (pytest-cpu-*.log, -rs) fall into five groups:
90 CUDA test cases, which need a plugin:
test_cuda.py62,test_hyper_sssp_cuda.py8,test_triad_count_cuda.py8,test_hypergraph_cuda.py6,test_label_propagation_cuda.py3 and the three CUDA examples oftest_examples.py.4 PyTorch tests, 1 CuPy test, 1 scikit-learn test (the kNN recipe) and 1 pandas test. The venvs install none of these optional packages.
2 tests that need a parity tool of a build tree, which no wheel contains:
dyng-compat-mospanddyng-compat-dynlp. The latter’s test compares the committed digest instead.
The plugins dyng-cu12==0.4.0rc1 and dyng-cu13==0.4.0rc1 (release.md step 8, “The GPU tests of the published plugin wheels”)#
Per plugin and per Python version (3.12, 3.13), a fresh venv was installed as install.md and the
README say for the release candidate. NumPy and the test tools came from PyPI first, then dyng
and the plugin from TestPyPI alone (--no-deps):
pip install "numpy>=1.26" "pytest>=8" "hypothesis==6.167.1"
pip install -i https://test.pypi.org/simple/ --no-deps "dyng==0.4.0rc1" "dyng-cu13==0.4.0rc1" # or dyng-cu12
Then came the checks of ci/plugin_wheels.sh, with the tag’s ci/plugin_smoke.py (run from an
empty directory) and the tag’s python/tests (run from the tag’s tree, against the installed
packages):
Check |
cu12 / 3.12 |
cu12 / 3.13 |
cu13 / 3.12 |
cu13 / 3.13 |
|---|---|---|---|---|
installed |
|
the same |
|
the same |
|
passed: |
passed (the same) |
passed: |
passed (the same) |
the fallback without a device: |
passed: one |
passed |
passed |
passed |
the fallback without a driver: |
passed: “no CUDA driver: libcuda.so.1 cannot be loaded (install the NVIDIA driver, 525.60.13 or newer for CUDA 12)” |
passed |
passed (”… 580.65.06 or newer for CUDA 13”) |
passed |
|
81 passed, 8 skipped |
81 passed, 8 skipped |
81 passed, 8 skipped |
81 passed, 8 skipped |
|
835 passed, 99 skipped |
835 passed, 99 skipped |
835 passed, 99 skipped |
835 passed, 99 skipped |
The 8 skips of the GPU tests are the same in all four venvs (pytest-gpu-*.log). They are the
DLPack / CUDA array interface round trips with CuPy and PyTorch, which these venvs do not
install (the optional extras): test_cuda.py has 1 PyTorch, 5 CuPy and 1 “needs PyTorch or CuPy”
case, and test_label_propagation_cuda.py has 1 PyTorch case. ci/plugin_wheels.sh runs them
only with DYNG_PLUGIN_INTEROP_PYTHON. The GPU tests grew from 77 (0.3.0rc1: 70 passed, 7
skipped) to 89, with the hyper_sssp and label_propagation CUDA tests. The suite grew from 817 to
934 tests. The six DYNG_CPU_ONLY=1 and CPU runs give the same skip list, line for line.
The extras, as the final release will document them. In two more fresh venvs per plugin (3.12
and 3.13), NumPy came from PyPI, then pip install -i https://test.pypi.org/simple/ "dyng[cu13]==0.4.0rc1" (and [cu12]), from TestPyPI alone. The extra resolved to the plugin of
the same version (dyng + dyng-cuN 0.4.0rc1, the files above). ci/plugin_smoke.py --expect cuda passed on GPU 1 in all four venvs: the five algorithms on cuda, and label_propagation within
the oracle’s bound. This is the install line of the final release (pip install "dyng[cu13]",
from PyPI then), checked here on the release candidate’s metadata.
A CUDA test case pytest -m gpu did not select (fixed in this branch)#
The CPU suite skips 90 test cases for want of CUDA, while pytest -m gpu selects 89 (81 passed
and 8 skipped, 845 deselected out of 934). The 90th is test_examples.py:: test_hyper_sssp_prints_the_expected_distances[cuda]. It was parametrized with a bare "cuda"
and an inline pytest.skip, instead of the module’s _CUDA parameter, which carries the gpu
marker and the skip condition. So pytest -m gpu deselected it. The GPU tests of the plugin
wheels (ci/plugin_wheels.sh, release.md steps 8 and 10) therefore never ran the hyper_sssp
Python example on CUDA. It could run only in a full pytest run with a CUDA module active, which
none of the release’s scripts makes (ci/python.sh tests the editable CPU install).
This is a defect of the test suite, not of the library or the wheels. The same example data on
CUDA are covered by the C++ example’s CTest example.hyper_sssp_update.cuda (same expected
bytes), and the Python API’s hyper_sssp on CUDA by plugin_smoke.py and test_hyper_sssp_cuda.py.
Run on the published wheels in the four plugin venvs
(CUDA_VISIBLE_DEVICES=1 DYNG_REQUIRE_CUDA=1 pytest -v python/tests/test_examples.py -k hyper_sssp_prints, from the tag’s tree; hyper-sssp-example-cuda.log), it passed everywhere:
both [sequential] and [cuda] PASSED with cu12 and with cu13, on 3.12 and on 3.13.
The fix (184042a4) uses _CUDA for the test. It also adds python/tests/test_gpu_marker.py,
which fails when any test case of the session parametrized with backend="cuda" lacks the
gpu marker (it failed on the old test_examples.py), with a unit test of the check itself.
With the fix, pytest -m gpu in the cu13 / 3.12 venv of the published wheels gives 82 passed and
8 skipped. The CPU suite against the published CPU wheel gives 837 passed and 99 skipped: the two
new tests, the same skips. At the final tag, step 10’s GPU tests run 82 cases per venv instead of
81.
The change is in python/tests only, which is in the packaging scope of parity/certify.py.
Of the narrower scopes, library and tests (cpp/tests, cpp/fuzz, examples, README.md),
the fix touches neither. So it does not stop the carry-over: the packaging checks (the
distributions with their wheel tests and the GPU tests of both plugins) run again on the final
tree, as step 9 requires anyway.
The step-10 procedure, rehearsed#
The block of release.md “The GPU tests of the published plugin wheels” is what the AI assistant
runs on the final tag’s release.yml run before the author approves pypi-cu12 and
pypi-cu13. It was run once as written ($DYNG_SCRATCH/r041/step10_dryrun.sh), from a clone of
the tag v0.4.0rc1, on the dist artifact of run 45728140156. The one change was
d=$DYNG_SCRATCH/r041/release-0.4.0rc1 instead of $DYNG_SCRATCH/release-0.4.0rc1, to keep this
milestone’s files together. It ran on 2026-11-26, finishing at 01:32:46 by the machine’s clock,
with the clone at 4016b469. gh run download fetched the artifact again, and its four files have
the sha256 above. twine check and ci/wheel_check.py passed for the core wheel and both plugin
wheels (2.71, 14.44 and 14.80 MB). For both plugins on 3.12 and 3.13, every check passed on GPU 1:
the smoke test with the five algorithms on cuda and label_propagation within the oracle’s bound,
both fallbacks, pytest -m gpu (81 passed, 8 skipped) and the DYNG_CPU_ONLY=1 suite (835
passed, 99 skipped). The procedure works as documented; on the tag day only run= changes.
The first attempt stopped before the procedure, at the script’s own git tag -v line. A fresh
clone does not inherit the development repository’s gpg.ssh.allowedSignersFile. The script then
passed it with -c (a setting of the rehearsal script, not of the procedure; the log of that
attempt is step10-dryrun-attempt1-noallowedsigners.log).
What it means for the release#
Acceptance criterion 1 is met: the release candidate raises no blocker for the final release.
No library, C++ test, example or user-facing document changed in this step. The changes are the marker of one Python test with its check (
packagingscope), this page (reposcope), and the newbenchmarks/results/0.4.0/checks/smoke-rc1.txt(outside every scope). Thelibraryandtestsscopes are those of 0.4.0rc1’s measured commits, so the certificate can be carried over (release.md step 9). Thepackagingandrepochecks run again on the final tree.The directory
benchmarks/results/0.4.0/exists from this step withchecks/smoke-rc1.txtonly. The carry-over copies the release candidate’s contents into it (cp -r benchmarks/results/0.4.0rc1/. benchmarks/results/0.4.0/, as release.md step 9 says since R031). The certificate’sREADME.mdgets this smoke test’s summary.release.mdstep 8 names “a CPU machine and the GPU machine”. As for 0.1.0 to 0.3.0, only the GPU machine is available to this milestone. The CPU package’s host backends ran on it. The plugins’ behaviour on a machine without a GPU or a driver was checked with the two fallbacks above. The hosted runners of the release run checked the plugins’ install without a GPU too: its “Plugin cuN install test, no GPU” jobs were green.
Open items (step 1)#
The machine’s clock (R031’s item 5, still open): it runs about 3 minutes behind real time and drifts (2 min 22 s on 2026-10-28, 2 min 58 s on 2026-11-26). On the tag day, 2026-11-28,
ci/wheel_check.py --release-metadata --release-date todayreads it. Avoid the minutes around 00:00 UTC, or check the date against an external source.For the tag day’s step 10: the GPU tests of the final run’s plugin wheels select 82 cases per venv (the fix above). A count of 81 would mean the tests of a tree without the fix.
Step 2: the final-release pull request (final-pr)#
The final-release changes (release.md step 9)#
Every item of docs/developer/release.md, “The final-release pull request (step 9)”, for 0.4.0
with the release date 2026-11-28, the planned tag day (the author’s decision of 2026-11-26):
Item |
Commit |
What changed |
|---|---|---|
|
|
|
the status texts |
|
|
the pages of 0.4’s content |
|
the tutorials “Streaming label propagation” and “Shortest hyperpaths” (no longer send readers to the release candidate’s TestPyPI lines: |
|
|
the approvals-log row of 2026-11-26 (below) |
this page |
this page’s commit |
step 2’s record, the readiness and the open items |
python ci/wheel_check.py --release-metadata and --release-metadata --release-date 2026-11-28
pass (VERSION, CHANGELOG.md and CITATION.cff agree on 0.4.0 and the date); --release-date today fails until the tag day, as it should (release.md step 10 runs it on the tag day).
pre-commit on the changed files, ci/docs_links.py, ci/tutorial_quotes.py --check and
pytest ci/tests passed before the commit of this page; the fresh-clone runs of criterion 4 are
below.
The stability of 0.4’s content. The pages that describe label_propagation, hyper_sssp,
slack_csr and the incidence edits, the vertex-arrival generators, the label files, the kNN
recipe, the format extensions and the two tutorials were read for wording that calls them
unreleased or pending the author’s decision. R040 had already written them for the author’s
decision of 2026-11-18: each says “stable from 0.4.0” (the algorithm pages’ maturity lines, the
C++ API pages of the graph, the hypergraph, io, the generators, hyper_sssp and
label_propagation, the Python API page’s “Stability of the 0.4 additions”, the file formats,
the roadmap), and the three testing oracles of label_propagation (harmonic_solution,
union_find, lp_host_model, C++ and their dyng.testing counterparts) are frozen outside the
stable tier (docs/api/cpp/testing.md, docs/api/cpp/label_propagation.md). So only the
release candidate’s install and clone lines of the tutorials and the sentences above changed.
docs/conf.py shows no banner for a final VERSION.
What is left of the release candidate’s wording. release.md’s greps (0.4.0rc1, release candidate, not released, new in 0.4, pending, TestPyPI, and the previous release 0.3.0 /
0.3) over the user-facing files (README.md, the top-level *.md files, python/README.md and
docs/ outside docs/developer/, docs/adr/, docs/design/ and docs/history/; 73 files)
find only history that stays true after the release, and the CHANGELOG’s and the approvals log’s
own record:
SECURITY.md: the release candidates 0.1.0rc1 to 0.4.0rc1 were published on TestPyPI only, their rows “no; please upgrade to 0.4.0”, and the policy that problems found in a release candidate are fixed before the release;the roadmap’s account of 0.4.0rc1 (R040) and of R041, and of 0.3.0rc1 / R031;
docs/algorithms/triad_count.mdanddocs/concepts/hypergraphs.mdon the D13 fix of 0.3.0rc1;docs/conf.py’s banner text for a release candidate (code, not shown for 0.4.0);“new in 0.4” / “new in 0.4.0” on the
label_propagationandhyper_sssppages and in the tutorial “Streaming label propagation” (release.md: “new in X.Y” stays);CODE_OF_CONDUCT.md’s “depending”,docs/algorithms/sssp.md’s “depending on whether the GPU reached P0”;the 0.3 mentions: what 0.3.0 introduced (“stable from 0.3.0”, the formats “of 0.3”, their version 1, “a reader of 0.3 refuses”), the upgrade lines from 0.3.0, the install guide’s
find_package(dyng 0.3)for a build ofv0.3.0, the roadmap’s 0.3.0 section, and the tutorial “Hypergraph triads”, which still clonedv0.3.0: every file it quotes is unchanged since that tag (git diff v0.3.0over them is empty), so the tag keeps them as the page quotes them (the review fixes below moved its clone line tov0.4.0, with that sentence).
GOVERNANCE.md. The author’s decisions for 0.4.0 are in the approvals log since R040 (its
release changes and its tag-day commit), each once and not reworded: of 2026-11-18 (“AD15 and
HD17: the stability of 0.4’s surfaces”, “Tags, the GitHub Release and the merges of 0.4.0”, “ADR
0111’s rate rule at the release and in ci/gpu_local.sh (R040)”, “The ADR 0024 reading of 0.4.0
against v0.3.0”, “conda-forge (checkpoint A4) and aarch64 wheels: deferred beyond 0.4.0”), of
2026-11-21 (the STOPs of R040 steps 3 and 4, and the testing oracles’ Python counterparts outside
the stable tier) and of 2026-11-24 (“The tag day of 0.4.0rc1”). This step adds one row of
2026-11-26, “No GitHub pre-release for 0.4.0rc1; the tag day of 0.4.0”: the release candidate
gets no GitHub pre-release (as 0.1.0rc1 to 0.3.0rc1), and the planned tag day of 0.4.0 is
2026-11-28 (UTC). The open decisions left (whether a co-author wrote code outside git; D11, the
pool footprint between batches) are not due before 0.4.0 (release.md step 10).
The certificate, carried over (release.md step 9)#
The library did not change since the release candidate’s measured commits: git diff from
f60a2f3a (the gates, the golden replays and the golden mutations, measured on the release’s
final library), 2616af66 (the sanitizer presets and the mutation CTests), 77e76460 (the
tag day’s packaging and repo checks) and 3b8c6514 (the head of pull request #27, whose
hosted sanitizer jobs are recorded) to this branch touches no path of the library scope and no
path of cpp/tests (the GoogleTest rows of the golden mutations, ADR 0061). Of the tests
scope, only README.md changed (its status block and install lines; its C++ quickstart, a test,
did not). So benchmarks/results/0.4.0/ is a copy of benchmarks/results/0.4.0rc1/ (its
contents, cp -r benchmarks/results/0.4.0rc1/. benchmarks/results/0.4.0/, next to step 1’s
checks/smoke-rc1.txt).
Carried over unchanged: the golden replays of sssp, cycle_count, mosp, the CBST traces, the hypergraph ids (with MOSP_ESCHER’s whole
slack_csrsessions), the triads, the label_propagation golden sets (the in_place set under ADR 0111’s rate rule, the harmonic oracle’s release replay) and hyper_sssp’s modes on both CUDA engines and on sequential with theslack_csrstore check (parity-*.json); the seven suite summaries and the compacted records of the performance gates (ipdps25_*,ieee_tc_dyntrucy*,ipdps26_escher*,tkde26_escher_plus*,ics26_dynlp*with AD4’s release-only 50m reading,ia3_hsosp*); and the golden mutations (mutation-goldens.json,libraryscope pluscpp/tests).Run again on the final tree (they see the new
VERSION,CHANGELOG.md,CITATION.cff, the status texts,README.mdand step 1’s test fix), each from its own freshgit cloneof this branch at this page’s commit, the last commit outsidebenchmarks/results/, concurrently under the shared lock and never during a timing run, with R040’s tag-day scripts adapted for the final tag ($DYNG_SCRATCH/r041/run.sh,dist.sh,toolkits.sh,record.sh,chain.sh; logs$DYNG_SCRATCH/runs/r041/cert/), and recorded withparity/certify.py check --version 0.4.0under their existing names, replacing the release candidate’s records:packaging:distributions:release.yml’sselectstep forGITHUB_REF_NAME=v0.4.0(it must reportkind=package,version=0.4.0,prerelease=false,plugins=true, the three distributions;v0.4.0rc1,v0.4.0-rc.1,v0.4.1andv0.3.0refused); the pinned CUDA toolkits still the newest 12.x and 13.x (CUDA 12.9 and 13.5: on 2026-11-26, NVIDIA’s RHEL 8 repository’s newestcuda-nvccpackages are 12.9.86 and 13.5.37, a fresh lock is identical toci/cuda_toolkits.tomland the cached RPMs passverify --signatures);ci/wheel_check.py --release-metadata(and--release-date 2026-11-28);ci/wheels.sh(with cibuildwheel’s test step from the unpacked sdist);ci/plugin_wheels.shwith the pinned CI toolkits;twine check --strict;ci/wheel_check.pyon each file and--release-set --split; then fresh Python 3.12 and 3.13 venvs: the core wheel alone and with each plugin (the wheel’s test subset, the README quickstart, every Python snippet of the docs, the tutorials’ tests, the label_propagation example against its committed digests,dyng --version, and with a pluginci/plugin_smoke.py --expect cuda, which runs label_propagation and hyper_sssp on cuda, andpytest -m gpuon GPU 1, 82 cases with step 1’s fix); the final release’s documented install lines without a version,pip install dyng,pip install "dyng[cu13]"and"dyng[cu12]", against a local simple index holding the three distributions with PyPI as the extra index (PyPI has 0.3.0 of all three, so pip must take 0.4.0 from the local index and each extra the plugin of the same version); and the upgrade from 0.3.0: a venv withdyng[cuN]==0.3.0from PyPI keeps 0.3.0 forpip install "dyng[cuN]";pip install -U dyngalone upgrades the core and leaves the 0.3.0 plugin (what the docs warn about);pip install -U "dyng[cuN]", the documented line, installs 0.4.0 and the plugin of the same version, whose smoke test then passes on GPU 1.repo:check-parity(ci/check.sh --parity: the cpu-only and dev presets, the consumer, clang-tidy, REUSE, the harness tests,ci/docs.sh,ci/python.sh, the API check, the scaffold, pre-commit and the golden parity replay),api-check(ci/api_check.sh 4016b469, the frozen C++ API and the Python API againstmainas pushed, the merge of 0.4.0rc1) andgpu_local(oneci/gpu_local.sh --preset parity-cudarun on GPU 1, every step passed, recorded with--gpu-summaryand--require-steps).tests(README.mdchanged):asan,tsan,tsan-openmp(ci/sanitizers.sh;tsan-openmpwith R020’s local Clang 18 wrapper and Archer, as before) andmutation-ctests(ctest --preset dev-cuda -L mutation, GPU 1).
Added: the hosted sanitizer record
sanitizers-hosted: the hostedsanitizers.ymljobs of the release candidate’s pull request #27, run 45598377457 on its final head3b8c6514(eventpull_request, which tested the merge7e04f23of3b8c6514intod3375da, an ancestor of the head, so the same tree; 2026-11-25 10:47-11:20 UTC), succeeded:asan / gcc-131486 of 1486 tests,tsan / gcc-131274 of 1274,tsan-openmp / clang-181486 of 1486 (job logs read withgh run view --job ... --log, read-only, into$DYNG_SCRATCH/runs/r041/sanitizers-hosted/). 0.4.0rc1’s certificate had no such record (the run finished after its certificate was written). Recorded with the scopelibrary:README.md, a path of thetestsscope, changed since3b8c6514, and thetestsscope is covered by the local presets run again on the final tree (release.md step 3, as for 0.3.0).The smoke test of 0.4.0rc1 from TestPyPI (step 1) is summarized in the certificate’s
README.md, its combined log inchecks/smoke-rc1.txt.Then
parity/certify.py write --version 0.4.0on the committed tree, which checks every record against the final commit in the paths of its scope and writesparity.jsonnaming 0.4.0 and that commit, and the tables of the certificate’sREADME.md; it is the last commit of the branch (onlybenchmarks/results/0.4.0/). As a negative control, the samewriteon a scratch copy of the results with one gated row removed must fail.
The results of the re-run checks are in the certificate (benchmarks/results/0.4.0/README.md, its
“Checks” table generated from parity.json, every log named with its SHA-256 in checks.json and
excerpted under checks/): certify.py write passes only when every part passed on the release’s
code, so a certificate on this branch means they did. The fresh-clone runs of ci/check.sh --parity, ci/docs.sh and ci/python.sh of acceptance criterion 4 are the check-parity run
above (ci/check.sh --parity runs the docs and python steps, neither skipped), reported with
the milestone’s result.
Deviations from the plan#
The documented install of the final release cannot run against PyPI before the release, so the
distributionscheck runspip install dyngandpip install "dyng[cuN]"against a local simple index with the three distributions and PyPI as the extra index, which is what PyPI will serve after the three uploads (as for 0.2.0 and 0.3.0).The tutorials name the tag
v0.4.0, which exists only from the tag day: between the merge of this pull request and the tag, the documentation site (built frommain) names a tag that is not pushed yet, as the pages of 0.2.0 and 0.3.0 did. The released state is what the pages describe; the window closes with the tag.A test change in a final-release pull request (step 1’s
184042a4,python/tests): the CHANGELOG’s summary keeps “no change to the library” and lists it in the “Final release (R041)” subsection as “Fixed (tests only)”. It is in thepackagingscope, which is run again anyway; thelibraryandtestsscopes are untouched by it.The
tests-scope suites run again becauseREADME.mdchanged (release.md step 9 requires it; listed here because the task names it as conditional): the sanitizer presets and the mutation CTests, from a fresh clone of the final tree.
Step 3: the review fixes (review-fixes)#
The review of this branch (at ac2efb13) confirmed six findings, all in documents or in the
certificate’s text; none touches a path of the library, tests or packaging scope. Each is
fixed in its own commit:
Finding |
Commit |
Fix |
|---|---|---|
ADRs 0109 and 0096 still said the stability at 0.4.0 was “Pending the author” (release.md’s grep leaves out |
|
a dated Decided note under the status, the existing text not reworded, as ADRs 0047 and 0060 got for 0.3 (commit |
|
|
both rows record the decisions of 2026-11-18 (the rows “AD15 and HD17” and “ADR 0111’s wording”) |
“Streaming label propagation” needs a clone but gave no clone command; “Hypergraph triads” said “the tag of your version” but cloned |
|
“Streaming label propagation” gets the clone block of “Shortest hyperpaths” ( |
The certificate’s page said both |
the certificate’s commit |
the copied sentence of “What was run, and how (measured for 0.4.0rc1)” names |
The |
the certificate’s commit |
recorded again with |
What the fixes mean for the certificate. The documents are paths of the repo scope (the
whole tree but benchmarks/results/), so the repo checks recorded at fe7ecc2c no longer
cover the final tree. They are run again, each from a fresh clone of this branch at this page’s
commit (the last commit outside benchmarks/results/), with the same scripts
($DYNG_SCRATCH/r041/run.sh repo and gpu; logs $DYNG_SCRATCH/runs/r041/fix/) and recorded
under their existing names: check-parity (ci/check.sh --parity, with ci/docs.sh and
ci/python.sh: the fresh-clone runs of acceptance criterion 4), api-check (ci/api_check.sh 4016b469) and one ci/gpu_local.sh --preset parity-cuda run on GPU 1 with every step
passed. The packaging check distributions and the tests checks (the sanitizer presets, the
mutation CTests) stay at fe7ecc2c: git diff from it to the final commit touches no path of
their scopes. Then certify.py write --version 0.4.0 runs again on the committed final tree (and
fails on a scratch copy with a gated row removed). Their results are in the certificate’s
README.md (“Carried over from 0.4.0rc1” and the generated “Checks” table).
Step 4: the acceptance notes#
The acceptance of R041 (round 1, at ef4fae4a: all four criteria met) noted two slips of text,
neither blocking:
CHANGELOG.md, “Final release (R041)”, said that only “Shortest hyperpaths” clones the tagv0.4.0. Since step 3’sdeb55d2d, “Streaming label propagation” and “Hypergraph triads” clone it too (grep -n "git clone --branch" docs/tutorials/*.md: all three). That subsection becomes the text of the GitHub Release, so it now names the three tutorials, with the clone command “Streaming label propagation” had lacked and why a 0.3.0 user of “Hypergraph triads” may clonev0.3.0.This page’s status line named steps 1 and 2 as done; step 3 was done too.
The author decided on 2026-11-26 to fix both in this pull request. The decision is operational,
so it is recorded here and not in GOVERNANCE.md’s approvals log. The fix is this page’s commit,
which changes CHANGELOG.md and this page and nothing else.
What the fix means for the certificate. CHANGELOG.md is a path of the packaging scope
and both files are paths of the repo scope, so the distributions record (at fe7ecc2c) and
the repo records (at 928ee6b2) no longer cover the final tree. Every check of the two scopes
is taken again, each from a fresh clone of this branch at this page’s commit (the last commit
outside benchmarks/results/), exactly as before, with R041’s scripts ($DYNG_SCRATCH/r041/run.sh dist, repo and gpu; logs $DYNG_SCRATCH/runs/r041/textfix/), and recorded under its existing
name, replacing the old record: distributions (the distributions as release.yml builds them for
the tag v0.4.0, the plugins’ GPU tests on GPU 1), check-parity (ci/check.sh --parity with
DYNG_API_BASE=4016b469), api-check (ci/api_check.sh 4016b469) and gpu_local (one
ci/gpu_local.sh --preset parity-cuda run on GPU 1, every step passed). The tests records
(asan, tsan, tsan-openmp and mutation-ctests at fe7ecc2c), the library records (the
gates, the replays and the golden mutations at f60a2f3, sanitizers-hosted at 3b8c6514)
stand: git diff from their commits to this page’s commit over the paths of their scopes
(CODE_PATHS of parity/certify.py) is empty, since README.md, the test paths and the library
paths do not change. Then certify.py write --version 0.4.0 runs again, last, on the committed
final tree (and fails on a scratch copy with a gated row removed). The results are in the
certificate’s README.md and its generated “Checks” table.
Readiness for the tag and the three PyPI approvals#
The orchestrator pushes the branch and opens the final-release pull request (base
main, headrelease-0.4.0-final), with the checklist of release.md. Before the author merges it, a manualwheels.ymlrun with the plugins, green on the pull request’s head commit, is linked in the pull request (release step 4: the only build of the published setup before the tag).The author merges the pull request (merge commit only).
The tag day, 2026-11-28 (UTC): on the merge commit
python ci/wheel_check.py --release-metadata --release-date todaypasses (the machine’s clock runs about 3 minutes behind: not within minutes of 00:00 UTC, open items); if the tag falls on a later day, the dates move in a small pull request first and the packaging and repo checks run again (A tag day later than the final-release pull request). The AI assistant pushes the signed tagv0.4.0on the author’s behalf (git tag -s -m "dynG 0.4.0" v0.4.0, GOVERNANCE.md 2026-11-18).release.ymlbuilds the distributions anew from the tag (select: a final release, plugins on), uploadsdyng-cu12anddyng-cu13to TestPyPI, thendyng, then waits forpypi-cu12andpypi-cu13. The three projects exist on PyPI and TestPyPI since 0.2.0, with their trusted publishers (dyng->pypi,dyng-cu12->pypi-cu12,dyng-cu13->pypi-cu13, workflowrelease.yml, repositorydyng-dev/dyng); 0.4.0rc1’s uploads to TestPyPI used the same workflow and environment names.Before the author approves
pypi-cu12andpypi-cu13, the AI assistant runs release.md’s “The GPU tests of the published plugin wheels” on that run’sdistartifact on GPU 1 (step 1 rehearsed it on 0.4.0rc1’s run: onlyrun=changes; 82 GPU test cases per venv) and reports the result.The author approves
pypi-cu12andpypi-cu13in one dialog, thenpypionce both plugins are on PyPI. If a publish job fails, the failed jobs of the same run are re-run (release.md, “If a publish job fails”);dyngstays unpublished until both plugins are there.The AI assistant creates the GitHub Release
v0.4.0from the CHANGELOG section with the run’s distributions (step 11); no DOI (step 12: Zenodo is not connected); no conda-forge feedstock (step 13: deferred beyond 0.4.0). After the merge thedeployjob ofdocs.ymlpublishes the site without the banner.Step 14: the announcement, the next
.dev0(0.5.0.dev0) inmain, and the approvals-log row of the release (as for 0.3.0’s post-release pull request).
Open items#
For the author:
Merge the final-release pull request once it is green (and the
wheels.ymlrun is linked).The three PyPI approvals of the
v0.4.0run:pypi-cu12andpypi-cu13together, thenpypi, after the GPU tests of the run’s plugin wheels are reported green.A4, Zenodo / DOI: optional, not due for 0.4.0: connecting Zenodo before the GitHub Release would give 0.4.0 a DOI; otherwise 0.4.0 has none, as
docs/citing.mdsays. conda-forge (checkpoint A4’s packaging part) and the aarch64 wheels are deferred beyond 0.4.0 (the author’s decision of 2026-11-18).D11 (the pool footprint between batches; reported only, GOVERNANCE.md’s open decisions): whether a later release trims the pool between updates.
For the orchestrator:
Push the branch, open the pull request, dispatch
wheels.yml(with the plugins) on its head and link the run; report to the author when it is green and ready to merge.The tag day: if the tag is not pushed on 2026-11-28 (UTC), release.md’s late-tag-day procedure applies before the tag.
cuda-build.yml’s CUDA 13 compile job still compiles with 13.4.1 (R040 step 2, deviation 2): moving it to 13.5 changes a job name that is a required status check of the branch protection (docs/developer/repository_settings.md), a repository setting this milestone may not change; a pull request after 0.4.0 can move both together.The machine’s clock (step 1, open item 1): about 3 minutes behind and drifting; on the tag day avoid the minutes around 00:00 UTC for
--release-date today, or check the date against an external source.The scratch work of this step:
$DYNG_SCRATCH/r041/(the scripts, the draft results, the distributions’ files underdist-work/) and$DYNG_SCRATCH/runs/r041/(the logs).
After 0.4.0 (docs/roadmap.md, “0.4.0”, the entries “After 0.4.0” and “Deferred beyond 0.4.0”;
library changes, each with its own gate or ADR 0024 reading, none due for this release):
The
cycle_countOpenMP update under set semantics back to 0.3.0’s cost: the compact-row host apply (apply_set_batch_host) compiles differently with M10’s graph additions, and the update ongithub_k4_25000_25000_s1reads 1.025 againstv0.3.0(graph.apply+2.2 ms per 50,000-edge batch; the author’s decision of 2026-11-21: acknowledged for 0.4.0, fixed after it, read again under ADR 0024).A device allocation order independent of the resident kernel modules (sssp’s persistent kernel about 4 % slower on roadNet-PA’s 50k batches with fewer modules loaded; the author’s decision of 2026-11-13).
label_propagationrefusing weights <= 0; the C++.dgtreaders naming a.dgbfile by its magic and escaping bytes that are not UTF-8 (R040’s review).A vertex-capacity
graph::reserve()(a new public name, for the author); ahyper_sssp::clone(res, h)overload that links the copy at once; the shared shortest-path engine’s located update costs and the rename-only move ofinvalidate_subtreeandpacked_min(ADR 0095).Deferred beyond 0.4.0 (M11): MOSP_ESCHER’s legacy H-SOSP batch generator, incidence edits on
escherstorage andtriad_countonslack_csrstorage, the line graph’soverlaps, an OpenMP backend ofhyper_sssp; still deferred from 0.3.0: the alignment flags (a reading on a CPU without the JCC erratum), the micro-benchmark suites, the hypergraph insert’s D14 serial-path remedy.