Re review report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/d4f550d4-1f62-4f4a-ad31-9c2e97068c2b.md

Recommendation: Ready To Merge

Head 1b86a19 cleanly rebases PR #533 onto c146d7b and resolves the remaining status_parts() display mismatch noted in the prior Ready To Merge review (503a438) without introducing any correctness, safety, concurrency, or compatibility regressions. The feature keeps a minimal, opt-in footprint in Ignition (RecipeParameters.context_target, Plan.prepared_context, and the single common_preparation_kwargs()["context"] seam), leaves Helios untouched, and is byte-equivalent to main when --request-context is omitted. Confirm python-cpu.yml CI is green on 1b86a19 before merging.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. ignition/planning.py:366-374, :221, :625-628 — fold prepared_context into Plan.context (optional follow-up): Plan.context currently computes min(self.declared_context, self.tokens) even though its docstring states "The longest sequence one request may reach.", forcing both the benchmark guard (:221) and prefill-chunk guard (:625-628) to repeat min(self.context, self.prepared_context). Changing Plan.context to return min(self.prepared_context, self.tokens) removes the redundant local variable and both manual min(...) intersections while making Plan.to_dict()["context"] reflect the true reachable ceiling (with identical values whenever context_target is None).

Nits

  1. ignition/parameters.py:1344-1352: Add default_label="recipe maximum" so generated --help aligns with docs/cli-design.md:454 instead of rendering default: none (ignition/parameters.py:303-304).
  2. ignition/parameters.py:1607: Pass ctx (constructed at :1587 with root=self) instead of raw context to _declared_context_limit(self, ctx) for consistency with :1590-1601.
  3. docs/cli-design.md:454 & PR description: Clarify precedence in docs/cli-design.md:454 (values above the recipe maximum clamp before the page-multiple check, matching ignition/planning.py:198), and tighten the PR description's opening sentence / Result bullet 3 so they match the Evidence note — preparation sizing (ignition/planning.py:501-510) is cap-independent and KV pool savings occur at serve time under --kv-cache-limit concurrency|context (helios/src/runtime_core/memory.rs:308-322,704-708).
  4. tests/cli/test_planning.py:298-330: Optionally add cases covering prefill_chunk > prepared_context rejection (ignition/planning.py:625-628) and status_parts() suppression when context_target >= declared (ignition/parameters.py:1606-1609).

Dropped on verification