Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f856d36
Test publishing UK release builds into build folders through the emitter
anth-volk Nov 3, 2026
55f3500
Publish UK release builds into their own folders through the emitter
anth-volk Nov 3, 2026
a90363d
Test that the proposed US releases are recorded but not used
anth-volk Nov 3, 2026
06b25fe
Record the proposed US releases without using them
anth-volk Nov 3, 2026
549544d
Keep the release role mappings immutable and export the new contract …
anth-volk Nov 3, 2026
bba22e7
Test that the proposed US local-area release is populace-us-2024-local
anth-volk Nov 3, 2026
ca252a4
Name the proposed US local-area release populace-us-2024-local
anth-volk Nov 3, 2026
30b3694
Test that the dense contract keeps the local-area package checks
anth-volk Nov 3, 2026
225665a
Keep the local-area contract's package checks to their old scope
anth-volk Nov 3, 2026
aef1376
Merge main into h2c-release-publication-handover
anth-volk Nov 4, 2026
325c0e2
Test the publication command's up-front checks and its advice before …
anth-volk Nov 4, 2026
857e7cd
Check offline mode and write access before a release change, and prin…
anth-volk Nov 4, 2026
4b3f1b3
Name the three UK releases that publish into build folders, and when …
anth-volk Nov 4, 2026
666dfbd
Test that the UK contract accepts the tagged layout until the switch
anth-volk Nov 4, 2026
660873b
Accept the tagged layout for UK releases until the switch
anth-volk Nov 4, 2026
fc324c8
Test that UK releases keep publishing and promoting through the point…
anth-volk Nov 4, 2026
900a927
Keep publishing and promoting UK releases through the pointer files
anth-volk Nov 4, 2026
42bb857
Test that the UK assemblers write today's tagged manifests and commands
anth-volk Nov 4, 2026
ea2310c
Keep the UK assemblers on the tagged manifests until the switch
anth-volk Nov 4, 2026
392deaa
Describe today's UK release flow in the docs again
anth-volk Nov 4, 2026
ae0e327
Test the two publishers' refusals and the loader's pointer-file fallback
anth-volk Nov 4, 2026
d7bce42
Refuse a repository in the other layout, and fall back to the pointer…
anth-volk Nov 4, 2026
0592245
Document publication into build folders as waiting for each repositor…
anth-volk Nov 4, 2026
a06f3d8
Re-push so the pull request picks up this branch after GitHub's 2026-…
anth-volk Nov 4, 2026
6ab56bb
Merge main into h2c-release-publication-handover
anth-volk Nov 4, 2026
a7a039e
Test that only the Hub's 404 for releases.json counts as its absence
anth-volk Nov 4, 2026
9f3367c
Count only the Hub's 404 for releases.json as its absence
anth-volk Nov 4, 2026
651e94d
Say which UK releases keep a publication path through the switch
anth-volk Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,41 @@ reviewed cut with `--promote-line <line> --tag-name <cut-tag>`. Promotion moves
only that line pointer; the UK repository-global `latest.json` remains frozen
on the June 2023 release. Promotion reuses the immutable cut tag the inspect publication created (it checks the tagged manifest is byte-identical) and writes only the pointer commit, so the two-step sequence and a retry after a failed pointer commit both work. A line's registry entry is registered off the default variant until its first promotion; the default flips in a follow-up after the pointer exists.

**Build folders, after a repository's switch.** A UK national, dense or
local-area build can also be published into its own folder,
`releases/<release>/<build>/`, through the separately installed emitter,
whose release writer records it in the repository's `releases.json`, the
only record of each release's builds and which one is current:

```bash
uv run microcosm-publish-release-build releases/<release> \
--repo-id <owner/repository> --artifact-root <candidate-dir> [--make-current]
uv run microcosm-publish-release-build releases/<release> --promote
```

A build counts as current only when the emitter's receipt is `published` and
names it as `current`. Each path refuses a repository in the other's layout,
so the UK national, dense and local-area releases always have one way to
change their current build:

- `microcosm-publish-release-build` lists the repository's files and refuses,
before any emitter starts, while any `latest*.json` pointer file is there.
It also refuses with `HF_HUB_OFFLINE` or `TRANSFORMERS_OFFLINE` set, and
hands nothing over unless the emitter's write-access check passes.
- `microcosm-publish-release` (and `tools/publish_release.sh`) refuses a
repository that has `releases.json`.

So UK releases keep publishing, promoting and sending their Slack alerts
through the pointer files, as above, until their repository's switch, one
commit that writes `releases.json` and deletes the pointer files. Release
alerts do not stop: the switch waits until the dashboard posts them from
changes to `releases.json`. `microcosm.data.load` reads a release's current
build from `releases.json` where the repository has one, and follows its
pointer file otherwise. The UK repository's other releases, the June 2023
release (whose pointer is `latest.json`) and `populace-uk-<year>-<tier>-k<N>`
releases, have no publication path after its switch yet; that is open for
the switch.

The publisher uploads only the contract files, the release manifest's
artifacts and any `--extra-file`. The US fiscal-refresh tool therefore binds
its terminal gate verdicts as manifest artifacts: `input_coverage.json`,
Expand Down
1 change: 1 addition & 0 deletions changelog.d/1504-h2c-release-builds-in-folders.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Microcosm can publish a release build into its own folder through the emitter, while UK releases stay on the pointer files until their repository's switch. The new `microcosm-publish-release-build` command (`microcosm.build.release_publication`, in `microcosm-build`) checks a UK national, dense or local-area build in the build-folder layout with the release contract and hands every file to the separately installed `microcosm-emitter` with the interface's `publish_release` call, which writes `releases/<release>/<build>/` and the repository's `releases.json` in one commit; `--make-current` and `--promote` change the current build, which counts only when the emitter's receipt is `published` and names it as `current`. The command refuses before any emitter starts while the repository still has any `latest*.json` pointer file, or with `HF_HUB_OFFLINE` or `TRANSFORMERS_OFFLINE` set, and hands nothing over unless the emitter's write-access check passes; `microcosm-publish-release` refuses a repository that has `releases.json`. Build-folder manifests name `release` and `build` as strings, record `built_at`, `built_with_model_package` and `built_with_core_package` at the top level and a `role` on each artifact, and pin no `revision`; the release contract checks a UK release in that layout or in the tagged one, which the UK assemblers keep writing. For a registry entry that names a release (UK 2025 national and dense), `microcosm.data.load` reads the current build from `releases.json` where the repository has one, or the listed build `build=` names, and follows the pointer file exactly as before where it does not. UK releases keep publishing, promoting with `--promote-line` and sending Slack alerts through `tools/publish_release.sh` until the switch. The stable releases proposed for US builds, `populace-us-2024-national` (`national`, the default) and `populace-us-2024-local` (`local_area`), are recorded in `microcosm.data.contract.PROPOSED_US_RELEASES` but not used until they are agreed with the US data builder.
2 changes: 2 additions & 0 deletions packages/microcosm-build/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ uk = ["policyengine-uk>=2.165.1", "microcosm-data>=0.1,<0.2", "h5py>=3", "tables
[project.scripts]
microcosm-build-uk = "microcosm.build.uk_runtime.full_build_cli:main"
microcosm-export-us-l0-refit-h5 = "microcosm.build.us_runtime.l0_refit_export:main"
# Publishes a release build into its own folder through the emitter.
microcosm-publish-release-build = "microcosm.build.release_publication:main"

[project.urls]
Homepage = "https://microcosm.institute"
Expand Down
Loading
Loading