Skip to content

Release GNN 5.1.0 with the downstream importer registry - #385

Merged
docxology merged 3 commits into
mainfrom
release/v5.1.0
Nov 12, 2026
Merged

docxology merged 3 commits into
mainfrom
release/v5.1.0

Conversation

@docxology

Copy link
Copy Markdown
Collaborator

Why this release exists

docs/workflows/gnn-fep.md states the prerequisite exactly: gnn.importers was added in e6a9d3917 ("Make the downstream importer registry executable", #366), the estate pins v5.0.3 at 8f293d9b, and cutover happens in the same change that advances a member's pin past a release containing the reader. Measured on origin/main (39595075a) before any edit:

$ git describe --tags --contains e6a9d3917; echo $?
fatal: cannot describe 'e6a9d39174ebc6ec6741f7dc2eeb85fb7cf7c2e3'
128

No tag contains the module. Counted from the committed registry:

$ python3 -c "import json; d=json.load(open('docs/downstream/importers.json')); g=d['workflow_groups']['gnn-fep']['members']; rows={r['repo']: r for r in d['importers']}; imp=[m['repo'] for m in g if m['repo']!='Generalized_Notation_Notation']; print(len(g), len(imp), len([n for n in imp if (rows[n].get('pin') or {}).get('tag')=='v5.0.3']))"
22 21 19

Twenty-two group members, twenty-one importers, nineteen pinned to the v5.0.3 release tag (fep_formal pins content hashes and pymdp records its revision in code, so neither advances a tag). Those nineteen cutovers wait on a release, not on member work. This PR cuts it.

What changes

Three commits, one purpose, no code change beyond the version literal:

  1. b88df7134 — version 5.1.0 across every surface the repository's own contract covers, plus the 5.1.0 changelog section:
Surface File
canonical version + frozen lock pyproject.toml, uv.lock (written by uv version 5.1.0)
package dunder src/gnn/__init__.py (gnn.cli and gnn.api.MODULE_VERSION re-export it)
citation metadata CITATION.cff (version, date-released)
badges and software statements README.md, .github/README.md
supported-version table SECURITY.md
release history docs/VERSION_MAP.md, CHANGELOG.md
install instructions that select a tag README.md, SETUP_GUIDE.md, docs/SETUP.md
consumer-facing version statements docs/development/interop.md, docs/development/interop_api.md

The importer-conformance entries move out of CHANGELOG.md [Unreleased] into the 5.1.0 section, because this release is what publishes them. GNN_RELEASE_DATE, which the manuscript reads, comes from that section heading.

  1. 819ad311e — the SC-22 ritual at the final content state, in the template checkout that manuscript/05_reproducibility.md documents: the producer wrote manuscript/config.yaml (5.1.0, 2026-11-12) and the token map at source b88df7134; python -m scripts.manuscript_build_figures rebuilt the seven figures; the template's stage_03_render at revision f1fc24de produced the PDF, HTML and ten slide decks; scripts/z_record_manuscript_render_manifest.py recorded the custody manifest with GNN_TEMPLATE_REVISION exported. Rendered with TEMPLATE_DETERMINISTIC=1, so XeTeX stamps the HEAD commit epoch and the PDF canonicalizer rewrites the trailer id and font-subset prefixes. Recorded PDF: 1,448,935 bytes, sha256 d40b1de12593a718430cd63628fb0b7ede5af53f93a11a099dfe47b454351185.

  2. e48b15689 — record corrections: the reader's PIN_CANDIDATES lists seven locations, not the stale "four" the pre-release text carried, and the security row now states the narrower claim the evidence supports.

Why 5.1.0 and not 5.0.4

docs/releases/README.md: "patch releases repair compatible behavior and documentation, minor releases add compatible capabilities". gnn.importers is a new module with a new python -m gnn.importers command, a new pin schema identifier (gnn-importer-pin/v1) and a new manuscript-variable map (gnn-importer-variables/v1); nothing existing breaks. That is a compatible capability.

Gates

Hosted GitHub Actions is billing-locked in this organisation. No hosted run was dispatched, and no hosted arm is claimed.

./run.sh gates — canonical local gate, exit 0

$ ./run.sh gates
== gate: ruff format --check + ruff check ==
1637 files already formatted
All checks passed!
== gate: mypy ==
Success: no issues found in 781 source files
== gate: pytest + coverage floor ==
18 workers [9085 items]
TOTAL                                                                85534  18678    78%
Required test coverage of 60.0% reached. Total coverage: 78.16%
====== 9085 passed, 48 warnings, 10 subtests passed in 108.36s (0:01:48) =======
== gate: docs / terminology / capability contracts ==
  verdict: ok
== gate: MCP functional surface + collection ==
============================== 97 passed in 2.18s ==============================
== gate: v3 orchestration acceptance ==
28/28 checks passed
✅ v3.0.0 acceptance PASSED
== gate: green ==
Wall time: 129.46 seconds

(Ruff format/check, mypy, the coverage-floored unit suite, the documentation/terminology/doc-contract audits, the capability audit, the MCP surface plus whole-tree collection, and the v3 orchestration acceptance gate.)

just release-preflight — refused at the flag-parity step

$ just release-preflight
...
check_flag_parity: 889 maintained doc files, 134 registered flags, 271 doc tokens.
check_flag_parity: phantom_doc_flags = 137 (cap 124).
check_flag_parity: undocumented_registered = 0 (cap 0).
error: recipe `release-preflight` failed on line 361 with exit code 1

This is pre-existing on origin/main, measured in a clean detached worktree at 39595075a before any edit:

$ git worktree add --detach /tmp/gnn-preflight-probe origin/main
$ cd /tmp/gnn-preflight-probe && uv run --frozen --extra dev python scripts/check_flag_parity.py
check_flag_parity: 889 maintained doc files, 134 registered flags, 271 doc tokens.
check_flag_parity: phantom_doc_flags = 137 (cap 124).
$ echo $?
1

scripts/flag_parity_caps.json was last set at c025cfd55, and that tree passes at exactly 124. The 13-token drift since then is entirely from the importer/documentation wave that landed afterwards:

  • 9 first-party flags whose parsers are not in the gate's first-party registration list (src/gnn/importers.py, scripts/check_importer_registry.py, scripts/run_model_family_acceptance.py): --expected-commit, --job, --online, --pin, --pin-party, --repo, --require-pointer, --workflow, --families;
  • 5 third-party flags documented in maintained prose: --arm (a member repository's scripts/release_check.py) and pytest's --junitxml, --strict-config, --durations-min, --maxfail;
  • one the other way: --reload no longer appears in maintained docs.

This branch adds no new phantom token: comparing per-file token lists between origin/main and this branch yields added by branch: [], removed by branch: [], and the measured value is 137 on both. (CHANGELOG.md and docs/VERSION_MAP.md are in the gate's historical-file exclusion, so the release text cannot move it either.) Making that arm green needs one of two things this release must not do — weaken the ratchet cap or delete truthful documentation — so it is recorded red rather than reported green. It is a separate repair: register the two importer CLIs and either document their undocumented flags or move the pytest/member-flag citations to per-tool pages, then lower nothing and re-measure.

just manuscript-custody — SC-22 dry half, exit 0

$ just manuscript-custody
============================== 37 passed in 1.83s ==============================

$ uv run --frozen --no-sync python scripts/check_manuscript_tokens.py --strict
Manuscript token/citation integrity: clean

scripts/z_verify_fresh_render.py — fresh render against the recorded chain, exit 0

$ GNN_TEMPLATE_REVISION=$(git -C <template> rev-parse HEAD) uv run --frozen --no-sync --extra dev python scripts/z_verify_fresh_render.py
[render-custody] [ENV] comparing 3 rendered artifacts (_combined_manuscript.log, _combined_manuscript.md, _combined_manuscript.tex) and 13 render inputs
fresh render matches .../output/data/manuscript_render_manifest.json

just importers — downstream registry parity, exit 0

$ just importers
importer registry: 42 repositories, upstream v5.0.3
  pin schema: 40 of 40 pins declare gnn-importer-pin/v1
  group gnn-fep: 22 members, 20 call the reader directly
  verdict: ok

Every member row still records v5.0.3 at 8f293d9ba810e6eda5c09842d9c7ed9ffa5f92c1: member pins move in the members' own cutover PRs, not here. The parity gate re-derives the prose and JSON forms from those rows, so it would fail if this PR had moved one.

tests/main/test_version_consistency.py — the version contract, exit 0

$ uv run --frozen --no-sync python -m pytest tests/main/test_version_consistency.py -q --no-cov
============================== 1 passed in 0.10s ===============================

That test asserts gnn.__version__, gnn.cli.__version__, gnn.api.__version__, gnn.api.MODULE_VERSION and the installed distribution metadata all equal pyproject.toml's 5.1.0.

The tree also carries the reader and the command the release publishes:

$ git ls-tree -r HEAD --name-only -- src/gnn/importers.py
src/gnn/importers.py
$ PYTHONPATH=src uv run --frozen --no-sync python -c "import gnn; print(gnn.__version__)"
5.1.0
$ PYTHONPATH=src uv run --frozen --no-sync python -m gnn.importers --help
usage: python -m gnn.importers [-h] {check} ...

Additional fast arms (the rest of just quality, run individually)

just quality chains its recipes and stops at the first refusal, so the arms that follow flag-parity were run on their own:

$ just import-linter          -> Contracts: 3 kept, 0 broken.                                  (rc=0)
$ just thin-orchestrators     -> 25 orchestrators, max 121 lines (hard cap 150, ratchet 121).  (rc=0)
$ just shadow-guard           -> 25 numbered orchestrators carry the guard before the first import. (rc=0)
$ just ontology-pin           -> verified .../active_inference_ontology_terms.json (sha256 b19e3d4c70cb7d47276978f4b1f21777089243f6a8514e86656b9e15f639656a) at 4450e8ddbd06cca02a0009f0c29364e1b96a709c; bridge release v5, 64 declared labels, 429 terms. (rc=0)
$ just dep-hygiene           -> 0 stale mypy override(s) of 37 entries (cap 0).                (rc=0)
$ just validate-surface      -> validate_noncanonical_defs=2, internal_callers_noncanonical=0, doc_refs_noncanonical=7. (rc=0)

just skills-health refuses, and it refuses identically on origin/main:

$ just skills-health
Skills: 31 SKILL.md files, 562 checks
6 finding(s)
  src/gnn/api/SKILL.md: MCP tool 'gnn_submit_job_mcp' not registered
  src/gnn/api/SKILL.md: MCP tool 'gnn_get_job_status_mcp' not registered
  src/gnn/api/SKILL.md: MCP tool 'gnn_cancel_job_mcp' not registered
  src/gnn/api/SKILL.md: MCP tool 'gnn_delete_run_mcp' not registered
  src/gnn/api/SKILL.md: MCP tool 'gnn_list_jobs_mcp' not registered
  src/gnn/api/SKILL.md: MCP tool 'gnn_get_pipeline_tools_mcp' not registered
6 finding(s) — use --strict to fail.
error: recipe `skills-health` failed on line 119 with exit code 1

The same six findings, from the same file, are produced by a clean detached worktree at origin/main; this branch changes neither src/gnn/api/SKILL.md nor the API MCP registrations. Recorded red, not green, and not repaired here.

Merge, tag and release

Per docs/releases/README.md ("After the accepted PR is merged normally, verify main has exactly the qualified Git tree and preserve its producer ancestry. Create the annotated candidate tag at that exact main commit"), the tag is created on the squash-merge commit on main after this PR lands, not on the branch head, and the GitHub release body is the 5.1.0 changelog section.

What this does not claim

  • Any hosted run, check, attempt or job. The sixteen tag-triggered workflows have not run for this commit.
  • A green just release-preflight. It refuses at check_flag_parity for the drift documented above.
  • Uploaded distribution assets. The GitHub release carries source archives only, like 5.0.3; no wheel, sdist or manuscript asset is attached. PyPI and exact-version archival are separate destinations with their own credentials and receipts.
  • Any reader-contract, registry-schema or member-pin change. The only executable line changed is gnn.__version__.

`gnn.importers` landed in `e6a9d3917` ("Make the downstream importer
registry executable", #366) and no tag contains it: the estate pins `v5.0.3`
at `8f293d9b`, which predates the module, so an environment built from the
pin has no reader and `python -m gnn.importers` cannot run there. Nineteen
downstream cutovers wait on a release, not on member work.

Bump the version to 5.1.0 — a new module is added public surface, so this is
a minor bump — across every surface the version-consistency contract covers:
pyproject.toml (canonical), uv.lock, gnn.__version__, CITATION.cff, the
README and .github badge and software statements, the SECURITY
supported-versions table, the version map, the two interoperability guides
and the install instructions that select a published tag.

Add the 5.1.0 changelog section and move the downstream-importer-conformance
entries out of Unreleased, since this release is what publishes them. The
release date the manuscript reads comes from its heading.

No reader contract, registry schema or member pin changes here: the registry
keeps recording `v5.0.3` at `8f293d9b` until each member's own cutover
advances its pin. The manuscript re-render that renews the custody chain for
the new version follows as its own commit.
SC-22 ritual at the final content state, in the template checkout documented
by manuscript/05_reproducibility.md: the producer wrote manuscript/config.yaml
(version 5.1.0, date 2026-11-12) and the token map from source `b88df7134`,
scripts.manuscript_build_figures rebuilt the seven figures, the template's
stage_03_render at revision `f1fc24de` produced the PDF, HTML and slides, and
scripts/z_record_manuscript_render_manifest.py recorded the custody manifest
with the template revision exported.

Rendered with TEMPLATE_DETERMINISTIC=1 so xelatex stamps the HEAD commit epoch
as /CreationDate and the PDF canonicalizer rewrites the trailer id and
font-subset prefixes: the PDF is byte-stable rather than wall-clock stamped.
Recorded PDF: 1,448,935 bytes, sha256
d40b1de12593a718430cd63628fb0b7ede5af53f93a11a099dfe47b454351185.

The counts and the custody manifest describe `b88df7134`; the artifacts land
in this commit, as the ritual's ordering requires. No further owner-file edit
follows.
`PIN_CANDIDATES` in `src/gnn/importers.py` lists seven locations
(`.github/gnn-pin.json`, `specs/gnn-pin.json`, `gnn/upstream.json`,
`models/gnn-pin.json`, `models/gnn.pin.json`, `NHIM/gnn-pin.json`,
`.github/gnn-pair.json`) and `docs/workflows/gnn-fep.md` already says seven.
The pre-release changelog text said four, which was stale; the release notes
must not ship a wrong count.

The security row claimed "local gate arms passed"; the canonical local gate
(`./run.sh gates`) passed, while `just release-preflight` refuses at its
flag-parity step for drift that predates this branch. State the narrower,
true claim.

No derived token moves: the token map counts files, not changelog lines, and
`GNN_RELEASE_DATE` still reads the 5.1.0 heading. The re-render commit still
describes `b88df7134` and remains valid.
@docxology
docxology merged commit 75c834b into main Nov 12, 2026
0 of 25 checks passed
@docxology
docxology deleted the release/v5.1.0 branch November 16, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant