Explore report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/58e16c0d-9677-4d85-8007-943d17484d3c.md

Amendments to my report on PR #533 ("Cap the per-request context target") — head e623985 → 448f70a

New event: the PR head moved from e623985 to 448f70a (roobyz, single commit; PR updated 2026-11-27 07:13). Cumulative diff is now +91 / −28 in 8 files (was +79 / −10). 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 commit appears to be the author's answer to the 2026-11-27 06:03 Autobot review, which predates it (that review still calls the seam test missing). The head still reports no CI checks and the thread contains no test output — every claim below is a static read.

Only amendments are recorded here. Findings not amended stand as written in my 2026-11-27 report (run 1474) on head e623985; earlier line citations are obsolete because the diff moved.

Key findings (amendments only)

  1. Withdrawn — my only blocker is fixed. The serve status line now prints the served context, not the requested one. RecipeParameters.status_parts emits the fragment inline with the clamp applied, 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"), and the field spec carries no status_label at all (ignition/parameters.py:1309-1319). Rendered on the Select GPUs. line (ignition/cli/serve.py:271), --request-context 500000 on the 256K fixture now reports 262,144, satisfying AGENTS.md:453-456.
  2. Withdrawn — the added test patches source_identity, and a real seam assertion was added. tests/cli/test_planning.py:296 patches it (the fixture param is now used, matching siblings at :339), and :316-319 asserts common_preparation_kwargs(capped, ...)["context"] == capped.prepared_context == 131072 != recipe.context, so reverting ignition/preparation/bootstrap.py:132 now fails the suite. This is the seam test the 06:03 review asked for.
  3. Withdrawn — the sub-64 / sub-chunk unloadable-core family is fully closed. Two checks cover the whole range: alignment rejects any target <= recipe.context that is not a page multiple (ignition/planning.py:186-190), so nothing in 1..63 can pass; and effective = min(result.context, result.prepared_context) compares against the prefill chunk (:594-597), which is itself bounded 64..recipe.context and multiple of 64 (ignition/parameters.py:1294-1302). --request-context 2048 --prefill-chunk-size 2048 is the smallest legal combination and satisfies Helios (helios/src/scheduler.rs:66-77, helios/src/model/catalog.rs:48-58).
  4. Closed residuals: Plan.to_dict now emits prepared_context (ignition/planning.py:396), replacing the readerless checkpoint_context that existed on main (main:planning.py:383; no reader anywhere at head, absent from docs); and both closed enumerations of core RecipeParameters fields were replaced by pointers to ignition/parameters.py (docs/cli-design.md:446-453, docs/preparation-development.md), so the "list omits the flag" class of defect cannot recur.
  5. Still open, and now the only substantive objection — the evidence does not answer #454's question. 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 memory documented at 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 therefore 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 at all (the cap changes neither pages nor snapshot_budget_bytes nor captured prefill capacities: ignition/planning.py:479, :133-135).
  6. Small, still open — three surfaces, two rules on page alignment. The generated help says the cap "must be a multiple of the page token count" unconditionally (ignition/parameters.py:1318), the check is gated on target <= self.recipe.context (ignition/planning.py:186-190), and the docs row states no alignment rule (docs/cli-design.md:458).
  7. Small, still open — the prefill-chunk ceiling ignores the cap. max_fn=_recipe_context_limit (ignition/parameters.py:1268-1269) returns the uncapped recipe context and is used at :1301 (--prefill-chunk-size) and in the help range, so with a cap the advertised range and the validation are wrong and the mismatch surfaces only later at ignition/planning.py:594-597. max_fn receives the group (_resolved_max, parameters.py:523), so min(context.recipe.context, group.context_target or ...) fixes it in one place.

Detail

A. Evidence — the crux, inherited from #454

The table compares cap levels only (unset / 196608 / 131072, Qwen3.8-27B, one RTX PRO 6000 Blackwell, concurrency 1–4, all under --kv-cache-limit concurrency). The author's note now discloses that condition — a genuine improvement — but it also removes the runtime-pool justification. What the table still cannot show:

Without one of those the PR cannot show what --request-context buys that the runtime flags cannot — precisely what yatesdr asked on #454 and what the resubmission was supposed to answer. As written, the defensible case is "a declared per-core ceiling, rejectable at export, independent of the host", and the body should say that in one paragraph or add the baseline rows.

B. Help / code / docs drift

C. Nits (all verified at 448f70a)

D. Where the flag now lives (for the record)

ignition/parameters.py:1309-1319 declares context_target on the universal base (min_value=1, no max_fn, manifest_key="context_target", ParameterScope.DEPLOYMENT). Repro emission is hand-written in RecipeParameters.reproduction_args at :1483-1484 (needed because the generic loop skips base-class fields, :1491-1495). The accessor is ignition/planning.py:357-363; the seam is ignition/preparation/bootstrap.py:132; guaranteed_tokens uses prepared_context (:365-368); serve body sizing and hint use it (ignition/cli/serve.py:67-70). No Helios change, no per-model branch, and omitting the flag is byte-equivalent to main.

E. Not problems — checked, do not re-raise

F. Verdict (amended)

From "one blocker plus small fixes" down to no blocker. The architecture is right and unchanged: one declarative field, one accessor, one seam, no Helios change, no per-model branch. What remains is the evidence note (the one substantive objection, inherited from #454), the alignment words, the uncapped chunk ceiling, and the nits above. "Request changes" now reaches only the evidence note; if the maintainer accepts the admission-control framing as sufficient, the PR is approvable after the word-level fixes.

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 and code; (3) make max_fn cap-aware so the --prefill-chunk-size range matches; (4) a default_label for the flag; (5) the JSON-key, fragment-guard, demand_pages and manifest_key nits.

Open questions / not determinable from this tree

  1. Has anything been executed at any head? No CI checks are reported and no test output appears in the thread at any point in the PR's history — the residual defects would surface in one pytest tests/cli/test_planning.py run.
  2. What is the intended rule for an unaligned target above the recipe maximum? Currently accepted as a no-op (ignition/planning.py:186-190); the help says it must be page-aligned (parameters.py:1318). Needs a decision, not a measurement.
  3. Is the admission-control framing acceptable to the maintainer? If yes, the evidence objection is answered by prose; if no, the two baseline rows are required.
  4. Do external hyperflare_recipes prepare() implementations re-round or reject config.context? Unverifiable here; recipes live in hyperflare_recipes (AGENTS.md:381) and the author's recipe updates remain "pending" per his 2026-11-26 01:43 note.
  5. Does the design-review=eb2f sign-off cover this shape? The trailer is still self-signed by the author, and there is no yatesdr reply at any head since 2026-11-22.