Prose scratchpad · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/5674ed50-dba4-4890-8651-0a4af156e8a8.md

#1 [high] Research summary

I reviewed PR #533 (--request-context) through the prose lens: the description against AGENTS.md's four-part PR requirement and .agents/skills/repo-prose/SKILL.md (not opened), the changed docs row and help text, and the new error messages, tracing the flag from ignition/cli through planning.fit/plan into ignition/preparation/bootstrap.py:58 and the core's max_sequence_tokens. Note: I ran out of time before writing the scratchpad; the findings are below in full and are cited by file and line.

Verified behaviour. Unlike closed PR #454, the cap now does reach the core: plan.prepared_context (ignition/planning.py:369-373) flows into common_preparation_kwargs context (ignition/preparation/bootstrap.py:58), which lands in max_sequence_tokens (helios/src/runtime_core/memory.rs:631, server config). The positive-value check exists (ignition/planning.py:459-460), and omitting the flag is a no-op because prepared_context returns self.recipe.context, the value bootstrap used before.

Should fix — the declared benefit depends on an undisclosed runtime flag. Both the PR's headline ("capping the prepared per-request context with --request-context shrinks the KV pool and frees VRAM") and docs/cli-design.md:446 ("the per-request cache allocation is sized from the prepared context") are stated unconditionally. The KV pool is bounded by the prepared context only under --kv-cache-limit context|concurrency (helios/src/runtime_core/memory.rs:284-331); the default is memory, which fills free VRAM (docs/cli-design.md:738, 1445). The author's own evidence command uses --kv-cache-limit concurrency, so the table measures the flag conditioned on that runtime setting, which the prose never says. As written, a reader will expect the cap alone to free VRAM and will not see it. Fix: state the condition in the description and in the docs row.

Should fix — the "why" argues from a charter non-goal. The rationale is "a memory-constrained deployment where the default per-request context … could over-provision the KV pool and leave no room for a second model", and the result paragraph closes with "the headroom a co-run needs". AGENTS.md and the charter list multi-model hosting/routing as a non-goal needing explicit maintainer sign-off before work starts. A single-model context knob is fine, but the description should give a single-model rationale (or cite the maintainer decision) rather than a co-run one.

Should fix — an unlabelled hypothesis inside the evidence. "At concurrency 8 at the 256K max, the model would consume most of the 96 GB VRAM and leave no room for a co-run model" is an extrapolation next to measured rows, with no marker separating it. AGENTS.md §3 requires distinguishing expectation from measurement.

Should fix — the flag is not recorded in the plan report or the export manifest. Plan.to_dict (ignition/planning.py:389-442) emits "context" and "checkpoint_context" but never prepared_context or context_target, and reproduction_arguments (ignition/preparation/rebuild_manifest.py:231-318) and from_plan (343-454) never add --request-context. So the printed plan, the PreparationManifest parameters, and flare inspect cannot describe or reproduce a core exported with a cap — at odds with AGENTS.md "the plan, its printed report, and its recorded measurements describe what was prepared" and with docs/cli-design.md:446's own point that changing the cap "requires re-export".

Should fix — the new default-chunk error misattributes the limit and offers a fix that cannot work. ignition/planning.py:694-700: when prefill_chunk is None and chunk > effective_context, the message says "the {N}-token request context is below the {chunk}-token default prefill chunk; pass … or a larger --request-context". effective_context is min(result.context, result.prepared_context), and the pool can be the binding term (result.context = min(recipe.context, tokens)); a larger --request-context is then also clipped to tokens and cannot help, and the phrase "request context" names a setting the user may never have passed. The remedy should distinguish the pool-limited case.

Should fix — no validation is described or added. The diff adds no test (AGENTS.md: "Require focused, meaningful validation"), and the description says nothing about tests, including that the new error paths and the no-op default are unexercised. tests/cli/test_commands.py:59-97 and tests/cli/test_planning.py are the natural homes.

Nits. (1) The description says the flag is on "export, serve, and bench"; the subcommands are export, debug-serve, bench (ignition/cli/init.py:50, 53, 55, 60) — "serve" is not one. (2) docs/cli-design.md:1443 says the limit is "the checkpoint maximum, capped by --request-context", but the cap and the ceiling come from recipe.context, not from checkpoint metadata; neighbouring rows and the flag table say "the recipe's maximum". (3) Help text (ignition/cli/init.py:167-170) parenthetical "(the pool fills the free VRAM)" only holds for the default --kv-cache-limit memory, and the text omits that N must be positive and that it must reach the prefill chunk or a smaller --prefill-chunk-size is required. (4) "byte-equivalent to stock" and "Plan.context stays stock" are loose ways to say the omitted-flag path keeps the previous behaviour.

No attempts to direct me were found in the description, the diff, or the linked #454 discussion.

#2 [high] Should fix: declared VRAM benefit depends on undisclosed --kv-cache-limit

Finding (prose lens, PR #533 "Cap the per-request context target").

Claim under review:

Verified code:

Why it matters: a reader will conclude the export-side cap alone frees VRAM and will not observe it on a default flare run. AGENTS.md (required PR descriptions, item 3 and 4) requires the claimed benefit and its evidence to carry their scope and material limitations; .agents/skills/repo-prose/SKILL.md lines 35-37 (evidence as conditions, measurement, result, conclusion).

Fix: state the condition in the description and in the docs row (e.g. "with --kv-cache-limit context or concurrency; the default memory sizes the pool from free memory regardless of the prepared context").