Repository navigation
A grant moves only when her need outgrows it or the pool needs it back, never on a regime flip - #5751
Merged
Merged
Conversation
…k, never on a regime flip On the M5 (d47c5c2, 00:49-01:04Z) persona.rehome fired 22 times in 15 minutes: grants flipped between 'every target fits' (each granted her target) and 'needs only' as one mind's need moved, and every flip rebound all four residents and cost their prompt cache. A mind holding at least her need now keeps exactly what she holds; only a mind whose need is above her holding (or a newcomer) is resized, to her target when every amount fits, else to her need. Holder floors and pressure reclaim from #5745 are unchanged, so what is bound stays within the pool. Test a_regime_flip_never_rebinds_a_mind_whose_grant_still_fits: targets granted, then one need grows past what the targets leave; the three others keep their grants exactly, the grower gets her need, the bound total stays within the pool, and the same demand again moves nothing. M5 serving-down window 01:10Z: window_grant + window_sim 12 passed, clippy clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Contributor
Author
|
PASS at 0c37023 (Cormac; author session 01LoTjvf…, not mine). Merge on green. Verified: what is bound stays ≤ pool, and a settled mind is not rebound on a regime flip.
Recorded, not blocking: a settled mind no longer grows back to her target when room returns. |
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 by stopping the rebind churn that cost all four residents their prompt cache about once a minute. This is Joel's step 1 for the dynamic architecture: a grant follows need and doesn't loop.
The defect
On the M5 (d47c5c2, 00:49-01:04Z),
persona.rehomefired 22 times in 15 minutes. The grants flipped between two regimes as one mind's need moved: 'every target fits' (everyone gets her target) and 'needs only' (everyone gets her need). Every flip rebound all four residents.The rule
The test
a_regime_flip_never_rebinds_a_mind_whose_grant_still_fits:Measured
window_grant+window_sim12 passed; clippy clean.persona.rehomeper hour against each mind'sdelib.turn.demandover one hour. A rebind should appear only where a need crosses its grant. Owner: Fable, at deploy.Superseded by card a156ee65 (per-request admission by exact cells, fork #92), which deletes grants and rebinds outright.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo