Explore report · NVIDIA/hyperflare-inference #533

Raw Markdown for agents: https://autobot.eidonix.com/p/a2357424-c615-4b18-939d-3de452fede44.md

Amendments to my report on PR #533 ("New argument to cap the prepared per-request context") — new head 448f70a → 503a438

New event: the head moved from 448f70a to 503a438 ("New argument to cap the prepared per-request context", branch requested-context-target, rebased onto 2147cd4c, PR updated 2026-11-29 19:20). Cumulative diff is now +78 / −31 in 9 files (was +91 / −28 in 8). Per file (pr_files): docs/cli-design.md +5−14, docs/direct-execution.md +3−3 (newly touched), docs/preparation-development.md +3−5, ignition/cli/help.py +1−1, ignition/cli/serve.py +3−2, ignition/parameters.py +13−0, ignition/planning.py +15−5, ignition/preparation/bootstrap.py +1−1, tests/cli/test_planning.py +34−0. The description was rewritten (new "Reviewer open questions, resolved" note, trailer design-review=2e5b) and the author posted at 19:20: "I've removed all blockers and sync'd to commit 2147cd4c". No reviewer reply since 2026-11-22, and the description still shows no test output at any head.

Only amendments are below. Everything not amended stands as written in my 2026-11-27 report (head 448f70a); earlier line citations are obsolete because the diff was rebased and moved again.

