From 64971781f398f8602f41b96ea82577f9e34858c0 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 29 Nov 2026 18:04:43 -0500 Subject: [PATCH 1/4] Record the d3307 Modal placement in the US stage runbook Max answered "modal also fine" on 29 November 2026, recorded as a yes on d3486 (the PUF files stay on the inputs volume) and d3307 (licensed and PUF-derived files may sit on the policyengine workspace's volumes, so later certified US builds may run the release, both release-gate preflights and certification there). The historical base plan and "Data placement" now say so, and "What this does not cover yet" lists the work that comes before any such run: registering the stages, measuring the build's wall time, pinning the run-time donors and splitting certification under the collector's 24-hour token cap. Publishing stays outside both rulings. Co-Authored-By: Claude Opus 5.5 --- .../us-modal-stage-placement.changed.md | 1 + docs/us-modal-stage-runbook.md | 47 +++++++++++++++---- 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100644 changelog.d/us-modal-stage-placement.changed.md 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..c62634ed5e --- /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 their release, preflights and certification on Modal, with their PUF-derived files on its volumes, and list the work that comes first. diff --git a/docs/us-modal-stage-runbook.md b/docs/us-modal-stage-runbook.md index 8a2b313145..7cf889fc90 100644 --- a/docs/us-modal-stage-runbook.md +++ b/docs/us-modal-stage-runbook.md @@ -994,8 +994,17 @@ 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. +non-preemptible, capped at 4 hours of wall, about $15. He kept the release, +its preflight and certification on the build machine. + +On 29 November 2026 Max answered "modal also fine", and we recorded that as +a yes on d3307 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. **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 @@ -1954,13 +1963,16 @@ 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", and we recorded that as a yes on two calls: the +PUF files stay on the inputs volume (d3486), and licensed and PUF-derived +files may sit on the workspace's volumes (d3307). The second 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 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 +2011,19 @@ 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. +- **The release, its preflights and certification on Modal.** They may run + there under d3307 (see "The historical base plan"), but 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)). From 500469b007247f015ef6d1d1cb6e9c5b9c72cebf Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 29 Nov 2026 18:14:49 -0500 Subject: [PATCH 2/4] Point the runbook's local-release line at the Modal work list The A1d hand-off section still said the release and certification run locally without saying why; it now says no registered tool runs them on Modal yet and points at "What this does not cover yet". Co-Authored-By: Claude Opus 5.5 --- docs/us-modal-stage-runbook.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/us-modal-stage-runbook.md b/docs/us-modal-stage-runbook.md index 7cf889fc90..8d9a3ce9f6 100644 --- a/docs/us-modal-stage-runbook.md +++ b/docs/us-modal-stage-runbook.md @@ -1607,7 +1607,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 From 08c69500d336dd8c6e465d02bc2da99e66521721 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 30 Nov 2026 05:31:51 -0500 Subject: [PATCH 3/4] Name each ruling in the runbook's d3307 text Answer review r1b on #1813: name the September base ruling in the cap paragraph, state what d3486 keeps and what d3307 allows, and name prefetch and the two release-gate preflights in the changelog and the work-list heading, leaving the publisher's preflight outside the ruling. Co-Authored-By: Claude Opus 5.5 --- .../us-modal-stage-placement.changed.md | 2 +- docs/us-modal-stage-runbook.md | 41 +++++++++++-------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/changelog.d/us-modal-stage-placement.changed.md b/changelog.d/us-modal-stage-placement.changed.md index c62634ed5e..0d4e226e3d 100644 --- a/changelog.d/us-modal-stage-placement.changed.md +++ b/changelog.d/us-modal-stage-placement.changed.md @@ -1 +1 @@ -Record in `docs/us-modal-stage-runbook.md` that later certified US builds may run their release, preflights and certification on Modal, with their PUF-derived files on its volumes, and list the work that comes first. +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 8d9a3ce9f6..052394fe09 100644 --- a/docs/us-modal-stage-runbook.md +++ b/docs/us-modal-stage-runbook.md @@ -993,12 +993,13 @@ 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. He kept the release, -its preflight and certification on the build machine. +On 29 September 2026 Max ruled to run only Route A's base stage on Modal, +non-preemptible, and capped it at 4 hours of wall and about $15. He kept the +release, its preflight and certification on the build machine. -On 29 November 2026 Max answered "modal also fine", and we recorded that as -a yes on d3307 for later certified US builds. Route A's `prefetch`, +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 @@ -1006,10 +1007,11 @@ 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. -**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 +**How this registration reads the September cap (Max has not confirmed it).** +The 29 September ruling caps the base 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, @@ -1965,13 +1967,14 @@ 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/`. On 29 November 2026 he -answered "modal also fine", and we recorded that as a yes on two calls: the -PUF files stay on the inputs volume (d3486), and licensed and PUF-derived -files may sit on the workspace's volumes (d3307). The second 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 puts the PUF files anywhere -else (the Hub, logs, receipts), and neither covers publishing. Logs hold only +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. @@ -2013,8 +2016,10 @@ contents. - **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, on the build machine. -- **The release, its preflights and certification on Modal.** They may run - there under d3307 (see "The historical base plan"), but no registered tool +- **`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; From 8839c38de7b78064215e8595c8f88ab5b80fbabd Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 30 Nov 2026 05:39:44 -0500 Subject: [PATCH 4/4] Say elapsed time for the September cap in the runbook Round 2 of the #1813 review approved 08c69500d3 and left one P3 partly open: "4 hours of wall" and a be-verb spine in the cap paragraph. Co-Authored-By: Claude Opus 5.5 --- docs/us-modal-stage-runbook.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/us-modal-stage-runbook.md b/docs/us-modal-stage-runbook.md index 052394fe09..d38197a008 100644 --- a/docs/us-modal-stage-runbook.md +++ b/docs/us-modal-stage-runbook.md @@ -994,8 +994,8 @@ 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, and capped it at 4 hours of wall and about $15. He kept the -release, its preflight and certification on the build machine. +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 @@ -1007,14 +1007,14 @@ 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. -**How this registration reads the September cap (Max has not confirmed it).** -The 29 September ruling caps the base 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, +**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