diff --git a/changelog.d/us-modal-stage-placement.changed.md b/changelog.d/us-modal-stage-placement.changed.md new file mode 100644 index 0000000000..0d4e226e3d --- /dev/null +++ b/changelog.d/us-modal-stage-placement.changed.md @@ -0,0 +1 @@ +Record in `docs/us-modal-stage-runbook.md` that later certified US builds may run `prefetch`, the release, its two release-gate preflights (`preflight-base`, `preflight-release`) and certification on Modal, with their PUF-derived files on its volumes, and list the work that comes first. Publishing, the publisher's preflight included, stays outside that ruling. diff --git a/docs/us-modal-stage-runbook.md b/docs/us-modal-stage-runbook.md index 8a2b313145..d38197a008 100644 --- a/docs/us-modal-stage-runbook.md +++ b/docs/us-modal-stage-runbook.md @@ -993,17 +993,28 @@ is this registration's, flag for flag. ### The historical base plan -On 29 September 2026 Max ruled to run only Route A's base stage on Modal: -non-preemptible, capped at 4 hours of wall, about $15. The release, its -preflight and certification stay on the build machine. - -**How this change reads the cap (not confirmed by Max).** The ruling caps -the run at 4 hours of wall and about $15; it does not say whose wall, the -tool's or the container's. This registration reads the 4 hours as the -tool's wall: the plan's `max_wall_seconds` is 14,400. Each container may -then execute for up to the class timeout, 16,500 seconds (4 hours 35 -minutes): the tool's 4 hours, 5 minutes for staging and 30 minutes for -stopping the tool, mirroring and the receipt. It holds the $15 at $14.90, +On 29 September 2026 Max ruled to run only Route A's base stage on Modal, +non-preemptible, and capped it at four hours of elapsed time and about $15. +He kept the release, its preflight and certification on the build machine. + +On 29 November 2026 Max answered "modal also fine". The d3307 ruling reads +that answer, with an earlier remark of his that day, as a yes for later +certified US builds. Route A's `prefetch`, +`release`, `preflight-base`, `certify` and `preflight-release` stages may run +in the `policyengine` workspace, and the files they make from the PUF may sit +on its volumes (see "Data placement"). Each paid launch, its cost cap and its +placement class still need his go. The yes doesn't cover publishing, the +`publisher-preflight` stage included. No registered tool runs those five +stages yet; "What this does not cover yet" lists the work that comes first. + +**The September cap's four hours: this registration's reading, which Max +has not confirmed.** The 29 September ruling caps the base run at four hours +of elapsed time and about $15; it does not say whose clock, the tool's or +the container's. This registration reads the four hours as the tool's: the +plan sets `max_wall_seconds` to 14,400. Each container may then execute for +up to the class timeout, 16,500 seconds (4 hours 35 minutes): the tool's +4 hours, 5 minutes for staging and 30 minutes for stopping the tool, +mirroring and the receipt. It holds the $15 at $14.90, the class's request for the whole timeout at the non-preemptible list price. If Max means the container's execution time, the other reading is a 14,400-second class timeout with `max_wall_seconds` cut to 12,300 (the same @@ -1598,7 +1609,8 @@ base, keeps `base.sha256` (the H5, copied with its mtime, is not newer than it), and logs that digest for the H5 it passes to the preflight and the release. -The release and certification still run locally. Route A's driver takes +The release and certification still run locally: no registered tool runs +them on Modal yet (see "What this does not cover yet"). Route A's driver takes the base H5 from its run directory and runs the preflight, the release and the publisher's `--preflight-only` check on the build machine. The receipt proves which bytes Modal produced; it does not certify the base. After the @@ -1954,13 +1966,17 @@ allowed there. On 29 September 2026 Max ruled that the IRS PUF files may sit on the `policyengine` Modal volumes for Route A's base ("puf there is fine"): the processed PUF (`puf_2024.h5`, `--puf-h5`) and the restricted TY2015 IRS PUF CSV (`puf_2015.csv`, `--puf-source-year-csv`), both on -`microcosm-us-stage-inputs` under `cas/sha256/`. The ruling covers that -workspace's volumes and the base stage; it does not put the PUF anywhere -else (the Hub, logs, receipts). The base's checkpoints and output on -`microcosm-us-stage-runs` are built from the PUF. This change reads the -ruling as covering them too; that is this change's reading, not Max's -words, which named the PUF. Logs hold only what the tool prints. Receipts -hold digests, sizes and paths, never file contents. +`microcosm-us-stage-inputs` under `cas/sha256/`. On 29 November 2026 he +answered "modal also fine". The d3486 ruling keeps `puf_2015.csv` and +`puf_2024.h5` there. The d3307 ruling reads his answer, with an earlier +remark of his that day, as a yes for licensed and PUF-derived files on the +workspace's volumes. That yes covers the base's checkpoints and +output on `microcosm-us-stage-runs` and, for later certified builds, the +release's checkpoints, weights and artifacts, the national H5 and the +certification files. Neither ruling puts the PUF files anywhere else (the +Hub, logs, receipts), and neither covers publishing. Logs hold only +what the tool prints. Receipts hold digests, sizes and paths, never file +contents. ## What this does not cover yet @@ -1999,4 +2015,21 @@ hold digests, sizes and paths, never file contents. it; none exists yet. - **Certification.** A receipt proves which bytes a stage produced. It does not certify a release. Preflight (`tools/preflight_us_release_gates.py`) - and certification still run on the output as before. + and certification still run on the output as before, on the build machine. +- **`prefetch`, the release, its two release-gate preflights + (`preflight-base`, `preflight-release`) and certification on Modal.** They + may run there under d3307 (see "The historical base plan"); publishing, + the publisher's preflight included, stays outside it. No registered tool + runs `build_us_fiscal_refresh_release.py` or `certify_us_national_build.py` + yet. Four pieces of work come first: + - register the stages; + - measure the build's wall time since the build/certify split; + - pin, as inputs, the run-time donors that `prefetch` fetches today: the + ASEC unemployment archive, the SCF extracts, the SIPP donors and the ORG + donor; + - split certification so that each piece's class timeout, plus the hour + the launch adds (`TELEMETRY_TOKEN_EXTRA_SECONDS`), fits the collector's + 24-hour token cap (`COLLECTOR_TOKEN_LIFETIME_CAP_SECONDS` in + `tools/modal_us_stage_plan.py`). On the 24 October Route A build, the + work after calibration, most of which certification now runs, took 52.8 + of 56.5 hours ([the release build rule](us-release-build-rule.md)).