Skip to content

Make the downstream importer registry executable - #366

Merged
docxology merged 1 commit into
mainfrom
feat/importer-conformance
Nov 12, 2026
Merged

docxology merged 1 commit into
mainfrom
feat/importer-conformance

Conversation

@docxology

Copy link
Copy Markdown
Collaborator

The estate carries 42 repositories that apply GNN across a dozen pin shapes (commit/revision, tag/release, four file locations). Nothing could check them as a whole: each repository hand-rolled its own conformance job, and the prose registry had no machine-readable mirror.

What lands

  • src/gnn/importers.py — the single reader for those pins. python -m gnn.importers check --repo . normalizes the pin, reads the specifications the pin declares (or discovers them), and validates each at the compliance level — the normative section contract, not just a parse — with the installed parser. Findings carry stable codes (pin-missing, pin-commit-mismatch, pin-tag-mismatch, spec-missing, spec-invalid, pin-schema-legacy) and --json emits the whole report.
  • docs/downstream/importers.json — 42 rows (23 with a specification, 14 pinned-baseline, 5 contract-only), each with pin path, revision, specification count and conformance job.
  • scripts/check_importer_registry.py — keeps the prose and JSON forms one artifact: schema, docs↔JSON parity in both directions, pin parity against the declared upstream release, and the spec-count contract per row kind. Offline and deterministic; --online re-reads every public repository's pin and job at origin and stays report-only.
  • run.sh gates + CI quality run the offline check. The downstream agent guide now states the split precisely: internal consistency is gated, per-repository currency is report-only.
  • docs/development/interop.md, INDEX.md, CHANGELOG.md document the consumer command and the registry.

First estate-wide pass

14 repositories pass. Five parse but do not satisfy the normative section contract:

Repository Finding
Active_Fedference 5 specs missing Time; no dedicated pin file (commit recorded in a backend lock, no tag)
active_fractal_rabbit 2 specs missing InitialParameterization
active_inference_power InitialParameterization missing; connection target s:prior_initialization undeclared
on_policy_distillation 2 specs missing InitialParameterization; J:cross_stream_coupling undeclared
policy_entanglement 3 specs naming undeclared J/J12 in connection targets

Those are recorded in the registry and fixed in their own repositories; this gate checks internal consistency only.

Verification

Check Result
ruff format --check / ruff check 1634 files formatted; all checks passed
mypy src/gnn .github/release_gate.py no issues in 781 source files
pytest tests/gnn/test_importers.py 28 passed
check_importer_registry.py (offline) 42 repositories, verdict ok
check_importer_registry.py --online 42 public repositories re-read at origin, no drift
docs_audit --strict --check-anchors, check_doc_contracts, check_capability_contracts, check_gnn_doc_patterns all pass

The red checks on this PR are the org-wide Actions billing lock, not code.

The estate carries 42 repositories that apply GNN across a dozen pin shapes
(`commit`/`revision`, `tag`/`release`, four file locations), and nothing could
check them as a whole: each repository hand-rolled its own conformance job, and
the prose registry had no machine-readable mirror.

- `src/gnn/importers.py` is the single reader for those pins. `python -m
  gnn.importers check --repo .` normalizes the pin, reads the specifications the
  pin declares or discovers them, and validates each at the compliance level
  (the normative section contract, not just a parse) with the installed parser.
  Findings carry stable codes and `--json` emits the whole report.
- `docs/downstream/importers.json` mirrors the registry tables: 42 rows with pin
  path, revision, specification count and conformance job.
  `scripts/check_importer_registry.py` keeps the prose and JSON forms one
  artifact offline and deterministically (schema, docs parity both ways, pin
  parity against the declared upstream, spec-count contract per row kind), and
  its `--online` mode re-reads origin report-only for release preparation.
- `run.sh gates` and the CI `quality` job run the offline check; the downstream
  agent guide states the split (internal consistency gated, currency report-only).
- The first estate-wide pass found five repositories whose specifications parse
  but omit a required section or name an undeclared matrix. Those are recorded
  here and fixed in their own repositories.
@docxology
docxology merged commit e6a9d39 into main Nov 12, 2026
0 of 26 checks passed
docxology added a commit that referenced this pull request Nov 12, 2026
…382)

Every member that attempted the cutover discovered the same blocker: the estate
pin is v5.0.3 at 8f293d9, and gnn.importers was added later in e6a9d39
("Make the downstream importer registry executable", #366). A virtual environment
built from the pinned revision has no gnn.importers module, so the contract's
single call cannot run there.

- Add "Prerequisite: the reader ships in a revision, not in a version name":
  adoption is staged by the pin; until a member's pin contains
  src/gnn/importers.py it keeps its own reader with the pin/pointer drift check;
  cutover lands in the change that advances the pin.
- Record the eight blocker PRs as the cutover queue; none merges before the pin
  moves.
- Fix the upstream row: this repository verifies the reader with ./run.sh
  contracts, never with an importer check.

check_importer_registry.py: 42 repositories, group gnn-fep 22 members,
20 call the reader directly, verdict ok.
docxology added a commit that referenced this pull request Nov 12, 2026
* Prepare GNN 5.1.0 as the importer-registry release

`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.

* Re-render the manuscript for 5.1.0

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.

* Make the 5.1.0 release record exact

`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 deleted the feat/importer-conformance branch November 12, 2026 16:12
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