Repository navigation
Window grants search to fit: surplus above every need grows minds toward their targets, never left idle - #5813
Merged
Merged
Conversation
…ard their targets, never left idle The M5, 2026-11-07 06:50Z (fe91c2b, serving.grants): pool 152,832, per-sequence cap 152,832, grants Benchy 24,012 / Aiko 30,195 / Aris 29,589 / Atlas 34,018 (their held needs), targets 150-557k, and 35,018 granted to no one. DemandFollowing had no regime between "every target fits" and "everyone at her need": once the targets overflowed, it fell to the wants and left the rest idle. Now, when every want fits but not every target, the surplus above the wants is searched toward the targets (Joel: "it's an optimizer too, it sort of searches to fit"): a turn in flight first, then the smallest growth to her target, so the most views read whole; the last mind reached takes what is left. Never below a want, so no mind is divided. A grant becomes what she holds, her want next tick, so a steady demand is a steady grant (asserted). The value order is what is measured today; a measured activity temperature (card b4eed65c) replaces it when it exists. Tests: continuum-engine capacity:: 232 pass (IntelMac, -j 2). New: surplus_above_every_need_grows_minds_toward_their_targets (the 06:50Z numbers, with a negative control on the 35,018 surplus). needs_are_granted_before_any_target... now asserts the needs first, then the surplus. Mutation: with the old stage restored, both fail (26 pass, 2 fail). Card ffd998c8. 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
Nov 7, 2026
…the largest demand is no longer reached last (card 20b830fb) (#5816) The M5, 2026-11-07 08:46-09:46Z on a947e4e (#5813's merge): Atlas granted 14,353 against a 111,165-token view (18 acts at 42% reuse, history broken in 14 of 19), Benchy alike, while the pool stayed with whoever was filled first. #5813's fill order was "smallest growth to target first" (the fair publisher passes in_flight false for every mind), so the largest demand was reached last on every publish; whatever she did not get stayed with its holders (want = holds). Starvation, which goal 9 forbids (Fable on eebaade4). Now, when every want fits but not every target: the surplus above every need is shared in proportion to each mind's remaining growth (target - need, targets capped at one sequence), flexbox's grow, the principle the act allocation searches by. A settled mind (she has served on her grant since it last changed, read off her receipts by the fair publisher) holding more than one headroom (SENT_HEADROOM) above her share gives back down to her share; every other mind keeps her want and grows toward her share when there is room. A mind below her share is never shrunk to feed another, and one who has not served on her grant is never shrunk at all. Steady demand is a steady grant (asserted). Demand gains `settled`; FairGrantState records the receipt revision at each mind's last grant change. Tests: continuum-engine capacity:: 233 pass; continuum-serving --tests checks clean (IntelMac, -j 2). New: the_largest_demand_gets_the_largest_share_and_only_a_settled_holder_gives_back (Atlas's case; an unserved holder keeps her grant and nothing moves until she serves). Rewritten with independently computed proportional values: surplus_above_every_need... (06:50Z numbers) and needs_are_granted... Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
#5816/#5823); only the surplus's price remains (Cormac on #5709) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
…5709) * Flow plan §6e: a mind's window follows what she reads, as demand events up or down, granted from one shared pool (Joel, 2026-11-02) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Flow plan §6e amended per Codex's review: untrimmed demand plus reserve with revisions, versioned grants that never shrink under an in-flight turn, the fork's per-slot capability proven first, validator before engine work Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * FLOW §6e: the allocator already grants unevenly (DemandFollowing, #5813/#5816/#5823); only the surplus's price remains (Cormac on #5709) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
The M5, 2026-11-07 06:50Z (fe91c2b, serving.grants): pool 152,832, per-sequence cap 152,832,
grants Benchy 24,012 / Aiko 30,195 / Aris 29,589 / Atlas 34,018 (their held needs), targets
150-557k, and 35,018 granted to no one. DemandFollowing had no regime between "every target fits"
and "everyone at her need": once the targets overflowed, it fell to the wants and left the rest idle.
Now, when every want fits but not every target, the surplus above the wants is searched toward the
targets (Joel: "it's an optimizer too, it sort of searches to fit"): a turn in flight first, then the
smallest growth to her target, so the most views read whole; the last mind reached takes what is
left. Never below a want, so no mind is divided. A grant becomes what she holds, her want next tick,
so a steady demand is a steady grant (asserted). The value order is what is measured today; a
measured activity temperature (card b4eed65c) replaces it when it exists.
Tests: continuum-engine capacity:: 232 pass (IntelMac, -j 2). New:
surplus_above_every_need_grows_minds_toward_their_targets (the 06:50Z numbers, with a negative
control on the 35,018 surplus). needs_are_granted_before_any_target... now asserts the needs first,
then the surplus. Mutation: with the old stage restored, both fail (26 pass, 2 fail).
Card ffd998c8.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE