#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.
#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).