Amendments to the 2026-11-26 report on PR #533 ("Cap the per-request context target")
New event: head 02023eba → 9118addd (9118addd2a9c074b6a00c7a33cce15eaf9e772ff), a rebase onto merged #545 (compositional RecipeParameters + dynamic CLI), #546 and a Rust-warning commit. The diff is now +69/−5 in 6 files (was +84/−18 in 9): docs/cli-design.md +2 −1, ignition/cli/serve.py +2 −2, ignition/parameters.py +13 −0, ignition/planning.py +14 −1, ignition/preparation/bootstrap.py +1 −1, tests/cli/test_planning.py +37 −0. The flag is no longer hand-wired through derive()/add_argument; it is one declarative param(...) field, so most citations in my previous report are obsolete and are not repeated here. The PR body was rewritten at 22:48 and now carries Design-Signed-Off-By … design-review=eb2f (was 1af4, still self-signed). No human comment since roobyz's 01:43 note, no maintainer reply, no CI reported on this head.
Everything below is an amendment. Findings not amended here stand as written in my 2026-11-26 report (run 1248) on head 02023eba.
Key findings (amendments only)
- Three of my prior blockers are genuinely closed — withdrawn. (a)
derive()no longer takes or receivescontext:ignition/cli/preparation.py:62-81declaresparameters=, and the callers pass that (ignition/cli/serve.py:261,ignition/cli/bench.py:186,tests/cli/test_commands.py:147,172), so my "all three subcommands crash" blocker does not survive. (b) The page-multiple check is back and runs before any export path:ignition/planning.py:186-190inPlan.__post_init__, rejectingtarget % page_tokens != 0with "--request-context {target:,} is not a multiple of the {page_tokens:,}-token page size". Misaligned caps no longer export. (c)Plan.prepared_contextis nowmin(recipe.context, target)with no export-host free-VRAM term (ignition/planning.py:357-363), feedingignition/preparation/bootstrap.py:132; bench compares it (planning.py:212) andserve.py:67-68sizesmax_body_bytesfrom it and names the cap. I also withdraw my "description states the benefit unconditionally" objection: the table caption now says--kv-cache-limit concurrency. - New blocker —
--request-contextnever reachesreproduction_args.RecipeParameters.reproduction_args(ignition/parameters.py:1469-1528) does not callsuper(); it hand-emits--max-concurrency/--prefill-chunk-size(:1483-1484) and then skips every field inbase_field_names = {f.name for f in fields(RecipeParameters)}(:1491-1494), which includescontext_target. Sorepro_always=True(:1319) is dead,rebuild_manifest.reproduction_arguments(:261) omits the flag,flare inspectreproduces an uncapped core, and the PR's own assertion attests/cli/test_planning.py:324fails. No review has caught this. - New blocker — above-maximum targets are rejected, not clamped.
max_fn=_recipe_context_limit(ignition/parameters.py:1316→:1268-1269returnscontext.recipe.context) plusvalidate_fields(:533-545) rejects--request-context 300000on a 256K recipe, which contradictsdocs/cli-design.md:468("resolves to the smaller of N and the recipe maximum") and kills the clamp case attests/cli/test_planning.py:310-313before either assertion runs (planning.planvalidates first,ignition/planning.py:540). Themin()inprepared_context(:357-363) is therefore unreachable for every CLI-reachable value. - New blocker — the chunk-vs-context guard lost the cap, so a sub-chunk target exports an unloadable core.
ignition/planning.py:592-597is the only chunk guard and it comparesparams.prefill_chunkwithresult.context, the pool bound (:352-355), which is at least8192on any plan that fits (MINIMUM_REQUEST_TOKENS,:33, viaminimum_pages). So--request-context 1024(page-aligned, so it survives:186-190) with the recipe's default 4096 chunk passes planning, is written asmax_sequence_tokens=1024besideprefill_chunk_size=4096(bootstrap.py:132,:45-46), and Helios refuses the core at load:helios/src/model/catalog.rs:42→helios/src/scheduler.rs:66-75("prefill_chunk_size must be divisible by 64 and within 64..=context"). This is the original #454 blocker class — ignition accepts, Helios refuses — now one level down, and no ignition test comparesprepared_contextwithprefill_chunk. - The serve "Select GPUs" line lost the cap — a finding I had withdrawn last round is live again.
ignition/cli/serve.py:268-272printsplan.parameters.status_parts(...), andcontext_targetdeclares nostatus_label(ignition/parameters.py:1309-1321);RecipeParameters.status_partsemits only labelled fields (:1554-1559), so nothing in the interactive output says the core was capped.AGENTS.md:452-456requires the plan, its printed report and its recorded measurements to describe what was prepared. Onestatus_label=lambda v: f"request context {v:,}" if v else Nonefixes it (the idiom is atparameters.py:1368).
A. The new blockers in detail
A1. reproduction_args skips every base field, so the flag is invisible to flare inspect
ignition/parameters.py:1491-1494:
base_field_names = {f.name for f in fields(RecipeParameters)}
defaults_group = self._matching_defaults(ctx)
for dc_field, spec in self._param_fields():
if dc_field.name in base_field_names or not spec.cli or not _is_enabled(self, spec, ctx):
continue
The generic emitter that honours repro_always is at :1519-1520, i.e. inside the loop that context_target is skipped out of. --max-concurrency and --prefill-chunk-size survive only because they are hand-emitted two lines earlier (:1483-1484); context_target has no such line. rebuild_manifest.reproduction_arguments calls params.reproduction_args(context) (ignition/preparation/rebuild_manifest.py:261) and nothing else, so the value never appears. The new test asserts exactly this at tests/cli/test_planning.py:323-325.
Fix: emit --request-context alongside the other two, or call super().reproduction_args() and drop the base-field skip (which would then also cover --autotune-effort/--lock-gpu-clocks/--no-compile twice — so the one-line emit is safer).
A2. Docs, test and code disagree about a target above the recipe maximum
- Code rejects:
ignition/parameters.py:1316bound +:1268-1269maximum +:533-545rejection; the generated help agrees ("(1..262,144; default: none)",:1320via_format_help). - Docs promise clamping:
docs/cli-design.md:468— "resolves to the smaller of N and the recipe maximum", while the same row calls the flag "Command line only; a core's catalog is fixed at export". - The test encodes clamping:
tests/cli/test_planning.py:310-313plans withcontext_target=500000and assertsprepared_context == recipe.context(fixturecontext=262144,:139) — it raises inplanning.plan(ignition/planning.py:540) before either assertion. prepared_context'smin()(ignition/planning.py:357-363) is unreachable as a result. Fix (one deletion): dropmax_fnfromcontext_target, keepingmin_value=1and theplanning.py:186-190alignment check. Then the clamp is the documented rule, the accessor'smin()is live, andtests/cli/test_planning.py:310-313passes unchanged.
A3. The prefill chunk must be compared with the prepared context, not the pool
Repro (static): ignition export MODEL --request-context 1024 with the recipe's default --prefill-chunk-size (4096, ignition/parameters.py:1294-1308, own bounds 64..recipe.context, :1460-1462). Alignment passes (planning.py:186-190), the chunk guard passes (:594 compares against result.context ≥ 8192), the export runs the full GPU preparation, and the resulting core is refused at flare run by helios/src/scheduler.rs:66-75.
Fix: compare params.prefill_chunk with result.prepared_context at ignition/planning.py:594, and word the error so the remedy is reachable (the chunk must come down with the cap; a chunk above the cap has no valid value).
A4. The cap is absent from the serve status line
See key finding 5. Note this is a regression against 02023eba, where the line printed · request context {prepared_context:,} (serve.py:319 at that head); the status_parts refactor dropped it silently. Plan.to_dict (planning.py:379-416, spreading parameters.to_dict at :380), the bench record (ignition/cli/bench.py:263-265) and manifest_parameters with SCOPE_DEPLOYMENT (parameters.py:596-616, :1309-1321, asserted at tests/cli/test_planning.py:326-329) all hold — do not re-raise those.
B. The added test still cannot pass — on two different assertions
Neither of the two failures I reported at 02023eba (:239 "multiple of the"; :254 int64_value) survives at this head; the test at tests/cli/test_planning.py:295-329 fails for two new reasons:
:310-313— the oversized "clamp" case is rejected by themax_fnbound (A2), so the assertions never execute.:323-325—"--request-context" in manifest["reproduction_args"]is false because of A1. This one is a product defect, not a test defect: fixing the test would hide the bug.
Assertions that do pass: :301-303 (no-op path), :307-308 (aligned 131072 target), :315-317 (0 → "must be a positive integer"), :319-321 (100 → "not a multiple of the"), :329 (manifest scope). Weaker hazard: the test declares monkeypatch and never uses it, while rebuild_manifest.from_plan calls source_identity() (ignition/preparation/rebuild_manifest.py:327 → ignition/preparation/source_identity.py:40-41, raising without FlashInfer); both neighbouring tests patch it (tests/cli/test_planning.py:159, :223, :333).
C. Description and docs
- Partly repaired: the description now names the flag's exact export command, states the table was taken under
--kv-cache-limit concurrencyin the caption, and accurately describes the page-multiple validation, the bench check, theserve.pybody sizing and thebootstrap.pyseam. The three stale claims I reported at02023eba(a bootstrap-value test, a two-arm chunk error, a page-multiple validation that did not exist) are gone. - Still wrong: "a cap above the pool still shrinks the export artifact without changing the serve-time pool bound" — a cap above the recipe maximum is rejected, not clamped (A2).
- Still wrong ordering: the body runs What Changed → Result → Evidence with the why demoted, against
AGENTS.md:74-80(why, what, benefit, evidence). - Docs:
docs/cli-design.md:468is still unconditional about the VRAM payoff — under the default--kv-cache-limit memorythe ceiling isOk(None)(helios/src/runtime_core/memory.rs:290-292; default documented atdocs/cli-design.md:740), so a reader who caps and serves with defaults sees none of the claimed 16 GB. The row also now contradicts the enforced hard maximum (A2) and states the page-alignment requirement nowhere (it lives only in the generated help,parameters.py:1320).docs/cli-design.md:1436(owner row) is correct.docs/cli-design.md:449-451lists the universal coreRecipeParametersfields and omits--request-context, which is now one of them. - Naming nit:
manifest_key="context_target"vs flag--request-context(parameters.py:1311,:1317) — every other parameter's manifest key matches its flag.
D. Evidence — still the top objection
The table compares cap levels against each other (unset / 196608 / 131072 on one RTX PRO 6000 Blackwell, Qwen3.8-27B, served at concurrency 1–4 under --kv-cache-limit concurrency). Still missing, and still the point #454's first review made ("serving already bounds KV history"):
- (a) a stock core served with
--kv-cache-limit context— pool = one prepared context (histories = 1forKvCacheLimit::Context,helios/src/runtime_core/memory.rs:298-302), i.e. roughly 256K of pool at concurrency 4 for a 256K recipe versus 4 × 128K = 512K with a 128K per-request ceiling. That is the row that would show the cap is unnecessary for single-residency. - (b) a reduced
--memory-limit/[memory] reserverow (docs/cli-design.md:741,:847-857), the other pre-existing knob.
Without (a) or (b) the table cannot show that --request-context buys anything a runtime flag cannot, which is the question yatesdr asked on #454 and which the resubmission was supposed to answer.
E. Not problems — checked, do not re-raise
derive()/ alignment /prepared_contextfree-VRAM term: closed, see key finding 1.- Export sizing:
Plan.demand_pages(ignition/planning.py:320-321) andfit'spages=max(available // costs.page_bytes, minimum_pages)(:475-480) still ignore the cap, sofits/CapacityErroroutput is identical with and without the flag; the saving appears only at load. Unchanged from before the refactor, and arguably correct — worth one sentence in the description rather than a change. - Charter: the co-hosting/multi-model framing did not return; the motivation is same-model concurrency and KV provisioning, so the multi-model non-goal (AGENTS.md:171-175) is not engaged. My charter objection stays withdrawn.
- Prompt injection: none in the body, the diff, the docs change, the thread, or the referenced #516/#454 text. The request-like sentences ("As requested, I refactored…") are addressed to the maintainer.
- Collision surface (updated for the 6-file diff): #544 (open) also edits
ignition/parameters.py; #516 (open) editsignition/planning.py,ignition/preparation/bootstrap.py,ignition/cli/serve.py,ignition/cli/bench.py,ignition/preparation/rebuild_manifest.pyand rewritestests/cli/test_planning.pyaround a shared fixture, so the new test block at:295-329will conflict by construction. #545 is now the base, so all prior #545 collisions are gone.
F. Verdict and fix order (amended)
Still request changes / not mergeable, but for different reasons than last round: the architecture is now right (one declarative field, one accessor, one seam, no Helios change, no per-model branch) and three prior blockers are gone, while four new defects — three of them functional — appear in the surfaces the parameter refactor introduced. Order for the author:
- Emit
--request-contextfromRecipeParameters.reproduction_args(ignition/parameters.py:1483-1484) sotests/cli/test_planning.py:323-325passes andflare inspectreproduces the core (A1). - Drop
max_fnoncontext_target(:1316) so oversized caps clamp as documented and the "clamp" case attests/cli/test_planning.py:310-313passes (A2). - Compare
params.prefill_chunkwithresult.prepared_contextatignition/planning.py:594and reword the error so the remedy is reachable (A3). - Add
status_labelto thecontext_targetspec (ignition/parameters.py:1309-1321) to restore the serve line (A4). - Restore the
--kv-cache-limitcondition indocs/cli-design.md:468, mention--request-contextat:449-451, and fix the "cap above the pool" sentence in the description. - Add the two evidence rows (D).
Keep: the declarative param(...) shape, Plan.prepared_context with its target is None early return, the planning.py:186-190 alignment check, the bootstrap.py:132 seam, sync with the ParamSpec conventions, and the absence of any Helios change.
Open questions / not determinable from this tree
- Has anything been run at this head? No CI checks are reported and no test output appears in the thread. Two of the four new defects would surface in one
pytest tests/cli/test_planning.pyrun. - Is the hard maximum deliberate?
max_fn=_recipe_context_limitreads as an afterthought (the docs and the test both assume clamping); only the author can say whether a target above the recipe maximum should be an error or a no-op. My recommendation is the no-op, because it makes the test and the docs true without new prose. - Is a sub-chunk cap meant to be usable at all? If yes,
--prefill-chunk-sizemust be allowed below the cap's precedent — but Helios itself requires64..=max_sequence_tokens, so the alternative is rejecting targets below the effective chunk, or below the recipe's default chunk when no chunk is given. - 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", as stated in his 01:43 comment. - Does the maintainer's
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.