Skip to content

Describe build folders and the new certification commands in the certification docs - #791

Merged
anth-volk merged 7 commits into
mainfrom
claude/7c-4-certification-docs
Dec 4, 2026
Merged

anth-volk merged 7 commits into
mainfrom
claude/7c-4-certification-docs

Conversation

@anth-volk

@anth-volk anth-volk commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #790

What this changes

The certification docs now describe certifying a US or UK Microcosm build from its own folder, releases/<release>/<build>/, listed in releases.json, with the commands and workflow that replace the tagged-address procedure and the UK qualification workflow:

Files:

  • docs/engineering/runbooks/build-m-us-populace-certification.md is renamed to docs/engineering/runbooks/microcosm-certification.md and rewritten for both countries: naming the builds, choosing the model version, certify-build with every option, what the pull request should change, the scheduled workflow, and running the steps by hand. No pointer file is left at the old name; the one link to it (acs-local-wic-replacement.md) is updated.
  • docs/engineering/skills/data-certification.md is rewritten around certify-build: the build-folder rules, the compatibility bases (including compatibility_checked_exact_pair), the compatibility check, the scheduled workflow, the regional routes (the policyengine-uk-data area route is gone), the core (a certificate on a compatibility record always names its core) and validation. A new "Earlier certifications" section keeps the tagged addresses, the policyengine-uk-data route, the UK qualification workflow and the Certify the Microcosm UK national and local-area pair with policyengine-uk 2.132.6 #685 and Allow a UK local-area release on an accepted model mismatch #699 records as history that current .py refuses.
  • docs/release-bundles.md: the top note, the roles, the certification examples, both example manifests (now Microcosm builds in their own folders), the compatibility rule (the compatibility check replaces the planned data_build_fingerprint basis) and one release workflow for both countries instead of the UK one.
  • docs/bundles.md: its certification examples used tagged addresses; they now point to certify-build.
  • changelog.d/790.changed.md.

docs/engineering/runbooks/uk-qualification.md is left in place: the compatibility workflow's pull request removes it together with certify-uk-release.yaml and the tests that read it. Deleting it here would fail tests/test_uk_qualification_workflow.py on this branch.

No tag address and no policyengine-uk-data step appears outside "Earlier certifications". The tracker's completed state for this task says "no tag addresses"; the history section keeps them by the project owner's decision.

Tests

Docs only, with no testable behaviour, so no test was added. No existing test reads these files' wording. The relative links and anchors in the changed files were checked by reading them; all resolve, and docs/_quarto.yml names no renamed or removed file.

Review

Three rounds of adversarial review, each checking every command, option, path and behaviour claim against the code on the earlier tasks' branches:

  • Round 1: 3 medium, 2 low, all fixed. certify-build must check only builds not made with the model version (the docs say so; see below); a certificate on a compatibility record always names its core; deleting uk-qualification.md here broke a test (restored); the core-claim exception for records; the workflow's skip rule and manual runs.
  • Round 2: 1 medium, 2 low, all fixed. A record for either build binds the core; bundles.md's core sentence; the workflow checks only PyPI's newest version.
  • Round 3: 1 medium, fixed. Certifying moves the model pin to the certified version, so the docs say to pass the bundle's current pin as --model-version when it is newer.

Bugs left in this pull request: none. Two bugs the reviews found in certify-build (running the compatibility check on a build's own model, and reporting bundle_pin for certificates made on a record) were fixed before it merged in #794.

After #789 and #794 merged, main was merged into this branch (conflicts in the two docs #789 edited resolved with this branch's text, which already covered #789's changes), and the docs were rechecked against the merged certify-build and #792: both branch names now include the local-area build, the disk check covers only the builds the check downloads, --pr-base is new, and the workflow queues runs, plans each country separately and fails a certification step after 270 minutes.

What the merge waits for

This branch starts from main. Its merge waits for:

Merging those will conflict with this branch in docs/release-bundles.md and docs/engineering/skills/data-certification.md, which #789 also edits; the conflicts are resolved with a merge commit, keeping #789's meaning.

🤖 Generated with Claude Code

anth-volk and others added 7 commits December 3, 2026 23:08
The certification docs now describe certifying a US or UK Microcosm build
from its own folder with `scripts/bundle.py certify-build`, the
compatibility check (`check-compatibility`) and the Tuesday and Friday
`Check model compatibility` workflow. The US runbook becomes
`docs/engineering/runbooks/microcosm-certification.md` for both countries,
the UK qualification runbook is removed with its workflow, and tagged
addresses and policyengine-uk-data steps remain only in the data
certification skill's "Earlier certifications" history section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The compatibility workflow's branches now name the national build, it runs
certify-build in place and records cancelled runs; check-compatibility
refuses a build's own model and binds the core. Add the changelog fragment
for #790.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- certify-build checks only builds not made with the model version.
- A certificate on a compatibility record always binds its core, and the
  record replaces the release's core claims.
- The scheduled workflow skips a version once any pull request came from
  its branch; a manual run may cover both countries.
- Leave uk-qualification.md to the workflow change that removes it, so this
  branch's tests keep passing on their own.
- Note certify-build's full-commit and --in-place restrictions, and correct
  the regional_release_kind paragraph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A compatibility record for either build binds the certificate's core, and
  the other build's core claims then refuse instead of warning.
- bundles.md names records as a way a certificate binds its core.
- The scheduled workflow checks only the newest version on PyPI.
- Remove the last fingerprint-plan passages, and describe the disk check and
  --output-dir as the code has them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Certifying moves the bundle's model pin to the certified version, and
certify-build defaults to the national build's own model, so the docs now
say to pass the bundle's current pin as --model-version when it is newer.
Also describe --local-area-release's dependency on --local-area-build and
everything --output-dir holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both conflicts keep this branch's text of docs/release-bundles.md and
docs/engineering/skills/data-certification.md, which already says what
#789's edits said: the third basis, the check's command and record, the
core exception for a record, and that a record binds its core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
certify-build (#794) and the compatibility workflow name the local-area
build in the certification branch, check the disk only for the builds the
compatibility check downloads, and certify-build gains --pr-base. The
workflow queues waiting runs, still checks one country when the other can't
be planned, and fails a certification step after 270 minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anth-volk
anth-volk marked this pull request as ready for review December 4, 2026 16:36
@anth-volk
anth-volk merged commit 5e14c74 into main Dec 4, 2026
28 of 46 checks passed
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.

Describe build folders and the new certification commands in the certification docs

1 participant