Verdict: worth it with changes
The capability is needed, the layer is right, and the footprint is now small: 6 files, ~+69/−14, all Ignition Python plus docs — one optional field on the shared RecipeParameters base, one Plan.prepared_context accessor, one consumer line, no Helios change, no per-model branch. Omitting the flag is a strict no-op. All three defects I blocked on last round are fixed at head e6239855. What remains are test hygiene, one docs sentence and one reporting line — nothing touches the design.
The three blockers are closed, verified line by line
- Reproduction args.
ignition/parameters.py:1484-1485now emits--request-contextbeside--prefill-chunk-size, inside the override that:1492-1495would otherwise skip by base-class name.repro_always(dead for base-class fields on this path) is gone. A capped export's manifest command now rebuilds a capped core, satisfying the #454 objection. - The documented clamp is reachable.
max_fn=_recipe_context_limitis dropped;context_target(parameters.py:1309-1319) declares onlymin_value=1,manifest_key,DEPLOYMENTscope and astatus_label.planning.py:357-363therefore deliversmin(recipe.context, target), sotests/cli/test_planning.py:310-313(500000→ recipe max) and the rejection at:319-321(100) are now mutually consistent. The page check atplanning.py:186-190is gated ontarget <= recipe.context, which is exactly the set of values whereprepared_context == target— so it validates the served quantity, not the request. That is a better resolution than themin(...) % page_tokensI asked for, because it leaves an oversized target a documented no-op rather than a rejection. - A cap below the prefill chunk is rejected at export.
planning.py:594-597comparesparams.prefill_chunkagainsteffective = min(result.context, result.prepared_context).--request-context 2048with the default 4096 chunk now fails in planning instead of after a full GPU preparation with Helios refusing to load (helios/src/scheduler.rs:66-77viamodel/catalog.rs:42).
Also done: the status_label (:1318) so the cap appears in the printed Select GPUs. line, serve.py:67-70 using prepared_context for max_body_bytes with the hint conditional on the cap being active, the --help wording at help.py:46 (not opened) ("max … can lower this"), both universal-field enumerations (docs/cli-design.md:449, docs/preparation-development.md:18 (not opened)), and the owner rows (cli-design.md:468, :1436).
Should fix before merge
- The new test calls the real
source_identity().tests/cli/test_planning.py:295acceptsmonkeypatchand never uses it, but:323reachesrebuild_manifest.from_plan, which callssource_identity()(rebuild_manifest.py:327) — hashing ignition, flashinfer and heliopause, and requiringfind_spec("flashinfer")to succeed (source_identity.py:39-41). Both sibling tests patch it (:223,:333). In a CPU-only test environment this turns a pure planning test into an environment-dependent one. → One line:monkeypatch.setattr("ignition.preparation.source_identity.source_identity", lambda: "test-source"). - Nothing pins the seam that actually changes the core. Revert
bootstrap.py:132toplan.recipe.contextand the new test still passes::301-313assert the accessor,:324-329assert the manifest. → Two assertions in the pattern oftests/cli/test_commands.py:150-155:BasePreparationConfig(**common_preparation_kwargs(capped, …)).context == 131072, and the same for the stock plan. - The one new safety check has no test.
planning.py:594-597was added this round and is untested. → Onepytest.raises(UsageError, match="prefill-chunk-size")withcontext_target=2048and the fixture's 4096 chunk, beside:315-321. docs/cli-design.md:468under-documents the cap. It should say the cap also lowers the default output allowance (max_new_tokensdefaults tomax_sequence_tokens,helios/src/server/config.rs:210-213) and must be at least the prefill chunk. Both are real constraints a user will hit.- Evidence is mode-scoped. Under the default
--kv-cache-limit memory,page_ceilingreturnsOk(None)(helios/src/runtime_core/memory.rs:290-292) and pages fill free VRAM, so the VRAM table holds only with--kv-cache-limit context|concurrency. The commands used it; the claim does not say so. Put the condition on the claim, and add the case only this flag can produce: a request between cap and recipe max rejected by the capped core and accepted by stock, plus a smallermax_model_lenin/v1/models(helios/src/server/models.rs:81). planning.py:320-321—demand_pagesstill usesrecipe.context, so the printed/to_dictKV demand overstates the very number this flag lowers (only consumer is:407).status_labelprints the raw target: an oversized--request-context 500000reports "request context 500,000 tokens" while the core serves 262,144.- Description: "Helios's
fit_contextappliesmin(context, prepared_context)" is backwards — the min is Ignition's;fit_context(helios/src/model.rs:261-273) clamps topages × page_tokens. Andto_dict(planning.py:379-416) still carriescontext/checkpoint_contextwith noprepared_context, so a capped export differs in reporting only bycontext_target.
Charter mapping
- Merged-PR criteria: addresses a maintainer request — #454's review by
yatesdrnamed these requirements — and a reproduced memory issue with commands, revision, model and an SM120 card. - Solve it in the right place (#404): the runtime genuinely cannot do this.
--kv-cache-limitand--memory-limitshape the pool;max_sequence_tokens/max_model_lenare baked at export. An honest under-capacity advertisement is an export-time decision, and this is the smallest seam for it —bootstrap.py:132→BasePreparationConfig.context→ Heliosprepared_sequence_tokens(server/config.rs:131) →limits.max_sequence_tokens(:148), enforced at admission (server/request.rs:349-363(not opened)), advertised asmax_model_len(server/models.rs:81), pool-clamped at load (model.rs:261-273). - No per-model branches: one field on the shared base; every recipe inherits it; zero Helios change.
- No duplication: nothing else lowers the admission ceiling; "without new code" would mean minting recipe variants.
- Cost vs benefit: ~30 lines of code, no runtime or CUDA path, no catalog or state-transition risk. The benefit is modest but exactly the vision's core case — one long-context model on an SM120 workstation or DGX Spark, trading per-request ceiling for concurrency. The measured table (31.0→27.1 GB at concurrency 1, 55.8→39.8 GB at 4) is a real 16 GB of headroom.
Bottom line
Worth merging. The design is right, general and a no-op by default, and every defect that could produce a wrong or unloadable core is fixed. Merge after (1) the missing source_identity patch, (2) two seam assertions, (3) one pytest.raises for the prefill-chunk bound, and (4) the two constraint sentences in docs/cli-design.md:468. Items 5–8 are one revision of the description plus a line each; none justify holding the change.
Nothing was executed — the head has no CI checks and no pytest run happened here, so every claim above is a static read of the cited lines. pytest tests/cli/test_planning.py tests/cli/test_commands.py settles items 1–3 in one command.