Skip to content

fix(training): a graph-only refusal bounds the next plan, so a refused window is never re-dispatched - #4984

Merged
joelteply merged 3 commits into
canaryfrom
030d70f0/window-descent-measures-far
Oct 12, 2026
Merged

joelteply merged 3 commits into
canaryfrom
030d70f0/window-descent-measures-far

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

On the 5090, 84 of 108 training jobs failed. Window 68,608 was re-planned 73 times
because its refusals were filed graph-only (includes_context: false), and both the
window cap and the chunk ladder read whole-run rows only (#4939). That is correct for
the fit and wrong for the bound: a graph alone over what is free proves the whole run is
over it too.

  • choose_window takes the whole-run rows to fit, plus bounds (every measured row)
    for the floor-chunk cap.
  • Footprints gains bound_rows_like and bound (whole-run row, else graph-only).
    rows_like and get are unchanged.
  • choose_chunk's need at a chunk is max(known need, measured lower bound), so a
    refused chunk steps down.

Card 030d70f0. Parking examples on a measured no-fit (and the wake) is the next step on
the same card.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…d window is never re-dispatched

On the 5090, 84 of 108 training jobs failed. Window 68,608 was re-planned 73 times
because its refusals were filed graph-only (`includes_context: false`), and both the
window cap and the chunk ladder read whole-run rows only (#4939). That is correct for
the fit and wrong for the bound: a graph alone over what is free proves the whole run is
over it too.

- `choose_window` takes the whole-run `rows` to fit, plus `bounds` (every measured row)
  for the floor-chunk cap.
- Footprints gains `bound_rows_like` and `bound` (whole-run row, else graph-only).
  `rows_like` and `get` are unchanged.
- `choose_chunk`'s need at a chunk is max(known need, measured lower bound), so a
  refused chunk steps down.

Card 030d70f0. Parking examples on a measured no-fit (and the wake) is the next step on
the same card.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply and others added 2 commits October 12, 2026 09:31
… the 5090's default-chunk graph-only row steps the chunk

Codex read the 5090's footprints file: the 68,608 row is graph-only at the engine's
default chunk (18.6 GB, includesContext:false). The floor-chunk window cap never sees a
default-chunk row. choose_chunk does, now that it reads the bound, where before it read
None and calibrated chunk 512 again on each run. Footprints::need owns that read, and the
test pins the 5090's row.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit 9f0f3d4 into canary Oct 12, 2026
7 checks passed
@joelteply
joelteply deleted the 030d70f0/window-descent-measures-far branch October 12, 2026 15:10
joelteply added a commit that referenced this pull request Oct 12, 2026
…own and calibrates, never leased as the need

Codex on #4985: lower bounds can disqualify a shape but cannot establish that a reserve is
enough. #4984 (merged 9f0f3d4) had the trainer lease a graph-only bound that sat under
governed free as if it were the whole run's need. Before #4984 such a shape calibrated,
leasing everything free. Need::decides returns the bytes only where the evidence decides;
a bound under free returns None, so the shape calibrates as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Oct 12, 2026
…nference/planning, so serving and training read one need (#4985)

* refactor(planning): the training plan and the serving floor live in inference/planning, so serving and training read one need

Agreed with Codex and Fable on #4984 and 3b8fb153. The serving planner must reserve one
learning context beside serving, and that reserve has to be the trainer's own calculation.
Exporting it from genome::fine_tuning would add the upward edge the crate peel (#4981) is
removing, so the pure planner moves to the lower owner instead:

- genome/fine_tuning/engine_plan.rs -> inference/planning/training_plan.rs (git mv,
  unchanged apart from visibility).
- MIN_SERVE_CTX, its one upward reference, moves with it to inference/planning. All ~40
  callers are migrated; no alias is left behind.
- training_plan::need(whole_run, lower_bound, predicted) -> Need{bytes, source}. The source
  (WholeRun | LowerBound | Predicted) stays explicit. Footprints::need is now storage-only
  and calls it.

Adds no inference -> cognition/genome/modules/persona edge (training_plan references only
super::MIN_SERVE_CTX). Card c8165aa6; parking and the wake come next on the same card.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* fix(planning): a lower bound only disqualifies; under free it is unknown and calibrates, never leased as the need

Codex on #4985: lower bounds can disqualify a shape but cannot establish that a reserve is
enough. #4984 (merged 9f0f3d4) had the trainer lease a graph-only bound that sat under
governed free as if it were the whole run's need. Before #4984 such a shape calibrated,
leasing everything free. Need::decides returns the bytes only where the evidence decides;
a bound under free returns None, so the shape calibrates as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant