Amendments to the 2026-11-25 report on PR #533 ("Cap the per-request context target")
New event: the head moved from 1a006c6 to de1b5b545 (2026-11-25/26), diff now +98 −18 in 9 files (previously +35 −15 in 7). The two added files are ignition/preparation/rebuild_manifest.py (+3 −0) and tests/cli/test_planning.py (+57 −0); per-file at this head: docs/cli-design.md +3 −2, ignition/cli/__init__.py +4 −0, ignition/cli/bench.py +2 −1, ignition/cli/preparation.py +2 −2, ignition/cli/serve.py +3 −3, ignition/planning.py +23 −9, ignition/preparation/bootstrap.py +1 −1, ignition/preparation/rebuild_manifest.py +3 −0, tests/cli/test_planning.py +57 −0. A fresh Autobot review was posted 2026-11-26 05:17 (Changes Requested). Nothing below repeats an unchanged earlier conclusion; everything not amended here stands as written in the 2026-11-25 report.
Key findings (amendments only)
- Reversed in form, failed in substance — "no tests" is no longer the objection; "the test cannot pass" is. +57 lines at
tests/cli/test_planning.py:211-265, but two assertions fail: the clamp case is rejected by the PR's own new page-multiple check, and the manifest assertion readsint64_valuewhereuint_valueis written. - Closed: manifest provenance.
reproduction_argumentsnow emits--request-context(ignition/preparation/rebuild_manifest.py:264-265) andfrom_planrecordscontext_targetasSCOPE_DEPLOYMENT(:390) — my earlier B3 is withdrawn. - Closed:
to_dict, bench ceiling, multi-host export.planning.py:432printscontext_target;:248comparesselection.required_contextagainstself.prepared_context;ignition/cli/serve.py:206forwardscontext=args.request_context. Earlier B5 and the multi-host gap are withdrawn. - New defect: the alignment check is on the wrong value.
ignition/planning.py:289-290tests the rawcontext_target, so a target at or above the recipe max — a no-op by the docs' own semantics — raisesUsageErrorunless it is page-aligned (--request-context 500000on a 262,144 recipe dies although the prepared context would be 262,144). This is the same root cause as the test failure, and it contradicts the description's "a cap above the pool resolves to the pool capacity, as stock". - Still blocking: the evidence still has no baseline. The VRAM table is unchanged and still served at
--kv-cache-limit concurrency, comparing cap levels only. No row for the stock core with--kv-cache-limit context, none for a reduced--memory-limit. Two rows would close it. - Still open, shrunk:
max_body_bytesfromrecipe.context(serve.py:68),context_hint(:69), and the bench artifact key allowlist (bench.py:243-248) all still ignore the cap. - Withdrawn: the charter/non-goal objection. The description and docs now justify the cap by same-model concurrency, not co-hosting a second model.
Net verdict shift: from close — missing tests and missing runtime-knob comparison to request changes — the newly added test cannot pass, the alignment validation rejects legitimate no-op targets, and the baseline comparison the sign-off rests on is still absent.
A. Findings that reversed at this head
A1. "No tests" → tests exist but cannot pass (was blocking; still blocking, differently)
Head de1b5b545 adds tests/cli/test_planning.py:211-265, test_request_context_target_prepared_context_and_manifest. The description claims it covers "the no-op path, clamp, both validations, manifest keys, and the bootstrap value". It cannot pass as written.
- Defect 1 — the clamp case raises instead of returning a plan.
tests/cli/test_planning.py:230-232callsplanning.plan(..., context=500000, **base), but the new check atignition/planning.py:289-290runs inPlan.__post_init__on the raw target: 500000 % 64 = 32, so it raisesUsageError("--request-context 500,000 is not a multiple of the 64-token page size")out offit()→candidates()/attempt()(planning.py:686-692, no catch) →plan(). The fixture's page size is 64:_recipe()setspage_tokens=64(tests/cli/test_planning.py:38) and buildsRankCostswith three positional args, leavingRankCosts.page_tokensNone (ignition/declaration.py:167-174), soPlan.page_tokensfalls back torecipe.page_tokens(ignition/planning.py:329-332). The test aborts at line 230; the remaining assertions never run. - Defect 2 — wrong oneof member read.
tests/cli/test_planning.py:257assertsby_key["context_target"].value.int64_value == 131072.from_planwrites through_preparation_value(ignition/preparation/rebuild_manifest.py:329-333), which returns{'uint_value': value}for non-negative ints — the neighbouring test usesuint_value=1for this reason (tests/preparation/test_native_publication.py:78).PreparationValuedeclaresint_value = 2anduint_value = 3in oneoneof value(helios/proto/runtime_core.proto:124-133), so the inactiveint64_valuereads as 0 and the assertion is0 == 131072. - Secondary — environment-dependent. The new test calls
rebuild_manifest.from_planwithout themonkeypatchofignition.preparation.source_identity.source_identitythat both neighbouring tests use (tests/cli/test_planning.py:72,:142);source_identity()(ignition/preparation/source_identity.py:28-49) needs FlashInfer withdata/includeanddata/csrcand raises otherwise. - Still untested even after a fix. The test exercises
planning.planandrebuild_manifest.from_planonly. It never callscommon_preparation_kwargs, so the one line that decides whether the cap is real —ignition/preparation/bootstrap.py:58"context": plan.prepared_context— is still asserted by nothing (the only caller,tests/cli/test_commands.py:88-91, checksprefill_chunk_sizeandmax_activeonly). Nor is the multi-host forwarding atignition/cli/serve.py:206tested. Both were requested in the 2026-11-26 05:17 review.
A2. Provenance defects closed (was B3, and half of B4)
- Manifest reproduction/rebuild.
ignition/preparation/rebuild_manifest.py:264-265emits['--request-context', str(plan.context_target)]insideif plan.context_target is not None, and:390addsadd('context_target', SCOPE_DEPLOYMENT, plan.context_target); both are correctly guarded (add()returns early onNone,:350-352;_preparation_valuereturnsNone,:329-333). A capped core can now be reproduced, and it backs the docs row's "a core's catalog is fixed at export" claim (docs/cli-design.md:446).SCOPE_DEPLOYMENTis the right scope:compatible_for_combineandcompatible_for_weight_reusepermit deployment-scoped parameters to differ (helios/src/runtime_core/preparation.rs:310-347), so capped and uncapped exports of one checkpoint still combine and share weights. - Plan output.
Plan.to_dictnow carries"context_target"next to the stock"context"and"checkpoint_context"(ignition/planning.py:432), so the printed plan atignition/cli/serve.py:215,:485andignition/cli/bench.py:182distinguishes a capped export. - Bench ceiling (was B5).
Plan.__post_init__comparesselection.required_context > self.prepared_context(ignition/planning.py:248), so an oversized benchmark workload is caught at planning, not after GPU preparation. My earlier citation ofignition/bench/runner.py:388(not opened) as the late failure point is no longer reachable by that path. - Multi-host export (the 05:17 review's first blocker, not mine).
ignition/cli/serve.py:206(_export_hosts, the--ranks > 1path) now passescontext=args.request_context. Full set:bench.py:177,serve.py:206,:289(_prepare),:472(debug_serve), plus the flag atignition/cli/__init__.py:167-170andderive's pass-through atignition/cli/preparation.py:56,:68. The flag is registered on_preparation_arguments, not applied toflare run, so exactlyexport,benchanddebug-serveare affected — consistent with "Command line only" in the docs row. No path still misses the cap.
A3. Page alignment: fixed in kind, wrong in placement (was B1; now different defect)
The earlier report's "page alignment is not validated → core refuses to load" is answered — a check now exists — but on the wrong value. See A4/B1 below.
A4. Charter / non-goal objection withdrawn (was section D)
The description's Workload paragraph now reads "a memory-constrained deployment where the default per-request context (256K recipe max) over-provisions the KV pool, leaving insufficient VRAM for the desired concurrency", and the payoff sentence is "the headroom a higher concurrency needs"; docs/cli-design.md:446 likewise says "frees VRAM for additional concurrent requests". Both now frame the benefit as more concurrent requests of the same model, squarely inside the charter; the co-hosting/"second model" framing that touched the "multi-model hosting/routing" non-goal is gone from the description. The 05:17 review's "Should fix" item asking for a single-model rationale is already answered by the current text. My earlier report should no longer carry the non-goal argument as a live objection — the "bring real evidence" bar now rests only on the missing baseline (C1).
B. New defects at this head
B1. The alignment check rejects no-op targets (new)
ignition/planning.py:289-290 (in Plan.__post_init__):
if self.context_target is not None and self.context_target % self.page_tokens: raise UsageError(f"--request-context {self.context_target:,} is not a multiple of the {self.page_tokens:,}-token page size")
But what reaches the core is prepared_context = min(recipe.context, context_target, tokens) (:370-375), and the docs row promises "above the pool resolves to the pool capacity, as stock". Consequences: --request-context 500000 on a 262,144 recipe raises although the prepared context would be 262,144 (aligned); --request-context 262145 raises for a value whose effect is identical to omitting the flag. The check belongs on the clamped effective value, or should apply only when the target actually binds. Helios genuinely needs alignment — helios/src/model/catalog.rs:48-57 rejects a core unless both prepared_sequence_tokens and limits.max_sequence_tokens are multiples of contract.cache.page_tokens — so the requirement is right and the placement is wrong. The effective multiple is not fixed: with context parallelism it is page_tokens × world_size (ignition/planning.py:329-332, e.g. 512 at TP8).
B2. The newly required multiple is documented nowhere (new)
ignition/cli/__init__.py:167-170 says only "per-request context target (tokens): cap the prepared context and max_sequence_tokens at N; a request that would exceed N is rejected. Omitted flag uses the recipe's max context", and the docs row (docs/cli-design.md:446) does not mention a multiple either — although the neighbouring --prefill-chunk-size help does say "a multiple of 64" (:163-166). Users learn the requirement only by tripping the error, and the number depends on TP world size. Note the 05:17 review's "subtract/simplify" item that proposes dropping "(a multiple of 64)" from this help text would make this worse, not better.
B3. The description's stated semantics contradict the implementation (new)
The description says "The prepared context never exceeds the pool capacity (a cap above the pool resolves to the pool capacity, as stock)." True only for page-aligned targets, per B1. Either the check moves to the clamped value or that sentence needs an alignment caveat. The same contradiction is visible between the description ("omit the flag is a no-op") and a rejection of a no-op value.
B4. Residual uncapped uses (parts of B4 survive)
ignition/cli/serve.py:68still sizesmax_body_bytesfromrecipe.context * _BODY_BYTES_PER_TOKEN, so a capped export accepts HTTP bodies sized for the full recipe context and takes work the engine will reject at admission.ignition/cli/serve.py:69still says "context is limited by the checkpoint and available cache capacity" and never names the cap.ignition/cli/bench.py:243-248allowlists the preparation keys copied into the benchmark JSON artifact ("tensor_parallel" … "online_mxfp8", "online_mxfp8_scope", "language_model_only") and does not include "context_target", so a capped bench run records itself as uncapped in that artifact (theto_dict()at:237is not what is dumped there).
B5. Small targets still get advice that cannot be followed (unchanged in substance, wording changed)
At this head ignition/planning.py:697-699 says: "the {effective_context:,}-token request context is below the {chunk:,}-token default prefill chunk; pass --prefill-chunk-size below {effective_context:,}". With --request-context 32 and no --prefill-chunk-size, that advises a chunk below 32 — impossible, since the chunk validator requires 64 <= chunk <= recipe.context (ignition/planning.py:622-625) and helios requires 64..=context (helios/src/scheduler.rs:66-77 (not opened)). Targets below 64 (and below the recipe's default chunk when none was given) should be rejected outright. Compare my earlier note, which quoted the previous head's wording "(a multiple of 64) below 32"; the impossible-fix defect survives the rewording.
C. Still open (unchanged or refined)
C1. The evidence still omits the baseline that decides the PR (blocking)
The table is unchanged: Qwen3.8-27B, one RTX PRO 6000 Blackwell (SM120, 96 GB), main c36a6a02, exports --max-concurrency 8 --online-mxfp8 with target unset / 196608 / 131072, served at concurrency 1–4 with --kv-cache-limit concurrency. It compares cap levels against each other only. It still needs:
- a stock core served with
--kv-cache-limit context— whose ceiling is exactly one prepared context (maximum = ceil(context/page_tokens) × histories,histories = 1for Context,helios/src/runtime_core/memory.rs:298-302,:316-320; documented atdocs/cli-design.md:738), i.e. ~256K of pool at concurrency 4 for a 256K recipe; the cap instead gives 4 × 128K = 512K of pool with a 128K per-request ceiling; - a reduced
--memory-limitrow. That is the comparison that shows what a deterministic per-request ceiling below one recipe context buys, and per the 05:17 review's framing precedent-setting sign-offs of this kind should have closed it. Two extra rows. Also unchanged: the internal consistency of the table's per-slot deltas (~8.2 / ~6.3 / ~4.3 GB vs ~8 GB implied per 64K slot) is fine — the objection was never that the table is wrong, only that its baseline is missing.
C2. The export plan's own memory math is still unchanged by the flag
Plan.demand_pages (ignition/planning.py:325-326) and the pages sizing in fit are still computed from recipe.context and free memory, so fits/CapacityError output is identical with and without --request-context. The saving appears only at core load/serve time through max_sequence_tokens. Worth stating in review, since the framing implies an export-time sizing change.
C3. Docs still under-inclusive after the fix
docs/cli-design.md:446 now conditions the benefit — "With --kv-cache-limit concurrency, shortening the per-request context frees VRAM for additional concurrent requests" — which closes the earlier unconditional claim (my withdrawal). It names only one of the two capped modes: --kv-cache-limit context also bounds the pool by the prepared context (histories = 1, helios/src/runtime_core/memory.rs:298-302), so the flag frees memory there too; only the default memory mode is uncoupled (page_ceiling returns Ok(None) for KvCacheLimit::Memory, memory.rs:290-292; the floor then falls back to a fixed active × 8192 / page_tokens, :635, :396; modes at docs/cli-design.md:738, :828-833).
D. Where I disagree with the 2026-11-26 05:17 review
- "
effective_contextcan never selectcontext; delete the local." Backwards. Without the flag,context=min(recipe.context, tokens)(pool-bound,planning.py:366-368) whileprepared_context=recipe.context(:373-374), somin(context, prepared_context)selectscontext— exactly the pre-PRchunk > result.contextbehaviour. With the flag, it selectsprepared_context. Both arms are live. Replacing it withresult.prepared_contextwould stop the unflagged chunk check from catching a pool-bound context smaller than the default chunk — a silent behaviour regression in code that predates this PR. - Dropping the
derive()pass-through. Threading the cap as aplan()/derive()keyword rather than deriving it from a plan field is exactly what let the multi-host path go uncapped silently; the fix for that class of bug is not less threading, it is a plan field that cannot be forgotten. This is the second "simplify" item that would remove a guard rather than redundancy. - "Subtract/simplify" as a whole should not be adopted wholesale for that reason; only the algebraic collapse of
prepared_contextand the docs-row compression are safe, and the help-text "(a multiple of 64)" removal is safe only if B2 is fixed first.
E. Not problems (recorded so they are not re-raised)
- Manifest key compatibility is safe.
docs/runtime-core-design.md:369-377states thatPreparationManifeststores all Ignition-owned options inrepeated PreparationParameterentries and that adding an Ignition-only option needs no change toruntime_core.proto,core.proto(not opened) or Helios. Helios validates key/value format, not an allowlist (helios/src/runtime_core/preparation.rs:40-52, called:117-136). Ordering is fine:from_planbuilds from a dict and sorts by key (rebuild_manifest.py:442-445), and "context_target" sorts between "compiled_forwards" and "force_moe_decode_a16". SCOPE_DEPLOYMENTis correct (see A2), and there is no cross-check that combined cores agree onmax_sequence_tokens— pre-existing behaviour, not introduced here.- No prompt-injection attempt. The full description and all three comments were re-read; the only request-like sentences are addressed to the maintainer about the author's own work; the 05:17 comment is Autobot's own prior review, not third-party text.
F. Thread state and process
- Comment 1: roobyz, 2026-11-26 01:43 — refactor complete after the recipe split; recipe updates "pending" plus "two new additional recipes"; tested on qwen3.8-27b, qwen3.8-flash, nemotron-bolt-24gb, inkling-2-mini, gemma-4-12b-nvfp4.
- Comment 2: case file opened 04:21. Comment 3: Autobot review 05:17, Changes Requested — 4 blockers, ~4 should-fix, 5 nits, of which the alignment blocker, the artifact blocker and the conditional-benefit blocker match what this report found independently; one should-fix (single-model rationale) is already answered by the current description; two simplify items should be refused (section D).
- Head commit
de1b5b59"Cap the per-request context target" sits onc915b5f0(#532, unrelated).Design-Signed-Off-By … design-review=1af4present. No maintainer reply at this head. - Collision surface: #516 ("ignition: add --kv-cache-format declaration, planning, help, and manifest support", open, loud1990) and #508 ("Add recipe-declared row-sharded attention planning and PreparationManifest metadata", open, FujitsuPolycom) both add a preparation flag through the same
ignition/cli/__init__.py+ignition/planning.py+ manifest metadata surface, so merge order decides conflicts in_preparation_argumentsand infrom_plan's parameter list. #499 (merged) is the pattern this PR now matches; #122 (open) is the adjacent precedent for a preparation knob carrying provenance, not a duplicate.
Open questions / not found
- Whether the external
hyperflare_recipesprepare()methods actually readcontext=plan.prepared_contextand setmax_sequence_tokensfrom it — unverifiable in this repository after the recipe split (da037284,568aeca0); the author says the recipe updates are pending, so the PR's central claim still rests on code that is neither in this diff nor in this repo. - Whether
Plan.page_tokensequals the exportedcontract.cache.page_tokensfor context-parallel recipes (contract built bymodel_contract(...)atignition/preparation/contract.py:109-113, callers outside this repo). If the contract uses the unmultiplied page size the ignition check is merely stricter (safe); the reverse would still produce an unloadable core. - Why the page-multiple requirement was not mentioned in the help text or the docs row (B2) — no comment explains the omission, and no template or precedent required silence.
- No CI run is reported on this head, and no test asserts that
plan.prepared_contextarrives asmax_sequence_tokens. - Whether a workload exists that a lowered
--memory-limitcannot already serve — still not in the PR, which is exactly what the missing baseline (C1) would settle.