Skip to content

Delete Microcosm's Orrery projection; builds and tools write only the collector's inputs #1745

Done

Description

@anth-volk

Summary

Since #1590, UK builds hand the collector their Orrery inputs (graph.schema.json, graph.execution.json and the linked upstream-<sha256>.json files) in the staged bundle, and the collector builds the Orrery graph files with its own copy of the projection. Microcosm still carries its own copy of that projection and uses it for things nothing needs any more:

  • microcosm.graph.orrery and microcosm.graph.orrery_evidence, the orrery_document and orrery_json exports, and the python -m microcosm.graph.orrery command;
  • graph.orrery.json, which every UK build still projects "for viewing offline";
  • the emitter's publication inventory (orrery.upload.json) and the receipt snapshot (orrery.publication.json, which always records skipped / local_only), and the emitter's graph publication module that every build emitter starts only to measure that inventory;
  • tools/orrery-contract/, which checks Microcosm's documents with Orrery's parser;
  • the Reconstruct declaration-only Orrery publications for UK builds before #1144 #1297 reconstruction tool's projected document and inventory.

Change

Decided with Anthony on 2026-11-26:

  1. Delete Microcosm's copy of the projection and everything above. The collector's copy (microcosm-collector, telemetry_collector/orrery/projection/) has the same contents as Microcosm main, so nothing is lost.
  2. UK builds write only the inputs: the schema, the execution overlay and the linked upstream files, and the build emitter starts no graph publication module. Graphs are viewed through the run viewer from the collector.
  3. Replace the deleted command with one that writes the collector's inputs into a new directory from a saved schema and, optionally, a recorded evidence index and its content store, applying the build's check on public summaries.
  4. Split the Reconstruct declaration-only Orrery publications for UK builds before #1144 #1297 reconstruction tool: it stays in Microcosm, keeps its digest checks, revision resolution, rebuilt schema with the microcosm.reconstruction marker and its report, and stops projecting a document or writing an inventory. A test shows that a UK build directory from before Add country-neutral Orrery execution evidence and UK contracts #1144 still yields that marked schema.
  5. Keep --publish-orrery and --no-publish-orrery as flags that change nothing; a later cleanup removes them.

Submitting a reconstructed schema (which has no execution overlay) and marking its document as reconstructed is collector and emitter work outside this repository.

Tracker: task 5a · 1 of "1. Collector/Emitter". It merges only after all of stage 4 is done.

Activity

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