Skip to content

Exact-k ladder launcher + release plumbing: pool → k ∈ {N, 57,240, 20,000} datasets (#578 inc 3) - #607

Merged
MaxGhenis merged 15 commits into
mainfrom
exact-k-ladder-578
Aug 4, 2026
Merged

Exact-k ladder launcher + release plumbing: pool → k ∈ {N, 57,240, 20,000} datasets (#578 inc 3)#607
MaxGhenis merged 15 commits into
mainfrom
exact-k-ladder-578

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

The pool (#583/#599/#600) needs release plumbing to become datasets. This adds the ladder launcher: given a post-agreement pool artifact and a release config, produce one exact-count dataset per run.

Flow per ladder point:

Structure: a manifest-bound pool loader, a calibration seam extending tools/build_us_fiscal_refresh_release.py (reused, not forked — batched PUF-tail invariant and failure diagnostics preserved), and tools/build_us_exact_k_ladder_release.py as the launcher. Config accepts exactly "N", 57240, or 20000 with explicit seed and frozen pool/ledger/incumbent pins; fail-closed on bad k, missing seed, k>N.

Fixture receipts (tiny pool): N→8 identity support; 57,240→6 and 20,000→4 via Sampford with normalized HT w/q refit.

Verification: full workspace 5,003 passed / 57 skipped / 0 failed (5,060 collected); #583 spine guard 495; pool input-surface guards 215; fiscal builder 166; ruff + changed-file format + git diff --check clean. Independently re-ran the launcher/e2e/io/spine-guard files from a fresh invocation before opening this PR. Disclosed: offline wheel build unavailable in the lane sandbox (hatchling uncached); wheel lane runs in CI.

Part of #578 increment 3. Real k=N/57,240/20,000 builds dispatch on Modal after this merges and run 6's pool lands.

🤖 Generated with Claude Code

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Round-1 findings all addressed in e0e9924…0b3cc209 (6 commits): incumbent loaded/hashed/scored from one byte buffer with observed sha recorded (TOCTOU repro now fails); acceptance binds the incumbent's full loss basis — weighting version, family multipliers, cap, name-aligned loss-vector digest — with IncumbentLossBasisMismatchError on drift (both executed repros fail closed); exact-k forces --no-staging and receipts assert pointer_update=False for production AND staging; builder surface now enforces ratified k + explicit seed; ExactKRealizedCountMismatchError before any manifest write; legacy dense path restored to origin/main goldens (telemetry, three-key CLI, main() returns None) plus a full-main PUF-tail failure test; pool manifest hashed/parsed from one read authenticating publication_run_id; release docs updated. Full workspace 5,014 passed / 0 failed foreground.

@MaxGhenis
MaxGhenis merged commit c4435d4 into main Aug 4, 2026
4 checks passed
@MaxGhenis
MaxGhenis deleted the exact-k-ladder-578 branch August 4, 2026 00:27
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.

1 participant