Explore report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/0ca44774-494e-4bce-b03e-ef70d0bf8dbe.md

Amendments to the 2026-11-26 report on PR #533 ("Cap the per-request context target")

New event: head 9118addd → e623985 (e6239855, roobyz, 2026-11-26), diff now +79/−10 in 8 files (was +69/−5 in 6). Per-file: 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. The PR body was rewritten again and now documents the no-max_fn clamp, the gated alignment check, the chunk bound and the reproduction_args override; the evidence table caption now names --kv-cache-limit concurrency. Thread state unchanged from my last report: last human comment is roobyz's 2026-11-26 01:43 note, the last Autobot review is 2026-11-27 01:01 (Changes Requested), no maintainer reply, no CI checks reported.

Everything below is an amendment. Findings not amended here stand as written in my 2026-11-26 report (run 1386) on head 9118addd; line citations from that report are obsolete because the diff moved.

Key findings (amendments only)

  1. Four blockers withdrawn — genuinely fixed at this head. (a) --request-context reaches reproduction args: ignition/parameters.py:1484-1485 hand-emits it beside --max-concurrency/--prefill-chunk-size, so the base-field skip at :1492-1495 no longer matters and flare inspect reproduces a capped core; the PR's own assertion at tests/cli/test_planning.py:324-325 now holds. (b) Above-maximum targets clamp: max_fn=_recipe_context_limit is gone from the field (only min_value=1 remains, ignition/parameters.py:1309-1320), so Plan.prepared_context's min() (ignition/planning.py:357-363) is live and matches docs/cli-design.md:468; the clamp case at tests/cli/test_planning.py:310-313 passes. (c) The chunk guard includes the cap: ignition/planning.py:594 effective = min(result.context, result.prepared_context), so --request-context 1024 with the default 4096 chunk is now rejected at export instead of producing a core Helios refuses at load (helios/src/scheduler.rs:66-75 via helios/src/model/catalog.rs:42). (d) The serve line reports the flag again: status_label at ignition/parameters.py:1318, rendered at :1555-1560, printed at ignition/cli/serve.py:271.
  2. New blocker — the status line reports the requested target, not the context the core serves. The label receives the raw field value (ignition/parameters.py:1558 spec.status_label(getattr(self, dc_field.name))) and the field now has no upper bound (:1309-1320), so ignition export MODEL --request-context 500000 on a 256K recipe — a documented no-op serving 262,144 tokens (ignition/planning.py:357-363) — announces "request context 500,000 tokens" (ignition/cli/serve.py:271). The startup report contradicts docs/cli-design.md:468, the accessor docstring (ignition/planning.py:359) and the AGENTS.md:452-456 requirement that the printed report describe what was prepared.
  3. Small — the added test is the only one in its file that never patches source_identity(). tests/cli/test_planning.py:323 calls rebuild_manifest.from_plan, which calls the real digest (ignition/preparation/rebuild_manifest.py:327 → ignition/preparation/source_identity.py:39-48, which raises RuntimeError("the preparation environment requires FlashInfer") without FlashInfer and needs a built Heliopause identity). Siblings at tests/cli/test_planning.py:333 (and :159, :223; also tests/cli/test_parameters.py:296) patch it; this test declares monkeypatch and does not use it. It is the only test whose result depends on the environment and on a digest of the tree at run time.
  4. Small — the flag help states a rule the code skips. ignition/parameters.py:1319 says the cap "must be a multiple of the page token count", but ignition/planning.py:187 gates the alignment check on target <= self.recipe.context, so --request-context 262145 on a 256K recipe is accepted (harmless — it resolves to the aligned recipe maximum). docs/cli-design.md:468 states no alignment rule at all, so the requirement is documented only in generated help.
  5. Residual, unchanged, and still the substantive objection: the evidence cannot answer #454's question. The table compares cap levels only (unset / 196608 / 131072, Qwen3.8-27B, RTX PRO 6000 Blackwell, concurrency 1–4, 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 returns Ok(None) at :290-292; documented docs/cli-design.md:740, semantics :828-845), and (b) a reduced --memory-limit/[memory] reserve row (docs/cli-design.md:741, :847-861). Without either, the table cannot show what an export-time flag buys over the pre-existing runtime flags.

A. The new blocker in detail — a provenance defect created by the last fix

The two changes made at this head are individually correct and jointly wrong:

RecipeParameters.status_parts calls every label with the raw field value (ignition/parameters.py:1555-1560), and ignition/cli/serve.py:271 prints the joined parts on the Select GPUs. line. Every other fragment on that line is computed from resolved state (concurrency {self.max_concurrency}, subgroups' status_parts(ctx)), and status_parts receives a ParameterContext that carries recipe (ignition/parameters.py:116-126, :1541-1542). So the fix is available locally: clamp in the label against context.recipe.context, or print plan.prepared_context at serve.py:271 as the pre-refactor code did.

Why it matters beyond cosmetics: AGENTS.md:452-456 assigns exactly this role to the printed report ("the plan, its printed report, and its recorded measurements describe what was prepared"). A line announcing 500,000 tokens on a core that serves 262,144 is the one surface an operator reads before allocating KV by hand. The defect is the mirror of the one just closed: clamp and label were added in the same commit and never reconciled.

B. What the added test does now

tests/cli/test_planning.py:295-329 no longer fails on either of the two assertions I reported at 9118addd. Verified static read at this head:

The only remaining failure mode is environmental (finding 3): the unpatched source_identity(). Fix is one line, monkeypatch.setattr("ignition.preparation.source_identity.source_identity", lambda: "test-source"), identical to :333, and it also removes the now-unused fixture parameter.

C. Description and docs

D. Not problems — re-checked at this head, do not re-raise

E. Verdict and fix order (amended)

Down from "not mergeable / four blockers" (amendment 4) to one blocker plus small fixes; recommendation stays request changes but only for the reporting defect. Order for the author:

  1. Print the effective context on the Select GPUs. line — clamp inside status_label via context.recipe.context, or print plan.prepared_context at ignition/cli/serve.py:271 (ignition/parameters.py:1318).
  2. Patch source_identity in the new test (tests/cli/test_planning.py:295-296), as its siblings do at :333.
  3. Reconcile the help's page-multiple sentence with the gated check at ignition/planning.py:187, and state the rule (or its absence for no-ops) in docs/cli-design.md:468.
  4. Add the two missing evidence rows: a stock core under --kv-cache-limit context, and a reduced --memory-limit/[memory] reserve row.
  5. Condition the payoff claim in docs/cli-design.md:468 on the KV mode.

Keep: the declarative param(...) shape, Plan.prepared_context with its early return, the gated alignment check, the min(result.context, result.prepared_context) chunk guard, the bootstrap.py:132 seam, the reproduction_args emit, and the absence of any Helios change.

Open questions / not determinable from this tree

  1. Has anything been run at this head? No CI checks are reported and no test output appears in the thread. My reading is static; pytest tests/cli/test_planning.py would settle whether the source_identity dependency bites in CI.
  2. Is the 500,000-token status line deliberate? I cannot tell from the diff whether the author intended the label to show the request or the served context; the docs row and the accessor docstring both say "smaller of N and the recipe maximum", so if the label is deliberate the docs are wrong instead.
  3. Is there a page-alignment rule for above-maximum targets? The code says no (the check is gated), the help says yes. One of the two must change; nothing in the tree records which was intended.
  4. Does the flag's motivation survive the runtime-flag comparison at all? I could not find a measurement anywhere in the tree or thread that separates the export-time cap from --kv-cache-limit context plus --memory-limit; without one, the benefit claim remains unproven rather than wrong.