Repository navigation
Remove the tagged publisher, microcosm-publish-release - #1797
Merged
Merged
Conversation
microcosm-publish-release commits, tags and writes latest*.json pointer files on Hugging Face directly, and refuses every repository that records its builds in releases.json, which the US, UK and BE repositories all do. These tests fail until the command, its module, the shell wrapper, the publish_release and prepare_release functions and the Slack alert only publish_release sent are gone, and until publication_refusal, which microcosm-publish-release-build runs, lives in microcosm.data.release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
microcosm-publish-release (microcosm.data.publish_cli, wrapped by tools/publish_release.sh) committed a release's files to Hugging Face directly, tagged them and wrote a latest*.json pointer file. It refused every repository that records its builds in releases.json, which the US, UK and BE release repositories all do since BE's switch, so it served no repository. The command, its module and the wrapper go, and so do publish_release, prepare_release, PreparedRelease and the private helpers only they used. microcosm.data no longer exports publish_release, and microcosm.data.slack, whose only caller was publish_release, goes with the Slack webhook settings in tools/release.env.example and the README. publication_refusal and its checks, which microcosm-publish-release-build runs, move into microcosm.data.release beside prepare_build_folder_release. The tagged publisher's tests go. The build-folder half of the unregistered UK local-area refusal stays; the two pointer round trips now read a seeded pointer; prepare_build_folder_release gains the two checks only the tagged tests held (a build whose diagnostics generation failed, and the gate evidence a US build binds); the publication checks are tested directly; and the fiscal-refresh tests read the manifest's declared artifacts themselves. The release contract, the README and the agent guide describe one publication command. The pointer readers, their constants and payload builders, and the build-folder switch stay for the tasks that remove them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1 of #1797: removing the tagged publisher's tests left no test of the microcosm#1301 rule on the build-folder path, that a release contract warning is repeated as a warning, listed with the build and in the --preflight-only verdict, and never refuses. prepare_build_folder_release and microcosm-publish-release-build each gain one. The removal test's scan also finds any import of publish_cli, the shell wrapper's name, and references in Markdown, YAML and the CI workflows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1 of #1797. Three sentences still spoke of the tagged publisher as present or of two publication commands: the agent guide's note on tag-pinned annual builds, and the release contract's registry paragraph and its plan for the staging delivery check. The README now says only releases that publishes_to_build_folder names publish. Ruff's TID251 exemption for release.py moves to the datasets group: missing_on_hub and never_cached_offline, which the loader's releases.json read uses, import huggingface_hub too, so the exemption outlives the pointer readers. The unused helpers the removed tests left (_write_uk_build_folder_release, _RELEASES_RECORD and _TagMessageHub in test_release, NonAtomicHub, _declare_root_artifact, _uk_hub and the annual_release fixture in the shared release fixtures) go, and so do two _hf_api patches that wrapped only prepare_build_folder_release, which builds no Hub client. The test of TAGGED_RELEASE_ADVICE is renamed for the refusal that still gives it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 2 of #1797. is_receipt_enrichment had one caller, the tagged publisher's refusal to move latest.json to a reported-receipt enrichment, and has none since; a test now fails until it goes. The removal test also reads every package's console scripts, and its scan finds prepare_release, PreparedRelease, notify_release and microcosm.data.slack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 2 of #1797. The agent guide said no annual build can publish; it now limits that to the tagged annual layout and points new annual builds at microcosm-us-2024-annual in their own folders. is_receipt_enrichment, whose only caller was the tagged publisher, goes, and so does JUNE_UK_RELEASE_ID, which only a removed helper used. The registry, the contract and the recertification module no longer speak of two publishers. The release contract's 2026-11-12 gap list keeps the two tagged-publisher gaps of that date with what has changed since, and the changelog fragment, the example release environment file and microcosm.data.release's docstring say that only releases publishes_to_build_folder names publish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 3 of #1797. The release contract said only tests call the payload builders, but _read_pointer and _current_evidence_build call latest_pointer_payload; only tests call the other two. The 2026-11-12 item about a new country's tagged publish now dates the UK local-area exception to microcosm#1586 (2026-11-14). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anth-volk
marked this pull request as ready for review
November 27, 2026 19:47
anth-volk
added a commit
that referenced
this pull request
Nov 27, 2026
Brings in #1797, which removed the tagged publisher. Conflicts resolved: - pyproject.toml: main moved microcosm.data.release's TID251 exemption into its datasets group and kept one for the switch module; both entries in the conflicted block go, since the module is removed. - release_publication.py's docstring: this branch's removal of "the switch reads them" with main's sentence that the tagged publisher is gone. - docs/release-contract.md: this branch's past-tense lines on the switch tool with main's rewritten pointer-files bullet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 27, 2026
anth-volk
added a commit
that referenced
this pull request
Nov 27, 2026
…ile removal (#1794) main removed the tagged publisher and this branch removed the pointer-file readers, so in microcosm.data.release, microcosm.data's exports, the release tests and their helpers neither side's names stay. With publish_release gone, nothing calls the pointer writers either, so they go in the resolution: latest_pointer_payload, latest_evidence_pointer_payload, LATEST_POINTER_PATH, LATEST_EVIDENCE_POINTER_PATH, LATEST_POINTER_SCHEMA_VERSION and RELEASE_TIER_EVIDENCE, with the tests and the comment that only they used. The publication command's docstring, the agent guide and docs/release-contract.md keep this branch's account of the pointer files and main's account of the tagged publisher's removal. The text main added on the pointer readers and on line_for_release_id goes, since this branch removes them, as does the ruff configuration comment on release.py's pointer readers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1796
Base:
main. Tracker: "1. Collector/Emitter", task 5b · 10 ("Microcosm: Removemicrocosm-publish-release").Merge waits for tracker task 5b · 9 (the read-only confirmation that BE's release repository publishes with
releases.json) to bedone, and for Anthony to mark this ready and merge it.Why
microcosm-publish-release(microcosm.data.publish_cli, wrapped bytools/publish_release.sh) is the tagged publisher:publish_releasecommits a release's files to Hugging Face directly, creates an immutable tag and writes alatest*.jsonpointer file. It refuses every release thatpublishes_to_build_foldernames and every repository that records its builds inreleases.json. Since BE's release repository switched on 2026-11-26, the US, UK and BE repositories all do, so the command serves no repository. Every release build publishes through the emitter withmicrocosm-publish-release-build.What this does
microcosm-publish-releaseentry point (packages/microcosm-data/pyproject.toml),microcosm/data/publish_cli.pyandtools/publish_release.sh.microcosm.data.release:publish_release,prepare_release,PreparedReleaseand the private helpers only they used (_publish_atomic,_commit_operations,_refuse_releases_record,_refuse_build_folder_release, the tag helpers, the manifest artifact helpers and the reserved pointer-path pattern) are gone.microcosm.datano longer exportspublish_release. The module docstring now describes build-folder preparation and the pointer readers that remain.microcosm.data.source_enrichment:is_receipt_enrichment, whose only caller wasprepare_release's refusal to movelatest.jsonto a reported-receipt enrichment, is gone.publication_refusaland its checks (non-release smoke output, a reform validation that skipped its out-of-sample reforms, undelivered staging) move frompublish_cliintomicrocosm.data.release, besideprepare_build_folder_release.microcosm-publish-release-buildimports them from there; their code is unchanged.microcosm.data.slack, whose only caller waspublish_release, is gone, with its test and the Slack webhook settings intools/release.env.exampleand the README. No release command sends an alert; the calibration diagnostics dashboard posts them from changes toreleases.json, as before.pyproject.toml):release.pykeeps its exemption and moves to the datasets group, becausemissing_on_hubandnever_cached_offline, which the loader'sreleases.jsonread uses, importhuggingface_hub, as do the pointer readers.docs/release-contract.md(one publication command; the "new country's tagged publish" gap is closed; the retire-list row records the removal),README.md,docs/agent-guide.md,changelog.d/remove-tagged-publisher.removed.md.After this, no command publishes a release that
publishes_to_build_folderdoesn't name. AM's and NZ's releases join it, and the registry, in the pull request that authorizes their first publication, as the release contract already plans.Tests
packages/microcosm-data/tests/engine_free/shared/test_tagged_publisher_removed.py(new): no package's project file declaresmicrocosm-publish-releaseor a script inpublish_cli;microcosm.data.publish_cliandmicrocosm.data.slackcannot be found; neithermicrocosm.datanormicrocosm.data.releasehaspublish_release,prepare_releaseorPreparedRelease;microcosm.data.source_enrichmenthas nois_receipt_enrichment;publication_refusalis inmicrocosm.data.releaseand refuses non-release smoke output;tools/publish_release.shis gone, and no code, shell, configuration, Markdown or YAML file undertools/,packages/*/srcor.github/workflowsnames the old module, command or wrapper,prepare_release,PreparedRelease,notify_releaseormicrocosm.data.slack.test_release.py, 5 intest_source_enrichment.py, 2 intest_local_area_contract.py, 1 each intest_compatibility_recertification.pyandtest_be_build_folder_releases.py, the command-option tests intest_publish_guard.py, andtest_slack.py.test_publish_guard.pytests the publication checks by callingpublication_refusaldirectly.test_release.pykeeps the build-folder half of the unregistered UK local-area refusal, reads a seeded pointer where it used to publish one first, and gains threeprepare_build_folder_releasetests: a build whose diagnostics generation failed publishes its dataset with a warning and no diagnostics file; a US build lists the gate evidence its manifest binds from its own directory; and a release contract warning is repeated as a warning and listed with the build, never refused (microcosm#1301).test_us_release_publication.pygains a test that--preflight-onlylists the contract warnings in its verdict and still passes.test_source_enrichment.pyreplays the release contract withvalidate_release_dirwhere it used the tagged preflight.test_us_fiscal_refresh_builder.pyreads the manifest's declared artifacts with two test helpers instead of the removed publisher helpers.test_release_contract_keying.py,test_us_receipt_enrichment_release.py,test_us_spm_role_enrichment_builder.pyandtest_transport_evidence_kernels.pydrop their references to the removed code.Commits
7409a5f5eadds the new tests, which failed on assertions before the change (5 failing).f1206201eis the change.fba3d1800(tests) restores coverage of the contract-warning rule and widens the removal test's scan;c8a55d951(fixes) corrects three doc sentences, the README's wording and the Ruff comment, and removes helpers only the removed tests used.14173caf8(tests, one failing on an assertion before the fix) checks thatis_receipt_enrichmentis gone, reads every package's console scripts and widens the scan to the removed function names;08dd69f40(fixes) removesis_receipt_enrichmentand an unused test constant, corrects the agent guide's annual-build paragraph and three source comments, keeps the release contract's 2026-11-12 gap list accurate for its date, and limits "every release publishes" wording to the releasespublishes_to_build_foldernames.254e962d4corrects the release contract's sentence on who calls the pointer payload builders and dates one clause of its 2026-11-12 gap list.Review rounds
f1206201e): one medium-priority bug, the release-contract warning rule (microcosm#1301) left without a test on the build-folder path, fixed by two new tests; one low-priority bug, three doc sentences still describing the old command or two publication commands, fixed. Code-quality findings fixed: the removal test's scan, unused test helpers, two_hf_apipatches that could not fire, the Ruff comment and the README's wording.c8a55d951): one low-priority bug, the agent guide's paragraph saying no annual build can publish, fixed. Code-quality findings fixed: three source comments naming two publishers,is_receipt_enrichmentand a test constant with no caller, the release contract's dated sections, the remaining "every release publishes" wording, and the scan's coverage of the removed function names and other packages' console scripts.08dd69f40, the last round): one low-priority bug, the release contract saying only tests call the pointer payload builders, when_read_pointerand_current_evidence_buildcalllatest_pointer_payload; fixed in254e962d4, with the dated clause it also found. Left: whenmicrocosm-publish-release-buildrefuses a releasepublishes_to_build_folderdoesn't name (an AM or NZ build, for example), its advice (TAGGED_RELEASE_ADVICE) names the US and BE releases and doesn't say that a new country's release joinspublishes_to_build_folderfirst; that message predates this PR and is unchanged.Not in this PR
latest_release,latest_line_release,latest_evidence_release, the loader's pointer fallback), the pointer constants and the pointer payload builders: tracker task 5b · 12.tools/run_uk_cut.py, which Publish run_uk_cut.py builds through the emitter and refuse new direct Hugging Face imports #1743 already moved tomicrocosm-publish-release-build.tools/route_a/route_a.shstill unsetsSLACK_WEBHOOK_POPULACE_USandSLACK_WEBHOOK_POPULACE_UKand setsPOPULACE_RELEASE_ENV=/dev/nullfor its preflights, and its README says so. Nothing reads these variables now, so the settings do nothing; they are left to keep this PR out of the build driver.FakeHubkeeps its commit, branch, tag and upload methods, which no remaining test calls.Environment variables
No workflow, Dockerfile or deploy script changes. The variables the change touches are
SLACK_WEBHOOK_POPULACE_USandSLACK_WEBHOOK_POPULACE_UK, which only the removed Slack module read, andPOPULACE_RELEASE_ENV, which only the removed shell wrapper read. Each came from the operator's shell or the build machine's git-ignoredtools/release.env; nothing reads any of them now, andtools/release.env.exampleno longer declares the two Slack variables.🤖 Generated with Claude Code