Repository navigation
Admission reads the engine's own geometry: a mind's limit is what the engine reports for one sequence - #5936
Merged
joelteply merged 7 commits intoNov 11, 2026
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
…rted 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
…ds-the-engines-own-geometry
joelteply
added a commit
that referenced
this pull request
Nov 11, 2026
…vious push (#5941) A branch that merges canary in (the repo's rule: merge canary in, never rebase) was judged against its previous push, so every file the merge brought in read as touched by the branch: #5936 and #5939 failed unjustified_serialization and unwrap_justification on continuum-academy benchmark_*.rs, files neither edits (2026-11-11). A push to a work branch now takes canary's tip as its base (the ratchets take the merge base, so it judges exactly the branch's own change); pushes to canary and main keep the commit before them; PRs keep their merge commit's first parent. No new job. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
…raight 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
joelteply
added a commit
that referenced
this pull request
Nov 11, 2026
…and any whole-tree sample follow, labelled as such (#5946) The touched-file failure printed the advice (which can carry a whole-tree sample) before the offenders, so the sample read as the change's own sites: on 2026-11-11 an agent spent an hour on #5945/#5939/#5936 chasing continuum-academy files those PRs never touched, and asked CI's owner about a CI bug that did not exist. Selection, counts and the gate are unchanged; only the order and the headings of the message move. zero() reads the same way. 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.
SERVING-ENGINE §8 (#5935), step 1. Serves the minds: a resident's limit is what the engine says it can give one sequence, read the same way on every node. It's never a division derived from launch flags. Card fe45ab95. Stacked on #5931: until #5931 merges, its commits show in this diff too.
Change:
served_geometryreplacesserved_pool_tokens).on_shared_pool(which read argv, cached per pid) andNoGrants::PoolKindUnknownare deleted.Behavior: unchanged on both launch kinds, because the engine reports one slot under fixed slots and the pool under a shared one. What changes is that no reader computes the limit itself. BigMama's limit grows only when it runs the shared pool (fe45ab95, Codex).
Tests: CI. I'm not building on the serving M5.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo