Repository navigation
A bound stays a bound through residency: Sahar's overflowed need is granted the ceiling, never parked - #5931
Merged
Merged
Conversation
…ranted the ceiling, never parked as an exact need #5926 clamped an unheld wish, but Sahar was never Wished: resident_need flattened her censored need (NeedSample::AtLeast 116,239) to a number and requirements_for wrapped it Observed::Exact (working_set.rs:860; Codex traced it 09:20Z), and admission never clamps an exact need. BigMama dc01d95 / ae5ba31 live reads 09:19-11:59Z: 'NeedAboveCeiling 116240/58112', 0 acts, fit 29,056. resident_need now returns the typed Observed: an AtLeast stays AtLeast, so demand_of's within(per_sequence_cap) grants min(bound, ceiling) and her view collapses to fit; an irreducible floor (floor_tokens) stays Exact and still waits (#5773). within clamps a bound to its value, so the 11-04 'a bound gets a whole sequence' failure cannot recur (pinned in the test). Test: a_censored_need_raises_her_residency_by_its_value_never_to_a_whole_sequence now pins the bound kept, its value under a roomy ceiling, and the ceiling past it (Sahar). Tests (M5, serving down, 12:58Z): continuum-cognition lib 997, continuum-serving lib 147; ratchets pass. Card 4ec2818a. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…e bound into what exists, never the floor (Codex on #5931) Observed gains Floored { at_least, floor }: the irreducible part of her need (a size her turn cannot be sent below) beside the reducible bound. Observed::over(floor) is the one place a floor joins a need (an exact need raised to it; a bound keeps it; a floor past the bound is the need, exact); within reads Floored as max(floor, min(bound, limit)), so a floor past the limit stands and waits, as an exact need does. try_map replaces hand-matched variant conversion. resident_need is now need_tokens(d).try_map(Tokens::new).over(floor). Codex's cases (fixture a_bound_is_clamped_to_the_ceiling_never_below_her_floor): floor 60,000 between ceiling 58,112 and bound 116,240 stands and waits; floor = bound stays a floor; floor under the ceiling collapses the bound to the ceiling; a roomy ceiling grants the bound's value. Tests (M5, serving down, one window 13:25Z): continuum-cognition 998, continuum-engine 1,564, continuum-serving 147; ratchets pass. Card 4ec2818a. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… AtLeast
Untagged reads try variants in declaration order and ignore unknown fields, so with AtLeast first
{"at_least":a,"floor":f} read back as a bare bound and the floor was dropped at any JSON boundary
(requirements to the serving daemon). Test: every_need_shape_survives_a_json_round_trip (Exact,
AtLeast, Floored). continuum-engine lib 1,565 pass; ratchets pass (M5, serving down, 13:31Z).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ed's irreducible part and shapes only the bound under it Codex on #5931: requirements_for -> LaneRequirement::held clamped the need to her target (need.map(min(target))), and the target comes from her typical demand, not her floor: wish 40,000 (target 50,000), floor 60,000 and bound 116,240 reached admission as 50,000; exact floors inherited the same cut. Observed gains irreducible() (an exact need whole, a floored bound's floor, nothing of a bare bound) and under(target) (the bound collapses to the target, the irreducible part never); held raises the target to the irreducible part first. An exact held need above a stale target now raises the target instead of being cut (a mind gets what she needs). Test (through requirements_for, the path admission reads): a_stale_target_never_cuts_her_floor_on_the_way_to_admission. Tests: CI (no builds on the serving M5). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This was referenced Nov 11, 2026
…grid test follows held()'s new rule CI on #5931 (run 43031349234, Codex's receipt): a_mind_whose_turn_exceeds_every_lane_is_named_and_the_ones_that_fit_are_not asserted 'need clamps to the target' (wish 60,000, held exact 90,000, grid 60,000 -> nobody named), the clamp held() no longer applies. Her exact need of 90,000 is what her turns cannot be sent below, so a 60,000 grid names her at 90,000: the truth for her and the human, never hidden under a stale wish. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ount stays at its baseline 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 11, 2026
… engine reports for one sequence (#5936) * A bound stays a bound through residency: Sahar's overflowed need is granted the ceiling, never parked as an exact need #5926 clamped an unheld wish, but Sahar was never Wished: resident_need flattened her censored need (NeedSample::AtLeast 116,239) to a number and requirements_for wrapped it Observed::Exact (working_set.rs:860; Codex traced it 09:20Z), and admission never clamps an exact need. BigMama dc01d95 / ae5ba31 live reads 09:19-11:59Z: 'NeedAboveCeiling 116240/58112', 0 acts, fit 29,056. resident_need now returns the typed Observed: an AtLeast stays AtLeast, so demand_of's within(per_sequence_cap) grants min(bound, ceiling) and her view collapses to fit; an irreducible floor (floor_tokens) stays Exact and still waits (#5773). within clamps a bound to its value, so the 11-04 'a bound gets a whole sequence' failure cannot recur (pinned in the test). Test: a_censored_need_raises_her_residency_by_its_value_never_to_a_whole_sequence now pins the bound kept, its value under a roomy ceiling, and the ceiling past it (Sahar). Tests (M5, serving down, 12:58Z): continuum-cognition lib 997, continuum-serving lib 147; ratchets pass. Card 4ec2818a. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A need is a typed floor plus a collapsible bound: within collapses the bound into what exists, never the floor (Codex on #5931) Observed gains Floored { at_least, floor }: the irreducible part of her need (a size her turn cannot be sent below) beside the reducible bound. Observed::over(floor) is the one place a floor joins a need (an exact need raised to it; a bound keeps it; a floor past the bound is the need, exact); within reads Floored as max(floor, min(bound, limit)), so a floor past the limit stands and waits, as an exact need does. try_map replaces hand-matched variant conversion. resident_need is now need_tokens(d).try_map(Tokens::new).over(floor). Codex's cases (fixture a_bound_is_clamped_to_the_ceiling_never_below_her_floor): floor 60,000 between ceiling 58,112 and bound 116,240 stands and waits; floor = bound stays a floor; floor under the ceiling collapses the bound to the ceiling; a roomy ceiling grants the bound's value. Tests (M5, serving down, one window 13:25Z): continuum-cognition 998, continuum-engine 1,564, continuum-serving 147; ratchets pass. Card 4ec2818a. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A floored need survives a JSON round trip: Floored is declared before AtLeast Untagged reads try variants in declaration order and ignore unknown fields, so with AtLeast first {"at_least":a,"floor":f} read back as a bare bound and the floor was dropped at any JSON boundary (requirements to the serving daemon). Test: every_need_shape_survives_a_json_round_trip (Exact, AtLeast, Floored). continuum-engine lib 1,565 pass; ratchets pass (M5, serving down, 13:31Z). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A stale target never cuts her floor: held raises her target to the need's irreducible part and shapes only the bound under it Codex on #5931: requirements_for -> LaneRequirement::held clamped the need to her target (need.map(min(target))), and the target comes from her typical demand, not her floor: wish 40,000 (target 50,000), floor 60,000 and bound 116,240 reached admission as 50,000; exact floors inherited the same cut. Observed gains irreducible() (an exact need whole, a floored bound's floor, nothing of a bare bound) and under(target) (the bound collapses to the target, the irreducible part never); held raises the target to the irreducible part first. An exact held need above a stale target now raises the target instead of being cut (a mind gets what she needs). Test (through requirements_for, the path admission reads): a_stale_target_never_cuts_her_floor_on_the_way_to_admission. Tests: CI (no builds on the serving M5). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Admission reads the engine's own geometry: a mind's limit is the reported max_tokens_per_sequence, never a division read off argv SERVING-ENGINE section 8, step 1. grant_inputs chose a mind's per-sequence limit by reading the engine's launch argv (on_shared_pool, cached per pid): the pool on a shared launch, otherwise the served per-slot window. The fork already reports the one figure for either launch (context_geometry.max_tokens_per_sequence). Now: - the engine control reports its whole geometry once (served_geometry replaces served_pool_tokens), - the launch's ready path stores pool AND per-sequence limit from it under either launch (the fixed-slot branch no longer computes window x lanes itself), - admission reads the stored limit; on_shared_pool, its per-pid argv cache and NoGrants::PoolKindUnknown are deleted. Behavior on fixed slots is unchanged (the engine reports one slot), on the shared pool unchanged (the pool); what changes is that no reader derives the limit from how the engine was launched. Stacked on #5931. Tests: CI (no builds on the serving M5). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Files this change touches leave the ratchets clean: /props decodes straight to its type, a modality it does not name is a serde default, the child lock reads through poison 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.
Serves the minds: a resident whose view overflowed is granted what one sequence holds and collapses to fit, instead of being refused on every act. Plan line 2; card 4ec2818a (Joel: "These refusals are supposed to be impossible.").
Why #5926 was not enough (Codex's trace, 09:20Z): Sahar was never Wished.
resident_needflattened her censored need (NeedSample::AtLeast 116,239) to a number, andrequirements_forwrapped itObserved::Exact(working_set.rs:860). Admission never clamps an exact need. Live reads on BigMama, dc01d95 / ae5ba31, 09:19-11:59Z:NeedAboveCeiling 116240/58112, 0 acts, fit 29,056.Change:
resident_needreturns the typedObserved, so anAtLeaststays a bound.demand_of'swithin(per_sequence_cap)then grants min(bound, ceiling).floor_tokens) staysExactand still waits (An overflowing view records what she would have held: her need is a typed lower bound, not the size her grant allowed #5773).withinclamps a bound to its value, so the 11-04 failure (a bound granted a whole sequence) can't recur. The test pins it.Tests: on the M5, serving down: continuum-cognition 997, continuum-serving 147; ratchets pass.
Measured after deploy: Codex's BigMama 15-min read. Sahar should take acts, with no
NeedAboveCeilingfor her.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo