Skip to content

Submit UK Orrery inputs with the staged bundle and upload no graph - #1590

Merged
anth-volk merged 16 commits into
mainfrom
claude/uk-orrery-inputs-to-collector
Nov 13, 2026
Merged

anth-volk merged 16 commits into
mainfrom
claude/uk-orrery-inputs-to-collector

Conversation

@anth-volk

@anth-volk anth-volk commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1589

What this changes

UK builds stop uploading their graph to the runs application. Their staged bundles hand the collector the inputs it builds Orrery graph files from.

Bundle file Role before Role now Collector role
graph.schema.json orrery_graph_schema_json orrery_schema schema
graph.execution.json orrery_graph_execution_json execution_overlay execution_overlay
each upstream-<sha256>.json the projection links orrery_upstream_json orrery_upstream upstream
  • microcosm.build.staging_dataset.output_role gives these three kinds of file the interface's roles. That covers a dataset bundle, which registers them under orrery/, and a failed build's evidence bundle, which registers them by name. The emitter plans one orrery-inputs submission for a bundle that names its build (Name the build for the collector in UK staged-bundle hand-overs #1588) and holds both a schema and an overlay. Only an upstream file named by a full SHA-256 gets the role, which matches the collector's naming rule.
  • With Switch collector submissions on and submit calibration diagnostics at staging and at release #1600, every emitter a build or the re-stage command starts has its collector submissions on, so a remotely staged UK bundle now makes two collector submissions, calibration-diagnostics and orrery-inputs, and the build waits up to ten minutes for the collector to accept them.
  • Collector warnings per submission. Emitter 0.15.0 sums a hand-over's submissions up as pending while one is still being sent and awaiting_final_status while one awaits the collector's final status, even when the other has already been turned down, and once both have settled the summed status and code are one submission's. collector_submissions.follow_collector_submissions now reads a receipt that lists its submissions one by one, and warns about each one that was rejected, failed or timed out, naming its kind; a pending receipt then also says the rest of the submissions stay queued. skipped receipts, receipts that list no submissions, and pending receipts with nothing turned down keep their earlier warnings. A turned-down receipt whose entries explain nothing is reported as a whole, and a malformed entry never raises into the build.
  • orrery_publication.finalize_graph queues no upload to the runs application. Its receipt is skipped (local_only) whatever the flags say. graph.orrery.json is still projected, for viewing offline. The publication inventory and the summary check stay. If the check fails (unpublishable_summary), no overlay is written, so nothing is submitted. Removing the inventory and the projection code belongs to the later task that moves the projection out of Microcosm.
  • stage_graph_evidence names the build for the collector, with the attempt ID the full-build driver passes and no release. So a failed build's Orrery inputs go to the collector the same way.
  • --publish-orrery is still accepted, but now only prints a warning saying the bundle submits the graph's inputs to the collector with or without the flag; --no-publish-orrery is accepted too. publication_enabled, the unused wait_seconds argument and GRAPH_PUBLICATION_WAIT_SECONDS are gone. The root conftest.py no longer patches orrery_publication.publish_graph, and fake_publish_graph is gone from test_support.
  • Docs: orrery-publication.md (rewritten intro, status and failure sections; the retry section is gone), uk-staging-operations.md, uk-dense-release-assembly-runbook-762.md, uk-cut-anyone.md, agent-guide.md, and the docstrings of staging_dataset, rowwise_staging and the re-stage command. The changelog entry is changelog.d/1589-uk-orrery-inputs-to-collector.changed.md.

The native evidence files (execution.evidence.json, evidence-<phase>-*.json) keep their key-derived roles, so they are not submitted. The task names only the schema, overlay and upstream files, and these evidence files can reach hundreds of MiB each.

A build submits its Orrery inputs only with remote staging. With --staging-local-only, --no-staging, --no-staged-dataset or HF_HUB_OFFLINE, its graph files stay on disk. The re-stage command can stage a finished run's dataset bundle later, Orrery inputs included; it does not stage a failed build's evidence bundle.

Decision: every remotely staged UK build submits its Orrery inputs

Before this PR, María's ruling of 2026-10-26 made the graph upload to the public Orrery opt-in (--publish-orrery). This PR makes the collector submission unconditional, and Anthony confirmed that on 2026-11-13. The reasons:

  • The collector keeps the graph of a build that used licensed microdata private (its contract has no step that makes one public), and every UK build is licensed.
  • The collector already rebuilt past builds' graphs from their staged bundles without any opt-in.
  • The task's finished state is "UK builds submit".

The alternative, not taken, kept the opt-in: the Orrery roles only with --publish-orrery, which the build would have had to record in its manifest so a re-stage hands over the same roles.

What its merge waits for

Nothing in Microcosm: #1588 (3a · 1) and #1600 (3a · 2) have merged, and this branch has main merged in.

  • Staff see the collector's graphs only once the run viewer reads them from the collector (tracker 4b).
  • The collector's past-build rebuild filed UK Orrery inputs under country GB, while builds name UK (the calibration tree handler needs UK, and one bundle has one provenance). The collector's Orrery handler records whatever code it is given, so the collector would hold UK graphs under two codes. That is a collector-side question, not something this PR changes.

Tests

Red-green.

  • Failing commits: 15267f621 (12 cases fail on assertions: roles, no upload, the warning, the failure bundle's roles and provenance, the dense bundle's roles) and 66492a9ed (the interrupted build's wait).
  • Passing commit: a2d3a15cc. It also adapts tests and test support that referred to the removed publication_enabled and publish_graph.
  • Merges of Name the build for the collector in UK staged-bundle hand-overs #1588's branch: b0f9165aa, cd88504c6 and 980bb3a7e (one conflict, in the re-stage command's docstring).
  • Round 1's points: failing commit b7d297922 (the warning's wording), passing commit 7cbd52b8a.
  • Merges of main: ee2f74688 (no conflict) and 144c68745, which takes Switch collector submissions on and submit calibration diagnostics at staging and at release #1600. Its three conflicts were all in prose: the staging guide, the staging_dataset module and stage_bundle docstrings (and one import), and the re-stage command's docstring. Each keeps Switch collector submissions on and submit calibration diagnostics at staging and at release #1600's wording and adds the Orrery inputs.
  • Submissions on: failing commit 11e2b1e2f (the warning test; fails on its assertion), passing commit 421036975 (the warning, the Orrery guide and the changelog no longer say that no emitter release switches submissions on).
  • Round 2's points: failing commit a9e306a9c (2 cases fail on their assertions), passing commit ed59489e5.
  • Round 3's points: failing commit c270543ea (3 cases fail on their assertions), passing commit 1fd3cabe8.

On the round 3 fix (1fd3cabe8) only the five tests rounds 2 and 3 added were run locally, and they pass; CI ran the rest, and all 12 checks passed on 1fd3cabe8. Run locally by node ID at ed59489e5:

  • 173 node IDs (262 cases): the new and changed tests, every test in the Orrery publication, Modal copy-back and staged-dataset role modules, the dense, national and re-stage tests that run the graph export or the staging, and the collector-receipt and release-publication tests Switch collector submissions on and submit calibration diagnostics at staging and at release #1600 added or changed.
  • With --run-integration, against an installed microcosm-emitter==0.15.0 (the minimum and the CI pin): the 12 tests in packages/microcosm-build/tests/installed_emitter/shared/test_installed_emitter_staging.py.

All pass. Ruff check and format are clean on the 13 changed Python files.

Review

  • Round 1 (b0f9165aa), microcosm-1590-review-round1-2026-11-12.md in the review handoffs folder: no high- or medium-priority bugs. One low bug, fixed test-first: the --publish-orrery warning said the bundle submits the inputs to the collector, which no released emitter did then. Doc points taken: "until output clearance" was wrong (the collector keeps licensed graphs private with no clearance step); the status section now says a queued upload needs an overlay to become an orrery-inputs submission; and the README, the bundle docstrings, the re-stage command and the staging guide now name the Orrery inputs. A test now checks that a failed summary check registers no Orrery inputs.
  • Round 2 (421036975, after Switch collector submissions on and submit calibration diagnostics at staging and at release #1600 was merged in), microcosm-1590-review-round2-2026-11-13.md: 0 high, 1 medium, 1 low.
    • Medium, fixed: with two submissions per bundle, the build gave no warning when the collector refused one of them at intake while the other awaited its final status.
    • Low, fixed: once both had settled, the warning gave one submission's outcome as both's.
    • Points taken: the rowwise_staging docstring names the Orrery inputs; the Orrery guide lists HF_HUB_OFFLINE and says what the re-stage command stages.
    • Not changed: after a long upload attempt that outlasts the ten-minute wait, the still-queued warning shows WAITING_FOR_HUGGING_FACE, the last code from before the commit landed (from Switch collector submissions on and submit calibration diagnostics at staging and at release #1600; two submissions make it more likely). The failure path's messages call the evidence bundle "the staged dataset bundle". A pending receipt with one submission already accepted still says the collector had not accepted "the submissions".
  • Round 3 (ed59489e5), microcosm-1590-review-round3-2026-11-13.md: 0 high, 1 medium, 1 low.
    • Medium, fixed: a pending receipt was still read as a whole, so a submission refused while the other was still being sent went unnamed, under a warning saying the emitter would send it later.
    • Low, fixed: a malformed entry status (a JSON object or array) raised TypeError through stage_bundle, which records and never raises.
    • Points taken: tests for a timed-out entry and an unrecognised kind, a whole-receipt fallback when no entry explains a turned-down status, and clearer wording in the staging guide, the rowwise_staging docstring and the changelog.
  • Round 4 (1fd3cabe8), microcosm-1590-review-round4-2026-11-13.md: no bugs (0 high, 0 medium, 0 low), checked by reading the code, the tests and emitter 0.15.0's source, with no tests run. It confirmed that a rejected, failed or timed_out entry is final in emitter 0.15.0 (never sent again), so naming it inside a pending receipt is right, and that no JSON type in a receipt or entry can raise from follow_collector_submissions.
    • Not changed: the changelog fragment and the _collector_warnings docstring say a UK bundle with recorded execution makes two submissions, while a failed build's evidence bundle makes only orrery-inputs. "The rest of the submissions" is plural though with this emitter it is always one submission, and it is not taken from which entries are still pending. The follow_collector_submissions docstring's "one that failed is retried" means a failed attempt, not a failed entry. Untested: the missing-credential message with "the rest of the submissions", a pending receipt with an accepted entry, a rejected entry beside a pending one, and an entry status from a later emitter.
  • Not done here: removing the leftover upload code (telemetry_emitter.publish_graph, the publication inventory and preserved directory, the local_only receipt) belongs to the later task that moves the projection out of Microcosm. Test gaps: the driver passing the attempt ID to the failure bundle, an upstream file in the full-build test, a failed build's evidence bundle followed through the collector wait, installed-emitter tests with a bundle that carries Orrery files, and the evidence-from-before-2026-10-26 overlays a re-stage hands over unchecked. The last is private in the collector, and the same build's diagnostics carry the same figures.

🤖 Generated with Claude Code

anth-volk and others added 8 commits November 12, 2026 19:23
…graph

The graph schema, execution overlay and upstream files take the
interface's Orrery input roles in dataset and failure-evidence bundles,
so the emitter submits them to the collector; a failed build's evidence
bundle names its build. No build queues an upload to the runs
application, even with --publish-orrery, which only warns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The graph schema, execution overlay and upstream files take the
interface's Orrery input roles in dataset and failure-evidence bundles,
so the emitter submits them to the collector, which builds the Orrery
graph files; the failure bundle names its build. finalize_graph no
longer queues an upload to the runs application, --publish-orrery only
warns, and graph.orrery.json is still written for offline viewing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orrery-inputs-to-collector

# Conflicts:
#	packages/microcosm-build/src/microcosm/build/uk_runtime/rowwise_staging.py
The --publish-orrery warning says the inputs reach the collector only
while the emitter's collector submissions are on, and a build whose
summary check fails registers no Orrery inputs for the collector.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round 1's findings: the --publish-orrery warning and help promised a
submission no released emitter makes, the guide said licensed graphs stay
private only until output clearance, and the status section left out
that a queued upload needs an overlay to become an orrery-inputs
submission. The bundle docstrings, the re-stage command, the staging
guide and the README now name the Orrery inputs and drop the upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orrery-inputs-to-collector

# Conflicts:
#	tools/stage_uk_rowwise_candidate.py
Base automatically changed from claude/staged-bundles-name-their-build to main November 12, 2026 20:23
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anth-volk and others added 7 commits November 13, 2026 19:11
Takes #1600, which switches collector submissions on and waits for the
collector to accept a bundle's submissions. The three conflicts were in
prose: the staging guide, the staging_dataset module and stage_bundle
docstrings, and the re-stage command's docstring. Each keeps #1600's
wording and adds the Orrery inputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #1600 every emitter a build starts has its collector submissions on,
so the warning's "no released emitter switches them on yet" is no longer
true. The test now asks for a warning saying the bundle submits the Orrery
inputs with or without the flag. It fails on its assertion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #1600 every emitter a build or the re-stage command starts has its
collector submissions on. The --publish-orrery warning now says the bundle
submits the graph's inputs with or without the flag, and the Orrery guide
and changelog entry no longer say that no emitter release switches
submissions on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A UK bundle now makes two collector submissions, calibration diagnostics
and Orrery inputs. Emitter 0.15.0 sums a hand-over up as
awaiting_final_status while one awaits its final status, even when the
other has already failed, and once both settle the summed status is one
submission's. The tests ask for a warning that names the submission that
was turned down. Both fail on their assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A UK bundle makes two collector submissions. Emitter 0.15.0 sums a
hand-over up as awaiting_final_status while one awaits its final status,
which hid the other's refusal, and once both settle the summed status is
one submission's. follow_collector_submissions now reads a receipt that
lists its submissions one by one and warns about each rejected, failed or
timed-out submission by kind. Pending and skipped receipts, and those that
list no submissions, are read as a whole as before.

Docs: the staging guide's intake item, the rowwise_staging docstring and
the changelog name both submissions; the Orrery guide adds HF_HUB_OFFLINE
to what keeps the inputs on disk and says what the re-stage command
stages. The test change is ruff formatting only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Emitter 0.15.0 sums a hand-over up as pending while one submission is
still being sent, even when the other was refused and is never sent again.
The tests ask for a warning that names the refused submission and says the
rest stay queued; for no exception from a malformed entry, since
stage_bundle records and never raises, with the whole receipt reported
when no entry explains a turned-down status; and for an entry of an
unrecognised kind to be named as a submission. All three fail on their
assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Emitter 0.15.0 sums a hand-over up as pending while one submission is
still being sent, even when the other was refused and is never sent
again. A pending receipt that lists its submissions is now read one by
one too: each refused submission is a warning by kind, and the queued
warning then names "the rest of the submissions". A turned-down receipt
whose entries explain nothing is reported as a whole, an entry whose
status is not a string is ignored instead of raising through
stage_bundle, and an entry of an unrecognised kind is called "a
submission". The staging guide, rowwise_staging docstring and changelog
wording follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anth-volk
anth-volk marked this pull request as ready for review November 13, 2026 18:46
@anth-volk
anth-volk merged commit b647c54 into main Nov 13, 2026
12 checks passed
@anth-volk
anth-volk deleted the claude/uk-orrery-inputs-to-collector branch November 13, 2026 18:46
MaxGhenis added a commit that referenced this pull request Nov 14, 2026
Main gained #1605, #1590 and #1047 (US household location v1) since the last
merge (d5a9322). Two files conflict.

us_runtime/h5_io.py, _validate_stacked_late_dag_manifest_binding: this branch
made the expected operator order depend on the manifest's schema (an attested
schema-9 pool binds the literal order it sealed, without the immigration
composition gate), and #1047 made it depend on the manifest's geography rule
(us_stacked_pool_operator_order). The merge keeps both: a current pool binds
the order its geography rule selects, and a schema-9 pool binds the schema-9
literal. #1047 derives the block_v1 order from US_STACKED_POOL_OPERATOR_ORDER,
so that order carries this branch's immigration gate too.

tools/build_us_puf_support_base.py: both sides added functions after
_write_policyengine_dataset. The merge keeps this branch's two immigration helpers
and then #1047's location functions.

Eight files change on both sides. Five functions change on both sides
(_validate_stacked_geography_h5_binding, do_finalize, build_stacked_pool,
_parse_args, _run_all); each merged body equals either side plus exactly the
other side's lines. #1047 bumps no checkpoint or schema version, and the
merged pool tool writes operator_order through #1047's
_stacked_operator_order_for_contract at both sites.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MaxGhenis added a commit that referenced this pull request Nov 14, 2026
Main gained #1600, #1605, #1590, #1047, #1592, #1598 and #1545 since the
1e88319 this branch last merged. #1598 changed microcosm-calibrate
(hierarchy value ranks) and an attested kernel module and regenerated the
shared pins, so the five pin files conflicted. Each conflict hunk takes
main's text, with this branch's #1096 comment sentence kept after main's,
and the tools then wrote the values for the merged tree:

- docs/evidence/spec-engine/us-f0-coverage.json: main's five hunks, then
  rewritten by tools/spec_engine_coverage.py (two map, two protocol, two
  implementation and two spec digests; 42394/42394 fields, 41/41 checks).
- spec_engine/inventory_coverage.py: main's hunk and its hierarchy comment,
  plus the #1096 sentence; tools/repin_us_spec_engine_contracts.py wrote
  seed_map d29d95be and seed_protocol f3738669 (main: 0c19b903, 15e6cad1).
- test_spec_engine_loader.py: main's hunk plus the #1096 comment line; the
  repinner wrote the golden 0b417bfc (main: 99f9b82e).
- test_us_multispine_pool_tool.py: main's hunk plus the #1096 comment line;
  the repinner wrote spec_sha256 c79a1d3f (main: 98d58365).
- parity/kernels/calibrate/pins.json: main's line, then
  tools/graph_parity_repin.py calibrate wrote implementation_hash 20180a24
  and node_key 86ae2227 (main: 0c669ad2, fbab5f42). direct.csv, graph.json
  and inputs.csv did not move, so the default path's bytes are main's.

The repinner and the coverage tool ran twice each, then both passed
--check. ruff format changed only the quotes the repinner writes.

tools/build_us_acs_local_release.py and its test merged without conflict.
Main's #696 and this branch both changed do_package and _parse_args, in
separate statements: main swapped the refresh recipe's staging value and
added --block-ladder; this branch renamed one calibration key and reworded
the --mass-parametrization help.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MaxGhenis added a commit that referenced this pull request Nov 14, 2026
Main gained #1600, #1605, #1590, #1047 (US household location v1, the
opt-in block_v1 rule), #1592, #1598 and #1545 since the 1e88319 this
branch last merged. Seven files conflicted:

- us_runtime/acs_multispine.py: the base_pool import block only. Union:
  main's ACS_POOL_BLOCK_LOCATION_METADATA_KEY and this branch's
  acs_pool_local_jurisdiction_rungs. The function body merged cleanly.
- us_runtime/base_pool.py: __all__ only. Union of main's two new names
  and this branch's one.
- tests/engine_free/us/test_us_spine_blindness.py: the pool tool's
  runtime-graph count. Main counted 83 (81 plus block_location.py and
  cps_source_geography.py), this branch 82 (81 plus
  local_jurisdictions.py). The test's own graph helper reaches 84 on the
  merged tree, with all three modules in it and none unclassified; the
  comment keeps both explanations.
- spec_engine/inventory_coverage.py, tests/engine_free/shared/
  test_spec_engine_loader.py, tests/engine_workflow/us/
  test_us_multispine_pool_tool.py and docs/evidence/spec-engine/
  us-f0-coverage.json: digests only. Each conflicted hunk takes main's
  value and main's comment, and keeps this branch's comment sentences
  beside it. The values are stale until the pin tools rewrite them in a
  later commit.

Functions both sides changed and git merged without conflict:
build_optional_acs_multispine, with_optional_acs_spine, the fiscal
refresh builder's _main and the pool tool's
_validate_stacked_geography_assignment_receipt. The last two are
independent edits. The first two are not: under block_v1 the merged
pool still picks the flag rungs from the PUMA ladder alone, so it
removes every flag from a block-located pool, and the receipt can name
rungs the pool did not use. A later commit fixes that.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MaxGhenis added a commit that referenced this pull request Nov 14, 2026
Main gained #1605, #1590, #1047, #1592, #1598, #1545 and #1612 since this
branch's last merge. Git merged all of them without a conflict.

#1592's delete-old-layout step calls publishes_to_build_folder to tell a
folder named by a release from a folder named by one build's tag. With
this branch, it no longer counts a UK local-area name the registry does
not name as such a release. The next commit pins what the step reports
for such a folder.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
anth-volk added a commit that referenced this pull request Nov 26, 2026
--publish-orrery and --no-publish-orrery have changed nothing since builds
stopped uploading their graph (#1590); #1748 kept them for this cleanup.
These tests ask the UK full build to refuse both as unknown options and to
carry no publish_orrery setting, and run_uk_cut.py to pass neither.

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.

UK builds submit their Orrery inputs to the collector and upload no graph

1 participant