#1 [high] PR #533 head: --request-context implementation surface
PR #533 "Cap the per-request context target" (roobyz, open, head 1a006c6, +35 -15, 7 files; predecessor closed PR #454).
Files: docs/cli-design.md (+3 -2), ignition/cli/init.py (+4: --request-context on _preparation_arguments → export/bench/debug-serve only, not flare run), ignition/cli/bench.py (+2: context=args.request_context), ignition/cli/preparation.py (derive(..., context=) → planning.plan), ignition/cli/serve.py (export path line ~289 and debug_serve line ~472 pass context=args.request_context), ignition/planning.py (+21 -7), ignition/preparation/bootstrap.py (common_preparation_kwargs now passes "context": plan.prepared_context, was plan.recipe.context).
planning.py specifics:
- Plan.context_target: int | None = None (field added at line 176, mid-dataclass after graph_bytes).
- Plan.prepared_context (line 369-373): None → recipe.context; else min(recipe.context, target, tokens). Plan.context (364-366) unchanged = min(recipe.context, tokens).
- fit() validates context > 0 (line 459-460) and passes context_target=context (line 535).
- plan() threads context (line 591, 674) and replaces the chunk check with effective_context = min(result.context, result.prepared_context) (line 694-700), with a distinct message when prefill_chunk was not user-set.
Verification claim in description: Qwen3.8-27B, RTX PRO 6000 96GB, at main c36a6a02; VRAM table default 256K / 192k / 128k at concurrency 1-4 (55.8 → 39.8 GB at c4); per-slot delta ~8.2/6.3/4.3 GB.
#2 [high] PR #533: priority review question — what it adds beyond existing runtime knobs
PR #533 (roobyz, open, head 1a006c6, +35 -15, 7 files) is a resubmission of closed PR #454 (yatesdr CHANGES_REQUESTED 2026-11-21, 6 objections; #454 closed 2026-11-23).
Objection 4 of #454 ("No demonstrated need — a concrete workload that --max-concurrency and --kv-cache-limit cannot serve") is only partly answered. What the cap adds over existing runtime knobs:
flare run --kv-cache-limit contextbounds history to exactly ONE prepared context (helios/src/runtime_core/memory.rs:284-330 page_ceiling: maximum = ceil(context/page_tokens) * histories, histories = 1 for Context, active for Concurrency; docs/cli-design.md:738). So no runtime flag can express a per-request bound below one recipe context.--kv-cache-limit memory+--memory-limitcan shrink the pool, but rejection then depends on pages running out rather than a deterministic per-request ceiling. So the defensible need is a deterministic per-request context ceiling below the checkpoint max, for co-hosting a second model. The PR body never states this; it only shows a VRAM table.
Evidence defect (description): the table (default 256K / 192k / 128k at concurrency 1-4, 55.8 → 39.8 GB at c4 for Qwen3.8-27B, RTX PRO 6000 96GB, at main c36a6a02) was measured with the exports served at --kv-cache-limit concurrency. It therefore does not isolate the export-time cap from the runtime KV ceiling it was combined with, and gives no comparison against the stock core served with --kv-cache-limit context or a lower --memory-limit. That is precisely the comparison #454's reviewer asked for.
Note also: the export plan's own memory math is unchanged by the flag. Plan.demand_pages (ignition/planning.py:323-324) and pages (fit, :541-542) are sized from recipe.context and free memory, so fits/CapacityError output is identical with or without --request-context; the saving appears only at core load/serve time via max_sequence_tokens.
#3 [high] PR #533: whether the cap reaches the core (objection 1 of #454)
Fixed at the shared handoff: ignition/preparation/bootstrap.py:58 now sets "context": plan.prepared_context (was plan.recipe.context) in common_preparation_kwargs, consumed by BasePreparationConfig.context (bootstrap.py:33, default 262144). Downstream the value must become the exported ServingContract.max_sequence_tokens (helios/proto/runtime_core.proto:235-239 field 4), which helios then uses as the serving ceiling: helios/src/runtime_core/model.rs:397-407 builds server_config from the protobuf contract, helios/src/server/config.rs:131/148 sets prepared_sequence_tokens and limits.max_sequence_tokens from it, helios/src/server/request.rs:350 rejects longer requests, and helios/src/model/catalog.rs:48-57 validates it.
Problem for review: in THIS repository there is no consumer of that value. The recipes were extracted (commit da037284 "Stage hyperflare_recipes separation, slim core ignition", 568aeca0 "Align core Flare docs, AGENTS.md, and design-review with hyperflare-recipes split"); ignition/recipes/ does not exist. The only in-repo consumer of common_preparation_kwargs is tests/cli/test_commands.py:88-91, which asserts only prefill_chunk_size and max_active. So the claim "the cap reaches max_sequence_tokens and requests that exceed it are rejected" is unverifiable in-repo, rests on external recipe code, and has no test asserting plan.prepared_context arrives as max_sequence_tokens.
#4 [high] PR #533: unvalidated --request-context values (alignment and sub-chunk)
Only validation added is context > 0 (ignition/planning.py:459-460). Two concrete defects:
-
Page alignment. The prepared context is handed to the core unrounded: min(recipe.context, target, tokens) (planning.py:369-373). helios/src/model/catalog.rs:48-57 rejects a core whose max_sequence_tokens is not a multiple of page_tokens ("invalid prepared model configuration"), and also requires max_sequence_tokens % page_tokens == 0 at :54-57. Page size is recipe page_tokens (64 for the fixtures) multiplied by the context-parallel world size when ranks share pages (ignition/planning.py:327-330). So
--request-context 1000(or any non-multiple) passes planning and produces a core that fails to load. The flag should require (or round to) a multiple of the effective page size, or planning should round down. -
Sub-chunk values. With
--request-context 32and no --prefill-chunk-size, chunk = recipe.prefill_chunk (4096) > effective_context 32, so the new branch at planning.py:696-699 raises "the 32-token request context is below the 4,096-token default prefill chunk; pass --prefill-chunk-size (a multiple of 64) below 32 or a larger --request-context". No valid chunk exists below 32: the chunk validator requires 64..=recipe.context (planning.py:621-623) and helios requires 64..=context (helios/src/scheduler.rs:66-77). The advice is impossible. Planning should reject a target below 64 (and below the recipe's default chunk when the chunk was not given).
#5 [high] PR #533: cap not recorded in manifests, plan output, or server options
- Reproduction arguments omit it: ignition/preparation/rebuild_manifest.py:231-318 reproduction_arguments emits --max-concurrency, --prefill-chunk-size, --online-mxfp8, --row-shard-prefill, etc., but no --request-context.
- Preparation parameters omit it: from_plan (rebuild_manifest.py:343-395) records every other SCOPE_DEPLOYMENT option (max_concurrency :380, prefill_chunk :387, reserve_bytes :389, ...) but no context/prepared-context entry. So a core exported with a cap cannot be reproduced, and a manifest-driven rebuild silently restores the recipe max — contradicting the new docs row ("a core's catalog is fixed at export, so changing it requires re-export", docs/cli-design.md:446).
- Plan.to_dict (planning.py:430) reports "context": self.context (min(recipe.context, tokens)) and "checkpoint_context"; the target/prepared_context is absent, and serve.py:215/:485 and bench.py:182/:237 print exactly that dict. The plan JSON therefore shows no sign the export was capped.
- Stale uses of recipe.context in serving options: ignition/cli/serve.py:68 sizes max_body_bytes from recipe.context × _BODY_BYTES_PER_TOKEN, so a capped export still accepts bodies sized for the full recipe context; serve.py:69 sets context_hint "context is limited by the checkpoint and available cache capacity", which should name the cap.
- Benchmark selection is validated against the wrong ceiling: Plan.post_init planning.py:248 rejects selection.required_context > self.context (which ignores context_target), so
ignition bench --request-context 8192with contexts up to 16384 passes planning and fails later in ignition/bench/runner.py:388 ("benchmark case exceeds prepared capacities") against Layout.context, which comes from the capped max_sequence_tokens (ignition/direct/scheduler.py:110). The check should use prepared_context.
#8 [high] AMENDMENT: prior report's blocking findings vs new head 1a006c6
New event since the last report: PR #533's head is a fresh commit (1a006c6, 2026-11-25, "Cap the per-request context target") on top of main c36a6a02, with the branch description rewritten into the four-part form and one new comment from roobyz (2026-11-26 01:43, replying to yatesdr: refactor complete, plus external recipe updates pending). Diff at head: 7 files, +35 -15.
Amendments the report needs (previous conclusions to revise):
- Core reach (was: cap never reached max_sequence_tokens, #454 objection 1): NOW FIXED at the shared handoff — bootstrap.py:58 passes plan.prepared_context, previously plan.recipe.context(:62 in #454). Downgrade from blocking to "unverified in-repo" because recipes live in hyperflare_recipes and the only in-repo consumer, tests/cli/test_commands.py:88-91, asserts nothing about context.
- Value validation (was: zero/negative accepted): PARTLY FIXED — planning.py:459-460 rejects <= 0. Still open: page alignment and values below 64 (see alignment note).
- Chunk-below-context error (was: no distinguishing message): FIXED as a message (planning.py:696-700 differentiates default vs explicit chunk) but the default-chunk branch recommends an impossible fix for targets below 64.
- Flag naming conflict with --context: resolved by using --request-context; the main-branch assertion no longer exists.
- Docs: docs/cli-design.md:446, :1443, :1493 now updated as #454 asked.
- Still open from #454: (a) no tests at all for the new behaviour — the reviewer explicitly required them; (b) the evidence does not compare against existing runtime knobs (--kv-cache-limit context/concurrency, --memory-limit), which is the comparison that decides whether the export-time cap earns its footprint.
- New findings not in the earlier review: cap absent from reproduction_arguments and from_plan preparation parameters (rebuild_manifest.py:231-318, :343-395) → a capped core cannot be reproduced or rebuilt; Plan.to_dict:430 omits the target so the printed plan looks uncapped; serve.py:68 still sizes max_body_bytes from recipe.context; Plan.post_init:248 validates benchmark selections against the uncapped self.context, deferring the failure to bench/runner.py:388.
Overall verdict shift: from "reject, cap does not reach the core" to "close; remaining blockers are the missing tests and the missing comparison against runtime KV knobs, plus the alignment/provenance defects."
#9 [high] Research summary
Amendments to the earlier report on PR #533 ("Cap the per-request context target"). The new event is a fresh head, 1a006c6 (2026-11-25), a rewritten four-part description, and one comment from roobyz (2026-11-26 01:43) saying the refactor addressing yatesdr's review is complete. Diff: 7 files, +35 -15. Everything below is a revision, not a repeat.
Reversed findings. (1) The cap now reaches the core: ignition/preparation/bootstrap.py:58 passes plan.prepared_context instead of plan.recipe.context, which is the exact handoff #454's review called out, and it flows to ServingContract.max_sequence_tokens (helios/proto/runtime_core.proto:239), which helios uses as the serving ceiling (runtime_core/model.rs:397, server/config.rs:131/148, server/request.rs:350 (not opened)). I downgrade this from blocking to unverified in-repo: recipes now live in hyperflare_recipes (split in da037284/568aeca0), so no in-repo code consumes the value and no test asserts it. (2) Negative/zero values are now rejected (planning.py:459-460). (3) The chunk-versus-context error now distinguishes a default chunk from an explicit one. (4) The old --context naming conflict with the main-branch CLI test is gone: the PR uses --request-context. (5) docs/cli-design.md:446, :1443 and :1493 are updated as the original review asked.
Still open. The review demanded tests for the new behaviour; there are none anywhere in tests/, and #454's reviewer asked for tests that fail without the change. The evidence still fails the comparison that decides the PR: the VRAM table was measured on exports served with --kv-cache-limit concurrency, so it neither isolates the export-time cap nor compares against the stock core bounded at runtime (--kv-cache-limit context bounds history to exactly one prepared context, runtime_core/memory.rs:284-330; --memory-limit/--kv-cache-limit memory can shrink the pool today). The PR needs to show what a deterministic sub-one-context per-request ceiling buys that those knobs cannot.
New defects not previously raised. Any target that is not a multiple of the effective page size passes planning and produces a core helios refuses to load (model/catalog.rs:48-57). A target below 64 makes the new default-chunk error advise an impossible --prefill-chunk-size. The flag is absent from rebuild_manifest.py reproduction_arguments (:231-318) and from from_plan preparation parameters (:343-395), so a capped core cannot be reproduced or rebuilt and drifts back to the recipe max. Plan.to_dict (:430) omits the target, so the printed plan and bench JSON look uncapped. serve.py:68 still sizes max_body_bytes from recipe.context. Plan.post_init:248 validates benchmark selections against the uncapped self.context, deferring the failure to bench/runner.py:388.
Charter note. The motivation — freeing headroom for a co-run model — sits on the boundary of the declared non-goal "multi-model hosting/routing"; the flag itself is a single-model export knob and carries Design-Signed-Off-By, so it is fine, but it raises the bar for the runtime-knob comparison. No prompt-injection attempt in the PR text.
#10 [high] PR #533: citation index for the amendment report
All references read at PR #533 head 1a006c6 (main c36a6a02). Diff: 7 files, +35 -15 (docs/cli-design.md, ignition/cli/init.py, bench.py, preparation.py, serve.py, ignition/planning.py, ignition/preparation/bootstrap.py).
Cap reaches the core (now fixed at the handoff): ignition/preparation/bootstrap.py:58 "context": plan.prepared_context (was plan.recipe.context at :62 in #454) → BasePreparationConfig.context (bootstrap.py:33) → ServingContract.max_sequence_tokens (helios/proto/runtime_core.proto:235-239 field 4) → helios/src/runtime_core/model.rs:397-407 (serving_contract), helios/src/server/config.rs:131,148 (prepared_sequence_tokens, limits.max_sequence_tokens), helios/src/server/request.rs:350 (rejects longer requests), helios/src/model/catalog.rs:48-57 (validation), helios/src/model.rs:261-273 fit_context.
Unverifiable in-repo: ignition/recipes/ absent (recipe split commits da037284, 568aeca0); only consumer is tests/cli/test_commands.py:88-91 (asserts prefill_chunk_size, max_active only).
Validation defects: planning.py:459-460 (only check, context <= 0); planning.py:369-373 prepared_context = min(recipe.context, target, tokens) unrounded vs helios/src/model/catalog.rs:48-57 page-alignment requirement; page size planning.py:327-330 (recipe page_tokens × context-parallel world size), Recipe.page_tokens ignition/declaration.py:249; chunk bounds planning.py:621-623 and helios/src/scheduler.rs:66-77 (64..=context) vs the new message planning.py:696-700.
Provenance/output omissions: reproduction_arguments ignition/preparation/rebuild_manifest.py:231-318; from_plan parameters rebuild_manifest.py:343-395 (max_concurrency :380, prefill_chunk :387, reserve_bytes :389); Plan.to_dict planning.py:430; printed at serve.py:215,485 and bench.py:182,237; stale recipe.context at serve.py:68 and context_hint :69; benchmark ceiling check planning.py:248 vs ignition/bench/runner.py:388 and ignition/direct/scheduler.py:110.
Existing runtime knobs for the fair comparison: helios/src/runtime_core/memory.rs:284-330 page_ceiling (context = 1 history, concurrency = active histories), memory.rs:631-635, docs/cli-design.md:738 (--kv-cache-limit) and :828 (--kv-cache-limit memory).
Docs updated: docs/cli-design.md:446 (flag row), :1443, :1493.
Evidence as stated in the PR: Qwen3.8-27B, one RTX PRO 6000 96GB, main c36a6a02, exports ignition export qwen3.8-27b --gpus 0 --max-concurrency 8 --online-mxfp8 with --request-context unset/196608/131072, served at --kv-cache-limit concurrency, concurrency 1-4, 55.8/47.8/39.8 GB at c4.
Prior review: PR #454 (closed 2026-11-23), yatesdr CHANGES_REQUESTED 2026-11-21 with six objections (core reach; KV sizing; --context rejected by tests/cli/test_commands.py:80 on main; no demonstrated need; no tests/template evidence; no validation/Discord line).
Thread state: one comment at head, roobyz 2026-11-26 01:43 (refactor done; external recipe updates and two new recipes pending; tested on qwen3.8-27b, qwen3.8-flash, nemotron-bolt-24gb, inkling-2-mini, gemma-4-12b-nvfp4). No prompt injection; instructions in the text are addressed to the maintainer.
#12 [high] AMENDMENT 2: the PR's only test cannot pass (two assertions fail)
Head de1b5b5 (2026-11-25/26) adds tests/cli/test_planning.py:211-265 test_request_context_target_prepared_context_and_manifest. The PR body 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-232 does oversized = planning.plan(recipe, ..., context=500000, **base) and expects oversized.prepared_context == min(recipe.context, oversized.tokens). But the new alignment check (ignition/planning.py:289-290, in Plan.__post_init__) tests the raw target: 500000 % 64 = 32 (64 × 7812 = 499,968), so it raises UsageError("--request-context 500,000 is not a multiple of the 64-token page size") out of fit() → candidates()/attempt() (planning.py:664-692, no catch) → plan(). The fixture's effective page size is 64: _recipe() sets page_tokens=64 (tests/cli/test_planning.py:38) and builds RankCosts with 3 positional args so RankCosts.page_tokens stays None (ignition/declaration.py:167-174), and Plan.page_tokens returns recipe.page_tokens when costs.page_tokens is None (ignition/planning.py:329-332). The test aborts at line 230, so the later assertions never run.
Defect 2 — wrong oneof member read. tests/cli/test_planning.py:257 asserts by_key["context_target"].value.int64_value == 131072. from_plan writes it through _preparation_value (ignition/preparation/rebuild_manifest.py:329-333), which returns {'uint_value': value} for non-negative ints; the existing test at tests/preparation/test_native_publication.py:78 uses uint_value=1 for the same reason. PreparationValue declares int_value = 2 and uint_value = 3 as members of one oneof value (helios/proto/runtime_core.proto:124-133), so after parsing {'uint_value': 131072} the inactive int64_value reads as its default 0, and the assertion is 0 == 131072. The assertion should read uint_value.
Regressions this implies for the report: my earlier entry said "no tests" (satisfied in form now: +57 lines) but the tests do not pass, which in practice is not better than none — and it also means the author's stated verification ("tests/cli/test_planning.py gains a test covering ...") is not reproducible. Secondary: the new test calls rebuild_manifest.from_plan without the monkeypatch of ignition.preparation.source_identity.source_identity that both neighbouring tests use (tests/cli/test_planning.py:72, :142); source_identity() (ignition/preparation/source_identity.py:28-49) requires FlashInfer with data/include and data/csrc present and raises RuntimeError otherwise, so the test is environment-dependent where its siblings are not.
Still untested even if the above is fixed: the new test exercises planning.plan and rebuild_manifest.from_plan only. It never calls common_preparation_kwargs, so the single line that decides whether the cap is real — ignition/preparation/bootstrap.py:58 "context": plan.prepared_context — remains asserted by nothing (tests/cli/test_commands.py:88-91 is the only caller and checks only prefill_chunk_size and max_active). Nor is the multi-host forwarding at ignition/cli/serve.py:206 tested. Both were explicitly requested in the 2026-11-26 05:17 review.
#13 [high] AMENDMENT 2: alignment validated on the raw target, so a no-op target is rejected
The alignment defect from my earlier entry (page alignment unvalidated → core helios refuses to load) is fixed in kind at head de1b5b5 but implemented on the wrong value.
Where: 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").
Effective page size is Plan.page_tokens (ignition/planning.py:329-332) = recipe.page_tokens, multiplied by the context-parallel world size when ranks share pages. Helios needs the prepared context aligned: 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 ("invalid prepared model configuration").
The defect: the check runs on context_target, but what reaches the core is prepared_context = min(recipe.context, context_target, tokens) (ignition/planning.py:370-375). A target at or above the recipe max is by definition a no-op ("omit the flag" semantics, which the docs row at docs/cli-design.md:446 promises as the default), yet it is rejected unless it happens to be page-aligned:
--request-context 500000on a 262,144-token recipe → UsageError, although the prepared context would be 262,144, which is aligned.--request-context 262145→ same rejection for a value indistinguishable in effect from the default. The check should apply to the clamped effective value (or only when the target actually binds). This is the same root cause as the test failure in my other amendment note; fixing the semantics fixes the test's clamp case.
Undocumented hard rejection. The requirement is stated nowhere the user sees it before running: ignition/cli/__init__.py:167-170 help 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. It is also not a fixed number: with context parallelism the required multiple is page_tokens × world_size (e.g. 512 at TP8), so the only way to learn it is to trip the error.
Residual, unverifiable in-repo: that ignition's Plan.page_tokens equals the exported contract.cache.page_tokens (built by model_contract(...) at ignition/preparation/contract.py:109-113) for context-parallel recipes. If the contract uses the unmultiplied page size, ignition's check is stricter than needed (safe); the reverse would still produce an unloadable core. No test covers it, and the recipes that call model_contract are outside this repository since the hyperflare_recipes split.
Also still open (B2 from the earlier report): with --request-context 32 and no --prefill-chunk-size, ignition/planning.py:696-699 emits "the 32-token request context is below the 4,096-token default prefill chunk; pass --prefill-chunk-size below 32" — but no valid chunk exists below 32, 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). A target below 64 should be rejected outright.
#14 [high] AMENDMENT 2: provenance/plan-output defects — two closed, three residual
Head de1b5b5 fixes both provenance defects I reported at the previous head. This note records what closed, so the amendment report does not restate them as open.
Closed — manifest reproduction and rebuild (was B3). ignition/preparation/rebuild_manifest.py:264-265 now emits ['--request-context', str(plan.context_target)] in reproduction_arguments, and :390 adds add('context_target', SCOPE_DEPLOYMENT, plan.context_target) in from_plan. Both are correctly guarded: add() returns early on None (rebuild_manifest.py:350-352) and the emission is inside if plan.context_target is not None, and _preparation_value returns None (ignition/preparation/rebuild_manifest.py:329-333). Contrast the docs row's claim that "a core's catalog is fixed at export" (docs/cli-design.md:446) — now backed. Scope choice is defensible: compatible_for_combine and compatible_for_weight_reuse both treat deployment-scoped parameters as permitted differences (helios/src/runtime_core/preparation.rs:310-347), so a capped and an uncapped export of the same checkpoint can still combine and share weights. Note there is no cross-check that combined cores agree on max_sequence_tokens — the contract differs but combination only compares non-deployment parameters, which is pre-existing behaviour, not introduced here.
Closed — plan output (part of B4). Plan.to_dict now carries "context_target": self.context_target alongside the stock "context" and "checkpoint_context" (ignition/planning.py:432), so the printed plan at ignition/cli/serve.py:215, :485 and ignition/cli/bench.py:182 distinguishes a capped export.
Still open — parts of B4. (a) ignition/cli/serve.py:68 still computes max_body_bytes from recipe.context * _BODY_BYTES_PER_TOKEN, not plan.prepared_context, so a capped export accepts HTTP bodies sized for the full recipe context — the frontend takes work the engine will then reject at admission. (b) context_hint at serve.py:69 still reads "context is limited by the checkpoint and available cache capacity" and never names the cap, so the served model's advertised limit is unexplained. (c) ignition/cli/bench.py:243-248 allowlists the preparation keys copied into the benchmark JSON artifact — the list ends at "online_mxfp8", "online_mxfp8_scope", "language_model_only" and does not include "context_target" — so the bench result artifact still records a capped run as if uncapped (it only gains the key if the whole to_dict is dumped elsewhere, which :237-248 is not).
Still open — bench validation (B5), now half-fixed. Plan.__post_init__ compares selection.required_context > self.prepared_context (ignition/planning.py:248), so a benchmark workload larger than the cap is caught at planning rather than after GPU preparation. ignition/cli/selection.py's required_context (ignition/preparation/selection.py:76) is the other half I did not fully re-read; the earlier citation of ignition/bench/runner.py:388 as the late failure point was from the prior head and is no longer reachable through that path.
Still open — the export-time memory math (C3). demand_pages (ignition/planning.py:325-326) and pages in fit (ignition/planning.py:538-544) remain sized from recipe.context and free memory, so fits and CapacityError output are identical with and without the flag. The savings land only at core load/serve time through max_sequence_tokens. Worth stating in review because the PR framing implies otherwise.
#16 [high] AMENDMENT 2: evidence and docs — condition now stated, baseline still missing
My earlier report said the VRAM evidence "does not isolate the cap" and that the benefit is stated unconditionally. At head de1b5b545 the docs row is now conditional but under-inclusive, and the memory-mode mechanism is confirmed.
Docs row now conditions the benefit (partial fix). docs/cli-design.md:446 ends its meaning column with "With --kv-cache-limit concurrency, shortening the per-request context frees VRAM for additional concurrent requests." So the unconditional claim is gone from the docs. It is still under-inclusive: --kv-cache-limit context also bounds the pool by the prepared context (histories = 1 when mode is Context, helios/src/runtime_core/memory.rs:298-302), so the flag frees memory in that mode too; only the default memory mode is uncoupled. Named modes are documented at docs/cli-design.md:738 and explained at :828-833.
Mechanism confirmed for the default mode. page_ceiling returns Ok(None) immediately for KvCacheLimit::Memory (helios/src/runtime_core/memory.rs:290-292), and the floor then falls back to a fixed active × 8192 / page_tokens (memory.rs:635, :396) rather than anything context-derived. The pool is fitted to the memory budget (memory.rs:437-470 binary search over pages), so in the default mode lowering the exported ceiling frees no VRAM by itself — the saving requires one of the capped modes, as the docs row now says.
The description's stated semantics contradict the implementation (new). The description claims "The prepared context never exceeds the pool capacity (a cap above the pool resolves to the pool capacity, as stock)." That is only true for page-aligned targets: with the alignment check applied to the raw context_target (ignition/planning.py:289-290), any non-aligned target is a UsageError even when it is far above the pool and would clamp away — e.g. 500,000 on a 262,144 recipe. Either the check moves to the clamped value, or this description sentence needs an alignment caveat.
The comparison that still decides the PR is still absent — but sharper now. The closest runtime-only alternative is serving the stock core with --kv-cache-limit context, whose ceiling is exactly one prepared context (maximum = ceil(context/page_tokens) × 1 plus draft pages, memory.rs:316-320). That gives a 256K-token pool for a 256K recipe, so at concurrency 4 it holds roughly two 128K requests and the rest queue. The export-time cap instead yields 4 × 128K = 512K of pool with a 128K per-request ceiling. So the flag does deliver something no runtime flag does — a per-request ceiling below one recipe context with concurrency-many contexts of backing. The PR still does not measure that baseline, or a reduced --memory-limit baseline; the table (result 1, concurrency 1-4, unset / 196608 / 131072, served with --kv-cache-limit concurrency) only compares cap levels against each other. This remains the gap the maintainer's precedent-setting sign-off should have closed, and it is now cheap to close — two extra rows.
Internal consistency check on the table's per-slot deltas, which the description offers as proof the cap reaches max_sequence_tokens: reported deltas are ~8.2 / ~6.3 / ~4.3 GB per slot going 256K→192K→128K, versus ~8 GB per 64K slot implied by a 256K→128K total halving. The direction and magnitude are consistent, so the table does support "the cap reaches the pool". My earlier objection was not that the table is wrong but that its baseline is missing; that stands.
#19 [high] AMENDMENT 2: digest for the report writer
Amendment to the 2026-11-25 report on PR #533. New event: head moved from 1a006c6 to de1b5b545 ("Cap the per-request context target", 2026-11-25/26), diff now +98 −18 in 9 files (adds ignition/preparation/rebuild_manifest.py and tests/cli/test_planning.py), plus an upstream c915b5f0 (#532) that is unrelated. A fresh Autobot review was posted 2026-11-26 05:17 (Changes Requested). Net verdict: the PR is materially closer but still cannot merge, and for a different reason than before — the newly added test does not pass.
Reversed from my report (6):
- Cap reaches the core — held; unchanged (
ignition/preparation/bootstrap.py:58). - No tests — formally reversed (+57 lines,
tests/cli/test_planning.py:211-265) but see F1: the test fails twice over. - Manifest provenance (my B3) — closed:
reproduction_argumentsemits--request-context(rebuild_manifest.py:264-265),from_planrecordscontext_targetasSCOPE_DEPLOYMENT(:390). - Plan output (part of my B4) — closed for
to_dict(ignition/planning.py:432); still open formax_body_bytes/context_hint(serve.py:68-69) and for the bench artifact allowlist (bench.py:243-248). - Bench ceiling (my B5) — closed: compares
self.prepared_context(ignition/planning.py:248). - Multi-host export — closed:
context=args.request_contextat serve.py:206. (This was the fresh review's first blocker, not mine; I had not isolated it.) - Page alignment (my B1) — fixed in kind, defective in placement: validated on the raw target, so no-op targets are rejected (planning.py:289-290).
- Charter non-goal concern — resolved: description and docs now justify the cap by same-model concurrency (docs/cli-design.md:446; description "the headroom a higher concurrency needs").
- Docs benefit now conditional on
--kv-cache-limit— closed for the default-mode hazard, though it names only one of the two capped modes.
Still blocking (2):
- F1. The PR's only test cannot pass — two failing assertions (clamp case rejected by the new alignment check;
int64_valueread whereuint_valuewas written). Detail in its own note. - F2. The evidence still omits the baseline that decides the PR: a stock core served with
--kv-cache-limit context(nearest runtime-only alternative) and a reduced--memory-limit. Two extra table rows would close it.
New at this head (3): the alignment check rejecting no-op targets (above); max_body_bytes/context_hint and the bench artifact allowlist still uncapped; the description's "never exceeds the pool capacity … as stock" claim contradicted by that same alignment check.
Withdrawn from my report (2): the charter/multi-model framing (resolved by reframing), and any suggestion that the docs still state the VRAM benefit unconditionally.
Also worth a review remark, not a blocker: threading the cap as a plan()/derive() keyword rather than deriving it from a plan field is what let the multi-host path go uncapped silently; the reviewer's proposed simplification of dropping the derive() pass-through would worsen that, so I disagree with it.
Citations for every claim are in the per-topic amendment notes; the earlier report (entry #11) stands for everything not amended here.
#20 [high] Research summary
Amendments written to the scratchpad as notes #12–#19, with #19 as the digest.
The new event is head de1b5b545 (+98 −18, 9 files) plus a fresh Autobot review at 2026-11-26 05:17. Six of my earlier findings reverse: the manifest provenance defect is closed (reproduction_arguments emits --request-context, from_plan records context_target as SCOPE_DEPLOYMENT), to_dict now carries the target, bench validates against prepared_context, the multi-host export path forwards the flag, page alignment is now validated at all, and the charter/multi-model concern is resolved because the description and docs row were reframed around same-model concurrency rather than a co-run second model. The docs VRAM claim is now conditional on the KV-limit mode (though it names only one of the two capped modes).
Two things still block, one of them new in kind: (1) the PR's only test, added at this head, cannot pass — it asserts a clamp on a non-page-aligned 500,000 target that the new alignment check rejects before returning, and it reads int64_value where _preparation_value writes uint_value; (2) the evidence still omits the baseline that decides the PR, i.e. a stock core served under --kv-cache-limit context or a reduced --memory-limit. Newly found besides: the alignment check is applied to the raw target instead of the clamped prepared context, so a target above the recipe max is rejected as a no-op; max_body_bytes/context_hint and the bench artifact allowlist still use the uncapped context; and the description's "never exceeds the pool capacity … as stock" sentence is contradicted by that same alignment check. I also disagree with one reviewer simplification (dropping the derive() pass-through), since the keyword-threading pattern is exactly what let the multi-host path go silent.
#24 [high] AMENDMENT 3: page-multiple validation was DELETED at head 02023eba — unloadable core is back
Head moved de1b5b5 -> 02023eba (2026-11-26, "Cap the per-request context target"), rebased onto a main that now contains #543 (joint-tuning removal) and #508 (row-sharded attention). Diff now +84/−18 in 9 files (was +98/−18); tests/cli/test_planning.py +47 (was +57).
FINDING (reversal of my report #23 B1/A3 and of prior review's B2 fix):
ignition/planning.pyat this head has NO page-multiple check.Plan.__post_init__(planning.py:224-296) covers context_parallel, mxfp8, benchmark status, force_moe_decode_a16, shard_hyperconnections, row_shard_prefill (:281-296) — no context_target alignment. The only request-context validation left is the positive check atplanning.py:467-468insidefit().- The check that existed at de1b5b5 (
planning.py:289-290,if self.context_target is not None and self.context_target % self.page_tokens: ... not a multiple of the {page_tokens}-token page size) is absent from the new diff (pr_diff ignition/planning.py = +19/−9, hunks at 183, 257, 373, 435, 458, 546, 602, 686, 706 only). - Consequence:
--request-context 100000(100000 % 64 = 32 on a 64-token page recipe) is accepted,prepared_context = 100000(planning.py:377-381), reaches the core viabootstrap.py:58, and Helios rejects the core at load:helios/src/model/catalog.rs:48-57requires bothprepared_sequence_tokensandlimits.max_sequence_tokensto be multiples ofpage_tokens. That is the original #454/pre-refactor blocker resurrected, and it surfaces only atflare run, long after export. - Nothing else in-repo validates it: no other
context_target/request-contextcheck inignition/(search: onlycli/__init__.py:167,bench.py:177,serve.py:207,291,319,476,planning.py,rebuild_manifest.py:264,389,bootstrap.py:58). Docs rowdocs/cli-design.md:446and helpignition/cli/__init__.py:167-168do not mention a multiple either, so the requirement is now undocumented AND unenforced. - Correct fix is the one the 09:57 review named, which was not applied: validate the clamped value, not the raw request —
min(self.recipe.context, self.context_target) % self.page_tokens— inPlan.__post_init__, whereself.page_tokensalready folds in the context-parallel width (planning.py:335-338:recipe.page_tokens * (context_parallel_size or world_size)), so CP recipes are handled. - Upside of the deletion: the docs/description/implementation now agree on clamp semantics — an oversized target resolves to
min(recipe.context, tokens)with no error (planning.py:377-381), matchingdocs/cli-design.md:446and the description's "a cap above the pool is a no-op".
#25 [high] AMENDMENT 3: the added test still cannot pass — two different assertions fail
tests/cli/test_planning.py:211-254, test_request_context_target_prepared_context_and_manifest (43-line body, +47 with blank lines; 3 blank lines before the next def at :256-257, i.e. E303 — further evidence it was never linted or run).
Failure 1 — tests/cli/test_planning.py:238-240:
with pytest.raises(UsageError, match="multiple of the"): planning.plan(..., context=100, **base)
There is no page-multiple validation anymore. context=100 survives fit()'s positive check (planning.py:467-468), builds a Plan with context_target=100 and prepared_context=100, then trips the below-chunk error at planning.py:709-711: "--prefill-chunk-size 4,096 exceeds the 100-token context this plan allows". Message has no "multiple of the", so the match fails (DID NOT MATCH). So the test still fails, but for the opposite reason from my last report: previously the clamp case raised early; now the validation case raises the wrong message.
Failure 2 — tests/cli/test_planning.py:254: by_key["context_target"].value.int64_value == 131072. from_plan writes through _preparation_value (ignition/preparation/rebuild_manifest.py:329-333), which returns {'uint_value': value} for value >= 0. PreparationValue declares int64 int_value = 2; uint64 uint_value = 3; in one oneof value (helios/proto/runtime_core.proto:125-128); there is no int64_value field at all, so this is an AttributeError from protobuf, not merely a 0. Fix: uint_value (as tests/preparation/test_native_publication.py:78 does for a neighbouring parameter).
Now passing (was failing): the clamp case tests/cli/test_planning.py:229-232 (context=500000) — no alignment check to reject it, and prepared_context == min(recipe.context, tokens) holds.
Still untested after the fix: the load-bearing handoff ignition/preparation/bootstrap.py:58 ("context": plan.prepared_context). tests/cli/test_commands.py:88-97 calls common_preparation_kwargs and asserts only prefill_chunk_size and max_active; no test asserts config.context == plan.prepared_context with a cap set. Also still untested: the multi-host forwarding at ignition/cli/serve.py:207 (_export_hosts).
Third, environment-dependent: tests/cli/test_planning.py:247 calls rebuild_manifest.from_plan without monkeypatching ignition.preparation.source_identity.source_identity (neighbouring tests at :72, :259 do), and source_identity() raises without FlashInfer (ignition/preparation/source_identity.py:35-41).
#26 [high] AMENDMENT 3: description claims three things the new head does not do
The PR description was rewritten at head 02023eba (updated 2026-11-26 17:45) and now makes three claims the code contradicts:
- "What Changed: … a positive-target validation, a page-multiple validation, and a below-chunk error that compares the chunk against prepared_context and distinguishes the default chunk from an explicit one."
- No page-multiple validation exists at this head (see note #24).
- The below-chunk error was collapsed to a single arm:
ignition/planning.py:709-711is oneUsageError(f"--prefill-chunk-size {chunk:,} exceeds the {effective_context:,}-token context this plan allows"); the two-arm default-vs-explicit distinction is gone (pr_diff ignition/planning.py, hunk @@ -696,9 +706,9 @@). Ironically the 09:57 review's Subtract/Simplify item 2 asked for exactly this collapse, so the author applied the simplification but did not update the description.
- "tests/cli/test_planning.py gains a test covering the no-op path, clamp, both validations, manifest keys, and the bootstrap value."
- Only one validation exists (positive), and the test's alignment assertion at
:238-240now fails.common_preparation_kwargs/bootstrap.py:58is still asserted by nothing:tests/cli/test_commands.py:94-97checksprefill_chunk_sizeandmax_activeonly.
- Only one validation exists (positive), and the test's alignment assertion at
- Still misleading: "the recipes'
prepare()readcontext=plan.prepared_context" — the seam isignition/preparation/bootstrap.py:58(→BasePreparationConfig.context,bootstrap.py:33), which recipes read asconfig.context. Recipes live in the externalhyperflare_recipesrepo.
Also: docs/cli-design.md:446 and the help (ignition/cli/__init__.py:167-168) still say nothing about a multiple, which is now consistent with the code but leaves the load-time failure undocumented.
AGENTS.md:64-65 requires reviewing edited PR descriptions before publishing; AGENTS.md:72-80 requires why/what/benefit/evidence in that order — the description is still ordered What Changed → Evidence → Result, with the "why" as a Workload line inside Evidence.
#28 [high] AMENDMENT 3: docs row dropped the mode condition again; sub-64 targets still unfixable
New at head 02023eba, and a regression relative to my earlier note #16:
docs/cli-design.md:446 (added row) now reads, in full:
"| --request-context N | Cap the prepared per-request context and max_sequence_tokens at N tokens, below the recipe's maximum. Command line only; a core's catalog is fixed at export, so changing it requires re-export. | The recipe's maximum context |"
The earlier conditional sentence ("With --kv-cache-limit concurrency, shortening the per-request context frees VRAM for additional concurrent requests") is GONE. That sentence was my withdrawal in note #16 and the 09:57 review's S2a fix. The docs row is now unconditional again, so a reader who exports with a cap and serves with the default --kv-cache-limit memory will see no VRAM change: page_ceiling returns Ok(None) for KvCacheLimit::Memory (helios/src/runtime_core/memory.rs:290-292; default memory at docs/cli-design.md:738), and only Context/Concurrency size a ceiling from the prepared context (:298-320).
Author's likely reasoning: the 09:57 review asked to trim half the row and named the rationale sentence as the removable part; the condition went with it. The description does keep the condition ("with --kv-cache-limit concurrency, a cap above the pool is a no-op").
Also unchanged in docs: no mention that the value must be a page multiple (no longer true in code either, but needed at load), and docs/cli-design.md:1443 says "The checkpoint maximum" while :446 says "the recipe's maximum".
Sub-64 / sub-chunk targets still produce an unfollowable error. ignition/planning.py:709-711 (single arm now): "--prefill-chunk-size 4,096 exceeds the {effective_context:,}-token context this plan allows". With --request-context 32 and no --prefill-chunk-size, the only remedy is a chunk <= 32, but chunks must be 64..recipe.context and a multiple of 64 (planning.py:634-637), and Helios independently requires prefill_chunk_size divisible by 64 and within 64..=max_sequence_tokens (helios/src/scheduler.rs:66-77, called from model/catalog.rs:42). So a target below 64 always yields a core that cannot load, and the export-time error suggests an impossible fix. Reject targets below 64 (or below the default chunk when no chunk was given) outright. This survives the collapse of the two-arm message — the collapsed message dropped the "(default chunk is 4096)" distinction the description still advertises.
#29 [high] AMENDMENT 3: evidence baseline still absent; description partly repaired; rebase effects
Also unchanged at 02023eba:
- No stock-core baseline. The evidence table is the same Qwen3.8-27B / one RTX PRO 6000 Blackwell (SM120, 96 GB) matrix, packages
ignition export qwen3.8-27b --gpus 0 --max-concurrency 8 --online-mxfp8with--request-contextunset / 196608 / 131072, served at concurrency 1-4 under--kv-cache-limit concurrency, base revision f377dc8. It still compares cap levels against each other. Missing: a stock core served with--kv-cache-limit context(pool = one prepared context,histories = 1,helios/src/runtime_core/memory.rs:298-302,316-320), and a reduced--memory-limitrow. This is the comparison that decides whether an export-time knob earns its footprint, and my prior report's blocking finding C1 stands unchanged. - Description wording improved but not resolved: it now says "with the flag active (base revision f377dc8)" (previously "at main c36a6a02", which my earlier amendment flagged as misleading), drops "thirteen recipes", and states the
--kv-cache-limit concurrencycondition on the cross-package comparison. Still ordered What Changed → Evidence → Result with the why as a Workload line inside Evidence (AGENTS.md:72-80), and still three stale statements (note #26). - Export-time sizing unchanged by the flag (my prior C2):
Plan.demand_pages=concurrency * (recipe.context // page_tokens)(ignition/planning.py:331-332);pagesinfit=max(available // costs.page_bytes, minimum_pages)(:550-556). Both ignorecontext_target, sofits/CapacityErroroutput is identical with and without the flag; the saving appears only at load/serve throughmax_sequence_tokens(bootstrap.py:58→helios/src/server/config.rs:131,148→model.rs:268-272). Worth stating in review because the framing implies an export-time saving.
Rebase effects worth noting: the head now sits on a main containing #543 (joint-tuning removal) and #508 (row-sharded attention), so the PR diff shrank to +84/−18 in 9 files and the previous joint-tuning/row-shard hunks are gone; the new test at tests/cli/test_planning.py:211-254 sits immediately before the #508 test at :258. Collision surface with #516 (kv-cache-format) is reduced: #516 is now the larger PR (+546/−82, 15 files incl. tests/cli/planning_fixture.py) and touches the same _preparation_arguments, from_plan, reproduction_arguments, common_preparation_kwargs and Select GPUs. line, so merge order still decides conflicts.
#30 [high] AMENDMENT 3 BLOCKER: derive(context=...) is called with a parameter that does not exist — all three subcommands crash
TOP BLOCKER, new at head 02023eba and missed by every review so far:
ignition/cli/preparation.py:55-56 — derive(...)'s keyword-only parameter list still ends row_shard_prefill: bool = False, row_shard_attention: bool = False, force_moe_decode_a16: bool | None = None) -> planning.Plan:. There is no context parameter (and no module-level context name anywhere in the file — the only occurrences are preparation.py:47,62 context_parallel, :69, and :124-132 context_parallel()).
Yet ignition/cli/preparation.py:69 (part of this PR's diff, +1/−1) is:
row_shard_attention=row_shard_attention, context=context)
Both context=context and the context name are undefined.
Consequences:
- Every caller passes
context=as a keyword → immediateTypeError: derive() got an unexpected keyword argument 'context'. Callers:ignition/cli/serve.py:291(_prepare, all ofexport),:207(_export_hosts, the--ranks > 1path),:476(debug_serve),ignition/cli/bench.py:177(bench). So all three subcommands the flag is registered on crash unconditionally — with or without--request-context, because the argument is always passed. - Callers that omit it hit
NameError: name 'context' is not definedinsidederiveat:69. That breaks the existing suite:tests/cli/test_commands.py:88-91(test_derive_forwards_row_shard_prefill) and:112(test_row_shard_attention_forwarding_and_serve_progress, which calls the realpreparation.derivedirectly to buildderived). - So the head is red for reasons independent of the new test's own two defects (notes #25), and no test can have been run: the PR description still says the test covers "both validations … and the bootstrap value".
Fix: add context: int | None = None to derive's keyword-only signature (next to prefill_chunk), which is exactly the "derive(context=...) pass-through" both my earlier note #21 and the 09:57 review insisted on keeping — it exists as a call site but the parameter was never declared.
#31 [high] AMENDMENT 3 digest for the report writer
Head moved de1b5b5 -> 02023eba (2026-11-26). Diff +84/−18 in 9 files. The PR is now strictly worse than at the head I last reported on.
WHAT REVERSED (my report #23 said the alignment check existed; it does not):
- The page-multiple validation is DELETED (note #24).
--request-contextis validated only for positivity (planning.py:467-468), so a misaligned cap exports a core Helios refuses at load (helios/src/model/catalog.rs:48-57). The original blocker is back. - New blocker nobody has caught:
derive()has nocontextparameter (note #30).ignition/cli/preparation.py:55-56ends..., force_moe_decode_a16: bool | None = None);:69(in the diff, +1/−1) writescontext=context. All four call sites passcontext=(serve.py:207,291,476,bench.py:177), so export, debug-serve and bench raiseTypeError: unexpected keyword argument 'context'unconditionally, flag or no flag; and any caller omitting it getsNameError. Existing teststests/cli/test_commands.py:88-91and:114-117break. The diff proves it: the only preparation.py hunk is the:69line — the signature line is untouched. - Test still cannot pass, now differently (note #25):
tests/cli/test_planning.py:238-240expects a "multiple of the" error that no longer exists (it now gets the 4,096-exceeds-100 chunk error);:254readsint64_value, which is not a field (oneof declaresint_value=2/uint_value=3,helios/proto/runtime_core.proto:125-128) — should beuint_value. The clamp case:229-232now passes. Still no assertion ofbootstrap.py:58/common_preparation_kwargscontext, still no multi-host assertion, still nosource_identitymonkeypatch (:247).
WHAT CLOSED (notes #26, #27):
to_dictnow hasprepared_context(planning.py:438); serve line prints the cap (serve.py:319); bench whitelist hascontext_target, prepared_context(bench.py:248). Manifest provenance already closed. Only nits remain:serve.py:68-69max_body_bytes/context_hint,help.py:38chunk range.- Withdrawn from my last report: the "no test covers X" framing for to_dict/bench/serve line; and my earlier objection to the 09:57 review's "collapse the two-arm chunk error" is now moot — the author applied it (single arm at
planning.py:709-711), which I accept, but the description still describes two arms.
WHAT STILL STANDS: the evidence baseline (note #29) — still no stock core at --kv-cache-limit context and no reduced --memory-limit row; export-time sizing still ignores the cap (planning.py:331-332, :550-556). Docs regressed: docs/cli-design.md:446 lost the --kv-cache-limit concurrency condition (note #28). Sub-64 targets still export an unloadable core and the error advises an impossible chunk (note #28).
VERDICT: request changes / not mergeable. Priority order for the author: (1) declare context: int | None = None on derive; (2) re-add the page-multiple check on the clamped value; (3) fix the two test assertions and add the bootstrap.py:58 assertion; (4) restore the --kv-cache-limit condition in the docs row; (5) fix the three description claims (note #26); (6) add the two baseline rows.
#32 [high] Research summary
Amendments written as scratchpad notes #24–#31, with #31 as the digest. The new head is 02023eba (2026-11-26, +84/−18, 9 files), rebased onto a main that now carries #543 and #508.
The PR got worse, not better. Two findings dominate: (1) the page-multiple validation that existed at de1b5b5 has been deleted, so --request-context is validated only for positivity (planning.py:467-468) and a misaligned cap exports a core Helios refuses at load (helios/src/model/catalog.rs:48-57) — the original blocker is back; and (2) derive() never declares a context parameter (ignition/cli/preparation.py:55-56) while line :69 of the same PR writes context=context, so export, debug-serve and bench raise TypeError unconditionally at all four call sites and two existing tests break — this is visible in the diff itself (the signature line is untouched) and no earlier review caught it. The added test still cannot pass, but on different assertions now (:238-240 expects a "multiple of the" error that no longer exists; :254 reads int64_value where uint_value is written), and it still asserts neither the load-bearing bootstrap.py:58 value nor the multi-host path.
Three prior findings are genuinely closed: to_dict now carries prepared_context, the serve "Select GPUs" line prints the cap, and the bench artifact whitelist records both keys. The evidence table still has no stock-core baseline (--kv-cache-limit context) and no reduced --memory-limit row; the docs row lost the --kv-cache-limit concurrency condition it had gained; and the rewritten description claims a page-multiple validation, a two-arm chunk error and a bootstrap-value test, none of which exist.
#33 [high] AMENDMENT 3: citation index, per-file diff, thread state at head 02023eba
HEAD: 02023eba "Cap the per-request context target", Roberto Rivera, 2026-11-26 (branch requested-context-target -> main). Diff vs its base: +84 −18 in 9 files (previous head de1b5b5 was +98 −18).
Per-file (pr_files at this head):
docs/cli-design.md+3 −2ignition/cli/__init__.py+2 −0ignition/cli/bench.py+3 −1ignition/cli/preparation.py+1 −1ignition/cli/serve.py+5 −4ignition/planning.py+19 −9ignition/preparation/bootstrap.py+1 −1ignition/preparation/rebuild_manifest.py+3 −0tests/cli/test_planning.py+47 −0
The preparation.py hunk is one line (:69, context=context) — the derive() signature (:45-56) is untouched by the diff, which is what proves the missing-parameter blocker (note #30).
THREAD STATE (pr_comments / read_item 533):
- 2026-11-26 01:43 roobyz: refactor done, recipe updates pending, tested on 5 recipes.
- 04:21 case file opened. 05:17 Autobot review (Changes Requested): 4 blockers — multi-host miss, no page-multiple check, no artifact provenance, unconditional VRAM claim.
- 09:57 Autobot review (Changes Requested): 2 blockers (added test cannot pass; alignment check on the wrong value), 3 should-fix (cap absent from plan report/bench record; two wrong evidence claims; description mechanics), subtract/simplify (~17 lines), 5 nits.
- 2026-11-26 17:56 roobyz:
@flare-autobot— a bare re-review ping, no content. This is the only new human event; the substantive change is the push to02023eba. - PR body "updated 2026-11-26 17:45", i.e. rewritten immediately before the ping (see note #26 for its three stale claims). Base revision cited in the evidence is now
f377dc8(previously "main c36a6a02"). - No maintainer (yatesdr) reply at this head; no CI checks reported.
CITATIONS BEHIND EACH AMENDMENT-3 CLAIM:
- deleted alignment check:
ignition/planning.py:224-296(__post_init__, no context_target branch) + absence frompr_diff ignition/planning.py(hunks at 183, 257, 373, 435, 458, 546, 602, 686, 706 only) -> note #24 - sole remaining validation:
ignition/planning.py:467-468(positive only); Helios load requirementhelios/src/model/catalog.rs:48-57, called viahelios/src/server/config.rs:226aftermodel.fit_context()at:225andhelios/src/server/runtime.rs:523 - clamp semantics now agree with docs:
ignition/planning.py:377-381(prepared_context = min(recipe.context, target, tokens)) - missing
deriveparameter:ignition/cli/preparation.py:45-56signature vs:69; call sitesignition/cli/serve.py:207,:291,:476,ignition/cli/bench.py:177; tests relying on ittests/cli/test_commands.py:88-91,:114-117 - test failures:
tests/cli/test_planning.py:238-240(message no longer exists; the error raised isignition/planning.py:709-711),:254(int64_valuevshelios/proto/runtime_core.proto:125-128andignition/preparation/rebuild_manifest.py:329-333); fixture page sizetests/cli/test_planning.py:37-38,RankCostsat:43 - closed provenance:
ignition/planning.py:438,ignition/cli/serve.py:319,ignition/cli/bench.py:248,ignition/preparation/rebuild_manifest.py:264-265,:389 - residual uncapped uses:
ignition/cli/serve.py:68-69,ignition/cli/help.py:38,docs/cli-design.md:1443vs:446 - docs regression:
docs/cli-design.md:446(condition sentence absent) vshelios/src/runtime_core/memory.rs:290-292and default indocs/cli-design.md:738 - unchanged export sizing:
ignition/planning.py:331-332(demand_pages),:550-556(pages) - unchanged evidence: PR body table (accessible via
read_item 533, Discussion/description) - the below-chunk impossible remedy:
ignition/planning.py:634-637(chunk 64..recipe.context, multiple of 64) andhelios/src/scheduler.rs:66-77
#35 [high] AMENDMENT 4: head 9118addd reworks the flag onto RecipeParameters (new architecture)
NEW EVENT (this turn): head moved 02023eba -> 9118addd (9118addd2a9c074b6a00c7a33cce15eaf9e772ff), "Cap the per-request context target", 2026-11-26; PR description rewritten again (updated 22:48) and now carries Design-Signed-Off-By + design-review=eb2f (previously 1af4, self-signed).
Base now includes #545 ("ignition: introduce compositional RecipeParameters and dynamic CLI"), #546, and Luke Alonso's Rust-warning commit. Diff is +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.
WHAT THIS DOES TO MY LAST REPORT'S FINDINGS (all citations superseded):
- The
derive(context=...)blocker is GONE:derive()is nowderive(configuration, model, host, *, gpus, parameters, tuning_gpus, cache_states, explicit_flags)(ignition/cli/preparation.py:62-81) and no caller passes context. tests/cli/test_commands.py:147, :172 use the new signature. - The deleted page-multiple validation is BACK:
ignition/planning.py:186-190inPlan.__post_init__rejectstarget % self.page_tokens != 0on the RAW target with "--request-context {target} is not a multiple of the {page_tokens}-token page size". - The flag is no longer hand-wired: it is
context_target: int | None = param(None, flag="--request-context", group="capacity and compression", metavar="N", value_type=int, min_value=1, max_fn=_recipe_context_limit, manifest_key="context_target", scope=ParameterScope.DEPLOYMENT, repro_always=True, help="cap the prepared per-request context at N tokens; must be a multiple of the page token count")at ignition/parameters.py:1309-1321._recipe_context_limit(:1268-1269) returnscontext.recipe.context, so the maximum IS the recipe max. Plan.prepared_contextnowmin(recipe.context, target)only (ignition/planning.py:357-363) — the export-hosttokensterm the 19:14 review asked to drop is gone; bootstrap.py:132 passes it.- bench check compares
selection.required_context > self.prepared_context(planning.py:212). - serve.py:67-68 uses prepared_context for max_body_bytes and names the cap in context_hint (both prior nits closed).
- The docs flags table row exists at docs/cli-design.md:468 and the owner row at :1436 is updated.
CONSEQUENCE: my previous report's per-file line counts, planning.py:186/224-296/467-468, serve.py:319, bench.py:248, rebuild_manifest.py:264-265/389, __init__.py:167 citations are all obsolete at this head and must not be repeated.
#36 [high] AMENDMENT 4: prior blockers closed at 9118addd (derive, alignment, clamp)
Head 9118addd. My previous report's #1 blocker (derive() missing context) is GONE:
ignition/cli/preparation.py:62-81:def derive(configuration, model, host, *, gpus=None, parameters=None, tuning_gpus=None, cache_states=None, explicit_flags=frozenset()). Nocontextkwarg, and no caller passes one (ignition/cli/serve.py:261,ignition/cli/bench.py:186, tests/cli/test_commands.py:147, :172).- The alignment check is BACK and runs on the raw target in
Plan.__post_init__:ignition/planning.py:186-190-> "--request-context {target:,} is not a multiple of the {page_tokens:,}-token page size". So a sub-64 or misaligned cap is now rejected at planning (--request-context 0-> parameters.py:541-542 "must be a positive integer";--request-context 100-> "not a multiple of the 64-token page size"). My earlier "unloadable misaligned core" and "sub-64 target with an impossible remedy" findings are CLOSED. Plan.prepared_contextis nowmin(recipe.context, target)only, no export-hosttokensterm (ignition/planning.py:357-363); consumed atignition/preparation/bootstrap.py:132("context": plan.prepared_context) ->BasePreparationConfig.context(bootstrap.py:33). The 19:14 review's "drop the free-VRAM term" is done.- bench compares
selection.required_context > self.prepared_context(ignition/planning.py:212) — closed. serve.py:67-68:max_body_bytesnow usesplan.prepared_contextand the hint names the cap — my two residual nits closed.
The flag is declarative now:
ignition/parameters.py:1309-1321
context_target: int | None = param(None, flag="--request-context", group="capacity and compression",
metavar="N", value_type=int, min_value=1, max_fn=_recipe_context_limit, manifest_key="context_target",
scope=ParameterScope.DEPLOYMENT, repro_always=True,
help="cap the prepared per-request context at N tokens; must be a multiple of the page token count")
_recipe_context_limit (:1268-1269) returns context.recipe.context, i.e. the documented maximum. Registered for export/bench/debug-serve through RecipeParameters.add_arguments (ignition/cli/__init__.py _add_preparation_base_arguments); resolved by resolve_parameters -> RecipeParameters.resolve (parameters.py:1394-1427); no flare run involvement.
Net: three of my prior blockers are genuinely closed; two NEW failures appear (see notes 37, 38).
#37 [high] AMENDMENT 4 BLOCKER: added test fails on two NEW assertions
Head 9118addd. tests/cli/test_planning.py:295-329 (test_request_context_target_prepared_context_and_manifest) still cannot pass — two NEW failing assertions.
FAILURE 1 — the oversized "clamp" case is rejected before it can assert anything.
tests/cli/test_planning.py:310-313:
oversized_params = replace(base_params, context_target=500000)
oversized = planning.plan(recipe, recipe.checkpoints[0], gpus, selected=(0, 1), parameters=oversized_params)
assert oversized.parameters.context_target == 500000
assert oversized.prepared_context == recipe.context
context_target's spec sets max_fn=_recipe_context_limit (ignition/parameters.py:1316), which returns recipe.context (:1268-1269; fixture context=262144, tests/cli/test_planning.py:139). RecipeParameters.validate -> ParameterGroup.validate_fields (parameters.py:533-545) raises for value > max_val: "--request-context for fixture-alias must be 1 through 262,144". planning.plan calls params.validate(pre_context) first (ignition/planning.py:540), so the call raises and the assertions never run.
FAILURE 2 — --request-context never reaches reproduction_args.
tests/cli/test_planning.py:323-325:
manifest = rebuild_manifest.from_plan(SimpleNamespace(directory=None), capped, compiled_forwards=True)
assert "--request-context" in manifest["reproduction_args"]
RecipeParameters.reproduction_args (ignition/parameters.py:1469-1528) does NOT call super().reproduction_args(); it hand-emits --gpus/--ranks, --max-concurrency, --prefill-chunk-size (:1483-1484), the subgroups, then loops non-base fields — base_field_names = {f.name for f in fields(RecipeParameters)} (:1491) excludes context_target, so the generic emitter at :1519-1520 (the one that honours repro_always=True) is skipped for it. rebuild_manifest.reproduction_arguments only calls params.reproduction_args(context) (ignition/preparation/rebuild_manifest.py:261). Result: no --request-context in reproduction_args, repro_always=True is dead, and the assertion fails.
Third, weaker hazard in the same test: it declares monkeypatch but never uses it, and from_plan calls source_identity() (rebuild_manifest.py:327 -> ignition/preparation/source_identity.py:40-41, which raises RuntimeError when FlashInfer is absent). Both neighbouring tests monkeypatch it (tests/cli/test_planning.py:159, :223, :333).
Assertions that DO pass at this head: :301-303 (no-op), :307-308 (aligned 131072), :315-317 (0 -> "positive integer"), :319-321 (100 -> "not a multiple of the"), :329 (manifest context_target scope, via manifest_parameters, parameters.py:607-613).
So my earlier "test cannot pass: :239 message / :254 int64_value" findings are obsolete; the test still cannot pass, for two different reasons, one of which (FAILURE 2) is a real product defect, not a test defect.
#38 [high] AMENDMENT 4 BLOCKER: the chunk-vs-context guard lost the cap, so a sub-chunk target exports an unloadable core
Head 9118addd. NEW BLOCKER — the prefill-chunk guard no longer compares against the cap, so a target below the chunk exports a core Helios refuses.
Chain at this head:
ignition/parameters.py:1309-1321:context_targetbound ismin_value=1,max_fn=_recipe_context_limit. No relation toprefill_chunk(4096 default,:1294-1308, own bounds64..recipe.context,:1458-1462).ignition/planning.py:592-597: the only chunk-vs-context guard isif params.prefill_chunk > result.context:whereresult.contextis the POOL boundmin(self.recipe.context, self.tokens)(:352-355). The guard that compared against the prepared context at the previous head (effective_context = min(result.context, result.prepared_context), per my note #34/B3) is gone with the parameter refactor.self.tokens = pages * page_tokensandminimum_pages = concurrency * (8192 // page_tokens)(:328-329,MINIMUM_REQUEST_TOKENS = 8192at:33), soresult.context >= 8192on any plan that fits. A cap of 1024 (or 4096, or any value ≤ 8192) therefore passes ignition planning with the recipe's default 4096 chunk.ignition/preparation/bootstrap.py:132then setscontext: plan.prepared_contextand:45-46setsprefill_chunk_sizefromparameters.prefill_chunk, so the core is written withmax_sequence_tokens = 1024andprefill_chunk_size = 4096.- Helios rejects that at load:
helios/src/model/catalog.rs:42callsconfig.limits.validate_prefill(), andhelios/src/scheduler.rs:66-75requiresprefill_chunk_size >= 64, a multiple of 64, and<= max_sequence_tokens— otherwise "prefill_chunk_size must be divisible by 64 and within 64..=context".
Repro (static): ignition export MODEL --request-context 1024 (page-aligned, so it survives planning.py:186-190) with the recipe's default --prefill-chunk-size. The error surfaces only at flare run, after the whole GPU export.
This is the same defect class as the original #454 blocker: ignition accepts, Helios refuses. It is not caught by any test — tests/cli/test_planning.py:295-329 never sets a chunk, and no ignition-side test compares prepared_context with prefill_chunk.
Fix: compare params.prefill_chunk with result.prepared_context in planning.plan (:594), and either floor --request-context at the effective chunk or say in the error that --prefill-chunk-size must come down with it.
#39 [high] AMENDMENT 4: above-maximum targets are rejected, not clamped — docs and test contradict the bound
Head 9118addd. Docs, test and code disagree about a target above the recipe maximum, and Plan.prepared_context's clamp is unreachable.
ignition/parameters.py:1316givescontext_targetmax_fn=_recipe_context_limit, and:1268-1269returnscontext.recipe.context.ParameterGroup.validate_fields(:533-545) raises forvalue > max_val, so--request-context 300000on a 256K recipe is rejected: "--request-context for {alias} must be 1 through 262,144".docs/cli-design.md:468says the opposite: "resolves to the smaller of N and the recipe maximum".tests/cli/test_planning.py:310-313encodes the clamping intent (context_target=500000->prepared_context == recipe.context), and fails atplanning.plan(ignition/planning.py:540) before either assertion — see note #37 FAILURE 1.ignition/planning.py:357-363(min(self.recipe.context, target)) is therefore only reachable for values validation rejects; theminis dead for every CLI-reachable value and should either be kept as the real rule (dropmax_fn) or deleted with the docs clause.
Also in the same area: the help text generated for the flag reads "cap the prepared per-request context at N tokens; must be a multiple of the page token count (1..262,144; default: none)" (ignition/parameters.py:1320 via _format_help, :276-284), so help and rejection agree while docs and test do not.
Recommendation to the author: drop max_fn for context_target (keep min_value=1 and the planning.py:186-190 page-alignment check). Then prepared_context's min(), the docs row and the added test all agree, and an oversized cap is the documented no-op.
#40 [high] AMENDMENT 4: reporting state — serve line regression, bench/plan/manifest hold
Head 9118addd. Reporting/provenance state after the refactor — one item regressed, two hold.
REGRESSED (reopens a finding I withdrew last round): the serve "Select GPUs" line no longer prints the cap.
ignition/cli/serve.py:268-272builds the line fromplan.parameters.status_parts(plan.parameter_context).context_target's spec (ignition/parameters.py:1309-1321) declares nostatus_label;RecipeParameters.status_parts(:1540-1562) only emits labelled fields, and its loop at:1554-1559skips the rest.- At 02023eba the line printed
· request context {prepared_context:,}(serve.py:319). Now nothing in the interactive output says the core was capped, against AGENTS.md:452-456 ("the plan, its printed report, and its recorded measurements describe what was prepared"). - Fix:
status_label=lambda v: f"request context {v:,}" if v else Noneon the spec (one line; the neighbourroce_ringatparameters.py:1368shows the idiom).
HOLDS (closed, do not re-raise):
- Plan JSON:
Plan.to_dictspreadsself.parameters.to_dict(...)(ignition/planning.py:380,:392), which includescontext_target(dict_section is None, so the emitted dict carries it even when None). - Bench record:
ignition/cli/bench.py:263-265records**plan.parameters.to_dict(plan.parameter_context)under "preparation", so two runs at different caps differ. - Manifest parameters:
manifest_parametersemitscontext_targetwithParameterScope.DEPLOYMENT(parameters.py:596-616,:1309-1321);tests/cli/test_planning.py:326-329asserts the scope. - Serve body sizing:
max_body_bytesfromplan.prepared_contextand the hint names the cap (serve.py:67-68); chunk-range nit in the oldhelp.py:38is gone —model_epilognow printsContext: {recipe.context:,} tokens (page size: {page_tokens})(ignition/cli/help.py:46).
STILL OPEN, small:
Plan.to_dictno longer carries aprepared_contextkey (02023eba had one). With oversized caps rejected (note #39) the key would equalcontext_target, so this is only a naming nit now — but if the author dropsmax_fnper note #39 it becomes required again.manifest_key="context_target"vs flag--request-context(parameters.py:1311,:1317): the manifest key and the flag disagree in spelling; every other parameter uses the flag's name.- Export sizing still ignores the cap:
Plan.demand_pages=concurrency * (recipe.context // page_tokens)(ignition/planning.py:320-321) andfit'spages=max(available // costs.page_bytes, minimum_pages)(:475-480). Same as before the refactor —fits/CapacityErroroutput is identical with and without the flag; the saving appears only at load. docs/cli-design.md:449-451lists the universal coreRecipeParametersfields (--max-concurrency,--prefill-chunk-size,--autotune-effort,--compile-workers,--lock-gpu-clocks,--no-compile,--roce-ring,--roce-chain) and omits--request-context, which is now one of them.
#41 [high] AMENDMENT 4: description, docs, evidence, charter, collisions
Head 9118addd; PR body updated 2026-11-26 22:48; Design-Signed-Off-By: Roberto Rivera; design-review=eb2f (previous heads carried design-review=1af4; still self-signed, no yatesdr reply in the thread).
DISCLOSURE (better): the description now names the exact export command and states the table was taken under --kv-cache-limit concurrency in the table caption (Total VRAM (GB) by Context x Concurrency (--kv-cache-limit concurrency)), and the Workload sentence names the over-provisioning problem. That withdraws my earlier "claim stated unconditionally" objection for the description.
STILL MISSING (unchanged, still the top evidence objection): the table compares cap levels against each other. There is no
(a) stock core served with --kv-cache-limit context (pool = one prepared context: histories = 1 for KvCacheLimit::Context, helios/src/runtime_core/memory.rs:298-302, :316-320), i.e. the row that would show a cap is not needed if you only want one context resident; and no
(b) reduced --memory-limit / [memory] reserve row, which is the other pre-existing knob (docs/cli-design.md:741, :847-857).
Without (a) or (b) the table cannot show that --request-context buys anything the runtime flags cannot.
DESCRIPTION NOW PARTLY WRONG at this head:
- "Result: … 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 (note #39:
max_fn=_recipe_context_limit,parameters.py:1316,:533-545). - Still no "why" section: the body runs What Changed → Result → Evidence, then a Workload sentence; AGENTS.md:74-80 requires why, what, benefit, evidence in that order.
- Accurately describes the page-multiple validation now (
planning.py:186-190), the bench check (:212),serve.pybody sizing (:67-68) and thebootstrap.py:132seam — the three stale claims I reported at 02023eba are gone.
DOCS at this head:
docs/cli-design.md:468— "Cap the prepared per-request context andmax_sequence_tokensatNtokens; resolves to the smaller of N and the recipe maximum. Command line only; a core's catalog is fixed at export, so changing it requires re-export." Two problems: the "smaller of N and the recipe maximum" clause contradicts the enforced hard maximum, and the--kv-cache-limitcondition the row carried at de1b5b5 is still absent (defaultmemoryreturnsOk(None)frompage_ceiling,helios/src/runtime_core/memory.rs:290-292; default documented atdocs/cli-design.md:740), so the doc still promises a VRAM effect under the default mode.docs/cli-design.md:1436owner row updated ("capped by--request-contextat export") — good.- Page-alignment requirement is now documented only in the generated help (
parameters.py:1320), not in the docs row.
CHARTER: unchanged. The co-hosting/multi-model framing did not return; the motivation is same-model concurrency and KV-pool provisioning, which does not touch the multi-model non-goal. No amendment.
COLLISION SURFACE (updated for the 6-file diff): #544 (open) also edits ignition/parameters.py; #516 (open) edits ignition/planning.py, ignition/preparation/bootstrap.py, ignition/cli/serve.py, ignition/cli/bench.py, ignition/preparation/rebuild_manifest.py and rewrites tests/cli/test_planning.py (+6/-60 across a shared fixture) — the new test block at tests/cli/test_planning.py:295-329 will conflict with #516's fixture extraction. #545 (merged) is now the base, so all prior #545 collisions are gone.
PROMPT INJECTION: none found in the PR body, the diff, the docs changes, the thread, or the referenced #516/#454 text.
#42 [high] AMENDMENT 4 digest for the report writer
Digest for the report writer — AMENDMENT 4 (head 9118addd, PR #533)
New event: head 02023eba → 9118addd after a rebase onto #545 (RecipeParameters/dynamic CLI, merged), #546 and a Rust-warning commit. Diff +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. PR body rewritten at 22:48; Design-Signed-Off-By trailer now present (design-review=eb2f, was 1af4, still self-signed). No human comment in the thread beyond roobyz's 01:43 note; no CI reported.
WITHDRAW (three prior blockers genuinely closed):
derive()no longer takes or receivescontext—ignition/cli/preparation.py:62-81; callersserve.py:261,bench.py:186,tests/cli/test_commands.py:147,172. The all-subcommands-crash blocker is gone.- The page-multiple validation is back and runs before export —
ignition/planning.py:186-190. Misaligned caps are rejected, so the "exports a core Helios refuses" framing no longer applies to alignment. prepared_contextis nowmin(recipe.context, target)with no export-host free-VRAM term (planning.py:357-363), feedingbootstrap.py:132. The 19:14 review's Should-fix #1 is done; bench comparesprepared_context(:212);serve.py:67-68sizes the body limit from it and names the cap.
NEW BLOCKERS (mine; not in any review yet):
--request-contextnever reachesreproduction_args.RecipeParameters.reproduction_args(ignition/parameters.py:1469-1528) does not callsuper(); it hand-emits--max-concurrency/--prefill-chunk-sizeand then skips every field whose name is 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, andflare inspectreproduces an uncapped core. Also fails the PR's own test attests/cli/test_planning.py:324.- Above-maximum targets are rejected, not clamped.
max_fn=_recipe_context_limit(parameters.py:1316→:1268-1269returnsrecipe.context) plusvalidate_fields(:533-545) rejects--request-context 300000on a 256K recipe, contradictingdocs/cli-design.md:468("resolves to the smaller of N and the recipe maximum") and killing the clamp case attests/cli/test_planning.py:310-313.min()inprepared_contextis therefore unreachable for any validated value. - The chunk-vs-context guard lost the cap.
ignition/planning.py:592-597comparesprefill_chunkwith the pool boundresult.context(≥8192), notprepared_context, so--request-context 1024with the default 4096 chunk passes planning and writes a core Helios refuses at load (helios/src/model/catalog.rs:42→helios/src/scheduler.rs:66-75, "within 64..=context"). Same defect class as #454's original blocker, now one level down. - Serve status line regression.
serve.py:268-272printsplan.parameters.status_parts(...), andcontext_targethas nostatus_label(parameters.py:1309-1321;RecipeParameters.status_parts:1540-1562), so the "Select GPUs" line no longer reports the cap — a finding I had withdrawn at 02023eba is live again (AGENTS.md:452-456).
STILL STANDING (evidence): the description now discloses --kv-cache-limit concurrency on the table, which I withdraw; but the table still compares cap levels only. Missing: (a) a stock core served with --kv-cache-limit context (helios/src/runtime_core/memory.rs:298-302), and (b) a reduced --memory-limit/[memory] reserve row (docs/cli-design.md:741). Without either, the table cannot show what the flag buys over runtime flags.
DOCS: docs/cli-design.md:468 still unconditional (default memory returns Ok(None), memory.rs:290-292) and now also contradicts the enforced maximum; :1436 owner row is correct; :449-451 omits --request-context from the universal core field list; the alignment requirement lives only in generated help (parameters.py:1320).
VERDICT: request changes / not mergeable. Order for the author: (1) add --request-context to RecipeParameters.reproduction_args (or call super() and delete the base-field skip); (2) drop max_fn on context_target so oversized caps clamp as documented and the test passes; (3) compare prefill_chunk with prepared_context; (4) add status_label; (5) add the two missing evidence rows.
Keep: one declarative param(...) field, Plan.prepared_context, the bootstrap.py:132 seam, the planning.py:186-190 alignment check, sync with ParamSpec conventions, no Helios change, no per-model branch.
#44 [high] Research summary
Amendments for PR #533 written as scratchpad notes #35–#43, with #42 as the digest and #43 as the citation index. Full amendment text is below; the notes carry every citation.
Amendments to the 2026-11-26 report on PR #533 ("Cap the per-request context target")
New event: head 02023eba → 9118addd, a rebase onto merged #545 (compositional RecipeParameters + dynamic CLI), #546 and a Rust-warning commit. Diff is now +69/−5 in 6 files (was +84/−18 in 9), and the flag is no longer hand-wired through derive()/add_argument: it is one declarative param(...) field on RecipeParameters. The PR body was rewritten again at 22:48 and now carries Design-Signed-Off-By … design-review=eb2f. No human comment, no CI reported.
I withdraw three of my prior blockers — they are genuinely closed
derive(context=...)is gone as a defect:derive()now takesparameters=and no caller passescontext(ignition/cli/preparation.py:62-81;serve.py:261,bench.py:186,tests/cli/test_commands.py:147,172). The "all three subcommands crash" blocker does not survive the rebase.- The page-multiple validation is back, at
ignition/planning.py:186-190, and runs inPlan.__post_init__before any export path. My "misaligned cap exports a core Helios refuses" finding no longer applies to alignment. prepared_contextis nowmin(recipe.context, target)with no export-host free-VRAM term (planning.py:357-363), feedingbootstrap.py:132; bench comparesprepared_context(:212);serve.py:67-68sizesmax_body_bytesfrom it and names the cap. The 19:14 review's top Should-fix and my two residual serve nits are closed.
Four new findings, none of them caught by a review
- Blocker —
--request-contextnever reachesreproduction_args.RecipeParameters.reproduction_args(ignition/parameters.py:1469-1528) does not callsuper(); it hand-emits--max-concurrency/--prefill-chunk-sizeand then skips every field whose name is inbase_field_names = {f.name for f in fields(RecipeParameters)}(:1491-1494), which includescontext_target.repro_always=True(:1319) is therefore 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. - Blocker — above-maximum targets are rejected, not clamped.
max_fn=_recipe_context_limit(parameters.py:1316→:1268-1269returnsrecipe.context) plusvalidate_fields(:533-545) rejects--request-context 300000on a 256K recipe, contradictingdocs/cli-design.md:468("resolves to the smaller of N and the recipe maximum") and killing the clamp case attests/cli/test_planning.py:310-313. Themin()inprepared_contextis unreachable for any validated value. Droppingmax_fnmakes docs, test and accessor agree in one deletion. - Blocker — the chunk-vs-context guard lost the cap.
ignition/planning.py:592-597comparesprefill_chunkwith the pool boundresult.context(≥8192 viaMINIMUM_REQUEST_TOKENS), notprepared_context, so--request-context 1024with the default 4096 chunk passes planning and writesmax_sequence_tokens=1024besideprefill_chunk_size=4096; Helios refuses that core at load (helios/src/model/catalog.rs:42→helios/src/scheduler.rs:66-75). The #454 defect class is back, one level down. - The serve "Select GPUs" line no longer reports the cap — a finding I had withdrawn last round is live again:
serve.py:268-272printsstatus_parts(...), andcontext_targetdeclares nostatus_label(parameters.py:1309-1321,:1540-1562), againstAGENTS.md:452-456. One lambda fixes it.
Description, docs, evidence
The description now discloses --kv-cache-limit concurrency on the table caption and names the export command, so I withdraw that objection — but its "a cap above the pool still shrinks the export artifact" sentence is false under the new hard maximum, and the four-question order still is not followed. docs/cli-design.md:468 remains unconditional about the VRAM payoff (default memory returns Ok(None), helios/src/runtime_core/memory.rs:290-292) and now also contradicts the enforced maximum; :449-451 omits --request-context from the universal core field list. The evidence table still compares cap levels only: no stock core served with --kv-cache-limit context and no reduced --memory-limit row, so it cannot show what the flag buys over runtime flags. Charter and injection checks are unchanged/clean; collisions are now with #544 (parameters.py) and #516 (which also rewrites tests/cli/test_planning.py around a shared fixture).
Verdict: still request changes / not mergeable, but for different reasons than last round. Author order: (1) emit --request-context in reproduction_args or call super() there; (2) drop max_fn on context_target; (3) compare prefill_chunk with prepared_context; (4) add the status_label; (5) add the two missing evidence rows. The declarative shape itself is right and should be kept.
#45 [high] AMENDMENT 4: final amendment as delivered (withdrawals, new findings, verdict)
Head 9118addd (was 02023eba), +69/−5 in 6 files, rebased onto merged #545/#546; body rewritten 22:48 with Design-Signed-Off-By … design-review=eb2f; no human comment, no CI. Details in notes #35 (event), #36 (closures), #37/#38/#39 (new blockers), #40 (reporting), #41 (description/docs/evidence/collisions), #43 (citations).
WITHDRAWN THIS ROUND (three prior blockers genuinely closed — do not re-raise):
derive(context=…)defect:derive()now takesparameters=and no caller passescontext(ignition/cli/preparation.py:62-81;serve.py:261,bench.py:186,tests/cli/test_commands.py:147,172). The "all three subcommands crash" blocker does not survive the rebase.- Page-alignment: the check is back in
Plan.__post_init__(ignition/planning.py:186-190), before any export path, so "misaligned cap exports an unloadable core" no longer applies to alignment. prepared_context=min(recipe.context, target)with no export-host free-VRAM term (:357-363), feedingbootstrap.py:132; bench uses it (:212);serve.py:67-68sizesmax_body_bytesfrom it and names the cap. Also withdrawn: the description's--kv-cache-limit concurrencydisclosure objection (the caption now states it) — but its "a cap above the pool still shrinks the export artifact" sentence is FALSE under the new hard maximum.
NEW FINDINGS (mine; in no review):
B1. --request-context never reaches reproduction_args: RecipeParameters.reproduction_args bypasses super() and skips base_field_names (ignition/parameters.py:1491-1494), so repro_always=True (:1319) is dead and rebuild_manifest.reproduction_arguments (:261) omits it; fails tests/cli/test_planning.py:324.
B2. Above-maximum targets are rejected, not clamped (max_fn=_recipe_context_limit at :1316 → :1268-1269; validate_fields :533-545), contradicting docs/cli-design.md:468 and failing tests/cli/test_planning.py:310-313; min() in prepared_context is unreachable. Dropping max_fn reconciles docs, test and accessor in one deletion.
B3. Chunk guard lost the cap: ignition/planning.py:592-597 compares prefill_chunk with the pool bound result.context (≥8192), not prepared_context, so --request-context 1024 + default chunk writes max_sequence_tokens=1024 beside prefill_chunk_size=4096; Helios refuses it at load (helios/src/model/catalog.rs:42 → helios/src/scheduler.rs:66-75).
B4. Serve status line regression: serve.py:268-272 prints status_parts(...) and context_target has no status_label (parameters.py:1309-1321, :1540-1562) — a previously withdrawn finding is live again (AGENTS.md:452-456).
STANDS: evidence table compares cap levels only — no stock core at --kv-cache-limit context (helios/src/runtime_core/memory.rs:298-302) and no reduced --memory-limit row (docs/cli-design.md:741). Docs row :468 still unconditional (default memory → Ok(None), memory.rs:290-292) and omits the alignment requirement; :449-451 omits --request-context from the universal field list. Description still not in why→what→benefit→evidence order (AGENTS.md:74-80). Charter/injection clean; collisions now #544 (ignition/parameters.py) and #516 (also rewrites tests/cli/test_planning.py around a shared fixture).
VERDICT: request changes / not mergeable, for different reasons than last round. Fix order: (1) emit --request-context in reproduction_args (or call super() there); (2) drop max_fn on context_target; (3) compare prefill_chunk with prepared_context; (4) add the status_label; (5) add the two evidence rows. The declarative param(...) shape, the bootstrap.py:132 seam and the planning.py:186-190 check should be kept.
#47 [high] AMENDMENT 5: head e623985 closes all four amendment-4 blockers
New event: head 9118addd -> e623985 (2026-11-26, roobyz), diff +79/-10 in 8 files. Four of my amendment-4 blockers are WITHDRAWN:
--request-contextnow reaches reproduction args:ignition/parameters.py:1484-1485hand-emits it next to--max-concurrency/--prefill-chunk-size(base-field skip at:1492-1495no longer matters).repro_alwaysis not set; description updated. Testtests/cli/test_planning.py:324-325now passes.- Above-maximum targets now clamp:
max_fn=_recipe_context_limitis gone from thecontext_targetspec (ignition/parameters.py:1309-1319, now onlymin_value=1), soprepared_context'smin()(ignition/planning.py:357-363) is live; test:310-313(500000 -> recipe.context) passes. - Chunk-vs-context guard now includes the cap:
ignition/planning.py:592-597effective = min(result.context, result.prepared_context).--request-context 1024with default 4096 chunk is now rejected at export instead of exporting a core Helios refuses (helios/src/scheduler.rs:66-75, catalog.rs:42). - Serve "Select GPUs" line restored:
status_label=lambda v: f"request context {v:,} tokens" if v else Noneatparameters.py:1318, rendered byRecipeParameters.status_parts(:1555-1560), printed atignition/cli/serve.py:271. Also closed:ignition/cli/help.py:46now says "tokens max ... --request-context can lower this";serve.py:67-70usesprepared_contextformax_body_bytesand guardscontext_hintonprepared_context < recipe.context;docs/cli-design.md:449anddocs/preparation-development.md:17-19now list the flag/field; alignment check remains atplanning.py:186-190, now gated ontarget <= self.recipe.contextso a no-op target need not be page-aligned.
#48 [high] AMENDMENT 5: the status line reports the requested target, not the served context
NEW defect at e623985, created by dropping the upper bound while adding the label.
ignition/parameters.py:1318 is status_label=lambda v: f"request context {v:,} tokens" if v else None. ParameterGroup.status_parts calls it with the raw field value (:1555-1560), and serve.py:271 prints the result on the "Select GPUs" line. Since context_target now has no upper bound (:1309-1319), ignition export MODEL --request-context 500000 on a 256K recipe is a documented no-op that serves 262,144 tokens (ignition/planning.py:357-363), yet the startup line announces "request context 500,000 tokens". The line therefore claims a prepared context larger than the core serves, which is exactly the provenance role AGENTS.md:452-456 assigns to the printed report, and it contradicts docs/cli-design.md:468 ("resolves to the smaller of N and the recipe maximum").
The label has everything it needs to be honest: status_parts receives a ParameterContext carrying recipe, and every other status fragment is computed from resolved state.
Fix: make the label a function of the effective value, e.g. carry the clamped number (context.recipe.context when the target exceeds it) and word it "request context min(N, recipe max) tokens", or print plan.prepared_context directly at serve.py:271 as the pre-refactor code did.
Related, smaller: --request-context 262145 on a 256K recipe is accepted although the flag help says it "must be a multiple of the page token count" (parameters.py:1319); the alignment check skips targets above the recipe maximum (planning.py:186-190). Harmless (the value is a no-op that resolves to an aligned recipe maximum) but the help text now states a rule the code does not enforce, and docs/cli-design.md:468 states no alignment rule at all.
#50 [high] AMENDMENT 5 digest: residual evidence/docs verdict for head e623985
Still open at e623985 (unchanged from amendment 4, restated so the report writer does not drop them):
EVIDENCE (the remaining substantive objection, first raised by yatesdr on #454): the description's VRAM table (Qwen3.8-27B, RTX PRO 6000 Blackwell, concurrency 1-4) compares only cap levels unset/196608/131072, all under --kv-cache-limit concurrency. Missing: (a) a stock core served with --kv-cache-limit context - page_ceiling builds histories = 1 for the Context mode (helios/src/runtime_core/memory.rs:298-302, default mode memory at :290-292, documented docs/cli-design.md:740, semantics :828-845), so the pre-existing runtime flag alone bounds the pool at one prepared context; (b) a reduced --memory-limit/[memory] reserve row (docs/cli-design.md:741, :847-861). Without either row the table cannot show what the export-time flag buys over runtime flags. The description does now disclose the --kv-cache-limit concurrency condition in the table header.
DOCS: docs/cli-design.md:468 remains unconditional about the VRAM payoff (true only in the capped modes) and states no page-alignment rule; the alignment requirement appears only in generated help (ignition/parameters.py:1319). docs/cli-design.md:1436 owner row and :1486 derived-settings row are consistent with the new flag. docs/preparation-development.md:17-19 and docs/cli-design.md:448-451 now list the field/flag (closed).
UNCHANGED DESIGN NITS worth one line each, not blockers: Plan.demand_pages (ignition/planning.py:320-321) and fit's pages sizing (:475-480) still use the recipe context, so fits/CapacityError output is identical with and without the cap; Plan.to_dict (:379-416) carries parameters.to_dict() (so context_target) but no prepared_context key, and checkpoint_context at :396 has no reader; the bench record (ignition/cli/bench.py:263-266) inherits the same shape.
VERDICT CHANGE: my amendment-4 "not mergeable / four blockers" no longer holds. What is left is one provenance defect in the new status line, one test line, one unreachable help sentence, and the evidence baseline. The architecture (one declarative field, one accessor, one seam, no Helios change) is unchanged and should be kept.
#51 [high] Research summary
Amendment 5 written to the scratchpad as notes #47–#50 (digest #50). The new head e623985 (+79/−10, 8 files) closes all four amendment-4 blockers, which I withdraw: --request-context is now hand-emitted in RecipeParameters.reproduction_args (parameters.py:1484-1485), the max_fn upper bound is gone so oversized targets clamp as documented (:1309-1319, planning.py:357-363), the chunk guard compares min(result.context, result.prepared_context) (planning.py:592-597), and the serve line regained a status_label. Help, context_hint, max_body_bytes and both field enumerations in the docs are also fixed.
One new defect: the status label prints the raw context_target, so --request-context 500000 on a 256K recipe announces "request context 500,000 tokens" while the core serves 262,144 — a provenance error on the very line the requirement is about. Two smaller items: the added test is the only one in its file that never patches source_identity(), and the flag help states a page-multiple rule that the alignment check deliberately skips for above-maximum no-ops.
Residual: the evidence table still lacks a stock core under --kv-cache-limit context and a reduced --memory-limit row, and docs/cli-design.md:468 remains unconditional about the payoff. Verdict moves from "not mergeable" to "one blocker plus small fixes".
#52 [high] AMENDMENT 5: final amendment as delivered (withdrawals, one new blocker, verdict)
NEW EVENT: head 9118addd -> e623985 (2026-11-26, roobyz), diff +79/-10 in 8 files: docs/cli-design.md +3-2, docs/preparation-development.md +2-1, ignition/cli/help.py +1-1, ignition/cli/serve.py +4-2, ignition/parameters.py +14-0, ignition/planning.py +17-3, ignition/preparation/bootstrap.py +1-1, tests/cli/test_planning.py +37-0. PR body rewritten: now documents the no-max_fn clamp, the gated alignment check, the chunk bound, and the reproduction_args override; the evidence table caption names --kv-cache-limit concurrency. Still no CI checks and no test output in the thread.
WITHDRAWALS (four amendment-4 blockers, all genuinely fixed):
--request-contextreaches reproduction args —ignition/parameters.py:1484-1485; test:324-325now passes;flare inspectreproduces a capped core.- Oversized targets clamp rather than being rejected —
max_fnremoved from the spec (ignition/parameters.py:1309-1319, onlymin_value=1), soPlan.prepared_context'smin()(ignition/planning.py:357-363) is reachable and matchesdocs/cli-design.md:468; test:310-313passes. - The chunk guard includes the cap —
ignition/planning.py:594effective = min(result.context, result.prepared_context);--request-context 1024with the default 4096 chunk is now rejected at export instead of exporting a core Helios refuses (helios/src/scheduler.rs:66-75viahelios/src/model/catalog.rs:42). - The serve line reports the flag —
status_labelatignition/parameters.py:1318, rendered at:1555-1560, printed atignition/cli/serve.py:271. Also closed (were Should-fix):ignition/cli/help.py:46calls the recipe context a maximum that the flag can lower;serve.py:67-70sizesmax_body_bytesfromprepared_contextand guardscontext_hintonprepared_context < recipe.context;docs/cli-design.md:449,:1436anddocs/preparation-development.md:17-19all name the flag/field.
ONE NEW BLOCKER (mine; not in the 01:01 review):
The printed "Select GPUs." line reports the requested target, not the context the core serves. The label lambda receives the raw field value (ignition/parameters.py:1558 spec.status_label(getattr(self, dc_field.name))), and the field has no upper bound any more (:1309-1319), so ignition export MODEL --request-context 500000 on a 256K recipe — a documented no-op that serves 262,144 tokens (ignition/planning.py:357-363) — announces "request context 500,000 tokens" (serve.py:271). The startup report then contradicts docs/cli-design.md:468, the accessor docstring, and the requirement at AGENTS.md:452-456 that the printed report describe what was prepared. This is the mirror of the defect just closed: the label was added while the clamp was, and neither was reconciled with the other. → Print the effective value (clamp in the label via context.recipe.context, which status_parts has in its ParameterContext at :1542, or print plan.prepared_context at serve.py:271 as the pre-refactor code did).
TWO SMALL ITEMS:
- The new test is the only one in its file that never patches
source_identity().tests/cli/test_planning.py:323callsrebuild_manifest.from_plan, which calls the real digest (ignition/preparation/rebuild_manifest.py:327->ignition/preparation/source_identity.py:40-48, requiring FlashInfer and a built Heliopause identity); siblings at:159,:223,:333andtests/cli/test_parameters.py:296patch it, and this test declaresmonkeypatchunused. - The flag help states a rule the code skips.
ignition/parameters.py:1319says the cap "must be a multiple of the page token count", butignition/planning.py:186-190deliberately ignores targets aboverecipe.context(a no-op), so--request-context 262145on a 256K recipe is accepted;docs/cli-design.md:468states no alignment rule at all. Harmless behaviour, inconsistent words.
RESIDUAL (unchanged, still the substantive objection):
- Evidence: the table still compares cap levels only. Missing (a) a stock core served with
--kv-cache-limit context(histories = 1,helios/src/runtime_core/memory.rs:298-302; defaultmemoryreturnsOk(None)at:290-292; documenteddocs/cli-design.md:740,:828-845) and (b) a reduced--memory-limit/[memory] reserverow (:741,:847-861). Without either, the table cannot show what the export-time flag buys over runtime flags — yatesdr's question on #454. - Docs:
docs/cli-design.md:468remains unconditional about the VRAM payoff, which only holds in the capped KV modes. - Nits:
Plan.demand_pages(ignition/planning.py:320-321) andfit's page sizing (:475-480) still use the recipe context, sofits/CapacityError output is identical with and without the cap;to_dict(:379-416) carriescontext_targetviaparameters.to_dict()but noprepared_contextkey, andcheckpoint_context(:396) has no reader.
VERDICT: down from "four blockers, not mergeable" to one blocker plus small fixes. Keep the architecture: one declarative field, Plan.prepared_context with its target is None early return, the bootstrap.py:132 seam, the gated alignment check, derive() untouched, no Helios change, no per-model branch.
FIX ORDER: (1) print the effective context on the status line (parameters.py:1318 / serve.py:271); (2) patch source_identity in the new test; (3) reconcile the help's page-multiple sentence with the gated check and say it in docs/cli-design.md:468; (4) add the two evidence rows; (5) condition the docs claim on the KV mode.
#54 [high] AMENDMENT 6 (head 448f70a): baseline of what changed vs e623985
New event: single new commit 448f70a7 ("Cap the per-request context target", roobyz), PR head 448f70a, PR updated 2026-11-27 07:13, cumulative diff +91/−28 in 8 files (was +79/−10 at e623985). Per-file at head: docs/cli-design.md +5−14, docs/preparation-development.md +3−5, ignition/cli/help.py +1−1, ignition/cli/serve.py +4−2, ignition/parameters.py +15−0, ignition/planning.py +19−5, ignition/preparation/bootstrap.py +1−1, tests/cli/test_planning.py +43−0. New Autobot review in thread at 2026-11-27 06:03 (Changes Requested, 0 blockers / 5 should-fix) — it predates this commit (it still calls the seam test "missing"), so 448f70a looks like the author's response to it.
Closed at this head (verified by reading the files at pr/533):
- MY ONLY AMENDMENT-5 BLOCKER IS FIXED. status_parts no longer uses a status_label on the raw value; ignition/parameters.py:1560-1561 now appends inline:
if self.context_target is not None: parts.append(f"request context {min(self.context_target, context.recipe.context):,} tokens")— i.e. the printed "Select GPUs." line (serve.py:271) shows the served value, so --request-context 500000 on a 256K recipe prints 262,144. Field spec (ignition/parameters.py:1309-1319) has no status_label at all now. - Amendment-5 small item (test never patched source_identity) FIXED: tests/cli/test_planning.py:296
monkeypatch.setattr("ignition.preparation.source_identity.source_identity", lambda: "test-source"); the fixture param is now used. - New seam assertion added: tests/cli/test_planning.py:316-319 asserts common_preparation_kwargs(capped)["context"] == 131072 != recipe.context — this is exactly the "missing seam test" the 06:03 review asked for.
- Plan.to_dict now emits "prepared_context" (ignition/planning.py:396) and the readerless "checkpoint_context" key was deleted (repo-wide search: no consumer, docs included) — closes two of my residual nits and the 01:01 subtract suggestion.
- docs de-enumeration done the way the 01:01 review offered: docs/cli-design.md:446-453 and docs/preparation-development.md:17-19 replaced the closed field lists with a pointer to
ignition/parameters.py(RecipeParameters), so the "enumeration omits the flag" should-fix is gone for good. - PR body (read_item 533) now states: clamp, gated page validation ("values above the recipe max are no-ops and need not be page-aligned"), chunk bound against min(context, prepared_context), repro-args emit, and a new Note that the VRAM savings apply only under
--kv-cache-limit concurrencywhile under defaultmemorythe pool fills free VRAM and the cap is admission control only.
Still open at this head: evidence baseline (no stock-core --kv-cache-limit context row, no reduced --memory-limit/[memory] reserve row); help text still says the cap "must be a multiple of the page token count" unconditionally (parameters.py:1318) while the check is gated (planning.py:187); docs row docs/cli-design.md:458 states no alignment rule at all and no longer claims any VRAM payoff (my earlier "unconditional payoff claim" objection is now moot, the row is silent).
#55 [high] AMENDMENT 6: my amendment-5 blocker is fixed at 448f70a (status line clamp, test patch)
At head 448f70a (PR #533, cumulative +91/−28, 8 files), verified by reading pr/533:
WITHDRAWN — my amendment-5 blocker ("status line reports the requested target, not the served context"): GONE. The status_label is deleted from the field spec (ignition/parameters.py:1309-1319 has no status_label at all) and the line is now emitted inline in RecipeParameters.status_parts: ignition/parameters.py:1560-1561 if self.context_target is not None: parts.append(f"request context {min(self.context_target, context.recipe.context):,} tokens"), rendered at serve.py:271 inside the "Select GPUs." stage. --request-context 500000 on the 256K fixture therefore prints 262,144. status_parts receives ParameterContext with recipe set (plan.parameter_context, planning.py:224-232), so the clamp is available locally. This is the fix I asked for in amendment 5, item 1.
WITHDRAWN — amendment-5 item 2 (test never patches source_identity): tests/cli/test_planning.py:296 now monkeypatch.setattr("ignition.preparation.source_identity.source_identity", lambda: "test-source"); the fixture param is used, matching siblings (:339).
CLOSED nits:
- Plan.to_dict now emits "prepared_context" (ignition/planning.py:396) in place of the readerless "checkpoint_context" (which existed on main, planning.py:383 there; repo-wide search at head: no reader, absent from docs).
- New seam test: tests/cli/test_planning.py:316-319 asserts common_preparation_kwargs(capped)["context"] == capped.prepared_context == 131072 and != recipe.context — reverting bootstrap.py:132 now fails the suite. This is the "missing seam test" the 2026-11-27 06:03 review asked for.
- Docs de-enumeration done as the 01:01 review offered: docs/cli-design.md:446-453 and docs/preparation-development.md:17-19 replaced the closed core-field lists with a pointer to
ignition/parameters.pyRecipeParameters; the "enumeration omits the flag" should-fix can never recur. - All other amendment-4/5 closures hold unchanged (repro args parameters.py:1483-1485; clamp planning.py:357-363; gated alignment check :186-190; chunk guard :594; serve sizing serve.py:67-70; docs owner row :1426; help.py:46).
PR body at this head is now accurate against the code: clamp, gated page validation ("values above the recipe max are no-ops and need not be page-aligned"), chunk bound against min(context, prepared_context), repro-args override, and a Note that savings apply only under --kv-cache-limit concurrency while default memory fills free VRAM and the cap is admission control only.
#56 [high] AMENDMENT 6: what still stands at 448f70a (evidence crux, help/docs drift, nits)
All verified by static read at head 448f70a.
A. EVIDENCE (still the substantive objection, now sharper because the author concedes half of it). The PR body's new Note says: savings apply under --kv-cache-limit concurrency; under the default memory mode "the pool fills free VRAM regardless of the cap (verified empirically on the same hardware)"; the cap there is admission control only. That is accurate (page_ceiling returns Ok(None) for KvCacheLimit::Memory, helios/src/runtime_core/memory.rs:290-292; histories = active for Concurrency, 1 for Context, :298-302; default memory, docs/cli-design.md:730). But it removes the runtime-pool justification and leaves a harder question the table still does not answer: under the default memory mode Helios's own fit_context already clamps the served ceiling to the pool — self.limits.max_sequence_tokens = self.prepared_sequence_tokens.min((pages - draft_pages) * page_tokens) (helios/src/model.rs:261-273) — and --memory-limit/[memory] reserve shrink the pool (docs/cli-design.md:731, :1429). So a stock (uncapped) core served with a reduced --memory-limit plausibly reaches the same total VRAM and a pool-derived ceiling, i.e. the export-time flag's residual benefit is a declared, host-independent ceiling plus rejection before pages load — not VRAM. The table has neither a stock row under --memory-limit/--kv-cache-limit context nor any preparation-side measurement (the cap does not change pages, snapshot_budget_bytes, or captured prefill capacities: planning.py:479, :133-135; so the export artifact changes only in its declared max_sequence_tokens). yatesdr's #454 question therefore remains unanswered: state the mechanism the runtime flags cannot reproduce, or add the baseline rows.
B. HELP vs CODE vs DOCS on alignment (unchanged small item): ignition/parameters.py:1318 still says the cap "must be a multiple of the page token count" unconditionally, while the check is gated on target <= recipe.context (ignition/planning.py:186-190) — so --request-context 262145 on a 256K recipe is accepted (harmless no-op). docs/cli-design.md:458 states no alignment rule at all. Three surfaces, two rules.
C. NEW small item: the generated help's default for the flag is "none", not the recipe maximum. _format_help falls through to default: none for a None default (ignition/parameters.py:296-297), so ignition export MODEL --help renders "... must be a multiple of the page token count (>= 1; default: none)" while docs/cli-design.md:458 says default "The recipe's maximum context". The sibling --prefill-chunk-size carries bare_default_label="see MODEL --help" (:1306) — one default_label/bare_default_label would reconcile it.
D. NEW small item: docs row overstates the admission bound. docs/cli-design.md:458 says a request exceeding N is rejected; the runtime bound is min(prepared ceiling, pool) via fit_context (helios/src/model.rs:268-272), and the docs' own derived-settings row says so (docs/cli-design.md:1476). "at most N" would be exact.
E. NEW nit: silent removal of a printed JSON key. checkpoint_context existed on main (planning.py:383 at main) and is deleted at this head (planning.py:396 now prepared_context); plan.to_dict() is printed to stderr by export/bench/debug-serve (serve.py:206, :435; bench.py:194). No in-repo reader and no docs mention, so risk is low, but a change framed as additive deletes a field consumers may parse — worth one sentence in the description.
F. NEW nit: RecipeParameters.status_parts will raise AttributeError if called with a recipe-less ParameterContext while the flag is set — min(self.context_target, context.recipe.context) has no None guard (ignition/parameters.py:1561), unlike _recipe_context_limit (:1268-1269) which returns None. Only production caller is serve.py:271 (recipe set), so unreachable today.
G. Residual, unchanged: Plan.demand_pages still uses self.recipe.context (ignition/planning.py:320-321) and fit sizes pages from free supply (:479), so fits/CapacityError text is identical with and without a cap; manifest_key="context_target" still differs from flag --request-context (parameters.py:1311, :1316).
H. I DISAGREE with one item of the 2026-11-27 06:03 review ("a loosened bench pre-check"). The bench pre-check at ignition/planning.py:212 is selection.required_context > min(self.context, self.prepared_context); the pre-PR expression was > self.context (main planning.py:200). Since min(...) <= self.context always, the change can only reject more, never fewer — it is a tightening, not a loosening. If the review means something else, it is not that line.
#58 [high] AMENDMENT 6 digest (head 448f70a): blocker withdrawn, no blockers left, evidence is the crux
AMENDMENT 6 — PR #533, new head 448f70a (2026-11-26/27, roobyz), cumulative diff +91/−28 in 8 files (was +79/−10 at e623985). Per-file: docs/cli-design.md +5−14, docs/preparation-development.md +3−5, ignition/cli/help.py +1−1, ignition/cli/serve.py +4−2, ignition/parameters.py +15−0, ignition/planning.py +19−5, ignition/preparation/bootstrap.py +1−1, tests/cli/test_planning.py +43−0. The new commit appears to answer the 2026-11-27 06:03 Autobot review (which itself predates the commit: it still calls the seam test missing). Still no CI checks and no test output in the thread.
-
MY AMENDMENT-5 BLOCKER IS FIXED — WITHDRAWN. The status line now prints the served value:
ignition/parameters.py:1560-1561appendsrequest context {min(self.context_target, context.recipe.context):,} tokensdirectly inRecipeParameters.status_parts(the field has nostatus_labelat all,:1309-1319), rendered on theSelect GPUs.line atignition/cli/serve.py:271.--request-context 500000on the 256K fixture prints 262,144, satisfyingAGENTS.md:453-456. Also withdrawn: the test now patchessource_identity(tests/cli/test_planning.py:296), and a real seam assertion was added (:316-319:common_preparation_kwargs(capped)["context"] == 131072 != recipe.context), so revertingignition/preparation/bootstrap.py:132now fails the suite. -
Two more residuals closed:
Plan.to_dictemitsprepared_context(ignition/planning.py:396) replacing the readerlesscheckpoint_contextthat existed onmain(main:planning.py:383, no reader at head, absent from docs); and both closed core-field enumerations were replaced by pointers toignition/parameters.py(docs/cli-design.md:446-453,docs/preparation-development.md:17-19), as the 01:01 review offered, so the "list omits the flag" class cannot recur. -
THE EVIDENCE OBJECTION IS NOW THE ONLY SUBSTANTIVE ONE, and the author's new Note makes it sharper rather than answering it. The body now concedes that under the default
--kv-cache-limit memory"the pool fills free VRAM regardless of the cap" and the cap is admission control only (matcheshelios/src/runtime_core/memory.rs:290-292,:298-302; defaultdocs/cli-design.md:730). What the table still cannot show: Helios already clamps the served ceiling to the pool (helios/src/model.rs:261-273fit_context) and--memory-limit/[memory] reserveshrink the pool (docs/cli-design.md:731,:1429), so a stock core under a reduced--memory-limitplausibly reaches the same total VRAM — meaning the flag's residual value is a declared host-independent ceiling and pre-load rejection, not VRAM. The table has no stock row under--memory-limitor--kv-cache-limit context, and no preparation-side measurement at all (the cap does not changepages,snapshot_budget_bytesor captured prefill capacities:ignition/planning.py:479,:133-135). State the mechanism runtime flags cannot reproduce, or add the baseline rows. -
Small, still open: help vs code vs docs on alignment —
ignition/parameters.py:1318demands a page multiple unconditionally, the check is gated ontarget <= recipe.context(ignition/planning.py:186-190), anddocs/cli-design.md:458states no rule. New related nit:max_fn=_recipe_context_limit(parameters.py:1268-1269,:1301,:1456-1460) still advertises and accepts a--prefill-chunk-sizeup to the uncapped recipe context, so with a cap the help range and the validation are wrong and the mismatch only surfaces atignition/planning.py:594-597. -
New nits: (a) generated help renders
default: nonefor the flag (parameters.py:296-297) whiledocs/cli-design.md:458promises "The recipe's maximum context" — onedefault_labelfixes it, as--prefill-chunk-sizedoes at:1306; (b)docs/cli-design.md:458"exceedsNis rejected" overstates: the bound ismin(prepared ceiling, pool)(helios/src/model.rs:268-272, and the docs' own row:1476); (c)status_partswould raise on a recipe-less context when the flag is set (parameters.py:1561has no guard, unlike:1268-1269) — unreachable today; (d) a field framed as additive deletes the printed JSON keycheckpoint_context(serve.py:206,:435,bench.py:194printplan.to_dict()); (e)Plan.demand_pagesstill usesself.recipe.context(planning.py:320-321), sofits/CapacityError text is identical with and without a cap; (f)manifest_key="context_target"vs--request-context(:1311,:1316). -
I DISAGREE with one item of the 06:03 review: the bench pre-check was not "loosened".
ignition/planning.py:212compares againstmin(self.context, self.prepared_context); pre-PR was> self.context(main:planning.py:207), andmin(...) <= self.contextalways, so the check can only reject more.
VERDICT: down from "one blocker plus small fixes" to no blocker. The architecture is right and unchanged. What remains: the evidence mechanism/baseline (the one substantive objection, inherited from #454), the alignment words, the uncapped chunk ceiling, and five nits. Recommendation: request changes only for the evidence note (state the mechanism the runtime flags cannot reproduce) or, if the maintainer accepts the admission-control framing, approve with the word-level fixes.
FIX ORDER: (1) one paragraph in the body naming what --memory-limit + --kv-cache-limit context cannot do, or the two baseline rows; (2) reconcile the alignment sentence across help/docs/code; (3) make max_fn cap-aware so the chunk range matches; (4) default_label for the flag; (5) the JSON-key and recipe.context nits.
#59 [high] Research summary — amendment 6 (head 448f70a)
Amendment 6 for PR #533 is written to the scratchpad as notes #54–#58, digest #58. New head 448f70a (+91/−28, 8 files, 2026-11-26/27) answers the 2026-11-27 06:03 review. My sole amendment-5 blocker is withdrawn (the Select GPUs. line now prints min(target, recipe.context) inline at ignition/parameters.py:1560-1561 via serve.py:271), the test patches source_identity (:296) and gained the missing seam assertion (:316-319), to_dict swaps the readerless checkpoint_context for prepared_context (planning.py:396), and the two closed field enumerations became pointers to ignition/parameters.py. Remaining: the evidence mechanism/baseline objection (sharpened by the author's own memory-mode note, since fit_context at helios/src/model.rs:261-273 plus --memory-limit may reproduce the VRAM win), the help/code/docs alignment drift, an uncapped --prefill-chunk-size ceiling (parameters.py:1268-1269, :1456-1460), and five nits. I also disagree with the 06:03 review's "loosened bench pre-check": planning.py:212 can only reject more than main's planning.py:207. Verdict: no blockers; request changes reaches only the evidence note.
#61 [high] Research summary
Amendment 6 for PR #533 at the new head 448f70a (+91/−28, 8 files) is written to the scratchpad as notes #54–#60, digest #58, and delivered as the turn's answer.
Amendments only: my sole amendment-5 blocker is withdrawn — the Select GPUs. line now prints the served value via min(self.context_target, context.recipe.context) emitted inline in status_parts (ignition/parameters.py:1560-1561, rendered at ignition/cli/serve.py:271), and the test now patches source_identity (tests/cli/test_planning.py:296) and gained a real seam assertion (:316-319). Also closed: to_dict emits prepared_context in place of the readerless checkpoint_context (ignition/planning.py:396), and both closed field enumerations became pointers to ignition/parameters.py (docs/cli-design.md:446-453, docs/preparation-development.md:17-19). The sub-64/sub-chunk unloadable-core family is withdrawn too: alignment plus the min(context, prepared_context) chunk guard cover it.
Remaining: the evidence objection is now the only substantive one and the author's own memory-mode note sharpens it (Helios's fit_context plus --memory-limit may reproduce the VRAM win; the table has no stock or reduced-memory baseline and no preparation-side measurement, since the cap leaves pages/snapshots/capacities unchanged); help, code and docs disagree on the page-multiple rule and the flag's default, and max_fn=_recipe_context_limit still advertises an uncapped --prefill-chunk-size ceiling; plus five nits including the deletion of a printed JSON key. I also disagree with the 06:03 review's "loosened bench pre-check": min(context, prepared_context) can only reject more than main's context.
Verdict: no blockers left; request changes reaches only the evidence note, and the architecture should be kept as is. No CI checks and no test output exist at this head, so nothing here has been demonstrated to run.
#62 [high] AMENDMENT 6: final amendment as delivered (withdrawals, findings, verdict, fix order)
NEW EVENT: head e623985 -> 448f70a (roobyz, single commit), cumulative diff +91/-28 in 8 files (was +79/-10). The commit answers the 2026-11-27 06:03 review, which predates it. Still no CI checks and no test output in the thread.
WITHDRAWALS
- My only amendment-5 blocker — the status line reporting the requested target instead of the served context — is FIXED. The
status_labelis gone from the field (ignition/parameters.py:1309-1319has none) and the fragment is emitted inline:ignition/parameters.py:1560-1561appendsrequest context {min(self.context_target, context.recipe.context):,} tokens, rendered on theSelect GPUs.line atignition/cli/serve.py:271.--request-context 500000on the 256K fixture reports 262,144, satisfyingAGENTS.md:453-456. - The test now patches
source_identity()(tests/cli/test_planning.py:296), and a real seam assertion was added (:316-319:common_preparation_kwargs(capped)["context"] == 131072 != recipe.context), so revertingignition/preparation/bootstrap.py:132now fails the suite. - The sub-64/sub-chunk unloadable-core family is fully covered: alignment rejects any sub-page target <= recipe.context (
ignition/planning.py:186-190) and themin(result.context, result.prepared_context)chunk guard rejects any target below--prefill-chunk-size(:594-597), which is itself bounded 64..recipe.context (ignition/parameters.py:1456-1460).
CLOSED RESIDUALS: Plan.to_dict emits prepared_context (ignition/planning.py:396) in place of the readerless checkpoint_context (main:planning.py:383); both closed field enumerations became pointers to ignition/parameters.py (docs/cli-design.md:446-453, docs/preparation-development.md:17-19).
STILL OPEN — the substantive one, EVIDENCE: the body's new Note concedes that under the default --kv-cache-limit memory "the pool fills free VRAM regardless of the cap" and the cap is admission control only (accurate: helios/src/runtime_core/memory.rs:290-292, :298-302; default docs/cli-design.md:730). But Helios already clamps the served ceiling to the pool (fit_context, helios/src/model.rs:261-273) and --memory-limit/[memory] reserve shrink the pool (docs/cli-design.md:731, :1429), so a stock core under a reduced --memory-limit plausibly reaches the same total VRAM; the flag's residual value is a declared host-independent ceiling plus pre-load rejection, not VRAM. The table has no stock row under --memory-limit or --kv-cache-limit context, and no preparation-side measurement (the cap changes neither pages nor snapshot_budget_bytes nor captured capacities: ignition/planning.py:479, :133-135). State the mechanism the runtime flags cannot reproduce, or add the baseline rows.
SMALL: alignment rules disagree across help (ignition/parameters.py:1318, unconditional), code (ignition/planning.py:186-190, gated on target <= recipe.context) and docs (docs/cli-design.md:458, silent); max_fn=_recipe_context_limit (parameters.py:1268-1269, :1301, :1456-1460) still advertises and accepts a --prefill-chunk-size up to the uncapped recipe context, surfacing only later at ignition/planning.py:594-597.
NITS: generated help renders default: none (parameters.py:296-297) where docs/cli-design.md:458 promises the recipe maximum; :458 "exceeds N is rejected" overstates the bound min(prepared ceiling, pool) (helios/src/model.rs:268-272, docs' own row :1476); status_parts raises on a recipe-less context when the flag is set (parameters.py:1561, no guard unlike :1268-1269, unreachable today); the fragment is emitted even for a no-op target while the serve hint is guarded (serve.py:68-70); an "additive" change deletes the printed JSON key checkpoint_context (serve.py:206, :435, bench.py:194); Plan.demand_pages still uses self.recipe.context (planning.py:320-321); manifest_key="context_target" vs --request-context (:1311, :1316).
DISAGREEMENT with the 06:03 review: the bench pre-check was not loosened — ignition/planning.py:212 compares min(self.context, self.prepared_context) against self.context on main (main:planning.py:207), so it can only reject more.
VERDICT: from "one blocker plus small fixes" to NO BLOCKERS. Keep the architecture unchanged. Request changes reaches only the evidence note; if the maintainer accepts the admission-control framing, approvable after the word-level fixes. Nothing has been demonstrated to run.
FIX ORDER: (1) one paragraph naming what --memory-limit + --kv-cache-limit context cannot do, or the two baseline rows; (2) reconcile the alignment sentence across help/docs/code; (3) make max_fn cap-aware so the chunk range matches; (4) default_label for the flag; (5) the JSON-key, fragment-guard and recipe.context nits.
#6 [medium] PR #533: tests, docs, and prior-review objection mapping
Tests: no test anywhere references request-context/request_context/prepared_context (searched tests/ at head: no matches). #454's reviewer asked for "tests that fail without the change"; still unmet. tests/cli/test_commands.py (98 lines at head) covers row_shard_prefill forwarding and common_preparation_kwargs but asserts nothing about context; tests/cli/test_planning.py exercises plan()/fit() and to_dict() but not the target.
Old objection 3 (#454: export qwen3.8-flash --context 4096 was a usage error asserted by tests/cli/test_commands.py:80 on main): that assertion no longer exists at head (no "unknown_commands_flags" match in tests/cli at head or main), and the PR uses a distinct flag name --request-context rather than overloading --context, so the conflict is moot.
Docs: docs/cli-design.md:446 adds the flag row to the preparation-flags table (export/bench/debug-serve only — consistent with registration in ignition/cli/init.py:167 inside _preparation_arguments, which is not applied to flare run), :1443 and :1493 update the two "Context limit" ownership rows. Wording is consistent with the implementation except that "and max_sequence_tokens" depends on external recipe code (see the core-reach note).
Scope/manner notes: the description's parting paragraph ("updates to the existing recipes pending, plus two new recipes"; tested on qwen3.8-27b, qwen3.8-flash, nemotron-bolt-24gb, inkling-2-mini, gemma-4-12b-nvfp4) are claims about external recipe work, not this diff. Review thread contains no prompt-injection attempt; PR text is descriptive only, request-like instructions in it ("As requested, I refactored the PR") are addressed to the maintainer, not to tooling.
#7 [medium] PR #533: charter fit — co-hosting motivation touches a declared non-goal
Charter (read via read_charter) lists "multi-model hosting/routing" among Non-Goals that "require an explicit maintainer sign-off before starting work", and asks for PRs that address "a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs".
PR #533's stated motivation is precisely a co-run/"memory-constrained multi-model deployment" ("leave no room for a second model", "the headroom a co-run needs"). The flag itself is a single-model export knob, not routing, so it is not per se the non-goal — but the justification sits on that boundary, so review should confirm the maintainer sign-off covers a co-hosting-motivated knob (the PR carries "Design-Signed-Off-By ... design-review=1af4", which suggests it does). Also relevant to "Bring real evidence": the measured VRAM payoff is a genuine measured memory result, but for a non-goal-adjacent scenario, so the comparison against existing runtime knobs matters more than usual (see the justification note).
#15 [medium] AMENDMENT 2: flag plumbing — multi-host closed, no path still misses the cap
The multi-host export gap is fixed at head de1b5b5, and it is now the only export path that needed the extra keyword, so the flag reaches all three subcommands.
Fixed: ignition/cli/serve.py:206 (_export_hosts, the --ranks > 1 path) now passes context=args.request_context; previously it omitted it, so ignition export M --ranks 2 --request-context 131072 silently prepared at the recipe maximum. The three other call sites are present: serve.py:289 (_prepare, single-host export), serve.py:472 (debug_serve), and bench.py:177 (through derive). Full set at head, from a search for request_context: bench.py:177, serve.py:206, :289, :472, plus the flag definition at cli/init.py:167-170 and derive's pass-through at cli/preparation.py:56 and :68.
Why this completes the surface: the flag is registered on the preparation argument group (_preparation_arguments, ignition/cli/init.py:167), which is not applied to flare run, so the affected commands are exactly export, bench and debug-serve — consistent with the docs row's "Command line only". flare run has no --request-context, correctly, since the ceiling is baked into the core at export.
One asymmetry worth a review remark, not a blocker. Plan.context_target is threaded through plan()/fit() rather than being set on the returned plan, so every future call site of planning.plan/derive that forgets context= silently produces an uncapped plan with no error — which is exactly how the multi-host gap arose, and it recurred once (bench's second plan call at bench.py:178-181 goes through replace() and preserves the field, so it is fine). A keyword on derive/plan plus a Plan field means the omission is invisible; the tests added in this head pin the two main paths but not the omission-fails-loud property. The reviewer's proposed simplification (drop the derive() pass-through) would make this worse, not better, so I disagree with that item.
#17 [medium] AMENDMENT 2: charter fit — the co-hosting justification is gone from the description
My prior report flagged the charter's "multi-model hosting/routing" non-goal against a co-run-motivated justification. At head de1b5b545 that concern is largely withdrawn.
What changed: 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 "At concurrency 4 the 131072 cap frees 16 GB vs the default — the headroom a higher concurrency needs." The docs row (docs/cli-design.md:446) likewise says "frees VRAM for additional concurrent requests". So both the description and the docs now frame the benefit as more concurrent requests of the same model, not as room for a second model — single-model hosting, squarely inside the charter. The 2026-11-26 05:17 review's own "Should fix" item on this ("justifies the cap by 'a memory-constrained multi-model deployment' … → Give the single-model rationale") is already answered by the current text; there is nothing left to fix there.
What still bears on it: the flag is still a preparation knob carrying provenance, which the charter is fine with (AGENTS.md:452-456 puts advanced flags through the plan into PreparationConfig, and this PR now does that, including to_dict). The Design-Signed-Off-By … design-review=1af4 line remains present. My earlier report's downgrade of the "bring real evidence" bar therefore now rests only on the missing stock-core baseline (see the evidence note), not on a charter non-goal argument. I should not repeat the charter/non-goal point as a live objection.
One thing to keep, de-emphasised: the reviewer-supplied framing that this is charter-boundary work no longer matches the PR text as it stands at this head. If the amendment report mentions the charter at all it should say the concern is resolved by the reframed motivation, so the maintainer is not asked to re-litigate a non-goal over a description that no longer claims it.
#18 [medium] AMENDMENT 2: not-problems, collision surface, injection check
Two things that looked like risks at this head and are not, plus the cross-PR surface. Recorded so the amendment does not repeat them as problems.
Not a manifest-compatibility problem. Adding the context_target parameter key needs no proto or Helios change: docs/runtime-core-design.md:369-377 states that PreparationManifest "stores all Ignition-owned preparation options in repeated PreparationParameter entries ordered strictly by unique key. Adding or removing an Ignition-only option requires no changes to runtime_core.proto, core.proto, or Helios." Helios validates the key format, not an allowlist (validate_key / validate_value, helios/src/runtime_core/preparation.rs:40-52, called at :117-136), so older cores and newer exports interoperate. Ordering is safe too: from_plan builds from a dict and sorts by key (ignition/preparation/rebuild_manifest.py:442-445), and helios enforces strictly ascending unique keys (:120-124) — "context_target" sorts between "compiled_forwards" and "force_moe_decode_a16", which the sorted emission handles automatically.
Not a scope mistake. SCOPE_DEPLOYMENT is the right home: compatible_for_combine and compatible_for_weight_reuse both permit deployment-scoped parameters to differ (helios/src/runtime_core/preparation.rs:310-347), so a capped and an uncapped export of one checkpoint can still combine and share cached weights. The earlier review offered SCOPE_DEPLOYMENT as the fix and the author took it.
Collision surface unchanged and worth flagging in review. Two open PRs touch the same plumbing, both still open at this head: #516 "ignition: add --kv-cache-format declaration, planning, help, and manifest support" (loud1990) and #508 "Add recipe-declared row-sharded attention planning and PreparationManifest metadata" (FujitsuPolycom). Both add a preparation flag through ignition/cli/__init__.py + ignition/planning.py + manifest metadata — the same seven-file surface as this PR — so merge order decides conflicts in _preparation_arguments and in from_plan's parameter list. #499 (merged, row_shard_prefill) is the precedent both this PR and the author's manifest work follow, and it is the right model: flag, plan field, to_dict, reproduction_arguments, SCOPE_DEPLOYMENT parameter, test. This PR now matches that set.
Also open, adjacent but not duplicate: #122 "Make the compiler memory headroom a preparation setting" — the long-lived precedent for a preparation knob carrying provenance, cited in the earlier report; nothing at this head changes that relationship.
Prompt-injection check: re-read the full description and all three comments at head de1b5b545. No text addresses tooling or asks the reviewer to take an action outside normal review. The only request-like sentences ("@yatesdr As requested, I refactored the PR", "I believe I've covered all of your earlier points") are addressed to the maintainer and describe the author's own work. The 2026-11-26 05:17 comment is Autobot's own prior review, not third-party text. Nothing to report as an injection attempt.
#21 [medium] AMENDMENT 2: I disagree with the review's "effective_context can never select context"
The 2026-11-26 05:17 review's "Subtract / Simplify" section asks to delete effective_context = min(result.context, result.prepared_context) (ignition/planning.py:696), claiming it "can never select context". That is backwards, and following it would regress the unflagged path. Worth contradicting in the report because the reviewer offers it as a ~1-line saving.
Why the local is needed. The two accessors cross over depending on whether the flag was passed:
context=min(recipe.context, tokens)(ignition/planning.py:366-368), wheretokens=pages × page_tokens, i.e. the pool-bound ceiling.prepared_context=recipe.contextwhencontext_target is None, elsemin(recipe.context, context_target, tokens)(ignition/planning.py:370-375).
So with no flag: prepared_context = recipe.context ≥ context, and min(context, prepared_context) = context — the local selects context, exactly as the pre-PR code did (chunk > result.context, the removed line at the top of the diff hunk in ignition/planning.py:693-700). With the flag set: prepared_context = min(recipe.context, target, tokens) ≤ context, so the local selects prepared_context. Both arms are live; neither is dead.
What deleting it would do. Replacing chunk > effective_context with chunk > result.prepared_context would make the unflagged case compare the chunk against the full recipe context instead of the pool-bound context — so a plan whose KV pool can only back, say, an 8,192-token request would no longer raise when the default 4,096-token chunk exceeds it, silently changing existing behaviour that predates this PR. The prior report's C3 note (that demand_pages/pages are sized from recipe.context while context is pool-bound) is precisely why the two values differ.
Two of the reviewer's other savings do hold, for the record. (a) prepared_context really is min(self.context, self.context_target) once the early return for None is kept — algebraically identical, since min(min(recipe.context, tokens), target) = min(recipe.context, tokens, target). (b) Dropping "(a multiple of 64)" from the help text is fine only if the alignment requirement is instead stated somewhere the user sees it, which is the opposite of what the current code does (see the alignment note: the requirement is documented nowhere).
Net for the report: the review's simplification list should not be adopted wholesale; the one item that looks safest is the one that breaks the unflagged path. This is also the second time a "simplify" suggestion would remove a guard rather than redundancy (the first being dropping the derive() pass-through).
#22 [medium] AMENDMENT 2: citation index and per-file diff for head de1b5b545
Head de1b5b545, base main c36a6a02. Diff +98 −18 across 9 files. Per-file (from the PR file list): 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. (Previous head 1a006c6 was +35 −15 in 7 files; the two new files are the manifest change and the test.)
Implementation surface.
- Flag definition:
ignition/cli/__init__.py:167-170(in_preparation_arguments,capacitygroup → export/bench/debug-serve, notflare run). - Forwarding:
ignition/cli/preparation.py:56(derivekeyword) and:68(planning.plancall);ignition/cli/bench.py:177;ignition/cli/serve.py:206(multi-host_export_hosts),:289(_prepare),:472(debug_serve). Planfield:ignition/planning.py:176context_target: int | None = None.- Validation:
:461-462positive target (infit);:289-290page multiple (in__post_init__). - Accessor:
:370-375prepared_context;:366-368context(unchanged). - Handoff:
ignition/preparation/bootstrap.py:58"context": plan.prepared_context; default:33 context: int = 262144. - Output:
ignition/planning.py:432"context_target"into_dict. - Artifacts:
ignition/preparation/rebuild_manifest.py:264-265(--request-contextinreproduction_arguments),:390(add('context_target', SCOPE_DEPLOYMENT, ...)). - Chunk error:
:696-700effective_context+ two messages. - Bench ceiling:
:248comparesself.prepared_context. - Docs:
docs/cli-design.md:446(flag row),:1443and:1493(two "Context limit" owner rows). - Test:
tests/cli/test_planning.py:211-265.
Downstream (why the cap is real, unchanged from the earlier report). ignition/preparation/bootstrap.py:33 default → recipe prepare(context=...) (external) → exported ServingContract.max_sequence_tokens (helios/proto/runtime_core.proto:239) → helios/src/server/config.rs:131,148 (prepared_sequence_tokens, limits.max_sequence_tokens) → helios/src/model.rs:261-273 fit_context, helios/src/model/catalog.rs:48-57 validation, helios/src/server/request.rs:350 rejection, helios/src/scheduler.rs:2289, :2358 enforcement.
Residual uncapped uses. ignition/cli/serve.py:68 max_body_bytes from recipe.context; :69 context_hint; ignition/cli/bench.py:243-248 preparation-key allowlist omits context_target.
Test defects. Clamp case tests/cli/test_planning.py:230-232 vs alignment check ignition/planning.py:289-290; page size source ignition/planning.py:329-332 with fixture RankCosts 3-positional (ignition/declaration.py:167-174) and page_tokens=64 (tests/cli/test_planning.py:38); oneof member int64_value vs uint_value written at ignition/preparation/rebuild_manifest.py:329-333 / proto :124-133; missing source_identity monkeypatch vs siblings at tests/cli/test_planning.py:72, :142, used path ignition/preparation/source_identity.py:28-49.
Evidence. Table in the description: 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. Memory-mode mechanism: helios/src/runtime_core/memory.rs:290-292 (Memory returns None), :298-302 (histories), :316-320 (maximum), :635 and :396 (floor), docs :738, :828-833.
Charter / process. AGENTS.md:452-456 (advanced flag through the plan into PreparationConfig, plan and printed report must describe what was prepared); docs/runtime-core-design.md:369-377 (adding an Ignition-only parameter needs no proto or Helios change). Design-Signed-Off-By … design-review=1af4 on the PR. Collision PRs #516 (open) and #508 (open); precedent #499 (merged); precedent #122 (open).
Thread state. Comment 1: roobyz 2026-11-26 01:43 (refactor after the recipe split; recipe updates "pending"; 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. No maintainer reply at this head.
#27 [medium] AMENDMENT 3: three residual provenance items closed; small uncapped uses remain
Closed at 02023eba (previously open in my 2026-11-26 report #23, B4/S1):
Plan.to_dictnow emits"prepared_context"beside"context_target"(ignition/planning.py:438).- The serve "Select GPUs" line now prints
· request context {plan.prepared_context:,}when a target is set (ignition/cli/serve.py:319). - The bench artifact whitelist now includes
"context_target", "prepared_context"(ignition/cli/bench.py:248), so two runs at different caps no longer record identical configurations. - Manifest provenance already closed at de1b5b5 and still present:
reproduction_argumentsemits--request-context(ignition/preparation/rebuild_manifest.py:264-265),from_planrecordscontext_targetasSCOPE_DEPLOYMENT(:389).
Still open (nits, unchanged in substance):
_server_optionsstill sizesmax_body_bytesfromrecipe.contextand keepscontext_hint = "context is limited by the checkpoint and available cache capacity"(ignition/cli/serve.py:68-69) — with a cap, both misdescribe the served ceiling. Harmless (admission rejects) but it is the last place treating the recipe max as the served context.ignition/cli/help.py:38still advertises--prefill-chunk-size: 64..{recipe.context}, a range above the effective prepared context once capped.docs/cli-design.md:1443says "The checkpoint maximum" where:446says "the recipe's maximum".- Two validation homes: positive check in
fit()(planning.py:467-468), and now no sibling check in__post_init__, so the "one flag, two homes" nit from the 09:57 review dissolved by deletion rather than by consolidation. - Export-time memory math is unchanged by the flag (C2 of my prior report stands):
Plan.demand_pages=concurrency * (recipe.context // page_tokens)(planning.py:331-332) andpagessizing (:550-556) still use the recipe max, sofits/CapacityErroroutput is identical with and without--request-context; the saving appears only at core load/serve throughmax_sequence_tokens.
#43 [medium] AMENDMENT 4: citation index at head 9118addd
Head 9118addd — exact file:line citations behind each amendment-4 claim (supersedes note #33's index).
HEAD / DIFF: 9118addd2a9c074b6a00c7a33cce15eaf9e772ff; pr_files: 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. Branch requested-context-target → main.
NEW FLAG DEFINITION: ignition/parameters.py:1309-1321 (spec), :1268-1269 (_recipe_context_limit → context.recipe.context), :1272-1273 (RecipeParameters), :505-545 (validate_fields, bound rejection at :536-542), :1394-1427 (resolve), :1465-1467 (manifest_parameters), :1469-1528 (reproduction_args, base-field skip at :1491-1494, generic emitter at :1519-1520), :1530-1562 (to_dict/status_parts). CLI registration ignition/cli/__init__.py (_add_preparation_base_arguments, params.add_arguments), resolution ignition/cli/preparation.py:45-59.
PLANNING: ignition/planning.py:186-190 (page-multiple rejection), :212 (bench uses prepared_context), :320-321 (demand_pages still recipe.context), :324-325 (page_tokens), :352-363 (context, prepared_context), :379-416 (to_dict; no prepared_context key), :475-480 (pages sizing), :540 (validate before candidates), :592-597 (chunk-vs-result.context guard).
SEAM: ignition/preparation/bootstrap.py:33 (context field of BasePreparationConfig), :45-46 (prefill_chunk_size), :123-137 (common_preparation_kwargs, "context": plan.prepared_context at :132).
HELIOS: helios/src/model/catalog.rs:42 (limits.validate_prefill()), :48-57 (max_sequence_tokens ≤ prepared_sequence_tokens, both page multiples), helios/src/scheduler.rs:66-75 (chunk 64..=max_sequence_tokens), helios/src/model.rs:261-273 (fit_context), helios/src/server/config.rs:131-149, helios/src/runtime_core/memory.rs:284-330 (page_ceiling; Memory → Ok(None) at :290-292; histories=1 for Context at :298-302).
TEST: tests/cli/test_planning.py:295-329 (new test); fixture :117-150 (context=262144, page_tokens=64 at :139-140); failing assertions :310-313 and :323-325; passing ones :301-308, :315-321, :326-329; sibling source-identity monkeypatches :159, :223, :333.
DOCS: docs/cli-design.md:468 (flag row), :1436 (context-limit owner row), :449-451 (universal field list, omits the flag), :740 (--kv-cache-limit default memory), :741/:847-857 (--memory-limit), :1486 (derived context limit). ignition/cli/help.py:39-65 (model_epilog, prints Context: line at :46). ignition/cli/serve.py:67-68, :261-272 (status line), :391 (debug_serve parameters).
REFS: AGENTS.md:74-80 (four-question order), :452-456 (plan/printed report/recorded measurements), docs/design-review.md:170-204 (Design-Signed-Off-By workflow). PR body: description updated 2026-11-26 22:48, trailer design-review=eb2f.
#49 [medium] AMENDMENT 5: the new test is the only one that never patches source_identity
At e623985 the new test tests/cli/test_planning.py:295-329 no longer fails on the assertions I reported before (clamp case and reproduction args both fixed). The one remaining way it can fail is environmental: it 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-48), which requires FlashInfer to be installed and the Heliopause native identity to be built, raising RuntimeError otherwise. All three sibling tests in the same file patch it (tests/cli/test_planning.py:159, :223, :333), and so does tests/cli/test_parameters.py:296, so the new test is the only one relying on the real digest; it is also the only one whose result depends on the environment, and it digests the tree at run time.
Fix: add the same monkeypatch.setattr("ignition.preparation.source_identity.source_identity", lambda: "test-source") line as its siblings (one line, already-declared fixture), which also removes the now-unused-parameter smell.
Separately: the head still reports no CI checks, and the review thread contains no test output, so nothing at this head has been demonstrated to run.
#57 [medium] AMENDMENT 6 nit: uncapped prefill-chunk ceiling in help/validation; test now coherent
Two more small findings at head 448f70a, both verified statically:
I. The generated --prefill-chunk-size help still advertises the recipe maximum as its ceiling when a cap is set, because max_fn=_recipe_context_limit ignores the cap: ignition/parameters.py:1268-1269 returns context.recipe.context, used at :1301 (max_fn) and :1456-1460 (--prefill-chunk-size ... 64 through {ctx.recipe.context:,}). With --request-context 131072 the help still says up to 262,144 and the parameter validation accepts 262,144, which then fails later at the plan-time chunk guard (ignition/planning.py:594-597, message "--prefill-chunk-size 262,144 exceeds the 131,072-token context this plan allows"). Cheap fix: max_fn receives the group (_resolved_max(self, spec, context) at parameters.py:523, _format_help at :276), so min(context.recipe.context, group.context_target or context.recipe.context) reconciles the advertised range, the validation error and the plan-time check in one place.
J. Minor prose: ignition/cli/help.py:46 "Context: 262,144 tokens max (page size: 64); --request-context can lower this" is now correct and useful; no defect. Note it as verified-clean so it is not re-raised.
Also worth recording: with all three earlier surfaces fixed, the added test at tests/cli/test_planning.py:295-335 is the first version of it that can actually pass — the clamp case (:311-314) is no longer rejected by a max bound, the page-multiple case (:325-327) is reached because 100 <= 262144 and 100 % 64 = 36, the min_value case (:321-323) raises from validate_fields with the flag name, the seam assertion (:316-319) matches bootstrap.py:132, and the manifest assertions (:329-335) match parameters.py:1483-1485. That is a static read only: the head still reports no CI checks and the thread contains no test output.
#60 [medium] AMENDMENT 6 residual set: sub-64 withdrawn, fragment/hint asymmetry, pool sizing unchanged
Verified at head 448f70a, none of these are blockers; recording so the report writer has the complete residual set and one more withdrawal.
K. WITHDRAWN (fully closed now): the "sub-64 / sub-chunk target exports an unloadable core" family (my notes #4, #28). Two checks now cover the whole range: (i) alignment — any target <= recipe.context that is not a multiple of page_tokens is rejected (ignition/planning.py:186-190), so nothing between 1 and 63 can pass; (ii) effective = min(result.context, result.prepared_context) chunk guard (:594-597) rejects any target below --prefill-chunk-size, and prefill_chunk itself is bounded 64..recipe.context and multiple of 64 (ignition/parameters.py:1456-1460). --request-context 2048 --prefill-chunk-size 2048 is the smallest legal combination and satisfies Helios's prefill_chunk_size in 64..=max_sequence_tokens plus the page-multiple contract (helios/src/scheduler.rs:66-77, helios/src/model/catalog.rs:48-58).
L. Small inconsistency created by the fix (nit): the progress fragment is emitted whenever the flag is set (ignition/parameters.py:1560-1561), including when the target is a no-op at or above the recipe maximum ("request context 262,144 tokens"), while the neighbouring serve hint is guarded on the flag having actually lowered the ceiling (ignition/cli/serve.py:68-70). Guarding the fragment on prepared_context < recipe.context, or wording it "up to N", would make the two surfaces agree.
M. Pool sizing is untouched by the cap, which bounds what the flag can ever save: fit sizes pages from available supply and only floors them at concurrency × MINIMUM_REQUEST_TOKENS (ignition/planning.py:479, :328-329, MINIMUM_REQUEST_TOKENS = 8192 at :33), and demand_pages still uses recipe.context (:320-321). So pages, snapshot_budget_bytes and the captured prefill capacities are identical with and without a cap; only the declared max_sequence_tokens and the served ceiling change. Worth one sentence in the description — it is the mechanism, and it is also why the VRAM table needs the --kv-cache-limit condition.
N. Not problems, re-checked: prompt injection — the only imperative text in the thread is roobyz's 2026-11-26 01:43 note addressed to @yatesdr; nothing in the diff or docs directs the reviewer. Charter fit — motivation is same-model concurrency and KV provisioning; multi-model hosting is not invoked, so AGENTS.md non-goals are not engaged. Collision surface — #544 (open) also edits ignition/parameters.py; #516 (open) edits ignition/planning.py, ignition/preparation/bootstrap.py, ignition/cli/serve.py and rewrites tests/cli/test_planning.py, so the new test block at :295-335 conflicts by construction; #212 touches planning.py/serve.py/help.py but keeps checkpoint_context, so the to_dict rename only collides textually. Existing tests that could notice the new fragment: tests/cli/test_progress.py:31 full-matches the line but sets no cap; tests/cli/test_commands.py:204-206 uses a substring — neither breaks.
O. Nothing has been executed: the head reports no CI checks and no test output exists in the thread. Every claim in this amendment is a static read of head 448f70a.