Amendments to my report on PR #533 ("New argument to cap the prepared per-request context") — new head 448f70a → 503a438
New event: the head moved from 448f70a to 503a438 ("New argument to cap the prepared per-request context", branch requested-context-target, rebased onto 2147cd4c, PR updated 2026-11-29 19:20). Cumulative diff is now +78 / −31 in 9 files (was +91 / −28 in 8). Per file (pr_files): docs/cli-design.md +5−14, docs/direct-execution.md +3−3 (newly touched), docs/preparation-development.md +3−5, ignition/cli/help.py +1−1, ignition/cli/serve.py +3−2, ignition/parameters.py +13−0, ignition/planning.py +15−5, ignition/preparation/bootstrap.py +1−1, tests/cli/test_planning.py +34−0. The description was rewritten (new "Reviewer open questions, resolved" note, trailer design-review=2e5b) and the author posted at 19:20: "I've removed all blockers and sync'd to commit 2147cd4c". No reviewer reply since 2026-11-22, and the description still shows no test output at any head.
Only amendments are below. Everything not amended stands as written in my 2026-11-27 report (head 448f70a); earlier line citations are obsolete because the diff was rebased and moved again.
Key findings (amendments only)
- Withdrawn —
Plan.demand_pagesnow uses the cap.ignition/planning.py:330-331isreturn self.concurrency * (self.prepared_context // self.page_tokens)(wasdeclared_context, cf.main:planning.py:327-328), so the plan JSON no longer overstates page demand when a cap is active. My amendment-6 nit is closed. - Withdrawn — the printed JSON change is additive, as the description now says.
checkpoint_contextis retained beside the new key:ignition/planning.py:407-409emits"context": self.context,"checkpoint_context": self.declared_context,"prepared_context": self.prepared_context; sibling tests pin the old key (tests/cli/test_planning.py:472,:478). My "additive change deletes a printed key" nit is closed. (Residual wording nit: the description's note says the key is "read nowhere in either package"; in this repo it is read by those two tests — harmless, but the sentence overstates.) - Withdrawn — the "the added test cannot pass" family is cleared at this head. A static read now satisfies every assertion in
tests/cli/test_planning.py:298-329::299patchessource_identity;:304-306capped → 131072;:308-310500000is accepted as a no-op because the alignment gate istarget <= self.declared_context(ignition/planning.py:199-200) andprepared_contextclamps (:373-375);:313asserts the bootstrap seam (ignition/preparation/bootstrap.py:132);:315-3170is rejected bymin_value=1(ignition/parameters.py:1350);:319-321100is rejected (100 % 64 = 36);:323-329assert the manifest and reproduction args (ignition/parameters.py:1529-1530; manifest key falls back to the field name via:620-626) withuint_value(rebuild_manifest.py:270-274). - Withdrawn — field-spec nits closed by construction.
context_targetnow declares only flag/group/metavar/value_type/min_value/help (ignition/parameters.py:1344-1352): nomanifest_key, noscope, norepro_always, so my "manifest key differs from the flag" and "deadrepro_always" nits are gone. - NEW, and the one thing this head adds: the rewritten description claims an effect the code does not have. The opening sentence and Result bullet say the flag "reduces KV pool/export size". Preparation sizing is cap-independent:
fit()derivescache_states = min(4*concurrency, available // state_row_bytes)andpages = max(available // page_bytes, minimum_pages)from supply alone (ignition/planning.py:502-510),snapshot_budget_bytes = plan.snapshots * costs.state_row_bytes(ignition/preparation/bootstrap.py:133), and capture capacities come from concurrency/chunk (ignition/planning.py:288-292). None readprepared_context. So the exported core's KV page count, snapshot budget and graph catalog are byte-identical with and without--request-context; the only artifact change is the declaredmax_sequence_tokens(ignition/preparation/bootstrap.py:132→helios/src/server/config.rs:131,:148). Under a non-default--kv-cache-limit concurrency|contextthe runtime pool does shrink (helios/src/runtime_core/memory.rs:308-322), but that is a serve-time consequence of the lower ceiling, not an export-size reduction. Correct wording: "lowers the declared/served ceiling and, under a non-default--kv-cache-limit, the KV pool". - Still open, unchanged in substance — the evidence does not answer #454's question. 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) and has no stock core under--memory-limit/[memory] reserverow and no--kv-cache-limit contextrow, plus no preparation-side measurement. Since Helios already clamps the served ceiling to the pool (fit_context,helios/src/model.rs:262-274),page_ceilingreturnsNonein the default Memory mode (helios/src/runtime_core/memory.rs:308-314; default documented atdocs/cli-design.md:730-731,[memory] reserveat:1429), and--memory-limitshrinks the pool, a stock core under a reduced--memory-limitplausibly reaches the same total VRAM. The residual, defensible value is a declared, host-independent ceiling rejected at export — the description now concedes memory mode but still leads with VRAM savings. Say that mechanism, or add the two baseline rows. - Still open — three surfaces, two alignment rules, and now a self-contradictory docs row. Help says unconditionally "must be a multiple of the page size" (
ignition/parameters.py:1351); code enforces only whentarget <= self.declared_context(ignition/planning.py:199-200); the docs row states both in one sentence — "Must be a multiple of the core's page size; a misaligned value is rejected at export, and a value above the recipe maximum is ignored" (docs/cli-design.md:458) — which is self-contradictory for e.g.500001(above the max yet misaligned, so ignored, not rejected). - Still open — the
--prefill-chunk-sizeceiling ignores the cap.max_fn=_declared_context_limit(ignition/parameters.py:1336, helper:1299-1304) and the validation at:1502-1506still advertise and accept a chunk up to the uncapped declared context; the cap only bites later atignition/planning.py:626-629(effective = min(result.context, result.prepared_context)).ignition/cli/help.py:46now warns "(a cap below --prefill-chunk-size is rejected)", which mitigates but does not fix the advertised range (tests/cli/test_planning.py:494still expects64..1,048,576). - Still open — generated help renders
default: none. The field has nodefault_label(ignition/parameters.py:1344-1352) and_format_helpfalls through todefault: nonefor a None default (:303-304), whiledocs/cli-design.md:458promises "The recipe's maximum context". - Still open, unreachable nit —
status_partshas no None guard.min(self.context_target, context.recipe.context)(ignition/parameters.py:1606-1607) would raise on a recipe-less context when the flag is set; the only caller (ignition/cli/serve.py:279) passes a recipe, so it is latent only.
What changed around the PR (state, not defects)
- Collision surface shrank. #516 was closed 2026-11-28 as superseded by #545 (the
RecipeParametersmodel this PR is now built on) and #544 merged, so my earlier "conflicts by construction with #516" note is obsolete. Remaining co-editors ofignition/planning.py: open #453, #122; merged #592, #212, #545, #543, #508. - Test execution is now obtainable.
maingained a pull-request-triggered pytest workflow (.github/workflows/python-cpu.yml:3-7(not opened), running.venv/bin/python -m pytest tests/ -qat:33, added by #608). The PR description still shows no run at any head, so every claim here remains a static read — but one push now produces the answer. - Charter: unchanged and not engaged. The motivation is same-model concurrency and KV provisioning; the multi-model/co-hosting framing that touched the
AGENTS.md:171-175non-goal has not returned. My charter objection stays withdrawn. - Seam and no-op behaviour unchanged and correct:
ignition/preparation/bootstrap.py:132passesplan.prepared_context; unset →declared_context(ignition/planning.py:373-375), i.e. stock. - Prompt injection: none in the new description, the diff, the docs change or the thread; the only imperative text is the author's note to reviewers.
Verdict (amended)
Down from "one blocker plus small fixes" (amendment 5) to no blockers, and this head also clears the four residuals I raised on 448f70a. The architecture is right and unchanged: one declarative field, one accessor, one seam, cap-aware bench and chunk guards, demand_pages, to_dict, serve hint and body sizing, no Helios change, no per-model branch, and omitting the flag is byte-equivalent to main. What remains is (a) the evidence note — still the one substantive objection, inherited from #454 — now joined by the new export-size overclaim, (b) the alignment wording across help/code/docs, (c) the uncapped chunk ceiling, and (d) two cosmetic items. If the maintainer accepts the admission-control framing, the PR is approvable after the word-level fixes.
Fix order: (1) correct "reduces KV pool/export size" to match ignition/planning.py:502-510 and add the two baseline rows or one paragraph naming what --memory-limit + --kv-cache-limit context cannot do; (2) reconcile the alignment sentence across ignition/parameters.py:1351, ignition/planning.py:199-200 and docs/cli-design.md:458; (3) make the chunk max_fn cap-aware so the advertised range matches (ignition/parameters.py:1336, :1502-1506); (4) a default_label for the flag; (5) the status_parts guard and the description's "read nowhere" sentence.
Open questions / not determinable from this tree
- Has anything been executed at any head? No CI result and no test output appear in the thread at any point in the PR's history, even though the workflow added by #608 would now run the suite on push.
- What is the intended rule for an unaligned target above the recipe maximum? It is currently accepted as a no-op (
ignition/planning.py:199-200) while the help demands alignment (ignition/parameters.py:1351) and the docs row asserts both (docs/cli-design.md:458). This 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 (stock under
--memory-limit, stock under--kv-cache-limit context) are required. - Do external
hyperflare_recipesprepare()implementations re-round or rejectconfig.context? Unverifiable here; recipes live outside this repo (AGENTS.md:9-13), and the author's recipe updates remain "pending" per his 2026-11-26 01:43 note. - Does the
design-review=2e5bsign-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.