Repository navigation
Submit UK Orrery inputs with the staged bundle and upload no graph - #1590
Merged
Merged
Conversation
…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
…orrery-inputs-to-collector
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>
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
marked this pull request as ready for review
November 13, 2026 18:46
This was referenced Nov 13, 2026
Merged
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>
This was referenced Nov 25, 2026
Closed
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>
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 #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.
graph.schema.jsonorrery_graph_schema_jsonorrery_schemaschemagraph.execution.jsonorrery_graph_execution_jsonexecution_overlayexecution_overlayupstream-<sha256>.jsonthe projection linksorrery_upstream_jsonorrery_upstreamupstreammicrocosm.build.staging_dataset.output_rolegives these three kinds of file the interface's roles. That covers a dataset bundle, which registers them underorrery/, and a failed build's evidence bundle, which registers them by name. The emitter plans oneorrery-inputssubmission 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.calibration-diagnosticsandorrery-inputs, and the build waits up to ten minutes for the collector to accept them.pendingwhile one is still being sent andawaiting_final_statuswhile 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_submissionsnow 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; apendingreceipt then also says the rest of the submissions stay queued.skippedreceipts, 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_graphqueues no upload to the runs application. Its receipt isskipped(local_only) whatever the flags say.graph.orrery.jsonis 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_evidencenames 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-orreryis 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-orreryis accepted too.publication_enabled, the unusedwait_secondsargument andGRAPH_PUBLICATION_WAIT_SECONDSare gone. The rootconftest.pyno longer patchesorrery_publication.publish_graph, andfake_publish_graphis gone fromtest_support.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 ofstaging_dataset,rowwise_stagingand the re-stage command. The changelog entry ischangelog.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-datasetorHF_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 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
mainmerged in.GB, while builds nameUK(the calibration tree handler needsUK, 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.
15267f621(12 cases fail on assertions: roles, no upload, the warning, the failure bundle's roles and provenance, the dense bundle's roles) and66492a9ed(the interrupted build's wait).a2d3a15cc. It also adapts tests and test support that referred to the removedpublication_enabledandpublish_graph.b0f9165aa,cd88504c6and980bb3a7e(one conflict, in the re-stage command's docstring).b7d297922(the warning's wording), passing commit7cbd52b8a.main:ee2f74688(no conflict) and144c68745, 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, thestaging_datasetmodule andstage_bundledocstrings (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.11e2b1e2f(the warning test; fails on its assertion), passing commit421036975(the warning, the Orrery guide and the changelog no longer say that no emitter release switches submissions on).a9e306a9c(2 cases fail on their assertions), passing commited59489e5.c270543ea(3 cases fail on their assertions), passing commit1fd3cabe8.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 on1fd3cabe8. Run locally by node ID ated59489e5:--run-integration, against an installedmicrocosm-emitter==0.15.0(the minimum and the CI pin): the 12 tests inpackages/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
b0f9165aa),microcosm-1590-review-round1-2026-11-12.mdin the review handoffs folder: no high- or medium-priority bugs. One low bug, fixed test-first: the--publish-orrerywarning 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 anorrery-inputssubmission; 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.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.rowwise_stagingdocstring names the Orrery inputs; the Orrery guide listsHF_HUB_OFFLINEand says what the re-stage command stages.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". Apendingreceipt with one submission already accepted still says the collector had not accepted "the submissions".ed59489e5),microcosm-1590-review-round3-2026-11-13.md: 0 high, 1 medium, 1 low.pendingreceipt 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.TypeErrorthroughstage_bundle, which records and never raises.rowwise_stagingdocstring and the changelog.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 arejected,failedortimed_outentry is final in emitter 0.15.0 (never sent again), so naming it inside apendingreceipt is right, and that no JSON type in a receipt or entry can raise fromfollow_collector_submissions._collector_warningsdocstring say a UK bundle with recorded execution makes two submissions, while a failed build's evidence bundle makes onlyorrery-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 stillpending. Thefollow_collector_submissionsdocstring's "one that failed is retried" means a failed attempt, not afailedentry. Untested: the missing-credential message with "the rest of the submissions", apendingreceipt with an accepted entry, arejectedentry beside apendingone, and an entry status from a later emitter.telemetry_emitter.publish_graph, the publication inventory and preserved directory, thelocal_onlyreceipt) 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