From fc41c7a7af457d37880f74539627fa61d8f57c43 Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Sat, 7 Nov 2026 22:11:50 -0500 Subject: [PATCH 1/3] Publish a --scf-education-debt release's two fit tables The release tool wrote us_scf_education_debt_fit.json and us_scf_education_debt_calibrated_fit.json into its artifacts directory, and the release manifest listed neither, so the publisher left both on the run host. Write them into the release directory and list them as diagnostics artifacts when the build ran with --scf-education-debt, and only then, so the publisher uploads them under releases// without --extra-file. A flagged build missing either table fails before it writes a manifest. Route A's publisher call needs no --extra-file; its comment and runbook now say why (#1074, #1357 review). Co-Authored-By: Claude Opus 5.5 (1M context) --- README.md | 5 +- ...4-publish-scf-education-debt-fits.fixed.md | 1 + docs/us-fact-to-target.md | 8 +- .../us/test_us_fiscal_refresh_builder.py | 128 +++++++++++++++++- tools/build_us_fiscal_refresh_release.py | 55 +++++++- tools/route_a/README.md | 2 +- tools/route_a/route_a.sh | 4 +- 7 files changed, 192 insertions(+), 11 deletions(-) create mode 100644 changelog.d/1074-publish-scf-education-debt-fits.fixed.md diff --git a/README.md b/README.md index e2a03da91c..f9b3e754f7 100644 --- a/README.md +++ b/README.md @@ -525,7 +525,10 @@ its terminal gate verdicts as manifest artifacts: `input_coverage.json`, record the per-run QRF tail register (`qrf_tail_register`), the export-mass reference and the stored-input verdict (`stored_inputs`), so a waiver ships with the release it waives, and a `gate_evidence` block that says of each -verdict whether it is bound, skipped by flag or never evaluated. +verdict whether it is bound, skipped by flag or never evaluated. A +`--scf-education-debt` build also lists its two SCF education-debt fit tables, +`us_scf_education_debt_fit.json` and `us_scf_education_debt_calibrated_fit.json`, +as manifest artifacts (microcosm#1074). A US release may not store a column that looks like a policyengine-us variable (lowercase snake_case) unless the engine it is certified against defines that diff --git a/changelog.d/1074-publish-scf-education-debt-fits.fixed.md b/changelog.d/1074-publish-scf-education-debt-fits.fixed.md new file mode 100644 index 0000000000..1dd8d8606f --- /dev/null +++ b/changelog.d/1074-publish-scf-education-debt-fits.fixed.md @@ -0,0 +1 @@ +A `--scf-education-debt` release now publishes its two SCF education-debt fit tables, `us_scf_education_debt_fit.json` (at the pre-calibration weights) and `us_scf_education_debt_calibrated_fit.json` (at the shipped weights). The release tool writes both into the release directory, not the artifacts directory, and the release manifest lists them as `diagnostics` artifacts, so the publisher uploads them under `releases//` without `--extra-file`. Before, the manifest listed neither, so a publish left both on the run host. A build without the flag writes and lists neither, and a flagged build missing either table fails before it writes a manifest (#1074). diff --git a/docs/us-fact-to-target.md b/docs/us-fact-to-target.md index b650b3826c..5179e8aec4 100644 --- a/docs/us-fact-to-target.md +++ b/docs/us-fact-to-target.md @@ -272,13 +272,17 @@ borrower is a person whose federal balance is positive. materializer. While the stage is opt-in the family stays off the one-surface target-parity contract (`_without_opt_in_student_loan_targets`). - **The release's own fit table.** A `--scf-education-debt` build writes the - stage's fit table (`us_scf_education_debt_fit_table`) twice in its artifacts + stage's fit table (`us_scf_education_debt_fit_table`) twice in its release directory: at the staged frame's pre-calibration weights (`us_scf_education_debt_fit.json`), and at the weights it ships, on the frame it exports, before any post-export scoring or terminal gate (`us_scf_education_debt_calibrated_fit.json`). The second reports the share of households with debt, by age, race and income quintile, at the weights - the release ships. + the release ships. The release manifest lists both as `diagnostics` + artifacts (`us_scf_education_debt_fit` and + `us_scf_education_debt_calibrated_fit`), so the publisher uploads them under + `releases//` without `--extra-file`. A build without the flag writes + neither and lists neither. - **Known limits, measured.** The receipt (`experiments/1074-fsa-calibration-receipts.md`) refits the published default with and without the family. The stage gives balances to reference diff --git a/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py b/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py index 9e7fe40e5a..d89f2a1ed9 100644 --- a/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py +++ b/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py @@ -2215,7 +2215,7 @@ def fake_with_inputs(base_frame, *, seed, time_period, scf_education_debt_donor) scf_2025_summary_extract=Path("rscfp2025.dta"), scf_2025_full_extract=Path("p25i6.dta"), ) - fit_path = tmp_path / "artifacts" / "us_scf_education_debt_fit.json" + fit_path = tmp_path / "release" / "us_scf_education_debt_fit.json" assert ( builder._with_scf_education_debt_stage( frame, args=args, telemetry=None, fit_path=fit_path @@ -2262,7 +2262,7 @@ def test_scf_education_debt_fit_is_written_at_calibrated_weights_before_scoring( lambda base_frame: seen.append(base_frame) or fit, ) name = builder.US_SCF_EDUCATION_DEBT_CALIBRATED_FIT_FILENAME - path = tmp_path / "artifacts" / name + path = tmp_path / "release" / name builder._write_us_scf_education_debt_fit( path, frame, weights="calibrated_household_weights" ) @@ -2301,7 +2301,7 @@ def position(predicate) -> int: assert ast.unparse(statement.test) == "args.scf_education_debt" (call,) = calls(statement, "_write_us_scf_education_debt_fit") assert [ast.unparse(arg) for arg in call.args] == [ - "artifact_root / US_SCF_EDUCATION_DEBT_CALIBRATED_FIT_FILENAME", + "release_dir / US_SCF_EDUCATION_DEBT_CALIBRATED_FIT_FILENAME", "export_frame", ] assert {kw.arg: ast.unparse(kw.value) for kw in call.keywords} == { @@ -12958,6 +12958,128 @@ def score_holdout(name, consumer, **kwargs): assert failures == [] +def _write_scf_education_debt_fits(builder, monkeypatch, release_dir, filenames): + monkeypatch.setattr( + builder, + "us_scf_education_debt_fit_table", + lambda frame: {"households": {"share_with_federal_education_debt": 0.2}}, + ) + for filename in filenames: + builder._write_us_scf_education_debt_fit( + release_dir / filename, object(), weights="calibrated_household_weights" + ) + + +SCF_EDUCATION_DEBT_FIT_ARTIFACT_PATHS = { + "us_scf_education_debt_fit": "us_scf_education_debt_fit.json", + "us_scf_education_debt_calibrated_fit": "us_scf_education_debt_calibrated_fit.json", +} + + +@pytest.mark.parametrize("flag", (True, False), ids=("flag", "no_flag")) +def test_build_manifests_lists_scf_education_debt_fits_only_with_the_flag( + monkeypatch, tmp_path, flag +) -> None: + """microcosm#1074: a --scf-education-debt build's two fit tables are + diagnostics artifacts of its release, so the publisher uploads them under + releases//. A build without the flag lists neither, even beside stray + copies in its release directory.""" + from microcosm.data.contract import ( + _check_local_artifact_hashes, + _check_release_manifest, + ) + from microcosm.data.release import ( + _release_manifest_release_artifacts, + _release_manifest_root_artifacts, + ) + + builder = _load_builder_module() + assert builder.US_SCF_EDUCATION_DEBT_FIT_ARTIFACTS == ( + SCF_EDUCATION_DEBT_FIT_ARTIFACT_PATHS + ) + release_id, release_dir, artifact_root = _gate_evidence_release_dir( + builder, monkeypatch, tmp_path, coverage={} + ) + filenames = set(SCF_EDUCATION_DEBT_FIT_ARTIFACT_PATHS.values()) + _write_scf_education_debt_fits(builder, monkeypatch, release_dir, filenames) + builder._build_manifests( + **_minimal_manifest_kwargs(builder, release_id, release_dir, artifact_root), + scf_education_debt=flag, + ) + + manifest = json.loads((release_dir / "release_manifest.json").read_text()) + listed = { + key: entry + for key, entry in manifest["artifacts"].items() + if entry["path"] in filenames + } + published = set(_release_manifest_release_artifacts(release_dir)) + assert not filenames & set(_release_manifest_root_artifacts(release_dir)) + if not flag: + assert listed == {} + assert not filenames & published + return + assert listed == { + key: { + "kind": "diagnostics", + "path": filename, + "repo_id": builder.REPO_ID, + "revision": release_id, + "sha256": hashlib.sha256((release_dir / filename).read_bytes()).hexdigest(), + } + for key, filename in SCF_EDUCATION_DEBT_FIT_ARTIFACT_PATHS.items() + } + assert filenames <= published + failures: list[str] = [] + _check_release_manifest(manifest, release_id, failures) + _check_local_artifact_hashes(release_dir, manifest, failures) + assert failures == [] + + +def test_build_manifests_refuses_a_scf_education_debt_build_missing_a_fit( + monkeypatch, tmp_path +) -> None: + builder = _load_builder_module() + release_id, release_dir, artifact_root = _gate_evidence_release_dir( + builder, monkeypatch, tmp_path, coverage={} + ) + _write_scf_education_debt_fits( + builder, monkeypatch, release_dir, [builder.US_SCF_EDUCATION_DEBT_FIT_FILENAME] + ) + with pytest.raises(RuntimeError, match="us_scf_education_debt_calibrated_fit"): + builder._build_manifests( + **_minimal_manifest_kwargs(builder, release_id, release_dir, artifact_root), + scf_education_debt=True, + ) + assert not (release_dir / "build_manifest.json").exists() + assert not (release_dir / "release_manifest.json").exists() + + +def test_main_writes_scf_education_debt_fits_where_its_manifest_lists_them() -> None: + """_main writes the pre-calibration fit into the release directory (the + calibrated one is pinned above) and lists both only under the flag.""" + import ast + import inspect + + builder = _load_builder_module() + tree = ast.parse(inspect.getsource(builder._main)) + + def keywords(function: str) -> dict[str, str]: + (call,) = [ + node + for node in ast.walk(tree) + if isinstance(node, ast.Call) and getattr(node.func, "id", "") == function + ] + return {kw.arg: ast.unparse(kw.value) for kw in call.keywords} + + assert keywords("_with_scf_education_debt_stage")["fit_path"] == ( + "release_dir / US_SCF_EDUCATION_DEBT_FIT_FILENAME if dry_run is None else None" + ) + assert keywords("_build_manifests")["scf_education_debt"] == ( + "args.scf_education_debt" + ) + + def test_build_manifests_binds_gate_evidence_and_the_qrf_tail_register( monkeypatch, tmp_path ) -> None: diff --git a/tools/build_us_fiscal_refresh_release.py b/tools/build_us_fiscal_refresh_release.py index 93b14541ff..42ec533ad3 100644 --- a/tools/build_us_fiscal_refresh_release.py +++ b/tools/build_us_fiscal_refresh_release.py @@ -1049,7 +1049,7 @@ def _env_default(name: str, default: str) -> str: "reported_has_subsidized_marketplace_health_coverage_at_interview" ) US_ACA_REPORTED_MARKETPLACE_COVERAGE = "has_marketplace_health_coverage_at_interview" -#: The SCF education-debt fit table (microcosm#1073), in the artifacts +#: The SCF education-debt fit table (microcosm#1073), in the release #: directory of a ``--scf-education-debt`` build: at the staged frame's #: pre-calibration weights, and at the release's calibrated weights before any #: post-export scoring (microcosm#1074). @@ -1057,6 +1057,16 @@ def _env_default(name: str, default: str) -> str: US_SCF_EDUCATION_DEBT_CALIBRATED_FIT_FILENAME = ( "us_scf_education_debt_calibrated_fit.json" ) +#: Both fit tables, keyed by their release-manifest artifact key. Only a +#: ``--scf-education-debt`` build writes them, so only its manifest lists +#: them, and the publisher uploads them under ``releases//`` with the +#: other diagnostics, without ``--extra-file``. +US_SCF_EDUCATION_DEBT_FIT_ARTIFACTS: dict[str, str] = { + "us_scf_education_debt_fit": US_SCF_EDUCATION_DEBT_FIT_FILENAME, + "us_scf_education_debt_calibrated_fit": ( + US_SCF_EDUCATION_DEBT_CALIBRATED_FIT_FILENAME + ), +} US_ACA_APTC_TARGET_TABLE = "cms_aca_aptc_recipients_by_state" US_ACA_TARGET_ROLE_TABLES = { "aca_ptc_recipients": US_ACA_APTC_TARGET_TABLE, @@ -10227,6 +10237,35 @@ def _gate_evidence_artifacts(release_dir: Path, *, revision: str) -> dict[str, d } +def _scf_education_debt_fit_artifacts( + release_dir: Path, *, revision: str +) -> dict[str, dict]: + """Release-manifest entries for a ``--scf-education-debt`` build's fit tables. + + The build writes both into the release directory before its manifests, so + a missing table fails the build instead of shipping without it. + """ + missing = sorted( + filename + for filename in US_SCF_EDUCATION_DEBT_FIT_ARTIFACTS.values() + if not (release_dir / filename).is_file() + ) + if missing: + raise RuntimeError( + "A --scf-education-debt build must write its fit tables before its " + f"manifests; {release_dir} is missing {missing}." + ) + return { + key: _artifact_entry( + filename, + _sha256(release_dir / filename), + kind="diagnostics", + revision=revision, + ) + for key, filename in US_SCF_EDUCATION_DEBT_FIT_ARTIFACTS.items() + } + + def _gate_evidence_status( gate_evidence_artifacts: Mapping[str, object], *, @@ -10620,6 +10659,7 @@ def _build_manifests( scored_dataset_sha256: str | None = None, post_export_scoring: Mapping[str, object] | None = None, diagnostics_outcome: DiagnosticsWriteOutcome | None = None, + scf_education_debt: bool = False, ) -> None: dataset_path = artifact_root / dataset_filename calibration_path = artifact_root / calibration_filename @@ -10660,6 +10700,13 @@ def _build_manifests( # rather than only in loose diagnostics that never ship. The same blocks # ride build_manifest.json and release_manifest.json's build section. gate_evidence_artifacts = _gate_evidence_artifacts(release_dir, revision=release_id) + # microcosm#1074: checked before either manifest is written, so a build + # missing a fit table leaves no manifest behind. + scf_education_debt_fit_artifacts = ( + _scf_education_debt_fit_artifacts(release_dir, revision=release_id) + if scf_education_debt + else {} + ) qrf_tail_register = _qrf_tail_register_manifest_block(release_dir) stored_inputs = _stored_inputs_manifest_block( release_dir, dataset_sha256=dataset_sha @@ -11208,6 +11255,7 @@ def _build_manifests( if (release_dir / "demographics.json").exists() else {} ), + **scf_education_debt_fit_artifacts, **gate_evidence_artifacts, }, } @@ -14477,7 +14525,7 @@ def _main(argv: Sequence[str] | None = None) -> int | None: args=args, telemetry=telemetry, fit_path=( - artifact_root / US_SCF_EDUCATION_DEBT_FIT_FILENAME + release_dir / US_SCF_EDUCATION_DEBT_FIT_FILENAME if dry_run is None else None ), @@ -15400,7 +15448,7 @@ def _main(argv: Sequence[str] | None = None) -> int | None: # follows the export and cleanup statements, which # test_us_post_export_scoring runs on their own. _write_us_scf_education_debt_fit( - artifact_root / US_SCF_EDUCATION_DEBT_CALIBRATED_FIT_FILENAME, + release_dir / US_SCF_EDUCATION_DEBT_CALIBRATED_FIT_FILENAME, export_frame, weights="calibrated_household_weights", ) @@ -16648,6 +16696,7 @@ def _main(argv: Sequence[str] | None = None) -> int | None: scored_dataset_sha256=scored_dataset_sha256, post_export_scoring=post_export_scoring, diagnostics_outcome=diagnostics_outcome, + scf_education_debt=args.scf_education_debt, ) if telemetry is not None: telemetry.attach_artifact("build_manifest", release_dir / "build_manifest.json") diff --git a/tools/route_a/README.md b/tools/route_a/README.md index ec20bfa76d..bac6441535 100644 --- a/tools/route_a/README.md +++ b/tools/route_a/README.md @@ -93,7 +93,7 @@ overnight chain is alive, unless `EARLY_START_AFTER_HEAVY=1` and its log records | `preflight-base` | Runs `preflight_us_release_gates.py` on that H5 and the pinned feed, with the configured new-lineage mode and optional export-mass reference. Accepts 0 (clean) or 2 (AT-RISK); `RELEASE_DESPITE_PREFLIGHT_FAIL=1` also accepts 1 here. | | `release` | Runs `build_us_fiscal_refresh_release.py --base-h5` with the feed, SSI basis, SCF extract and configured release arguments. Requires exit 0 and `release_manifest.json`. Staging telemetry is enabled for this stage. | | `preflight-release` | Repeats the release-gate preflight with the candidate's release manifest. Accepts 0 or 2. | -| `publisher-preflight` | Runs `microcosm-publish-release --preflight-only` against the local release directory and artifacts. Requires exit 0. The publisher calls `prepare_release` and returns before its publishing call. | +| `publisher-preflight` | Runs `microcosm-publish-release --preflight-only` against the local release directory and artifacts. Requires exit 0. The publisher calls `prepare_release` and returns before its publishing call. It takes no `--extra-file`: the publisher uploads every file the release manifest lists, including the two SCF education-debt fit tables of a release run with `--scf-education-debt` in `RELEASE_EXTRA_ARGS`. | Both gate preflights and the publisher preflight remove the HF credential variables and Slack webhook variables, set `POPULACE_RELEASE_ENV=/dev/null` and diff --git a/tools/route_a/route_a.sh b/tools/route_a/route_a.sh index b0eeec7fb7..ae984e702a 100755 --- a/tools/route_a/route_a.sh +++ b/tools/route_a/route_a.sh @@ -608,7 +608,9 @@ fi # --- 8. Publisher preflight, offline: publish_cli.py returns after # prepare_release when --preflight-only is set (:325-331 on origin/main), and -# builds no Hub client. Secrets are stripped as overnight_chain.sh does. --- +# builds no Hub client. Secrets are stripped as overnight_chain.sh does. It +# passes no --extra-file: the publisher uploads every file the release manifest +# lists, a --scf-education-debt build's two fit tables included. --- if ! stage_done publisher-preflight; then write_config publisher-preflight 24 16 22 7200 14400 "$W" "$PF_ENV" -- "${NOSECRETS[@]}" \ "PATH=$W/.venv/bin:/usr/bin:/bin:/usr/sbin:/sbin" "$W/.venv/bin/microcosm-publish-release" \ From 9b967a89518ed3d2cad990e8813d5d1d84b11fe6 Mon Sep 17 00:00:00 2001 From: David Trimmer Date: Mon, 9 Nov 2026 10:13:20 -0500 Subject: [PATCH 2/3] Say "consolidated or not" in the loan-type reason and rewrap the Parent PLUS bullet (#1074) The two edits from #1546 that #1545 didn't carry, as the comment closing #1546 suggested. Co-Authored-By: Claude Opus 5.5 (1M context) --- docs/us-fact-to-target.md | 8 ++++---- .../build/us_runtime/fsa_student_loan_targets.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/us-fact-to-target.md b/docs/us-fact-to-target.md index 5179e8aec4..5e7e2895da 100644 --- a/docs/us-fact-to-target.md +++ b/docs/us-fact-to-target.md @@ -218,10 +218,10 @@ borrower is a person whose federal balance is positive. Parent PLUS row ($117.9B, 6.8% of the loan-type dollar rows) is a lower bound on the stage's `federal_parent_plus_loan_balance`, which holds the balances the stage classifies as Parent PLUS, consolidated or not. That is - an inference, not FSA's statement. Every other family pins the total, so a target on - either side of FSA's split (Parent PLUS, or every other loan type) would - still constrain the split. Both rows stay diagnostic, and the receipt compares the host's - Parent PLUS share with FSA's. + an inference, not FSA's statement. Every other family pins the total, so a + target on either side of FSA's split (Parent PLUS, or every other loan type) + would still constrain the split. Both rows stay diagnostic, and the receipt + compares the host's Parent PLUS share with FSA's. - **The reference date.** The latest quarter every bound table publishes, FY2026 Q2 (31 March 2026) in the chronicle#347 packages: the location workbook publishes only that date, so the age and debt-size tables bind at it too diff --git a/packages/microcosm-build/src/microcosm/build/us_runtime/fsa_student_loan_targets.py b/packages/microcosm-build/src/microcosm/build/us_runtime/fsa_student_loan_targets.py index 977ff45553..1c0b18b1fa 100644 --- a/packages/microcosm-build/src/microcosm/build/us_runtime/fsa_student_loan_targets.py +++ b/packages/microcosm-build/src/microcosm/build/us_runtime/fsa_student_loan_targets.py @@ -276,7 +276,8 @@ _REASON_LOAN_TYPE_DOLLARS = ( "FSA's notes don't say whether its Parent PLUS row leaves out loans the Secretary " "paid off through consolidation (34 CFR 685.220(f)), the stage's column holds " - "the balances it classifies as Parent PLUS, and every other family pins the total." + "the balances the stage classifies as Parent PLUS, consolidated or not, and " + "every other family pins the total." ) _REASON_STAFFORD_SUBTOTAL = ( "Stafford (Combined) is a subtotal of rows the table already lists." From db4c9cca0a03dbef9b00036f0a8d00c20cf097c5 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 13 Nov 2026 09:01:33 -0500 Subject: [PATCH 3/3] Say the build-folder publisher puts the fit tables in the build's folder Since #1571 the US releases publish through microcosm-publish-release-build, which puts each build in releases/// and publishes every artifact the release manifest lists. The docs, changelog, builder comment and test docstring said the publisher uploads the tables under releases//. The builder comment also says a build missing a fit table writes neither manifest. Co-Authored-By: Claude Opus 5.5 --- changelog.d/1074-publish-scf-education-debt-fits.fixed.md | 2 +- docs/us-fact-to-target.md | 7 ++++--- .../tests/engine_free/us/test_us_fiscal_refresh_builder.py | 6 +++--- tools/build_us_fiscal_refresh_release.py | 7 ++++--- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/changelog.d/1074-publish-scf-education-debt-fits.fixed.md b/changelog.d/1074-publish-scf-education-debt-fits.fixed.md index 1dd8d8606f..e3df92a59b 100644 --- a/changelog.d/1074-publish-scf-education-debt-fits.fixed.md +++ b/changelog.d/1074-publish-scf-education-debt-fits.fixed.md @@ -1 +1 @@ -A `--scf-education-debt` release now publishes its two SCF education-debt fit tables, `us_scf_education_debt_fit.json` (at the pre-calibration weights) and `us_scf_education_debt_calibrated_fit.json` (at the shipped weights). The release tool writes both into the release directory, not the artifacts directory, and the release manifest lists them as `diagnostics` artifacts, so the publisher uploads them under `releases//` without `--extra-file`. Before, the manifest listed neither, so a publish left both on the run host. A build without the flag writes and lists neither, and a flagged build missing either table fails before it writes a manifest (#1074). +A `--scf-education-debt` release now publishes its two SCF education-debt fit tables, `us_scf_education_debt_fit.json` (at the pre-calibration weights) and `us_scf_education_debt_calibrated_fit.json` (at the shipped weights). The release tool writes both into the release directory, not the artifacts directory, and the release manifest lists them as `diagnostics` artifacts, so `microcosm-publish-release-build` publishes them into the build's folder, `releases///`, without `--extra-file`. Before, the manifest listed neither, so a publish left both on the run host. A build without the flag writes and lists neither, and a flagged build missing either table fails before it writes a manifest (#1074). diff --git a/docs/us-fact-to-target.md b/docs/us-fact-to-target.md index 388338918d..58a2f26304 100644 --- a/docs/us-fact-to-target.md +++ b/docs/us-fact-to-target.md @@ -280,9 +280,10 @@ borrower is a person whose federal balance is positive. of households with debt, by age, race and income quintile, at the weights the release ships. The release manifest lists both as `diagnostics` artifacts (`us_scf_education_debt_fit` and - `us_scf_education_debt_calibrated_fit`), so the publisher uploads them under - `releases//` without `--extra-file`. A build without the flag writes - neither and lists neither. + `us_scf_education_debt_calibrated_fit`), so `microcosm-publish-release-build` + publishes them into the build's folder, `releases///`, + without `--extra-file`. A build without the flag writes neither and lists + neither. - **Known limits, measured.** The receipt (`experiments/1074-fsa-calibration-receipts.md`) refits the published default with and without the family. The stage gives balances to reference diff --git a/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py b/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py index efb17c89c1..a68d1a2e04 100644 --- a/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py +++ b/packages/microcosm-build/tests/engine_free/us/test_us_fiscal_refresh_builder.py @@ -13312,9 +13312,9 @@ def test_build_manifests_lists_scf_education_debt_fits_only_with_the_flag( monkeypatch, tmp_path, flag ) -> None: """microcosm#1074: a --scf-education-debt build's two fit tables are - diagnostics artifacts of its release, so the publisher uploads them under - releases//. A build without the flag lists neither, even beside stray - copies in its release directory.""" + diagnostics artifacts of its release, so the publisher publishes them into + the build's folder, releases///. A build without the flag + lists neither, even beside stray copies in its release directory.""" from microcosm.data.contract import ( _check_local_artifact_hashes, _check_release_manifest, diff --git a/tools/build_us_fiscal_refresh_release.py b/tools/build_us_fiscal_refresh_release.py index 07c5d93e18..5f972d28c1 100644 --- a/tools/build_us_fiscal_refresh_release.py +++ b/tools/build_us_fiscal_refresh_release.py @@ -1088,8 +1088,9 @@ def _env_default(name: str, default: str) -> str: ) #: Both fit tables, keyed by their release-manifest artifact key. Only a #: ``--scf-education-debt`` build writes them, so only its manifest lists -#: them, and the publisher uploads them under ``releases//`` with the -#: other diagnostics, without ``--extra-file``. +#: them, and ``microcosm-publish-release-build`` publishes them into the +#: build's folder (``releases///``) with the other +#: diagnostics, without ``--extra-file``. US_SCF_EDUCATION_DEBT_FIT_ARTIFACTS: dict[str, str] = { "us_scf_education_debt_fit": US_SCF_EDUCATION_DEBT_FIT_FILENAME, "us_scf_education_debt_calibrated_fit": ( @@ -11094,7 +11095,7 @@ def _build_manifests( # ride build_manifest.json and release_manifest.json's build section. gate_evidence_artifacts = _gate_evidence_artifacts(release_dir, revision=release_id) # microcosm#1074: checked before either manifest is written, so a build - # missing a fit table leaves no manifest behind. + # missing a fit table writes neither manifest. scf_education_debt_fit_artifacts = ( _scf_education_debt_fit_artifacts(release_dir, revision=release_id) if scf_education_debt