Skip to content

The lane floor follows a mind's recent growth samples, never a lifetime peak - #5579

Merged
joelteply merged 3 commits into
canaryfrom
fable/plan-floor-recent
Oct 29, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fable/plan-floor-recent

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The lane floor follows a mind's recent growth samples, never a lifetime peak.

The defect (the M5, 2026-10-28)

sent_median_with took the median of each resident's sent_peak, a lifetime maximum that only ever rises (record_sent_in_memory: max). The residents' peaks were 188-370k tokens while their recent turns ran 20-43k. The median (Benchy's 339,156) x 1.25 headroom set a 423,945-token requirement. No plan that fit in memory met it, so every runnable plan was refused as serving.plan.below_persona_floor (published=false), and the stale plan stood: from ~21:46Z four residents shared ONE 27,904-token slot (-c 27904 --parallel 1), and Aiko's turns stopped completing (5 asked, 0 complete).

The fix

PersonaDemand gains a ring of recent growth samples (sent_recent, serde default, beside the existing recent/need_recent rings). growth_sample(d) = the max of that ring, else her typical demand (the rule requirement_tokens already states: "the typical turn ... never the peak"), else the legacy peak. sent_median_with and sent_ceiling_of read it. sent_peak stays recorded for the glass box. Test: a_historic_giant_turn_stops_setting_the_lane_floor.

Measured

  • Local, M5 serving-down window 00:49-00:53Z 2026-10-29 (on the live base, combined 29684f8 = cbbae9c + this commit): cargo test -p continuum-cognition working_set 16/0; cargo check -p continuum-serving -p continuum-grid ok.
  • Live, the same build deployed (core 29684f8, verified): requirement 423,945 -> 24,956; serving.plan.branch planned_lanes=2 planned_window=27904, published; engine -c 55808 --parallel 2 (from --parallel 1). 15-minute live read: posted below when complete. Remaining limit is memory (usable_bytes 16,473,220,710 after the 12 GiB eco reserve), a separate item.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…me peak

On the M5, 2026-10-28, the residents' all-time sent_peaks (188-370k tokens; recent turns
20-43k) set a 423,945-token requirement: every runnable plan was refused as below the floor
and four residents shared one 27,904-token slot from ~21:46Z. PersonaDemand gains a ring of
recent growth samples (sent_recent, serde default); growth_sample takes its max, else her
typical demand (requirement_tokens' rule), else the legacy peak. sent_median_with and
sent_ceiling_of read it. sent_peak stays recorded for the glass box.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

At b91bef7, growth_sample's unconditional typical_tokens fallback manufactures a growth vote for assembly-only records (sent_peak=0, sent_recent empty). This is the same regression caught in #5578: lane_under_plan records untrimmed assembly only; the new publication floor rejects the intended lower plans, so jitter/climbing/alternating rehome tests observe the retained high plan and fail. c3935ec had145passing/3failing serving tests; restricting legacy migration to records with historical growth evidence fixed all three at f449aef, with all selected CI passing. Please preserve None when neither recent nor historical growth was recorded, and add the absence-of-observation regression from #5578. Do not weaken the existing serving tests.

Also reconcile the persisted ring names (sent_recent vs growth_recent) before merging both branches; these are overlapping implementations. The reported two-lane M5 recovery is useful live evidence but does not cover the missing-observation transition. Source verdict: changes requested on this exact head.

@joelteply

Copy link
Copy Markdown
Contributor Author

CI now independently reproduces the exact reviewed defect on b91bef7: run40797111739, serving job123196244083 ends145passed/3failed (climbing, jittering, alternating rehome), same failures as #5578's original migration. The other red checks mirror this failure. Source fetched at combined deployment f208b6e still contains unconditional .or_else(|| typical_tokens(d)).

Minimal correction preserving your recent-max policy: consult recent sent samples first; if absent and sent_peak == 0, return None; otherwise use the explicit legacy-demand migration. Add #5578's assembly_without_a_growth_observation_does_not_create_a_publication_floor regression. This avoids changing your chosen statistic or touching the serving tests.

The legacy fallback (typical demand, else the lifetime peak) is for records written
before the sent ring existed, which carry sent_peak > 0. Applied to every record with an
empty ring, it gave minds with no growth sample a floor, and the serving re-home tests
failed on CI (a_climbing_plan_coalesces..., a_jittering_gain..., a_lane_far_below...).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Local receipt, M5, combined tree f7cbd25aa (canary 3e54bfa + #5564 bcfcac5 + #5579 ce265af + #5581 ed666c6), serving down 10:06-10:10Z: continuum-cognition 1199 passed 0 failed; continuum-mind 1142/0; continuum-hands 293/0; continuum-serving 148/0 (incl. rehome::*); continuum-context 25/0; source-hygiene 69/0 (unwired machinery back under baseline).
This PR's fix ce265af: a mind that never sent a growth sample sets no lane floor (the legacy fallback is only for records with sent_peak > 0); the three serving rehome tests that failed on CI pass.

@joelteply
joelteply merged commit 0892f72 into canary Oct 29, 2026
16 checks passed
@joelteply
joelteply deleted the fable/plan-floor-recent branch October 29, 2026 16:18
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