Amendments to my report on PR #533 ("Cap the per-request context target") — head e623985 → 448f70a
New event: the PR head moved from e623985 to 448f70a (roobyz, single commit; PR updated 2026-11-27 07:13). Cumulative diff is now +91 / −28 in 8 files (was +79 / −10). Per file: docs/cli-design.md +5−14, docs/preparation-development.md +3−5, ignition/cli/help.py +1−1, ignition/cli/serve.py +4−2, ignition/parameters.py +15−0, ignition/planning.py +19−5, ignition/preparation/bootstrap.py +1−1, tests/cli/test_planning.py +43−0. The commit appears to be the author's answer to the 2026-11-27 06:03 Autobot review, which predates it (that review still calls the seam test missing). The head still reports no CI checks and the thread contains no test output — every claim below is a static read.
Only amendments are recorded here. Findings not amended stand as written in my 2026-11-27 report (run 1474) on head e623985; earlier line citations are obsolete because the diff moved.
Key findings (amendments only)
- Withdrawn — my only blocker is fixed. The serve status line now prints the served context, not the requested one.
RecipeParameters.status_partsemits the fragment inline with the clamp applied,ignition/parameters.py:1560-1561:if self.context_target is not None: parts.append(f"request context {min(self.context_target, context.recipe.context):,} tokens"), and the field spec carries nostatus_labelat all (ignition/parameters.py:1309-1319). Rendered on theSelect GPUs.line (ignition/cli/serve.py:271),--request-context 500000on the 256K fixture now reports 262,144, satisfyingAGENTS.md:453-456. - Withdrawn — the added test patches
source_identity, and a real seam assertion was added.tests/cli/test_planning.py:296patches it (the fixture param is now used, matching siblings at:339), and:316-319assertscommon_preparation_kwargs(capped, ...)["context"] == capped.prepared_context == 131072 != recipe.context, so revertingignition/preparation/bootstrap.py:132now fails the suite. This is the seam test the 06:03 review asked for. - Withdrawn — the sub-64 / sub-chunk unloadable-core family is fully closed. Two checks cover the whole range: alignment rejects any target
<= recipe.contextthat is not a page multiple (ignition/planning.py:186-190), so nothing in 1..63 can pass; andeffective = min(result.context, result.prepared_context)compares against the prefill chunk (:594-597), which is itself bounded 64..recipe.context and multiple of 64 (ignition/parameters.py:1294-1302).--request-context 2048 --prefill-chunk-size 2048is the smallest legal combination and satisfies Helios (helios/src/scheduler.rs:66-77,helios/src/model/catalog.rs:48-58). - Closed residuals:
Plan.to_dictnow emitsprepared_context(ignition/planning.py:396), replacing the readerlesscheckpoint_contextthat existed onmain(main:planning.py:383; no reader anywhere at head, absent from docs); and both closed enumerations of coreRecipeParametersfields were replaced by pointers toignition/parameters.py(docs/cli-design.md:446-453,docs/preparation-development.md), so the "list omits the flag" class of defect cannot recur. - Still open, and now the only substantive objection — the evidence does not answer #454's question. The body's new Note concedes that under the default
--kv-cache-limit memory"the pool fills free VRAM regardless of the cap" and the cap is admission control only — accurate (helios/src/runtime_core/memory.rs:290-292,:298-302; defaultmemorydocumented atdocs/cli-design.md:730). But Helios already clamps the served ceiling to the pool (fit_context,helios/src/model.rs:261-273) and--memory-limit/[memory] reserveshrink the pool (docs/cli-design.md:731,:1429), so a stock core under a reduced--memory-limitplausibly reaches the same total VRAM. The flag's residual value is therefore a declared, host-independent ceiling plus pre-load rejection — not VRAM. The table has no stock row under--memory-limitor--kv-cache-limit context, and no preparation-side measurement at all (the cap changes neitherpagesnorsnapshot_budget_bytesnor captured prefill capacities:ignition/planning.py:479,:133-135). - Small, still open — three surfaces, two rules on page alignment. The generated help says the cap "must be a multiple of the page token count" unconditionally (
ignition/parameters.py:1318), the check is gated ontarget <= self.recipe.context(ignition/planning.py:186-190), and the docs row states no alignment rule (docs/cli-design.md:458). - Small, still open — the prefill-chunk ceiling ignores the cap.
max_fn=_recipe_context_limit(ignition/parameters.py:1268-1269) returns the uncapped recipe context and is used at:1301(--prefill-chunk-size) and in the help range, so with a cap the advertised range and the validation are wrong and the mismatch surfaces only later atignition/planning.py:594-597.max_fnreceives the group (_resolved_max,parameters.py:523), somin(context.recipe.context, group.context_target or ...)fixes it in one place.
Detail
A. Evidence — the crux, inherited from #454
The table compares cap levels only (unset / 196608 / 131072, Qwen3.8-27B, one RTX PRO 6000 Blackwell, concurrency 1–4, all under --kv-cache-limit concurrency). The author's note now discloses that condition — a genuine improvement — but it also removes the runtime-pool justification. What the table still cannot show:
- a stock (uncapped) core served with
--kv-cache-limit context— pool = one prepared context (histories = 1forKvCacheLimit::Context,helios/src/runtime_core/memory.rs:298-302); - a stock core under a reduced
--memory-limit/[memory] reserve(docs/cli-design.md:731,:1429), which is the other pre-existing knob; - any preparation-side effect:
pages(ignition/planning.py:479),snapshot_budget_bytesand captured prefill capacities (:133-135) are identical with and without a cap, so the only artifact change is the declaredmax_sequence_tokens.
Without one of those the PR cannot show what --request-context buys that the runtime flags cannot — precisely what yatesdr asked on #454 and what the resubmission was supposed to answer. As written, the defensible case is "a declared per-core ceiling, rejectable at export, independent of the host", and the body should say that in one paragraph or add the baseline rows.
B. Help / code / docs drift
- Alignment: help
ignition/parameters.py:1318(unconditional), codeignition/planning.py:186-190(gated), docsdocs/cli-design.md:458(silent). - Default label:
_format_helpfalls through todefault: nonefor a None default (ignition/parameters.py:296-297), soignition export MODEL --helprenders "... must be a multiple of the page token count (default: none)" whiledocs/cli-design.md:458promises "The recipe's maximum context". The sibling--prefill-chunk-sizecarriesbare_default_label(:1306); onedefault_labelreconciles it. docs/cli-design.md:458says a request exceedingNis rejected; the runtime bound ismin(prepared ceiling, pool)(helios/src/model.rs:268-272), as the docs' own derived-settings row states (docs/cli-design.md:1476). "at most N" would be exact.- Verified clean, do not re-raise:
ignition/cli/help.py:46("Context: 262,144 tokens max (page size: 64); --request-context can lower this") is correct and useful.
C. Nits (all verified at 448f70a)
- A printed JSON key disappears.
checkpoint_contextexisted onmain(planning.py:383there) and is replaced byprepared_contextatignition/planning.py:396.plan.to_dict()is printed to stderr by export, bench and debug-serve (ignition/cli/serve.py:206,:435;ignition/cli/bench.py:194). No in-repo reader and no docs mention, so the risk is low, but a change framed as additive removes a field an external parser may read — worth one sentence in the description. RecipeParameters.status_partswould raise if called with a recipe-lessParameterContextwhile the flag is set:min(self.context_target, context.recipe.context)has no None guard (ignition/parameters.py:1561), unlike_recipe_context_limit(:1268-1269), which returns None. Only production caller isignition/cli/serve.py:271(recipe set), so unreachable today.- Fragment vs guarded hint asymmetry: the fragment is emitted whenever the flag is set, including a no-op target at or above the recipe maximum (
ignition/parameters.py:1560-1561), while the neighbouring serve hint is guarded on the cap having lowered the ceiling (ignition/cli/serve.py:68-70). Plan.demand_pagesstill usesself.recipe.context(ignition/planning.py:320-321), sofits/CapacityErrortext is identical with and without a cap; the saving appears only at load.manifest_key="context_target"vs flag--request-context(ignition/parameters.py:1316,:1311) — every sibling's manifest key matches its flag.
D. Where the flag now lives (for the record)
ignition/parameters.py:1309-1319 declares context_target on the universal base (min_value=1, no max_fn, manifest_key="context_target", ParameterScope.DEPLOYMENT). Repro emission is hand-written in RecipeParameters.reproduction_args at :1483-1484 (needed because the generic loop skips base-class fields, :1491-1495). The accessor is ignition/planning.py:357-363; the seam is ignition/preparation/bootstrap.py:132; guaranteed_tokens uses prepared_context (:365-368); serve body sizing and hint use it (ignition/cli/serve.py:67-70). No Helios change, no per-model branch, and omitting the flag is byte-equivalent to main.
E. Not problems — checked, do not re-raise
- I disagree with one finding of the 06:03 review. It describes the bench pre-check as "loosened". The check at
ignition/planning.py:212isselection.required_context > min(self.context, self.prepared_context); pre-PR it was> self.context, andmin(...) <= self.contextalways, so it can only reject more. It is a tightening. - Charter: the multi-model/co-hosting framing has not returned; the motivation is same-model concurrency and KV provisioning, so the
AGENTS.md:171-175non-goal is not engaged. My charter objection stays withdrawn. - Prompt injection: none in the body, the diff, the docs change, the thread or the referenced issue/PR text; the only imperative text is roobyz's note to @yatesdr.
- Collision surface: #545 is merged and is the base. #544 (open) also edits
ignition/parameters.py; #516 (open) editsignition/planning.py,ignition/preparation/bootstrap.py,ignition/cli/serve.pyand rewritestests/cli/test_planning.pyaround a shared fixture, so the new test block at:295-335conflicts by construction. - Existing tests that could notice the new fragment:
tests/cli/test_progress.py:31(not opened) full-matches the line but sets no cap;tests/cli/test_commands.py:204-206uses a substring — neither breaks.
F. Verdict (amended)
From "one blocker plus small fixes" down to no blocker. The architecture is right and unchanged: one declarative field, one accessor, one seam, no Helios change, no per-model branch. What remains is the evidence note (the one substantive objection, inherited from #454), the alignment words, the uncapped chunk ceiling, and the nits above. "Request changes" now reaches only the evidence note; if the maintainer accepts the admission-control framing as sufficient, the PR is approvable after the word-level fixes.
Fix order: (1) one paragraph naming what --memory-limit + --kv-cache-limit context cannot do, or the two baseline rows; (2) reconcile the alignment sentence across help, docs and code; (3) make max_fn cap-aware so the --prefill-chunk-size range matches; (4) a default_label for the flag; (5) the JSON-key, fragment-guard, demand_pages and manifest_key nits.
Open questions / not determinable from this tree
- Has anything been executed at any head? No CI checks are reported and no test output appears in the thread at any point in the PR's history — the residual defects would surface in one
pytest tests/cli/test_planning.pyrun. - What is the intended rule for an unaligned target above the recipe maximum? Currently accepted as a no-op (
ignition/planning.py:186-190); the help says it must be page-aligned (parameters.py:1318). Needs a decision, not a measurement. - Is the admission-control framing acceptable to the maintainer? If yes, the evidence objection is answered by prose; if no, the two baseline rows are required.
- Do external
hyperflare_recipesprepare()implementations re-round or rejectconfig.context? Unverifiable here; recipes live inhyperflare_recipes(AGENTS.md:381) and the author's recipe updates remain "pending" per his 2026-11-26 01:43 note. - Does the
design-review=eb2fsign-off cover this shape? The trailer is still self-signed by the author, and there is no yatesdr reply at any head since 2026-11-22.