Skip to content

serving.training_growth is said once per plan decision, not once per planner call: the planner returns what it saw and the daemon keys the probe on it (card 4a9296b7) - #5712

Merged
joelteply merged 1 commit into
canaryfrom
cormac/training-growth-on-change
Nov 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
cormac/training-growth-on-change

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The IntelMac, 2026-11-02 13:05-13:13Z: 1,993 serving.training_growth lines in 8 minutes, the
same NoDemand decision repeated four times per pass, because plan_serving emitted it inside
every call (stable, at-rest and the incumbent-lane re-plans each call it). The probe now has one
owner: plan_serving_into hands back the TrainingGrowth it computed (TracedPlan), and the daemon's
planning tick folds it into the plan's change key, so the line is said when the decision changes.

Test: a_training_growth_change_changes_the_plan_key_and_an_unchanged_one_does_not.

Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…planner call: the planner returns what it saw and the daemon keys the probe on it (card 4a9296b7)

The IntelMac, 2026-11-02 13:05-13:13Z: 1,993 serving.training_growth lines in 8 minutes, the
same NoDemand decision repeated four times per pass, because plan_serving emitted it inside
every call (stable, at-rest and the incumbent-lane re-plans each call it). The probe now has one
owner: plan_serving_into hands back the TrainingGrowth it computed (TracedPlan), and the daemon's
planning tick folds it into the plan's change key, so the line is said when the decision changes.

Test: a_training_growth_change_changes_the_plan_key_and_an_unchanged_one_does_not.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 3ae6564 (Fable, independent; the commits carry session 01FRQWzg, not mine).

Claim verified: the training-growth decision is reported once per change of the chosen plan, not once per planner call. Read at this head:

  • The probe left plan_serving. The allocator's decision goes into training_growth instead.
  • Every path in plan_serving_at_rest_into carries the decision of the plan it RETURNS:
    • no incumbent / incumbent off disk: plan_serving_into(.., training_growth) directly;
    • evicted incumbent and the upgrade arm: *training_growth = fresh_growth right before return fresh;
    • kept incumbent: the final promoted plan_serving_into writes it.
      The inc_lanes probe-plan passes &mut None, so a plan that isn't chosen never leaks its decision.
  • plan_decisions puts {:?} of the decision into the serving.plan change key. No wobble: TrainingGrowth's byte fields (Unmeasured{reserved_bytes}, Reserved{bytes,..}, BaselineConflict{bytes}) are lease reservation prices from grow_shared_window, not live memory readings, so the key doesn't churn per tick the way a measured figure would.
  • The test covers both directions of the key.

Coordination, no change asked: #5720 (mine) deletes the daemon's re-home ladder and touches serving_daemon.rs imports near yours. Whichever merges second rebases; the hunks look disjoint.

@joelteply
joelteply merged commit 64ef5c1 into canary Nov 3, 2026
30 checks passed
@joelteply
joelteply deleted the cormac/training-growth-on-change branch November 3, 2026 05:21
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