Verdict: worth it with changes — the capability is real and the footprint is right, but as submitted it has correctness and reproducibility gaps, and hasn't shown it beats the runtime knobs it overlaps.
What the change actually is
7 files, +35/−14, entirely in Ignition's Python CLI/planner; no Rust, no model branches. Two functional lines:
ignition/preparation/bootstrap.py:58—"context": plan.prepared_contextreplacesplan.recipe.context, which is the hook that reaches the core'smax_sequence_tokens(viaBasePreparationConfig.context,bootstrap.py:33).ignition/planning.py:369-373—Plan.prepared_context= recipe max when no target, elsemin(recipe.context, context_target, self.tokens);Plan.context(planning.py:364-366, stock) is untouched. Plus wiring (planning.py:453,535,preparation.py:56,68,serve.py:289,472,bench.py:177), a positivity check (planning.py:459-460), a better below-chunk error (planning.py:694-700), and docs (docs/cli-design.md:446,1443,1493).
This resolves the blocking objections from the closed #454: the cap now reaches max_sequence_tokens (so helios/src/server/request.rs:350 and /v1/models's max_model_len at helios/src/server/models.rs:81 enforce it), non-positive values are rejected, the default-chunk failure now names --prefill-chunk-size, docs are updated, and the description has the four required parts with model, commands, revision, table and Discord line. The old --context-is-rejected objection is moot because the flag is renamed.
Why it is worth making
- It fills a gap the runtime genuinely cannot.
--kv-cache-limit context|concurrency(helios/src/runtime_core/memory.rs:284-331) and--memory-limit(memory.rs:245-274) bound the pool. Neither can lower the per-request admission ceiling or advertise a smallermax_model_len; both are baked fromprepared_sequence_tokensat load (helios/src/server/config.rs:131-148,helios/src/model.rs:261-273). Correctly advertising a 128K model, rather than serving a 256K model with a small pool, is only possible at export. - Right layer and size. One dataclass field with a default, one property, three pass-throughs; model-agnostic; no per-model flags; a strict no-op when omitted (
prepared_contextreturnsrecipe.context), so existing cores and cached artifacts are unaffected. - Cheap maintenance. No new runtime path, no CUDA work, no state/catalog-transition risk.
Why not as submitted
- Reproducibility is broken — the strongest objection.
rebuild_manifest.reproduction_arguments()(ignition/preparation/rebuild_manifest.py:231-318) never emits--request-context, andfrom_plan()'s deployment-scoped parameter set (rebuild_manifest.py:368-395) has no context entry, nor doesPlan.to_dict()(planning.py:389-442, which still reports only"context"and"checkpoint_context"). So the printed plan (serve.py:215,485,bench.py:182,237),flare inspect's reproduction command (flare-cli/src/inspect.rs:454), and the embedded preparation manifest all describe a 256K core when the actual core is capped. That directly cuts against "Be explicit and pin everything" and the charter's review standard on artifacts still loading/being reproducible. - No page-geometry validation.
prepared_sequence_tokensmust be a multiple of the page size, andmax_sequence_tokenslikewise, or load fails with a generic "invalid prepared model configuration" (helios/src/model/catalog.rs:44-71).--request-context 100000therefore bakes a core that dies atflare run, far from the flag. The planner already knows the real page size (planning.py:326-330,recipe.page_tokens × CP size), so it can validate or round and say so. - The baked value depends on the export host's free memory. Because the cap clamps by
self.tokens(planning.py:373), the exportedmax_sequence_tokensvaries with the exporting machine's VRAM; the help says "cap at N" while the core may silently bake something lower. If that clamp is intentional (the code comment says a cap above the pool resolves to the pool) it needs to be stated, and the effective value should appear into_dict()and in the plan output. - No tests. There is not one test referencing
prepared_context/context_targetintests/; the wiring patterns already have homes (tests/cli/test_planning.py:71-138,tests/cli/test_commands.py:59-98). Minimum: min() with/without target,≤0rejection, both branches of the chunk-vs-cap error,common_preparation_kwargscarrying the cap, and the manifest/to_dict()exposure once added. - Evidence doesn't prove the flag is needed. The table shows pool = concurrency × prepared-context behaviour and uses
--kv-cache-limit concurrencythroughout, so it measures what a smaller pool costs — which--kv-cache-limit contextor--memory-limit -16Galready deliver at serve time without a re-export. Charter "Bring real evidence" (#210) and "the smallest footprint … or a way to solve it without new code at all" (#404) require a comparison against those alternatives at the same prompt/output lengths, plus one case that shows the admission ceiling/max_model_lendifference. - Priority caveat. The stated payoff is "headroom a co-run needs" — i.e. a second model on the same GPU, which sits next to the non-goal "multi-model hosting/routing". Freeing VRAM is not co-hosting, but the motivation sits in a pattern the charter says needs maintainer sign-off, so the justification should be restated around the primary capability (preparing and honestly advertising a shorter-context core) rather than the co-run scenario.
- Minor: the cap also lowers the default output limit, since
max_new_tokensdefaults tomax_sequence_tokens(helios/src/server/config.rs:210-212). Worth one sentence indocs/cli-design.md:446.
Recommended changes before merge
- Emit
--request-contextfromreproduction_arguments()and add a deployment-scoped parameter infrom_plan(); reportcontext_target/prepared_contextinPlan.to_dict(). - Validate
Nagainst the plan's effective page size and against the prefill chunk up front, with messages naming the accepted multiple and the flag. - Decide and document the
min(…, self.tokens)clamp; prefer a host-independent artifact if not required. - Add the four or five planner/CLI tests above.
- Add a benchmark column for
--kv-cache-limit contextand--memory-limitat equal concurrency and request lengths, and reframe the need around the per-request ceiling and advertisedmax_model_len.
With those in place this is a small, general, well-placed addition to a decision the export layer already owns; without them it is a knob whose effect the artifact, the reproduction command and the test suite cannot see.