#1 [high] PR #533 diff verified: what changes
PR #533 "Cap the per-request context target", author roobyz, head 1a006c6, base main, 7 files +35/-15. Supersedes closed PR #454 (CHANGES_REQUESTED by yatesdr).
Functional lines:
- ignition/preparation/bootstrap.py:58
"context": plan.prepared_context(wasplan.recipe.context) — the only load-bearing line;common_preparation_kwargsis the single funnel to BasePreparationConfig (bootstrap.py:33). - ignition/planning.py:368-373
Plan.prepared_context= recipe.context if context_target is None else min(recipe.context, context_target, self.tokens). - ignition/planning.py:176
context_target: int | None = Nonefield on frozen Plan. - ignition/planning.py:459-460 positivity check inside fit().
- ignition/planning.py:694-700 new 2-arm prefill-chunk error (prefill_chunk is None branch mentions --request-context).
- Plumbing: planning.py:453,535,591,674; cli/preparation.py:56,68; cli/serve.py:289,472; cli/bench.py:177; cli/init.py:167-170 flag in shared "capacity" group.
- docs/cli-design.md:446 (new flag row), :1443, :1493.
- NO tests added anywhere (verified: no reference to request_context/context_target/prepared_context under tests/).
Verified plan.context (planning.py:363-366) untouched = min(recipe.context, tokens).
#2 [high] PR 533 verified findings with citations
-
SERVE.PY MULTI-HOST DROP (blocking, confirmed): ignition/cli/serve.py:193-206
_export_hostscalls planning.plan(...) endingrow_shard_prefill=args.row_shard_prefill)— nocontext=args.request_context, while the other three sites pass it: serve.py:289 (_prepare), serve.py:472 (debug_serve), bench.py:177. Flag registered once in _preparation_arguments (cli/init.py:167-170) soexport --ranks 2 --request-context Nparses and is silently ignored -> plan.context_target stays None -> prepared_context returns recipe.context (planning.py:371-372) -> bootstrap.py:58 prepares full context. Violates charter "Don't silently ignore API fields" (#417). -
NOT RECORDED (blocking-ish, confirmed): Plan.to_dict (planning.py:389-442) emits "context": self.context (:430) + "checkpoint_context": self.recipe.context only — no context_target/prepared_context, so printed plan (serve.py:215, serve.py:485, bench.py:182) reports a context the core does not serve. reproduction_arguments (rebuild_manifest.py:231-318) never emits --request-context (compares --max-concurrency :257, --prefill-chunk-size :263, --row-shard-prefill :306). from_plan (rebuild_manifest.py:368-395) has SCOPE_DEPLOYMENT entries for prefill_chunk/max_concurrency/etc but none for request context. AGENTS.md:452-456 requires plan+printed report+recorded measurements describe what was prepared. Consequence: flare inspect reproduction command rebuilds an uncapped core (inspect.rs:453-455).
-
PAGE ALIGNMENT (blocking, confirmed): prepared_context -> BasePreparationConfig.context (bootstrap.py:33,58) -> server config "max_sequence_tokens" (helios/src/server/config.rs:131,148). helios/src/model/catalog.rs:44-71 rejects core unless BOTH prepared_sequence_tokens (:50-52) and limits.max_sequence_tokens (:54-57) are multiples of page_tokens -> "invalid prepared model configuration" (:70). Only validations added: positivity (planning.py:459-460) and prefill-chunk (planning.py:694-700). A target like 200000 with page 128 bakes an unloadable core. plan.page_tokens exists (planning.py:326-330) so it is validatable/roundable.
-
BENCH CHECK (should-fix, confirmed): Plan.post_init planning.py:248
if selection.required_context > self.context— self.context is stock min(recipe.context, tokens) (planning.py:363-366), untouched by PR. With a cap, a --contexts list above the cap passes planning and fails only in ignition/bench/runner.py:388 after full GPU prep/graph capture. -
NO TESTS (blocking for hardware referral): grep tests/ for request_context|context_target|prepared_context|request-context -> zero matches. AGENTS.md:194-199 requires tests exercising affected behaviour. Natural homes exist: tests/cli/test_planning.py:71-138 (row_shard_prefill precedent, checks to_dict + reproduction_args + manifest scope in one loop) and tests/cli/test_commands.py:59-98 (parser + common_preparation_kwargs/BasePreparationConfig).
-
VRAM CLAIM CONDITIONAL (doc/claim defect, confirmed in code): helios/src/runtime_core/memory.rs:284-331 page_ceiling returns Ok(None) for KvCacheLimit::Memory (default per docs/cli-design.md:738) — no ceiling from the prepared context; only Context/Concurrency modes compute ceil(context/page)*histories using server_config["max_sequence_tokens"] (memory.rs:631). Author's table used --kv-cache-limit concurrency. docs/cli-design.md:446 (added by PR) states the benefit unconditionally -> misleading for default flare run.
-
NO-OP PATH VERIFIED: prepared_context returns recipe.context when unset (planning.py:371-372), identical to previous bootstrap input plan.recipe.context, so existing cores/exports unchanged. Plan.context untouched; context_target default None keeps frozen-dataclass construction and dataclasses.replace working (serve.py:207-211, bench.py:178-181). 6b) Motivation = co-run/second model => charter non-goal "multi-model hosting/routing" (charter Non-Goals; AGENTS.md:171-175). PR reportedly carries Design-Signed-Off-By/design-review=1af4 (unverified). 7b) Cap clamped by plan.tokens (planning.py:373) so the baked max_sequence_tokens depends on the EXPORT HOST's free VRAM; cap above recipe max silently clamped (nit).
#3 [high] Decision: no hardware referral yet + conditional test plan
DECISION for PR 533: DO NOT refer to hardware testing. Return to author.
Reasons (all verified in-repo):
- Multi-host export drop (serve.py:193-206) produces a wrong artifact while reporting success. Cannot be hardware-tested on our fleet either (cn5 = 4 GPUs on ONE host; cn7 = 1 GB10;
--ranks > 1needs a second host + rendezvous). Must be fixed by a GPU-free unit test. - Non-page-aligned --request-context bakes an unloadable core (catalog.rs:44-71). Fix changes validation behaviour; testing before the fix only re-confirms a known bug.
- Cap absent from Plan.to_dict / reproduction_arguments / from_plan -> flare inspect reproduces an uncapped core; the artifact cannot be audited. Adding keys changes what a test would assert.
- Zero tests: grep tests/ has no reference to the flag/field/property. The PR's headline "omitting the flag is a no-op" is prose only. AGENTS.md:194-199.
- Headline VRAM benefit is conditional on --kv-cache-limit context|concurrency (memory.rs:284-291 memory=>Ok(None); docs/cli-design.md:738 default=memory). Our hardware would measure the runtime flag's behaviour, not this PR. The isolating A/B is author-side and is what the charter ("Bring real evidence", #210) requires.
- End-to-end reachability of the cap needs a recipe that maps BasePreparationConfig.context -> core max_sequence_tokens; recipes live in external local-inference-lab/hyperflare-recipes (AGENTS.md:379-384) and author says recipe updates are "pending". Testing would depend on unpublished artifacts.
- Motivation = co-run/second model = charter non-goal "multi-model hosting/routing" needing maintainer sign-off (charter Non-Goals; AGENTS.md:171-175).
Expected value if tested now: LOW. Would mostly confirm already-known defects, and any result would be invalidated by the pending fixes (alignment validation, manifest keys, one-line export plumbing).
Conditional plan AFTER fixes (for reuse): P0 (GPU-free, must pass first): pytest tests/cli/test_planning.py + test_commands.py with added cases — prepared_context unset==recipe.context; ==min(recipe.context,N,tokens); <=0 rejected; unaligned N rejected/rounded; chunk-vs-cap both arms; to_dict/reproduction_args/manifest scope; _export_hosts forwards context. P1 cn5 (RTX PRO 6000, SM120) GPU0, one model: export A (--request-context 131072) vs export B (stock). Then: /v1/models max_model_len A=131072 B=recipe max; prompt>N rejected at admission, prompt just under accepted; flare inspect shows cap + reproduction command reproduces it; nvidia-smi delta A vs B under BOTH default --kv-cache-limit memory and --kv-cache-limit concurrency (the pair isolates this PR from the runtime flag); unaligned N fails at planning. P2 regression: a pre-PR core still loads + one debug-serve with no flag matches main. Budget: ~2 exports + ~4 serve starts on cn5 ≈ 1-2 GPU-hours; skip cn7 unless ARM64 reasons appear. Skip: multi-host (no second host), and do not re-benchmark throughput (no perf claim in this PR).
#5 [high] PR 533 at head de1b5b5: verified state of previously-reported blockers
Head de1b5b5, 9 files, +98/-18 (pr_files). Confirmed in tree: FIXED since my 1a006c6 report:
- Multi-host export forwards the flag: ignition/cli/serve.py:206
row_shard_prefill=args.row_shard_prefill, context=args.request_contextin_export_hosts(reached when --ranks>1, serve.py:153-156). Other sites: serve.py:289 (_prepare), serve.py:472 (debug_serve), bench.py:177. - Page-multiple validation exists: ignition/planning.py:289-290 in Plan.post_init (but validates the RAW target, see note #2).
- Recording: Plan.to_dict gains "context_target" (planning.py:432); reproduction_arguments emits --request-context (rebuild_manifest.py:264-265); from_plan adds 'context_target' SCOPE_DEPLOYMENT (rebuild_manifest.py:390, add() skips None at :350-355).
- Bench ceiling now compares against prepared_context (planning.py:248).
- A test exists: tests/cli/test_planning.py:211-265 (+57) — but it cannot pass (note #3). STILL MISSING (measured set):
- Printed "Select GPUs" plan line serve.py:302-316 has no request-context field (only row-shard-prefill :316 etc).
- bench.py:243-248
configuration.preparationwhitelist has no context key at all → a capped bench run records identical preparation to an uncapped one. - serve.py:68
max_body_bytesstillrecipe.context * _BODY_BYTES_PER_TOKEN; serve.py:69 context_hint still "context is limited by the checkpoint and available cache capacity". - planning.py:325-326 demand_pages = concurrency * (recipe.context // page_tokens) — uncapped; printed at :440.
- ignition/cli/help.py:38 prefill-chunk help 64..{recipe.context} — stale under a cap. No CI checks on head (all reviews say so).
#6 [high] PR 533 de1b5b5: blocking defects that argue against hardware testing now
B1 — the PR's own added test cannot pass (two independent failures), verified in tree:
(a) tests/cli/test_planning.py:230-232 plans with context=500000 expecting a clamp. Fixture tests/cli/test_planning.py:37-38 sets context=262144, page_tokens=64; RankCosts at :43 leaves page_tokens None (ignition/declaration.py:174), so Plan.page_tokens == 64 (planning.py:329-332). 500000 % 64 == 32 → planning.py:289-290 raises UsageError from Plan.post_init, and the first Plan is built with pages=0 inside fit (planning.py:528-544). Test dies before its assertion.
(b) tests/cli/test_planning.py:257 asserts .value.int64_value. helios/proto/runtime_core.proto:124-133 declares int_value=2 and uint_value=3; there is no int64_value → AttributeError. Even renamed, rebuild_manifest.py:333 _preparation_value writes non-negative ints as uint_value, so int_value would read 0.
B2 — alignment is validated on the requested value, not the resolved one (planning.py:289-290 vs :371-375). --request-context 262145 or 500000 is rejected outright, although it would clamp to the recipe max and be a no-op. Contradicts docs/cli-design.md:446 ("below the recipe's maximum") and the PR's "a cap above the pool resolves to the pool capacity". Needs a maintainer decision (validate resolved value / floor / keep), i.e. a semantics change, not a test question.
B3 — prepared_context is clamped by self.tokens (planning.py:375), which is pages*page_tokens sized from the export host's FREE VRAM (fit :538-544). So two exports with byte-identical reproduction_args (rebuild_manifest.py:264-265 now includes the flag) can declare different max_sequence_tokens. Silent under-delivery: to_dict prints context_target 131072 beside context/tokens that may be smaller, and never prints the served value. Redundant too: Helios already narrows at load (helios/src/model.rs:268-272 fit_context; catalog.rs:49 only requires max<=prepared).
B4 — the evidence still does not isolate the export-time cap from the existing runtime knob. helios/src/runtime_core/memory.rs:284-292: page_ceiling returns Ok(None) for KvCacheLimit::Memory (the default, docs/cli-design.md:738); only Context/Concurrency compute ceil(context/page_tokens)*histories. The author's table was measured with --kv-cache-limit concurrency, so it demonstrates the runtime flag's documented behaviour. What only this PR can do: lower the admission ceiling and the advertised max_model_len — helios/src/server/config.rs:131,148; request.rs:350; models.rs:81.
B5 — reachability of the cap depends on recipes outside this repo (AGENTS.md:12,380-392, hyperflare_recipes): BasePreparationConfig.context (bootstrap.py:33) must be written by each recipe into the core's "max_sequence_tokens". Not verifiable in-tree; author earlier said recipe updates pending.
#7 [high] Decision at de1b5b5: no hardware referral yet; trimmed test plan
Decision at head de1b5b5: still DO NOT refer to hardware. Reason: (1) the PR's own added test cannot pass (two verified defects, entries #6 B1) so the head is not mergeable and CI is red; (2) the alignment check validates the requested rather than the resolved value (planning.py:289-290 vs :371-375) — how the author settles that changes behaviour a hardware test would exercise (an unaligned-but-clamped target currently errors instead of being a no-op); (3) the exported ceiling depends on the export host's free VRAM (planning.py:375 + fit :538-544), so an exported artifact is not reproducible from reproduction_args.
Fixed since my previous report (do not re-raise): multi-host forwarding (serve.py:206), alignment validation exists, to_dict/reproduction_arguments/from_plan record the cap (planning.py:432, rebuild_manifest.py:264-265, :390), bench compares prepared_context (planning.py:248), a test exists.
Value at this head: LOW. The evidence table was taken with --kv-cache-limit concurrency, so it measures existing runtime behaviour (memory.rs:284-292 returns None for the default Memory mode). Only the export-time ceiling/advertised max_model_len is new (config.rs:131,148; request.rs:350; models.rs:81).
Conditional plan after fixes: Phase 0 GPU-free pytest (tests/cli/test_planning.py + test_commands.py) including a bootstrap seam assertion (common_preparation_kwargs(plan)["context"] == plan.prepared_context, pattern tests/cli/test_commands.py:88-91) and a parser assertion that --request-context exists on export/debug-serve/bench only. Phase 1 on ONE cn5 GPU (SM120, matches author's hardware) with nvidia/GLM-5.3-Flash-NVFP4: export A --request-context 131072, B unset; assert /v1/models max_model_len 131072 vs recipe max; ~132k-token prompt rejected on A, ~130k accepted; flare inspect reproduction re-exports the cap. Phase 2: VRAM under both --kv-cache-limit memory (default) and concurrency at concurrency 1 and 4, A vs B — report an honest ~0 delta under memory mode. Phase 3 regression: stock (no-flag) core loads and serves unchanged; --request-context absent from flare run. Budget ~1-2 GPU-hours, 1 GPU, 1 model; skip multi-host (no second host; cn5 is 4 GPUs one host, cn7 is a single GB10), skip cn7 (ARM64 irrelevant), skip throughput benchmarks (no speed claim).
#9 [high] PR 533 head 02023eba: verified blockers (regressions vs de1b5b5)
PR #533 head 02023eba (base f377dc85), 9 files. Verified by reading the tree, not the summaries.
B1 — derive() is broken by the rebase onto #543.
- ignition/cli/preparation.py:45-56: signature ends
row_shard_prefill=False, row_shard_attention=False, force_moe_decode_a16=None). NOcontextparameter. - ignition/cli/preparation.py:69:
row_shard_attention=row_shard_attention, context=context). - search_code "context" in preparation.py returns only context_parallel/context_parallel_size (:47,:62), the offending :69, and the context_parallel() helper (:124-132). No module-level
context. - Call sites passing the keyword: serve.py:207 (_export_hosts), serve.py:291 (_prepare), serve.py:476 (debug_serve), bench.py:177.
- Direct derive() callers in tests: tests/cli/test_commands.py:88 (pre-existing) and :114 (from merged #508) — both enter the body → NameError at :69.
- Cause: #543 (f377dc85) removed joint_tuning from derive; the rebase dropped the
contextparameter while keeping the call. Regressed since de1b5b5.
B2 — page-multiple validation deleted since de1b5b5.
- search_code "multiple of the" over ignition/ → NO matches (only prefill-chunk message uses "must be a multiple of 64" at planning.py:636).
- context_target occurrences at head: planning.py:186 (field), :379/:381 (accessor), :438 (to_dict), :468 (positivity error), :549 (constructor kwarg). No alignment check in post_init (:224-296) or fit (:461-468, only
<= 0). - Real consequence: alignment IS required at load — helios/src/model/catalog.rs:50-57 requires prepared_sequence_tokens AND limits.max_sequence_tokens is_multiple_of(page_tokens); failure → "invalid prepared model configuration" (:70).
- Test at tests/cli/test_planning.py:238-240 asserts pytest.raises(UsageError, match="multiple of the") for context=100. Fixture page_tokens=64 (test_planning.py:38), prefill_chunk=4096 (:42). context=100 passes :635 and :467, then fails the chunk check at planning.py:709-711 with "--prefill-chunk-size 4,096 exceeds the 100-token context this plan allows" → message does not match → test fails.
B3 — test reads a non-existent proto field.
- tests/cli/test_planning.py:254:
by_key["context_target"].value.int64_value == 131072. - helios/proto/runtime_core.proto:124-133 declares int_value=2 and uint_value=3; no int64_value → AttributeError.
- ignition/preparation/rebuild_manifest.py:329-333 _preparation_value writes non-negative ints as uint_value, so even
int_valuewould read 0. Correct: uint_value.
Verdict: head cannot run and its own test cannot pass. No CI on head.
#10 [high] PR 533 head 02023eba: confirmed-fixed and remaining should-fix items
FIXED at 02023eba (do not re-raise):
- Multi-host export forwards the flag: ignition/cli/serve.py:207
context=args.request_context; also :291 (_prepare), :476 (debug_serve), bench.py:177. - Plan.to_dict carries both keys: planning.py:438
"context_target": ..., "prepared_context": .... - Reproduction arg: rebuild_manifest.py:264-265 guarded on None. Manifest parameter: :389 add('context_target', SCOPE_DEPLOYMENT, ...).
- Printed serve line: serve.py:319 prints
· request context Nonly when context_target is not None. - Bench config record: bench.py:248 whitelists "context_target", "prepared_context".
- Bench ceiling compare uses prepared_context: planning.py:260.
- Omitted flag is a no-op: planning.py:379-380 returns recipe.context (what bootstrap.py passed before); bootstrap.py:58 now passes plan.prepared_context.
REMAINING should-fix (verified):
- prepared_context clamped by self.tokens (planning.py:381); tokens = pagespage_tokens (:368-369), pages from available//page_bytes — i.e. the EXPORT HOST's free VRAM. Exported max_sequence_tokens therefore is not reproducible from recorded flags. Helios already applies this clamp at load: helios/src/model.rs:268-272 fit_context sets max_sequence_tokens = prepared_sequence_tokens.min(pagespages_tokens). Redundant + host-dependent.
- effective_context = min(result.context, result.prepared_context) at planning.py:709 is provably a no-op (context == min(recipe.context, tokens); prepared_context is recipe.context when untargeted, else <= context).
- Positivity check lives in fit (planning.py:467-468), re-entered per candidate world size and per shortfall probe; every sibling flag check is in plan()'s block (:628-637) or post_init. Two validation homes.
- serve.py:68 max_body_bytes still sized from recipe.context; :69 context_hint still says "limited by the checkpoint and available cache capacity" — both pre-cap.
- docs/cli-design.md:446 says cap "below the recipe's maximum" but code silently clamps an oversize target (planning.py:381). Docs row omits the page-alignment rule entirely.
- ignition/cli/init.py:167-168 help omits the page-size multiple requirement.
- Evidence scoping: VRAM benefit holds only under --kv-cache-limit context|concurrency. helios/src/runtime_core/memory.rs:290-292 page_ceiling returns Ok(None) for KvCacheLimit::Memory (the default). Author's commands use --kv-cache-limit concurrency.
NOT a finding (verified): capability is genuinely distinct from --kv-cache-limit/--memory-limit — neither can lower exported max_sequence_tokens (config.rs:131,148) or advertised max_model_len. So the flag itself earns its keep; only the evidence and the scaffolding are weak.
#11 [high] Decision at 02023eba: no hardware referral; minimal conditional test plan
Decision at 02023eba: NO hardware referral. Return to author.
Why no test:
- Every preparation command raises NameError (derive() no
contextparam) — nothing to test. Fix is one kwarg. - The PR's own new test cannot pass (missing validation + wrong proto field). Head is not green; no CI on head.
- Missing alignment validation produces a core Helios rejects at load (catalog.rs:50-57) — testing a known bug.
- Exported ceiling depends on export-host free VRAM (planning.py:381), so a GPU run's artifact is not reproducible — a result could not be attributed to this PR.
- Evidence measures --kv-cache-limit concurrency, which already exists; no column shows the export-side admission ceiling.
- Hardware plan cannot cover multi-host (--ranks>1): cn5 = 4 GPUs one host, cn7 = single GB10. Must be pinned GPU-free.
- Reachability depends on external hyperflare-recipes writing BasePreparationConfig.context into max_sequence_tokens.
Value of a hardware test AT THIS HEAD: LOW/zero.
CONDITIONAL PLAN (after fixes, GPU-free suite green) — keep it minimal: Phase 0 (no hardware): pytest tests/cli/test_planning.py tests/cli/test_commands.py with added cases:
- prepared_context == recipe.context unset; == min(recipe.context, N) set.
- context<=0 rejected; unaligned N behaves per decided rule; resolved value % page_tokens == 0.
- seam: common_preparation_kwargs(plan)["context"] == plan.prepared_context (bootstrap.py:58) — the only line that changes the core.
- to_dict has context_target+prepared_context; reproduction_args has --request-context; manifest parameter scope; assert uint_value not int64_value.
- derive(..., context=N) end-to-end (funnel test) — the gap that let B1 through.
- multi-host forwarding: _export_hosts with --ranks 2 asserts plan.prepared_context == N. Phase 1 (cn5, 1 GPU, SM120, nvidia/GLM-5.3-Flash-NVFP4): two exports differing only in --request-context 131072 vs unset:
- /v1/models max_model_len == 131072 (A) vs recipe max (B) — the one assertion only export can satisfy.
- prompt ~132k rejected at admission on A; just-under accepted.
- flare inspect A shows cap; reproduction command re-exports 131072.
- Falsification: unaligned --request-context fails at planning with an actionable message, not at load.
Phase 2 (VRAM, isolating): under BOTH --kv-cache-limit memory (default) and concurrency, concurrency 1 and 4, record total VRAM for A vs B. Under memory expect ~0 delta — report honestly.
Phase 3 (regression, same job): pre-PR core still loads/serves; no-flag export byte-equivalent to main; --request-context absent from
flare run. Budget: ~2 exports + ~6 serve starts, 1 GPU of cn5, one model, one host ≈ 1-2 GPU-hours. Skip cn7 (no ARM64 question). Skip multi-host (no second host). NO throughput A/B sweep — PR makes no speed claim.
#13 [high] PR 533 at head 9118add: verified blocker state
Head 9118add, base main, 6 files +69/−5 (docs/cli-design.md +2/−1, ignition/cli/serve.py +2/−2, ignition/parameters.py +13, ignition/planning.py +14/−1, ignition/preparation/bootstrap.py +1/−1, tests/cli/test_planning.py +37). Rebased onto merged #545, so the feature now lives in a param(...) declaration (ignition/parameters.py:1309-1321) instead of hand-wired argparse.
FIXED since 02023eba (do not re-raise):
derive()crash gone: ignition/cli/preparation.py:62-81 now takesparameters=and has no undefinedcontextname.- page-multiple validation now exists: ignition/planning.py:186-190.
- export-host VRAM term gone from prepared_context: planning.py:357-363 = recipe.context when no target, else min(recipe.context, target). No
tokensterm. - flag forwarded on all paths including multi-host: serve.py:178/191-199 (resolve_parameters + plan(parameters=...)); serve.py:259/261; bench.py; debug-serve.
- to_dict/plan JSON carries context_target via parameters.to_dict (planning.py:380-392).
- bench pre-check uses prepared_context (planning.py:212).
- serve.py:67 max_body_bytes uses plan.prepared_context.
- prefill_chunk default now bounded fine; no int64_value assertion in test (it asserts only scope at :329).
STILL BROKEN at 9118add:
- B1 parameters.py:1316
max_fn=_recipe_context_limit(:1268-1269 returns context.recipe.context) → validate_fields (parameters.py:522-545, elif branch :533-540) raises "--request-context for ALIAS must be 1 through 262,144". Reached from Plan.post_init (planning.py:185) and plan() (planning.py:540). So an above-max target is rejected → prepared_context's clamp (planning.py:363) is dead, docs/cli-design.md:468 ("resolves to the smaller of N and the recipe maximum") false, and test_planning.py:310-313 (context_target=500000 vs fixture context=262144/page_tokens=64 at :139-140) must raise. 500000 % 64 = 32 also trips the page check. Test is red. - B2 page-multiple check validates the RAW target (planning.py:186-190) not the served value; even without max_fn, an oversize target that is not page-aligned is rejected. Fix must validate min(recipe.context, target) (prepared_context) % page_tokens.
- B3 prefill chunk vs cap: planning.py:594-596 compares params.prefill_chunk > result.context (=min(recipe.context,tokens)), and parameters.py:1458 bounds prefill_chunk by ctx.recipe.context only. bootstrap.py:132 forwards plan.prepared_context as context and bootstrap.py:44-46 forwards parameters.prefill_chunk as prefill_chunk_size. So --request-context 1024 with default chunk 4096 exports max_sequence_tokens=1024, prefill_chunk_size=4096 → helios/src/scheduler.rs:66-77 validate_prefill rejects at load (surfaced via helios/src/model/catalog.rs:42).
- B4 --request-context never reaches reproduction_args: RecipeParameters.reproduction_args (parameters.py:1469-1528) hardcodes --max-concurrency/--prefill-chunk-size at :1483-1484, then builds base_field_names = fields(RecipeParameters) at :1491 and skips those at :1494 → context_target skipped. repro_always=True (:1319) is dead. test_planning.py:324-325 asserts the flag is present → red. rebuild_manifest.reproduction_arguments (:231-261) just splats params.reproduction_args, so flare inspect/full manifest reproduce an uncapped core.
- B5 test hygiene: test_planning.py:295 takes
monkeypatchbut never patches source_identity, while rebuild_manifest.from_plan calls it (rebuild_manifest.py:290,327) and source_identity raises RuntimeError("the preparation environment requires FlashInfer") when FlashInfer is absent (ignition/preparation/source_identity.py:36-41). Neighbours at :159/:333 patch it. So the test also depends on a GPU/FlashInfer env.
#15 [high] Decision at 9118add: no hardware referral; conditional minimal plan
Decision at head 9118add: DO NOT refer to hardware testing. Reason: (a) the PR's only test is red on two independent deterministic grounds (max_fn bound at parameters.py:1316 + test :310-313; reproduction_args skipping base fields at parameters.py:1491-1494 + test :324-325); (b) a legal small cap with the default prefill chunk exports a core Helios refuses at load (planning.py:594-596 vs bootstrap.py:132/scheduler.rs:66-77) — a defect a GPU run would merely re-confirm; (c) reproduce/inspect metadata omits the flag, so a run's output could not prove what was prepared; (d) the headline VRAM number is measured under --kv-cache-limit concurrency, i.e. an existing runtime flag, so a GPU run would mostly re-measure that; (e) multi-host --ranks>1 cannot be tested on cn5 (4 GPUs, one host) or cn7 (1 GB10).
Conditional plan (only after fixes + GPU-free suite green): Phase 0 GPU-free: pytest tests/cli/test_planning.py tests/cli/test_parameters.py tests/cli/test_commands.py with added cases — prepared_context no-op/capped/oversize-clamp or explicit rejection per decided semantics; alignment on the served value; both arms of chunk-vs-cap error; seam assertion common_preparation_kwargs(plan)["context"] == plan.prepared_context and == recipe.context when unset (pattern tests/cli/test_commands.py BasePreparationConfig); reproduction_args contains --request-context; parser has the flag on export/bench/debug-serve and not on flare run; _export_hosts --ranks 2 carries the cap (only pin available, no 2nd host). Phase 1 on cn5, ONE GPU (not four): model nvidia/GLM-5.3-Flash-NVFP4. Export A with --request-context 131072, B without. Assert /v1/models max_model_len = 131072 vs recipe max; a ~132k-token prompt rejected on A and accepted on B; flare inspect A reproduces an uncapped-free command; an unaligned --request-context fails at planning with an actionable message, not at load. Phase 2: VRAM under BOTH --kv-cache-limit memory (default) and concurrency, concurrency 1 and 4, A vs B — expect ~0 delta under memory mode; report honestly. Phase 3 regression: pre-PR core still loads/serves; no-flag export identical to main; flag absent from flare run. Budget ~1–2 GPU-hours, one host, one model. Skip cn7, skip multi-host, no throughput A/B (PR makes no speed claim).
#18 [high] PR 533 at head e623985: verified state and referral decision
Head e623985, base main, 8 files +79/-10, no CI checks, nothing executed by me.
FIXED at this head (do not re-raise): (1) context_target has no max_fn — parameters.py:1309-1320 only min_value=1 — so the clamp is live; page check planning.py:186-190 is gated on target <= recipe.context, so 500000 on a 262144/64-page recipe skips the check and clamps to 262144 (test :310-313 passes). (2) --request-context hand-emitted at parameters.py:1484-1485 ahead of the base-field skip :1492-1495 → reproduction_args and manifest carry it (test :323-329). (3) prefill guard uses effective = min(result.context, result.prepared_context) planning.py:594-597. (4) status_label exists parameters.py:1318. (5) serve.py:67 max_body_bytes from prepared_context; :68-70 conditional hint. (6) multi-host _export_hosts resolves parameters from args (serve.py:180) then passes them to planning.plan (serve.py:193-201) → flag reaches it.
REMAINING at e623985:
- tests/cli/test_planning.py:295-329 is the only test in the file that does not stub
ignition.preparation.source_identity.source_identity(siblings at :159, :223, :333 do; it also takes an unusedmonkeypatch). from_plan → source_identity() at rebuild_manifest.py:327 → source_identity.py:36-41 raises RuntimeError without FlashInfer, and otherwise hashes ignition+flashinfer+native per run. Also asserts nothing about the seam: reverting bootstrap.py:132 to plan.recipe.context leaves the test green. - parameters.py:1318 status_label is called with the raw field value (Parameters.py status_parts :1558) →
--request-context 500000prints "request context 500,000 tokens" while the core serves 262,144 (AGENTS.md:452-456 violation). - planning.py:379-416 to_dict emits context, checkpoint_context and (via param_dict) context_target, but never prepared_context.
- planning.py:212 bench bound changed from
> self.contextto> self.prepared_context; uncapped prepared_context = recipe.context >= context, so the check got looser; failures now surface only after full GPU prep at bench/runner.py:388. - planning.py:320-321 demand_pages still uses recipe.context (overstates KV demand for capped plans).
- parameters.py:1319 help says the value "must be a multiple of the page token count" unconditionally, but the check is skipped above the recipe max.
- Evidence: VRAM table measured with
--kv-cache-limit concurrency; page_ceiling returns Ok(None) for default Memory (helios/src/runtime_core/memory.rs:290-292, default docs/cli-design.md:740). Export pages are still fit from host free memory (planning.py:471-479), so the cap only lowers prepared extent/max_sequence_tokens (config.rs:131,148; max_model_len server/models.rs:81; admission request.rs:350), which is unique to this flag and worth testing on hardware once fixed.
DECISION: no referral at e623985; return for 5 small fixes. Then: GPU-free suite green, then one cn5 GPU (SM120 matches author), model nvidia/GLM-5.3-Flash-NVFP4, A=--request-context 131072 vs B unset: /v1/models max_model_len, admission rejection just above cap, flare inspect reproduction, VRAM delta under both --kv-cache-limit memory and concurrency, regression that no-flag export == main. ~1-2 GPU-hours; no throughput A/B; skip cn7 and multi-host (no second host).
#20 [high] PR 533 at head 448f70a: all four prior blockers verified fixed
Head 448f70a, base main, 8 files +91/-28, no CI checks reported.
A) Test is environment-clean AND pins the seam.
- tests/cli/test_planning.py:296 stubs ignition.preparation.source_identity.source_identity.
- :318
assert kwargs["context"] == capped.prepared_context == 131072is a CHAINED comparison (= kwargs==prepared_context AND prepared_context==131072). Reverting ignition/preparation/bootstrap.py:132 to plan.recipe.context makes kwargs["context"]=262144 -> assertion FAILS. Also :319kwargs["context"] != recipe.contextfails. => The Simplicity lens claim "the test stays green if bootstrap.py:132 reverts" is WRONG at this head. Do not repeat it. - Test arithmetic verified against fixture (tests/cli/test_planning.py:139-142 context=262144, page_tokens=64; RankCosts leaves page_tokens None so Plan.page_tokens=64):
- target=131072: 131072<=262144 and 131072%64==0 -> no raise; prepared_context=131072. PASS
- target=500000: 500000>262144 -> page check gated off (planning.py:187); prepared_context=min(262144,500000)=262144. PASS (oversized clamp reachable)
- target=0: parameters.py:1315 min_value=1 -> validate_fields raises "--request-context must be a positive integer" (parameters.py:541-542), matches "--request-context". PASS
- target=100: 100<=262144, 100%64=36 -> raises "not a multiple of the 64-token page size" (planning.py:188-190), matches "multiple of the". PASS
- manifest block :329-335 patched source_identity, from_plan -> reproduction_args + context_target scope. PASS => The new test should be green. Several reviews claiming it cannot pass are describing older heads (02023eba/de1b5b5/9118add).
B) status_parts now prints the CLAMPED value: ignition/parameters.py:1560-1561 min(self.context_target, context.recipe.context). Feeds serve.py:271 "Select GPUs" line. Fixed.
C) Plan.to_dict emits "prepared_context": self.prepared_context at ignition/planning.py:396 (replaces main's "checkpoint_context"). Fixed (nit remains: key renamed not added).
D) Bench bound is pool-aware and equals main when uncapped: planning.py:212 min(self.context, self.prepared_context); uncapped prepared_context=recipe.context>=context so min==context==main. Fixed, and NOT loosened (corrects the earlier Correctness review claim).
Also verified fixed/landed:
- reproduction_args emits --request-context: parameters.py:1483-1484, ahead of base-class skip :1491-1495.
- prefill-chunk guard uses served extent: planning.py:594-597
effective = min(result.context, result.prepared_context). - bench record includes the cap: bench.py:263-266
"preparation": {..., **plan.parameters.to_dict(plan.parameter_context)}(no longer a hand-picked whitelist). - max_body_bytes + conditional context_hint: serve.py:67-70.
- help epilog: ignition/cli/help.py:46 "Context: N tokens max (page size: P); --request-context can lower this".
- Both doc field enumerations replaced by pointers: docs/cli-design.md:446-453, docs/preparation-development.md:17-19.
- No max_fn on context_target (parameters.py:1309-1319): min_value=1, manifest_key, scope=DEPLOYMENT, no repro_always.
- Helios contract: catalog.rs:44-57 requires page-multiple prepared/max_sequence_tokens and max<=prepared; fit_context (helios/src/model.rs:268-272) clamps to pages*page_tokens at load; max_model_len advertised from limits.max_sequence_tokens (helios/src/server/models.rs:81); admission Context error when prompt>max_sequence_tokens (helios/src/server/request.rs:349-355).
- Page sizes per model: docs/core-design.md:1480 Qwen 64, GLM 256, DeepSeek 128.
#21 [high] PR 533 at 448f70a: remaining non-blocking should-fix items
None of these change the exported artifact or the admission behaviour; they are reporting fidelity, duplication and help wording.
- planning.py:320-321 demand_pages = self.concurrency * (self.recipe.context // self.page_tokens) still uses the UNCAPPED recipe max, and it is printed at planning.py:407 in the same plan JSON that now carries prepared_context. With --request-context 131072 on a 262144 recipe the demand row is ~2x the served extent - the exact quantity the PR exists to lower, in the artifact a test engineer will read to explain VRAM. One-line fix: use prepared_context. Sole consumer is to_dict (no sizing consumer).
- planning.py:396 replaces main's "checkpoint_context" key with "prepared_context" instead of adding. The plan JSON then loses the recipe's declared maximum when a cap is set. No in-repo reader (search_code "checkpoint_context" -> no matches), so compatibility only for external JSON consumers. Emitting both is free.
- Page-multiple rule hand-written in Plan.post_init (planning.py:186-190) rather than ParamSpec.multiple_of / RecipeParameters.validate, while the sibling prefill_chunk declares multiple_of=64 (parameters.py:1302) + recipe bound in validate (parameters.py:1457-1462). The required multiple is the world-size-adjusted Plan.page_tokens (adjust_page_tokens hook, parameters.py:571-575), not recipe.page_tokens, so a static multiple_of cannot cover every recipe - which is why the in-validate form is the right precedent. Also the error message omits the "for {alias}" clause every sibling flag error carries (parameters.py:520,531,539).
- parameters.py:1318 help says "must be a multiple of the page token count" unconditionally, but planning.py:187 skips the check above the recipe maximum (documented no-op clamp). One clause fixes it.
- parameters.py:1561 dereferences context.recipe without the None guard used at parameters.py:1268-1269; ParameterContext.recipe defaults to None (parameters.py:119). Harmless today: only caller is serve.py:271 with a plan context.
- Pre-existing, aggravated: --prefill-chunk-size help/bound still advertises recipe.context (parameters.py:1301 via _recipe_context_limit :1268-1269) while the plan now rejects above min(context, prepared_context) (planning.py:594-597). MODEL --help can accept a chunk the plan then refuses.
- Untested paths (not broken): the chunk-vs-cap rejection at planning.py:594-597 has no test (fixture chunk is 4096 at tests/cli/test_planning.py:120, so context_target=2048 would cover it); no test drives the multi-host --ranks path with a cap.
Recommendation: items 1 and 2 are one-liners that make the printed artifact self-describing and are worth landing with any pre-test touch; they do not require re-review and do not block the referral. Items 3-5 are nits. Item 7 item (chunk-vs-cap) is one pytest.raises that should accompany Phase 0.
#22 [high] Decision at 448f70a: REFER to testing with a narrow cn5 plan
Head 448f70a (8 files, +91/-28) is the FIRST head at which every test-affecting blocker I have raised is closed:
- A test env + seam pin: test_planning.py:296 stubs source_identity; :318 chained assert kwargs["context"] == prepared_context == 131072 (reverting bootstrap.py:132 fails it). Prior "test never pins the seam" findings are STALE at this head.
- B status line prints clamped value: parameters.py:1560-1561.
- C plan JSON has prepared_context: planning.py:396.
- D bench bound pool-aware and == main when uncapped: planning.py:212.
- repro args: parameters.py:1483-1484. chunk guard on served extent: planning.py:594-597. bench record: bench.py:263-266 via parameters.to_dict. max_body_bytes/context_hint: serve.py:67-70. help epilog: cli/help.py:46. no max_fn: parameters.py:1309-1319. doc enumerations replaced by pointers.
Residual (reporting/help only, no behaviour change): demand_pages uncapped (planning.py:321, printed :407); to_dict renames checkpoint_context->prepared_context (loses recipe max when capped); page-multiple rule hand-written in post_init instead of validate/multiple_of + message lacks "for {alias}"; help says unconditional multiple; unguarded context.recipe (parameters.py:1561); --prefill-chunk-size help/bound still advertises recipe.context.
DECISION: REFER TO HARDWARE TESTING - narrowly. This is the first head where that is the right call. Conditions: the two one-line reporting fixes (demand_pages + plan-JSON key) land first, GPU-free suite green, and confirm the installed recipe forwards BasePreparationConfig.context (recipes are external; author said recipe updates pending - a mismatch is "blocked on external recipe", not "PR broken").
Plan: cn5, ONE GPU, model nvidia/GLM-5.3-Flash-NVFP4 (cached on cn5, SM120 = author's card). A/B: A --request-context N (N = recipe max/2 rounded down to a page multiple read from MODEL --help), B unset. Assertions: /v1/models max_model_len == N on A, recipe max on B; prompt over N rejected at admission on A, just under accepted; flare inspect A shows the cap and re-exports N; unaligned N (e.g. 130000 on a 256 page) fails at PLANNING with an actionable message not at core load. Phase 2 VRAM at concurrency 1 and 4 under BOTH --kv-cache-limit memory (default, expect ~0 delta - report honestly) and --kv-cache-limit concurrency (the author's claim). Phase 3 regression: no-flag export byte-identical config to main, pre-PR core still loads, --request-context absent from flare run. Budget: 2 exports + ~6 serve starts, 1-2 GPU-hours, one host, one model. SKIP cn7 (no ARM64 question), SKIP multi-host --ranks>1 (cn5 is 4 GPUs on one host, cn7 one GB10 - pin GPU-free instead), SKIP any throughput A/B (PR makes no speed claim).
#24 [high] PR #533 at 503a438: verified code state + hardware test plan for cn5
Head 503a438 (9 files, +78/-31), base main 2147cd4c. Verified in tree:
- ignition/planning.py:186-200 page-multiple gate
target <= declared_context; :222 bench boundmin(context, prepared_context); :331 demand_pages uses prepared_context; :363-375 declared_context / context=min(declared,tokens) / prepared_context=min(declared, target or declared); :407-409 to_dict has context, checkpoint_context, prepared_context; :626effective = min(result.context, result.prepared_context)gates prefill chunk. - ignition/preparation/bootstrap.py:132
"context": plan.prepared_context; BasePreparationConfig.context default 262144 (:33). - ignition/parameters.py:1299-1304 _declared_context_limit; :1344-1352 context_target field (min_value=1, NO max_fn → oversized clamp, no default_label → help shows "default: none"); :1529-1530 repro arg; :1606-1607 status_parts prints min(target, context.recipe.context) (display mismatch vs declared_context under #212/adjust_context).
- ignition/cli/serve.py:69-74 max_body_bytes from prepared_context + conditional hint; help.py:46 states Context max/page size + cap note.
- Helios: config.rs:131,148 prepared_sequence_tokens → limits.max_sequence_tokens; :210-213 max_new_tokens defaults to it; request.rs:353-357 over-context 400; :577-587 "prompt of P plus output limit O exceeds this server's context of C tokens"; model.rs:263-275 fit_context clamps served ceiling to pages×page_tokens; models.rs:99 max_model_len; catalog.rs:47-56 requires page-aligned max_sequence_tokens; memory.rs:314-316 page_ceiling None for KvCacheLimit::Memory (default) → pool fills free VRAM; :322-344 concurrency/context modes size from prepared context.
- Tests: tests/cli/test_planning.py:298-329 (source_identity stubbed :299, seam asserted as dict :313, 0 rejected, 100 rejected "multiple of the", manifest uint_value 131072, repro args).
- Page sizes (docs/core-design.md:1480): Qwen 64, GLM 256, DeepSeek 128. SUPPORTED_ARCHITECTURES "SM87..SM121" (planning.py:38); gb202 = RTX PRO 6000 Blackwell.
- No CI on head; PR makes a memory/admission claim, NOT a speed claim.
Fleet: cn5 = 4× RTX PRO 6000 Blackwell Max-Q 96 GiB (gb202/SM120, matches author's card), 48 CPU/125 GiB/16 GiB scratch; cached models incl local-inference-lab/GLM-5.3-Flash-NVFP4, nvidia/GLM-5.3-Flash-NVFP4. cn7 = 1× GB10 arm64/gb10 SM121, 60 GiB RAM, cached Qwen3.8-27B-NVFP4. Multi-host (--ranks>1) untestable (no 2nd host).
Plan: P0 GPU-free pytest + planning rejections (GPU-free because derive() precedes download in serve.py:264-290); P1 export A (--request-context N=half declared max) + B unset (reuse existing stock core if flare models list has one) → flare inspect Context + repro args + /v1/models max_model_len + admission 400 message naming the ceiling (use max_tokens 200000 on A / 300000 on B to avoid long generations); P2 A/B × {--kv-cache-limit memory default, concurrency} at --max-concurrency 4, expect ~0 delta under memory (honest null), nvidia-smi memory.used + /metrics total_kv_pages; P3 pre-PR core still loads, flag still absent from flare run. Budget 2–4 GPU-hours, 1–2 GPUs of cn5; disk preflight gate (16 GiB scratch may be too small for checkpoint+core).
#25 [high] Probe recipes for the cn5 hardware test (admission 400, /v1/models, inspect, metrics)
Two cheap, exact probes found while planning, both cited:
- Admission-ceiling probe needs NO long generation: Helios rejects
prompt + max_tokens > limits.max_sequence_tokensbefore any prefill work with HTTP 400context_length_exceededand message "prompt of P tokens plus an output limit of O tokens exceeds this server's context of C tokens" (helios/src/server/request.rs:577-587; code at helios/src/server.rs:743; body limit note docs/api.md:247-256). So with a ~1k-token prompt and max_tokens=140000: capped core (N=131072) → 400 naming 131072; stock core (262144) → accepted (cancel after a few tokens). Cost ≈ one 1k prefill per run. /v1/messages/count_tokensexists (docs/api.md:13; helios/src/server/http.rs:131) to calibrate prompt token counts without GPU submission.- Served ceiling vs exported ceiling: model.rs:263-275 fit_context narrows max_sequence_tokens to pages×page_tokens, so on a stock core
/v1/modelsmay legitimately report below the recipe max; the capped core's value must be exactly N. Compare A/B and treat "A==N and B>A" as the pass condition, not "B==recipe max". - Authoritative artifact check:
flare inspect COREprintsContext: <deployment max_sequence_tokens>(flare-cli/src/inspect.rs:261-264) and the rebuild command from reproduction_args (inspect.rs:454);--request-contextis emitted at ignition/parameters.py:1529-1530. - Export prints plan JSON on stderr including prepared_context (ignition/cli/serve.py:214, planning.py:407-409) and "Exported cache entry: PATH" (serve.py:166).
- Page sizes docs/core-design.md:1480: Qwen 64, GLM 256, DeepSeek 128; N must be a multiple of Plan.page_tokens = recipe.page_tokens × CP size (planning.py:334-335), and Plan.post_init rejects a misaligned in-range target (planning.py:198-200).
- Pool metrics for VRAM cross-check: flare_total_kv_pages / flare_free_kv_pages / flare_cached_kv_pages (helios/src/server/metrics.rs:1278,1303,1388).
#14 [medium] PR 533 at 9118add: should-fix items with citations
Should-fix at head 9118add (not merge-blocking on their own; none require a hardware run to settle):
- No
status_labelon context_target (parameters.py:1309-1321) → status_parts (parameters.py:694-707) skips it, so the printed "Select GPUs" line (serve.py:268-272) never mentions the cap, unlike row_shard/roce siblings. context_hintunconditional (serve.py:68): names "--request-context cap" for deployments that never set it.Plan.demand_pagesstill uses recipe.context (planning.py:320-321) so the printed/to_dict KV demand overstates a capped plan.Plan.to_dict(planning.py:379-416) emits parameters' context_target plus "context" and "checkpoint_context" but no prepared_context.- MODEL --help still advertises the uncapped recipe context (ignition/cli/help.py:46) and the chunk range is bounded by recipe.context (parameters.py:1458).
- Documented closed lists not updated: docs/cli-design.md:448-451 (universal RecipeParameters fields) and docs/preparation-development.md:17-19 omit --request-context/context_target.
- One flag, two validation homes: positivity/enum via the ParamSpec bound in parameters.py, page alignment hand-written in Plan.post_init (planning.py:186-190), which re-runs per candidate world size and per sizing replace() inside fit (planning.py:475-480, 568-590) and can pre-empt a CapacityError with a UsageError.
- Evidence scoping: VRAM table only holds under non-default --kv-cache-limit context|concurrency; helios/src/runtime_core/memory.rs:284-292 returns Ok(None) for KvCacheLimit::Memory (default). Description should state the condition and add one row only this flag can show (request between cap and recipe max rejected by capped core, accepted by stock; smaller max_model_len).
#16 [medium] Corrections to the review summaries at 9118add
Corrections to review summaries when applied to head 9118add (do not carry stale findings forward):
- The
derive(context=context)crash, the missing page-multiple validation, and the export-host free-VRAM term in prepared_context were defects of earlier heads (02023eba / de1b5b5). All three are FIXED at 9118add: preparation.py:62-81 takesparameters=, planning.py:186-190 has the alignment check, planning.py:357-363 has notokensterm, and no int64_value assertion survives in the test. - The Subtractive lens's "drop the whole flag (~68 lines), --kv-cache-limit already does this" overreaches: helios/src/runtime_core/memory.rs:284-292 shows the runtime pool knobs cannot lower max_sequence_tokens / max_model_len, which are baked at load from prepared_sequence_tokens (helios/src/server/config.rs:131,148). The export-time ceiling is genuinely new. Overlap objection is about the evidence table, not the capability.
- The "multi-model hosting is a charter non-goal" objection is withdrawn: the docs row (docs/cli-design.md:468) and description now justify the cap by same-model concurrency.
- Severity split among lenses is roughly right: Architecture/Correctness/Conventions/Prose/Simplicity all say blocking; the blocking core is B1 (validate vs clamp contradiction, both in the spec bound and the alignment check) and B4 (reproduction_args + red test), with B3 (chunk vs cap) a real export-time defect the PR itself was meant to prevent.
- Nothing in the description, diff, docs or discussion attempts to direct an agent; security screen all clear (agrees with my own read).