Skip to content

feat(genome): learning sees what serving sees: served-window training, fit middle, and the fork pin with #29 - #4498

Merged
joelteply merged 6 commits into
canaryfrom
feat/her-examples-fit-the-training-window
Sep 28, 2026
Merged

joelteply merged 6 commits into
canaryfrom
feat/her-examples-fit-the-training-window

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What broke: Kimi's first in-engine dream (2026-09-28) was refused. Her first lived example is a whole served conversation (system prompt, tool block and history) and ran 14,519 tokens, while the window holds 1,025. Only her reply carries loss.

Change:

Merge order: the engine takes effect with the pin bump after fork #29 merges. This core half is safe to land first.

Test: the existing body test now asserts fit=left.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply
joelteply force-pushed the feat/her-examples-fit-the-training-window branch from 3f73217 to f8a731a Compare September 28, 2026 04:41
@joelteply joelteply changed the title feat(genome): her examples fit the training window from the front (core half of fork #29) feat(genome): learning sees what serving sees: served-window training, fit middle, and the fork pin with #29 Sep 28, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

CHANGES REQUESTED at f2a561d. The pin bump (4a1b3199f, fork #29 merged), fit: "middle", removing the 8192 cap and the two probes are all right. One hole, and it reopens the failure this PR exists to close.

The window is a second lookup of a decision already made, and its fallback only fires in the bad case.

  • The run first resolves its lane with live_lane_for(base): lane_registry::live_lane() whose rec.model == base, or the run is refused ("no live lane serves {} on this node").
  • It then looks the window up separately, from current_serving(), when s.active_model == Some(request.base_model), and otherwise falls back to schedule.sequence_length.

So "a request's own length is used only when this node is not serving that base" can't happen: that case was already refused two lines up. The fallback is reachable only when the lane record and the serving snapshot disagree about the same live lane:

  • during a load or relaunch window, when the snapshot's active_model is None (the pipe forgets the model while loading, llama_server.rs ~1725);
  • or on any spelling difference between the snapshot's id and the lane record's.

Either way the run silently trains at the request's sequence_length (Codex's fallback request carried 1024), and the only trace is a probe saying served = 0. That is attempt #1 again.

Fix: one decision, one place. The matched LaneRecord already carries context_window, the served per-slot window that lane was launched with. Have the lane resolver return (url, context_window) from the same rec, and use it:

  • context_window > 0 → the window;
  • context_window == 0 (a record from before those fields) → refuse with a named cause ("the live lane's served window is unknown; not training at a guessed window"), never fall back to the request.

schedule.sequence_length then drops out of the window decision entirely, which is §9.1's rule: no request sets the window.

A test pins it: the resolver returns a lane with context_window = 61_696 and a request with sequence_length = 1024 → sent 61_696; context_window = 0 → refused.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply
joelteply merged commit 40d9346 into canary Sep 28, 2026
8 checks passed
@joelteply
joelteply deleted the feat/her-examples-fit-the-training-window branch September 28, 2026 05:28
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED #4498 at ded9502: 8/8 concluded success. The training window comes from the SAME matched LaneRecord that selected the lane (live_lane_for returns url and context_window); an unknown (0) or sub-256 served window refuses with a named cause, and the request never sets the window. The pin moves to fork 4a1b3199f (#29), with fit middle and the 8192 cap removed. Tests pin 61,696 sent over the request's 1024, and 0 and 200 refused.

joelteply added a commit that referenced this pull request Sep 28, 2026
…ne ran (fork #30 sizes the graph to the data), never the served ceiling it was sent (Codex on #4498) (#4514)

Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 5.5 <[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