Repository navigation
A mind's grant follows what her view holds at full detail, never a render her last grant collapsed (card 90197043) - #5973
Merged
joelteply merged 2 commits intoNov 13, 2026
Conversation
…nder her last grant collapsed (card 90197043) Aris alone on a 247,040-token pool (M5, 2b17c41): every grant of 109,745 -> 78,241 -> 68,642 -> 47,890 -> 43,807 was 1.25 x a delib.turn.demand measured from her collapsed view, and the need ring's priced bounds (56,902-99,441) were cut under that wish target (Observed::under). - continuum-context: View::collapsed_growth, what a start's collapses took away at the whole level (folded, withheld and repeats excluded). - cognition: her demand is render + collapsed growth; record() takes the served window, and a demand past it is her requirement at once (PersonaDemand::overflow_tokens, the upward probe). - engine: window_grant::Demand::of is the one requirement-to-demand derivation (moved from the serving daemon, its wrapper deleted); her target is never below her wish. - dyno: scenario 8, idle pool / one mind / censored demand, from her recorded demands. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…/! prefix) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
deleted the
fable/a-grant-never-ratchets-down-on-an-idle-pool
branch
November 13, 2026 22:31
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Serves the minds on the one shared engine (order of work line 3/3b, KV capacity and grants): a resident alone on an idle pool keeps the window her work holds, instead of collapsing and re-reading.
Evidence (M5, canary 2b17c41, 2026-11-13)
serving.grants21:40:00Z: pool 247,040, cap 247,040, minds=1, {Aris 8044b75b: 43,807}.delib.turn.demandsamples (the ring median at that point):109,745 = 1.25 x 87,796; 78,241 = 1.25 x 62,593; 68,642 = 1.25 x 54,914; 47,890 = 1.25 x 38,312; 43,807 = 1.25 x 35,046.
delib.view.turnovercollapsed 14-44 items per start.~/.continuum/personas/8044b75b.../working-set.json) held 12 censored priced bounds of 56,902-99,441 (persona.need.censored, pricedHeld{held: window}). They were cut down to the collapsed wish's target.The chain (file:line on 2b17c41)
cognition/llm_deliberation_faculty/prompt/view.rs:244unfitted_message_tokens = all_messages.tokens()is measured afterplace_view, so her view is counted as rendered, collapsed at its last start.view.rs:513-532demand_tokensis built from that andreg.record(...)writes it intoPersonaDemand::recent.cognition/working_set.rs:212requirement_tokenstakes the median ofrecent. Atworking_set.rs:857it becomesLaneRequirement::wished(wish, SENT_HEADROOM).engine/inference/planning/window_allocator.rs:202held(need)appliesneed.under(target)(observed.rs:107), which cuts the censored bound (99,441) towish x 1.25.serving/serving_daemon/grants.rsdemand_ofproduced need = 1.25w and target = need x 1.25.capacity/window_grant.rsDemandFollowingthen grants it, releasing a settled grant to that target (holds).The fix (at the owners, no parallel path)
continuum-contextView::collapsed_growth(view/held.rs) returns what a start's collapses took away: each collapsed or summarized item's whole minus what is rendered for it. Folded navigation, withheld backlog and repeats are excluded, so this is not the 902k-token inflation from 11-07. Her demand is now render + collapsed growth (view.rs), and the old render-only figure no longer exists anywhere.window_grant::Demand::ofis now the single requirement-to-demand derivation. It moved from the serving daemon, and the wrapper and its call sites were deleted. Her target ismax(need x headroom, wish). On an idle pool her grant is therefore never released below her full-detail wish, and it shrinks only when other minds' needs claim the room (DemandFollowing's contention branches are unchanged). The act's priced allocation still decides how much of the ceiling an act holds.WorkingSetRegistry::recordnow takes the served window. A demand past it is stored inPersonaDemand::overflow_tokens(serde default), andrequirement_tokensreturns at least that value, so the next publish grants what overflowed. A turn that fits ends the probe.Lines: +293 / -55. Removed: the serving daemon's 45-line copy of the derivation (
demand_of) and every caller, migrated toDemand::of.Simulation first
capacity/dyno/tests.rscensored_demand(scenario 8 indyno.rs) drives the realLaneRequirement->Demand::of->DemandFollowingpath, using her 30 recorded demands (20:42-21:44Z), the bound 99,441, the floor 26,802 and the pool 247,040:Unit tests:
View::collapsed_growth: render + growth equals every item whole; a view that collapsed nothing adds 0.requirement_tokens: the overflow probe raises her requirement and a fitting turn ends it.Demand::of+DemandFollowing: a settled grant on an idle pool never falls below her whole view.Not compiled locally: the M5 is serving live minds, so CI is the compiler.
Known follow-up (not in this PR)
The launch/lane plan's per-sequence window (
ServingDemand::window_target, fromsent_medianof post-fit sizes,serving_plan/max_lanes.rs:237-269) is a second place that sizes a window from a measure a window bounds. It sizes the engine geometry, not a mind's grant. Migrating it to this requirement needs a design call with Codex (serving owner).Live receipt to take (after deploy, owner: Fable)
For one hour, before and after, on the M5:
serving.grants);delib.view.turnoveralongsidedelib.turn.demandover_window > 1);delib.turn.demandwithcollapsed_growth.Pass: no mind alone on the pool is granted below her full-detail demand, and overflow turnovers drop.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo