Skip to content

Reach Hugging Face and the collector only through the emitter, apart from the agreed exceptions #1742

Done

Description

@anth-volk

Tracking issue for tracker task 5a · 4 of "1. Collector/Emitter" (Microcosm's cleanup after its upload and telemetry code moved into the emitter).

Goal

Microcosm reaches Hugging Face and the collector only through the separately installed emitter, started through microcosm-emitter-interface, apart from the agreed exceptions:

  1. datasets and the release metadata that selects and verifies them;
  2. build inputs;
  3. operator tools that use the operator's own token;
  4. BE's publication tools (microcosm-publish-release, build_folder_switch.py) and Microcosm's latest*.json pointer support, which substage 5b removes.

What was found (Microcosm main at 8c51b6eff)

  • Every Hugging Face write outside tests is in build_folder_switch.py and microcosm-data/release.py (BE, left to 5b), tools/modal_rebuild_uk_chronicle_artifact.py (build inputs) and tools/provision_uk_staging_repository.py (operator tool).
  • No module calls the collector directly; every submission goes through the emitter.
  • tools/run_uk_cut.py still assembles, publishes and promotes as the tagged publisher did. It needs a tag the UK assembler stopped printing at the UK switch (After the UK switch, publish UK national, dense and local-area builds only through the emitter #1537), and it calls microcosm.data.publish_cli, which refuses microcosm-uk-2024-25-national.
  • Microcosm runs the emitter's version, status and telemetry-token commands itself and parses their output, because the interface has no calls for them.

Plan

  • tools/run_uk_cut.py publishes through microcosm-publish-release-build (the emitter) without making the build current, prints a --promote command, and checks releases.json instead of tags and branches.
  • Ruff's TID251 refuses huggingface_hub imports outside the listed exception modules.
  • Trim the history of past emitter minimum versions in telemetry_emitter.py.
  • Remove what 5a · 1 (Orrery hand-over) and 5a · 2 (staging run files) leave behind, once they merge: the two Orrery upload flags; 5a · 2 left nothing.
  • Switch telemetry_emitter.py to the typed emitter_version call (interface 0.18.0). tools/modal_us_stage.py and tools/modal_us_stage_plan.py keep the emitter's commands, since they run without Microcosm's environment (Anthony's decision, 2026-11-26). Originally: switch them all to typed interface calls for version, status and telemetry-token, once a microcosm-emitter-interface release has them (tracker 5a · 3, in PolicyEngine/microcosm-emitter).

Activity

  1. anth-volk commented on Nov 27, 2026

    @anth-volk
    ContributorAuthor

    Completed by #1743, merged on 2026-11-27 (merge commit d2c1ca4). It covers every item above: tools/run_uk_cut.py publishes through the emitter, ruff's TID251 refuses huggingface_hub imports outside the listed exception modules, the history comment above MINIMUM_EMITTER_VERSION is trimmed, the two Orrery upload flags 5a · 1 left are removed (5a · 2 left nothing), and the version check uses microcosm-emitter-interface 0.18.0's emitter_version. The US Modal runner keeps running the emitter's commands itself, as decided for that PR, because it runs without Microcosm's environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions