Skip to content

Install microcosm-emitter 0.2.1 from PyPI - #1279

Merged
anth-volk merged 1 commit into
mainfrom
build/emitter-from-pypi
Oct 14, 2026
Merged

anth-volk merged 1 commit into
mainfrom
build/emitter-from-pypi

Conversation

@anth-volk

@anth-volk anth-volk commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR replaces the draft-only Git source pin on microcosm-emitter with the exact PyPI release 0.2.1. It was the last item in docs/orrery-publication.md's "Deferred migration prerequisites", and it was Microcosm's only Git-pinned dependency.

The previous pin, commit 12624a1, had diverged from the emitter's main. It lacks PolicyEngine/microcosm-emitter#11 (bounded service startup) and the final concurrency fixes from #9. 0.2.1 contains both. The emitter's release workflow published it with trusted publishing: every merge to the emitter's main now publishes a new version automatically.

Changes

  • packages/microcosm-build/pyproject.toml: microcosm-emitter==0.2.1, and the [tool.uv.sources] Git override is removed.
  • uv.lock: regenerated. Only the microcosm-emitter entries change: the registry source, plus the wheel and source archive with hashes. The emitter's dependencies are unchanged, and no other package moved.
  • APPROVED_UV_LOCK_SHA256 in microcosm.build.us_runtime.worker_identity now holds the new lockfile digest (6b32bcb1…).
  • docs/orrery-publication.md: "Deferred migration prerequisites" is replaced by "Emitter dependency" (how to adopt a new release) and "Migrating an existing workstation" (the unchanged queue-upgrade guidance).

Compatibility

Validation (local, macOS, Python 3.14)

  • uv sync --all-packages --locked installs microcosm-emitter 0.2.1, and uv run ruff check . passes.
  • Tests: the emitter-adapter, UK full-build, FRS spine and UK Orrery publication tests, plus the engine-free US worker-identity tests, gave 1,545 passed and 8 skipped, with 1 deselected. test_uk_orrery_publication.py alone also passed (15).
  • After rebasing onto main at 1cfbf7d8, uv lock --check and Ruff passed, the lockfile digest still matched APPROVED_UV_LOCK_SHA256, and test_emitter_adapter.py with test_uk_orrery_publication.py passed (34).
  • test_spawned_workers_score_identically_to_sequential_cli can't run on the local interpreter. tools/score_us_release_head_to_head.py refuses --worker-max-slices on Python 3.14.6 ("replacing a recycled worker can deadlock the pool"). That guard checks only the interpreter version, so it is unrelated to this change. CI runs it.
  • Not run locally: the country-engine jobs and the wheels job. CI runs them.

No new runtime variable, credential or service is introduced.

🤖 Generated with Claude Code

@anth-volk anth-volk changed the title Install microcosm-emitter 0.2.1 from PyPI Install microcosm-emitter 0.2.1 from PyPI and use its startup timeout Oct 14, 2026
Replace the draft-only Git source pin on emitter commit 12624a1, which
predates the bounded service startup and final concurrency fixes, with
the exact PyPI release 0.2.1 that the emitter's release workflow
published. uv.lock now records the registry wheel and source archive
with hashes, and the approved primary-QRF worker-identity lock digest
follows the regenerated lockfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anth-volk anth-volk changed the title Install microcosm-emitter 0.2.1 from PyPI and use its startup timeout Install microcosm-emitter 0.2.1 from PyPI Oct 14, 2026
@anth-volk
anth-volk force-pushed the build/emitter-from-pypi branch from 17e508c to 4a4de39 Compare October 14, 2026 17:49
@anth-volk
anth-volk marked this pull request as ready for review October 14, 2026 19:43
@anth-volk
anth-volk merged commit a3e052b into main Oct 14, 2026
10 checks passed
@anth-volk
anth-volk deleted the build/emitter-from-pypi branch October 14, 2026 19:43
juaristi22 added a commit that referenced this pull request Oct 14, 2026
The rebase onto main 121fd4d (#1256, #1279) settled the generated
files with main's side. Regenerated on the rebased tree: the gate
battery digests (main's export allow-list line beside this branch's),
the coverage manifest's source digests and the H2 fixture, whose
synthetic CGT asset-type facts follow the locked engine. The rendered
stages are unchanged. uv.lock merged cleanly (microcosm-emitter 0.2.1
from PyPI beside policyengine-uk 2.130.1), and the lock commits pin
its new digest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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