Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions changelog.d/emitter-version-through-interface.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Builds read the installed emitter's release through `microcosm-emitter-interface`'s `emitter_version` (0.18.0) instead of running `microcosm-emitter version` and parsing its output themselves; the refusals and warnings say the same. `microcosm-build` now requires interface 0.18.0, and the installed-emitter job tests emitter 0.18.0 beside the minimum, 0.17.0.
1 change: 1 addition & 0 deletions changelog.d/huggingface-hub-imports-listed.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ruff's banned-import rule (`TID251`) refuses `huggingface_hub` outside the modules `pyproject.toml` lists with the exception that covers each (datasets and their release metadata, build inputs, operator tools, BE's publication tools, tests), so new code reaches Hugging Face through the emitter.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`tools/run_uk_cut.py` publishes a UK national build through the build-folder publisher (`microcosm-publish-release-build`, which hands it to the emitter) without making it current, and prints a `--promote` command. It reads the build the assembler prints instead of a tag the assembler has not printed since the UK switch, publishes nothing once `releases.json` lists the build, and no longer checks for a `release-staging` branch.
1 change: 1 addition & 0 deletions changelog.d/uk-orrery-upload-flags.removed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UK full builds no longer accept `--publish-orrery` or `--no-publish-orrery`, which have changed nothing since builds stopped uploading their graph (#1590); a launcher that still passes either stops with an unrecognized-argument error. `tools/run_uk_cut.py` passes neither.
3 changes: 2 additions & 1 deletion docs/agent-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ release whose build recorded staging telemetry that never reached its repo
publishes without the flag. A UK national cut runs end to end with
`tools/run_uk_cut.py` ([uk-cut-anyone.md](uk-cut-anyone.md)): inputs fetched
by pin, a signing key registered in `microcosm.data.gate_signing_keys`, and
an inspection-only `--publish`. Never publish or promote artifacts as a side
a `--publish` that publishes the build through the emitter
(`microcosm-publish-release-build`) without making it current. Never publish or promote artifacts as a side
effect of another task. A UK rowwise run's **staged** bundle
(`staged/<run_id>/` in the private repository, written by the build itself)
is inspection evidence, not a release: it never moves `releases/` or
Expand Down
11 changes: 6 additions & 5 deletions docs/orrery-publication.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ into a new directory and uploads nothing (see
a later emitter command, `microcosm-emitter backfill-orrery <dir>`, is planned
to run it and submit the result.

`--publish-orrery`, which asked for an upload to the public Orrery (María's
ruling of 2026-10-26 made that upload opt-in), now prints a warning and
changes nothing; `--no-publish-orrery` is accepted too and changes nothing.
A later cleanup removes both flags.
Builds have no `--publish-orrery` or `--no-publish-orrery` option any more.
The first asked for an upload to the public Orrery (María's ruling of
2026-10-26 made that upload opt-in), and both changed nothing once builds
stopped uploading their graph; a build given either now stops with an
unrecognized-argument error.

Microcosm's build adapter (`microcosm.build.telemetry_emitter`) starts the
separately installed `microcosm-emitter` command as the build's child process
Expand Down Expand Up @@ -161,7 +162,7 @@ Hugging Face.
## Emitter dependency

`packages/microcosm-build` depends on `microcosm-emitter-interface`
(`>=0.16.0,<1`), the dependency-free package of typed calls, which `uv.lock`
(`>=0.18.0,<1`), the dependency-free package of typed calls, which `uv.lock`
records with its hashes. The emitter itself, `microcosm-emitter`, is not a
workspace dependency: each machine installs it on its own with
`uv tool install microcosm-emitter`, and the Modal image installs the newest
Expand Down
12 changes: 6 additions & 6 deletions docs/release-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -1144,11 +1144,11 @@ work.
without looking for `releases.json`, and `publish_release`, which writes
it. They leave once no registered repository lacks `releases.json`. The
plan names no owner or milestone for them yet.
- *The UK cut runner.* `tools/run_uk_cut.py` still builds the tagged
publisher's arguments for the UK national release, and
`docs/uk-cut-anyone.md` still describes them; `prepare_release` refuses
that release. Moving the runner to `microcosm-publish-release-build` falls
to the UK cut's owner.
- *The policyengine.py certification tool.*
`tools/certify_uk_cut_in_policyengine_py.py` still reads a national
build's manifests at its tag (`--national-tag`), so it cannot certify a
build published into its own folder, such as one `tools/run_uk_cut.py`
publishes through `microcosm-publish-release-build`.
- *policyengine.py's pins.* Its bundle, read on 2026-11-11 at 5b6d7901c,
pins builds by tag; version 1 pins each by release and build in its
folder.
Expand Down Expand Up @@ -1447,7 +1447,7 @@ fixtures:
roles or retired fields;
- the emitter interface's `add_build`, `make_current` or
`ReleasesRecord.serialize` (the repository requires
`microcosm-emitter-interface>=0.16.0,<1`);
`microcosm-emitter-interface>=0.18.0,<1`);
- the registry;
- the generator's `WRITERS` table, or one of its synthetic inputs, such as a
build name, the fixture instant or a runtime version. A change of that kind
Expand Down
33 changes: 21 additions & 12 deletions docs/uk-cut-anyone.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Building a UK national cut without the original builder's machine

Any team member or agent session with the credentials below can build, sign
and publish a Microcosm UK national cut, then open its policyengine.py
certification pull request. Each input comes from Hugging Face and is checked
against the pins the build itself enforces.
and publish a Microcosm UK national cut. Its policyengine.py certification
pull request waits for the certification tool to read builds published into
their own folders (see [Certifying into policyengine.py](#certifying-into-policyenginepy)).
Each input comes from Hugging Face and is checked against the pins the build
itself enforces.

This is the short path. The step-by-step reference behind it stays in
[uk-national-release-assembly-runbook-806.md](uk-national-release-assembly-runbook-806.md).
Expand Down Expand Up @@ -33,7 +35,7 @@ export HF_TOKEN=…
# The key goes to this one command, never to the whole shell:
MICROCOSM_UK_TERMINAL_GATE_SIGNING_KEY="$(security find-generic-password -a "$USER" -s microcosm-uk-gate-signing-key -w)" \
uv run --no-sync python tools/run_uk_cut.py all --label sat24 # build, certify, assemble
# add --publish to publish for inspection
# add --publish to publish the build without making it current
```

The runner passes the key on only to the steps that sign (spine, national
Expand Down Expand Up @@ -94,7 +96,7 @@ derive from licensed data:
| `cuts/<label>-<sha9>/national/` | the calibration run |
| `cuts/<label>-<sha9>/release/` | the assembled release |
| `cuts/<label>-<sha9>/logs/` | one log per step |
| `cuts/<label>-<sha9>/cut_receipt.json` | commit, engine, the signing key's fingerprint (from the signed reports), input pins, step timings, tag |
| `cuts/<label>-<sha9>/cut_receipt.json` | commit, engine, the signing key's fingerprint (from the signed reports), input pins, step timings, build |

If the machine runs a disk cleaner, keep it away from the work directory for
the length of a run. On a host booked through a reservation tool, pass
Expand All @@ -104,16 +106,18 @@ missing. Without them no reservation is checked.

### What it will not do

- **It never moves a default.** `--publish` always passes `--no-latest
--tag-only`, so `populace-uk-private`'s main branch, its root files and
`latest-*.json` stay where they are.
- **It never promotes.** Promotion (`--promote-line national`) is a separate,
reviewed call. The runner prints the command for it.
- **It never moves a default.** `--publish` publishes the build into its own
folder through the emitter (`microcosm-publish-release-build`, run as
`python -m microcosm.build.release_publication`), which lists it in
`populace-uk-private`'s `releases.json` without making it the release's
current build. A rerun publishes nothing once `releases.json` lists it.
- **It never promotes.** Promotion (`microcosm-publish-release-build
--promote`) is a separate, reviewed call. The runner prints the command for
it.
- **It never publishes to the public Orrery.** No build uploads its graph:
the national build's staged bundle submits the graph's inputs to the
collector, which keeps a licensed build's graph private
([orrery-publication.md](orrery-publication.md)). The national step still
passes `--no-publish-orrery`, which builds accept and ignore.
([orrery-publication.md](orrery-publication.md)).
- **It never certifies into policyengine.py.** That is a pull request in
another repository; see [Certifying into policyengine.py](#certifying-into-policyenginepy).
- **It builds only from main.** It refuses a commit that is not on
Expand Down Expand Up @@ -386,6 +390,11 @@ anyone verify; that is tracked in microcosm#1406.

## Certifying into policyengine.py

`tools/certify_uk_cut_in_policyengine_py.py` still reads a national build by
its tag (`--national-tag`, the manifests at that revision), and builds
published into their own folders carry no tag, so it cannot yet certify a
build `run_uk_cut.py` publishes. The command it takes:

```bash
uv run --no-sync python tools/certify_uk_cut_in_policyengine_py.py \
--national-tag microcosm-uk-2024-25-national-<ts>-<id> \
Expand Down
2 changes: 1 addition & 1 deletion packages/microcosm-build/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies = [
# microcosm-emitter`) and started as the build's child process, so an
# emitter release needs no change here. The socket protocol carries its
# own version, and every emitter release accepts the versions in use.
"microcosm-emitter-interface>=0.16.0,<1",
"microcosm-emitter-interface>=0.18.0,<1",
# The US base command records each loaded BLAS library's thread count in
# its run configuration. scikit-learn already depends on it; 3.6 reads
# the scipy-openblas library that numpy 2 wheels bundle.
Expand Down
Loading
Loading