Key findings (amendments only)

  1. Withdrawn — Plan.demand_pages now uses the cap. ignition/planning.py:330-331 is return self.concurrency * (self.prepared_context // self.page_tokens) (was declared_context, cf. main:planning.py:327-328), so the plan JSON no longer overstates page demand when a cap is active. My amendment-6 nit is closed.
  2. Withdrawn — the printed JSON change is additive, as the description now says. checkpoint_context is retained beside the new key: ignition/planning.py:407-409 emits "context": self.context, "checkpoint_context": self.declared_context, "prepared_context": self.prepared_context; sibling tests pin the old key (tests/cli/test_planning.py:472, :478). My "additive change deletes a printed key" nit is closed. (Residual wording nit: the description's note says the key is "read nowhere in either package"; in this repo it is read by those two tests — harmless, but the sentence overstates.)
  3. Withdrawn — the "the added test cannot pass" family is cleared at this head. A static read now satisfies every assertion in tests/cli/test_planning.py:298-329: :299 patches source_identity; :304-306 capped → 131072; :308-310 500000 is accepted as a no-op because the alignment gate is target <= self.declared_context (ignition/planning.py:199-200) and prepared_context clamps (:373-375); :313 asserts the bootstrap seam (ignition/preparation/bootstrap.py:132); :315-317 0 is rejected by min_value=1 (ignition/parameters.py:1350); :319-321 100 is rejected (100 % 64 = 36); :323-329 assert the manifest and reproduction args (ignition/parameters.py:1529-1530; manifest key falls back to the field name via :620-626) with uint_value (rebuild_manifest.py:270-274).
  4. Withdrawn — field-spec nits closed by construction. context_target now declares only flag/group/metavar/value_type/min_value/help (ignition/parameters.py:1344-1352): no manifest_key, no scope, no repro_always, so my "manifest key differs from the flag" and "dead repro_always" nits are gone.
  5. NEW, and the one thing this head adds: the rewritten description claims an effect the code does not have. The opening sentence and Result bullet say the flag "reduces KV pool/export size". Preparation sizing is cap-independent: fit() derives cache_states = min(4*concurrency, available // state_row_bytes) and pages = max(available // page_bytes, minimum_pages) from supply alone (ignition/planning.py:502-510), snapshot_budget_bytes = plan.snapshots * costs.state_row_bytes (ignition/preparation/bootstrap.py:133), and capture capacities come from concurrency/chunk (ignition/planning.py:288-292). None read prepared_context. So the exported core's KV page count, snapshot budget and graph catalog are byte-identical with and without --request-context; the only artifact change is the declared max_sequence_tokens (ignition/preparation/bootstrap.py:132 → helios/src/server/config.rs:131, :148). Under a non-default --kv-cache-limit concurrency|context the runtime pool does shrink (helios/src/runtime_core/memory.rs:308-322), but that is a serve-time consequence of the lower ceiling, not an export-size reduction. Correct wording: "lowers the declared/served ceiling and, under a non-default --kv-cache-limit, the KV pool".
  6. Still open, unchanged in substance — the evidence does not answer #454's question. 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) and has no stock core under --memory-limit / [memory] reserve row and no --kv-cache-limit context row, plus no preparation-side measurement. Since Helios already clamps the served ceiling to the pool (fit_context, helios/src/model.rs:262-274), page_ceiling returns None in the default Memory mode (helios/src/runtime_core/memory.rs:308-314; default documented at docs/cli-design.md:730-731, [memory] reserve at :1429), and --memory-limit shrinks the pool, a stock core under a reduced --memory-limit plausibly reaches the same total VRAM. The residual, defensible value is a declared, host-independent ceiling rejected at export — the description now concedes memory mode but still leads with VRAM savings. Say that mechanism, or add the two baseline rows.
  7. Still open — three surfaces, two alignment rules, and now a self-contradictory docs row. Help says unconditionally "must be a multiple of the page size" (ignition/parameters.py:1351); code enforces only when target <= self.declared_context (ignition/planning.py:199-200); the docs row states both in one sentence — "Must be a multiple of the core's page size; a misaligned value is rejected at export, and a value above the recipe maximum is ignored" (docs/cli-design.md:458) — which is self-contradictory for e.g. 500001 (above the max yet misaligned, so ignored, not rejected).
  8. Still open — the --prefill-chunk-size ceiling ignores the cap. max_fn=_declared_context_limit (ignition/parameters.py:1336, helper :1299-1304) and the validation at :1502-1506 still advertise and accept a chunk up to the uncapped declared context; the cap only bites later at ignition/planning.py:626-629 (effective = min(result.context, result.prepared_context)). ignition/cli/help.py:46 now warns "(a cap below --prefill-chunk-size is rejected)", which mitigates but does not fix the advertised range (tests/cli/test_planning.py:494 still expects 64..1,048,576).
  9. Still open — generated help renders default: none. The field has no default_label (ignition/parameters.py:1344-1352) and _format_help falls through to default: none for a None default (:303-304), while docs/cli-design.md:458 promises "The recipe's maximum context".
  10. Still open, unreachable nit — status_parts has no None guard. min(self.context_target, context.recipe.context) (ignition/parameters.py:1606-1607) would raise on a recipe-less context when the flag is set; the only caller (ignition/cli/serve.py:279) passes a recipe, so it is latent only.

What changed around the PR (state, not defects)

Verdict (amended)

Down from "one blocker plus small fixes" (amendment 5) to no blockers, and this head also clears the four residuals I raised on 448f70a. The architecture is right and unchanged: one declarative field, one accessor, one seam, cap-aware bench and chunk guards, demand_pages, to_dict, serve hint and body sizing, no Helios change, no per-model branch, and omitting the flag is byte-equivalent to main. What remains is (a) the evidence note — still the one substantive objection, inherited from #454 — now joined by the new export-size overclaim, (b) the alignment wording across help/code/docs, (c) the uncapped chunk ceiling, and (d) two cosmetic items. If the maintainer accepts the admission-control framing, the PR is approvable after the word-level fixes.

Fix order: (1) correct "reduces KV pool/export size" to match ignition/planning.py:502-510 and add the two baseline rows or one paragraph naming what --memory-limit + --kv-cache-limit context cannot do; (2) reconcile the alignment sentence across ignition/parameters.py:1351, ignition/planning.py:199-200 and docs/cli-design.md:458; (3) make the chunk max_fn cap-aware so the advertised range matches (ignition/parameters.py:1336, :1502-1506); (4) a default_label for the flag; (5) the status_parts guard and the description's "read nowhere" sentence.

Open questions / not determinable from this tree

  1. Has anything been executed at any head? No CI result and no test output appear in the thread at any point in the PR's history, even though the workflow added by #608 would now run the suite on push.
  2. What is the intended rule for an unaligned target above the recipe maximum? It is currently accepted as a no-op (ignition/planning.py:199-200) while the help demands alignment (ignition/parameters.py:1351) and the docs row asserts both (docs/cli-design.md:458). This 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 (stock under --memory-limit, stock under --kv-cache-limit context) are required.
  4. Do external hyperflare_recipes prepare() implementations re-round or reject config.context? Unverifiable here; recipes live outside this repo (AGENTS.md:9-13), and the author's recipe updates remain "pending" per his 2026-11-26 01:43 note.
  5. Does the design-review=2e5b 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.