Skip to content

feat(lane D): publish each settlement's public half eval set at report time (owner 2026-12-01) - #1059

Open
tensorlink-dev wants to merge 1 commit into
mainfrom
laned-publish-public-evals
Open

tensorlink-dev wants to merge 1 commit into
mainfrom
laned-publish-public-evals

Conversation

@tensorlink-dev

Copy link
Copy Markdown
Contributor

Owner 2026-12-01: store each lane D settlement's PUBLIC half eval set publicly.

What

  • lane-d/evals/<boundary>/public_windows.npz + public_manifest.json for every settlement whose signed report has public rows. Exactly the public windows that settlement judged (the distinct public.rows ids in the report's order), as cut: history (finite suffix, float64, as the judge cut it; MASE scales by it, each model forecast from its last context points), target, window_id, series_id, source, family, freq, band, h, cut, length, ordinal, the max_channels pick (channels, JSON), plus models / roles (king_d, house, king_d+house, member) / contexts and per-window crps / mase (n_windows, n_models) from the signed rows. No quantiles: the eval host scores the public forecasts in memory and keeps none (stated in the manifest).
  • public_manifest.json: sha256s, boundary, boundary block hash, per-source draw seeds, data revisions (repo, revision, index_sha256, files_sha256), keep rule, report_sha256, public_rows_sha256, cut_key.
  • No retirement wait: published once lane-d/reports/lane_d_report_<b>.json is in the bucket (the hourly cascade-settlement-evals pass, newest first, --laned-public-per-run 2).

How

  • Eval host (cascade/eval/lane_d_public_export.py, new): finds the settlement's CutCache file (fix(lane D): cut the settlement's public windows once on the eval host (live 2026-12-01) #1052) by its header's window ids (holds every judged id, only drawn ids; another settlement's draw cannot match), loads it with the payload re-hashed and without touching its LRU mtime, writes the npz streamed through raw temp files. No cut file (evicted / pre-fix(lane D): cut the settlement's public windows once on the eval host (live 2026-12-01) #1052) gives cut_unavailable. The box records that in public_unavailable.txt and does not retry it.
  • Box (cascade/pool/settlement_evals.py): the same SSH channel as windows.npz (EvalHost.build_public niced/ionice/timeout, --cut-cache-dir <eval_public_cache_dir>/cut; fetch_public streams cat to the stage on disk). The box sends ids and scores only, no arrays. It checks the sha, then reads only window_id / models and the crps / mase headers. history / target are never opened. A stage free-space floor (file + 20 GiB) applies. A public-pass failure never blocks the retired pass.
  • Index: items = retired ∪ public boundaries. Every old key stays on every item (null until retired), the schema lane-d-evals-index/1 is unchanged, and the new optional fields are public_windows, public_windows_sha256, public_windows_bytes, public_windows_url, public_manifest_url. published_ids (retired) never counts a public-only id.
  • Unsigned extra: the signed report, receipts and satellites are untouched.

Tests (torch-free, fake S3 + in-process host over a real CutCache with a decoy)

tests/accept/w_evalpub/test_w_evalpub_public.py has 7 tests. All fail on base by assertion and all pass here:

  • the npz matches the report's public draw: ids and order are the same, arrays are bit-identical to the cut, and scores equal the rows
  • it publishes at report time while the live half still waits, never before the report is in the bucket, and never rebuilds
  • the index gains the new fields and an old reader still parses every item
  • nothing large is loaded on the box: only the small members are read, the request carries no arrays, no torch/pyarrow is imported, and a reordered file is refused
  • a missing cut file is recorded once
  • a report with no rows is skipped
  • the SSH command is niced and uses the inputs' cut dir

Existing test_w_evalpub.py (15) and tests/unit/test_incident_rules.py (89) pass. Ruff clean.

Rollout notes

  • The eval host must run a release with cascade.eval.lane_d_public_export; until then each attempt logs a failure and is retried.
  • Size: a 5000-window public half is roughly 0.8–1 GB (the example-round public_windows.npz is ~820 MB), so about 8 settlements/day is ~7 GB/day of bucket growth, and each file passes transiently through the box stage.
  • Backfill: automatic for any past report on the box whose cut file is still in the host's cut cache (16 GiB LRU, so likely only the last few settlements with public rows). Older ones are marked unavailable. Re-cutting them from the mirror would be a follow-up.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe

…t time (owner 2026-12-01)

lane-d/evals/<boundary>/public_windows.npz + public_manifest.json for every
settlement with public rows: exactly the public windows it judged (report
order), as cut (history, target, ids, source, family, freq, band, h, cut,
max_channels pick), plus every judged model's per-window CRPS/MASE from the
signed rows (KING_D, house, members). Built on the eval host from the
settlement's CutCache file (#1052; found by its window ids, payload
re-hashed, LRU untouched) by cascade.eval.lane_d_public_export, streamed to
the box stage over the settlement-evals SSH channel, checked on the box from
the id/model/score-shape members only, uploaded public-read, manifest last.
No retirement wait: published once the signed report is in the bucket.
Index items gain optional public_windows / public_windows_sha256 /
public_windows_url; old keys stay on every item (null until retired).
Signed report and satellites untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
@vercel

vercel Bot commented Dec 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cascade Ignored Ignored Dec 1, 2026 10:10pm UTC

Request Review

@tensorlink-dev tensorlink-dev added the laned:W-EVALPUB W-EVALPUB: publish retired settlement eval sets label Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

laned:W-EVALPUB W-EVALPUB: publish retired settlement eval sets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant