Skip to content

An unheld wish above the ceiling is granted the ceiling, never parked (Sahar's deadlock) - #5926

Merged
joelteply merged 2 commits into
canaryfrom
fable/an-unheld-wish-is-granted-the-ceiling
Nov 11, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fable/an-unheld-wish-is-granted-the-ceiling

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Serves the minds: a resident whose wish exceeds what one sequence holds is no longer refused on every act. She is granted what fits, her view collapses to it, and her first held turn measures her real floor. Plan line 2 (residents code at pace); card 4ec2818a (Joel: "These refusals are supposed to be impossible.").

The deadlock (BigMama on 10523b9, Codex's receipts, 08:09-08:21Z): Sahar had 0 acts, every turn NeedAboveCeiling need127103 ceiling58112, while her rendered prompt fit in 28,928 tokens. Her requirement was Measure::Wished, meaning no turn had ever been held. Its observed_need returns the target as Exact, and demand_of never clamps an exact need. So she was never granted a window, never held a turn, and never measured the floor that would have seated her.

The change (continuum-serving/src/modules/serving_daemon/grants.rs, demand_of):

Tests:

  • New test in grants.rs. Her wish of 127,103 tokens against a 58,112 ceiling is granted the ceiling and never parked. The held-floor control still waits.
  • On the M5 with serving down: continuum-serving 147 pass; continuum-engine 1,565 and continuum-cognition 997 pass; ratchets pass against canary.

Measured after deploy: Codex's BigMama read. Sahar should take acts, and NeedAboveCeiling should disappear for her.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ld turn measures her, never parked

BigMama on 10523b9 (2026-11-11 08:09-08:21Z, Codex's receipts): Sahar 0 acts, every turn
'NeedAboveCeiling need127103 ceiling58112' (later 116,241) while her rendered fit was 28,928.
Her requirement was Measure::Wished (no held turn), whose observed_need is the target as Exact;
demand_of never clamps an exact need, so the wish above one sequence was never granted, she never
held a turn, and never measured the floor that would seat her: a deadlock.
Joel: 'These refusals are supposed to be impossible.' / 'never get stuck, obviously.'

demand_of now clamps an unheld wish to what one sequence holds, so she is granted it and her
first held turn measures her. A floor a held turn measured above the ceiling still waits for
room (#5773), and a declared size stays a hard floor; the wish never enters Observed, so no ring
reader (held_need split_ring) can take it for a sample (Codex's review points).

Test (grants.rs): an_unheld_wish_above_the_ceiling_is_granted_the_ceiling_and_a_held_floor_still_waits.
Tests (M5, serving down, 08:31Z): continuum-serving lib 147 pass; continuum-engine lib 1565 and
continuum-cognition lib 997 pass (unchanged crates, earlier window 08:27Z); ratchets vs canary pass.
Card 4ec2818a (admission part).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ast it (Codex on #5926)

Test-only: the runtime of 8bedec8 is unchanged. continuum-serving lib 147 pass; ratchets pass
(M5, serving down, 08:41Z).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit dc01d95 into canary Nov 11, 2026
11 checks passed
@joelteply
joelteply deleted the fable/an-unheld-wish-is-granted-the-ceiling branch November 11, 2026 09:01
joelteply added a commit that referenced this pull request Nov 11, 2026
…ranted the ceiling, never parked (#5931)

* 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

* The grid names a mind by her exact need, never her stale target: the 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

* Drop the import residency no longer uses (Observed), so the warning count stays at its baseline

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]>
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]>
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