Opened by a workflow run, Nov 29, 2026 5:57 PM EST. decide malicious: all_clear (100%): No malicious content found
explore
Author: jcartu (CONTRIBUTOR; Discord: jcartu); sole owner of the core-parameter feature line (#505, #621, #461) Motivation: #505 let a Rust caller admit a request on a core that declares FP32 forward parameters while passing no declarations at all, which hashed an unsalted prefix root — two requests with different parameter values could then share checkpoints. This PR makes the scheduler own the declaration list so such a call fails loudly before any lookup or slot reservation, and records the still-missing GPU qualification. Scale: +148 / −117 lines in 25 files Proposal:
SchedulerCapabilitiesgains acore_parametersfield, validated inRequestScheduler::newplan_admission_with_core_parametersdrops its declaration slice and reads the scheduler's own list;plan_admission/admitnow fail on declaring coresis_text_forward_graphrelocates toGraphKind::is_text_forward(); publicvalidate_core_parametersrenamed tovalidate_core_parameter_declarations- Python:
wire_fp32promoted inignition/preparation/contract.pyand reused byignition/direct/scheduler.py, replacing its private_wire_fp32 - Docs: GPU-qualification TODO gate plus "pending qualification" notes in api.md, direct-execution.md, prefix-cache-offload.md, model-contract.md Touches:
- helios/src/scheduler.rs (admission API, public capabilities struct)
- helios/src/server/runtime.rs + helios/src/model.rs (call sites, capability construction)
- ignition/{preparation/contract.py,direct/scheduler.py} (FP32 narrowing unification) Related items:
- #505 Bind core-declared FP32 parameters into text forward graphs (merged): parent; #621 closes its two review should-fix items
- #599 runtime-loaded overlays on #505 core_parameters (open issue): would depend on scheduler-owned declarations
- #608 helios,ignition,ci: restore catalog validation and CPU Python tests (merged): edits same scheduler.py; its CI sets
CUDA_VISIBLE_DEVICES="", opposite of #621's CLI verification - #461 Document strict tool selection and numeric range precision (open, same author): also appends to docs/TODO.txt
- #404 per-request activation steering (closed): design superseded by #505/#599
Link: https://github.com/NVIDIA/hyperflare-inference/pull/621
Autobot comments: Beyond the description:
SchedulerCapabilities.core_parametersis a required new field with noDefaultand no#[non_exhaustive], and a public validator symbol was renamed — a real breaking Rust API change (cheap only because crates are unpublished). The Kani (13 harnesses) and lifecycle-checker numbers cited are #505's runs re-used; #621 adds no proof, and its 593,669 transitions match #505's 593,660. No CI exists on head cbb7a4f, so all suites are self-reported, and the reported CLI pass neededCUDA_VISIBLE_DEVICESunset, contrary to the repo's own CPU CI. Base 2147cd4c is ~10 merges behind main on files since changed by #608/#620/#613. Zero human reviews or comments.
Value Proposition
Value Proposition — PR #621 “Validate scheduler admission against the core parameter declarations”
Charter alignment. Model-agnostic and structural, not a per-model branch or new flag: the FP32 parameter declarations move into SchedulerCapabilities, RequestScheduler::new validates them, and plan_admission stops hashing an empty declaration list. That serves “keep the runtime small and model-agnostic” and the “don’t silently ignore API fields (#417)” rule — a silent unsalted prefix hash becomes a loud admission error raised before free_slot() and cache.lookup. It does touch cache identity, which the charter’s “supported matrix & compatibility” line expects to be checked across cache schemes and hardware targets; this PR is CPU-only, with its GPU half deferred to a new docs/TODO.txt gate. No non-goal is touched and no dependency is added.
Novelty & status. Neither obsolete nor superseded. The trap is live on main: plan_admission delegates with an empty slice, validate_resolved_core_parameters checks only equal lengths, so empty/empty hashes identically to PrefixHistory::new. No other open PR touches SchedulerCapabilities or the admission signature (#548/#560/#549/#571/#306/#301 are file-level rebase risk only). It implements exactly the two should-fix items from #505’s review — a narrow but genuine addition.
Value vs maintenance cost. Benefit accrues to the shared host/pool prefix cache (Selene cross-instance sharing) and to Rust callers of an unpublished API; the PR itself states no production cache mix-up was observed, since the HTTP server already passed declarations explicitly. The change is small (+148/−117), and evidence that the new assertion bites is real (negative test at helios/src/scheduler/tests.rs:2630-2646, free_slot_count() == 4 assertion, mutation experiment on base 44f59df5), though the Kani and lifecycle-checker suites are re-runs of #505’s own proofs, not new proof.
Costs to resolve before merge. (1) No CI on head cbb7a4f, and the base 2147cd4c is ~10 merges stale with #608 and #620 landing in the very files touched — rebase plus green CI required. (2) The reported CLI pass required CUDA_VISIBLE_DEVICES unset, while #608’s CPU CI sets it to ""; that run must be reproduced under the actual CI environment. (3) The breaking Rust API surface (required core_parameters field with no Default; public validate_core_parameters → validate_core_parameter_declarations) is under-described as “callers must update” and should be stated plainly.
Verdict: Worth it with changes — the design is charter-aligned and cheapest to land before the crates are published, but it should not merge without a rebase, green CI under the real CI environment, and an explicit breaking-API note.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Classify intake
Selected: triage:review, bug, area:scheduling
Threshold: 65%
Triage
- [✓]
triage:review: 99.9% -
triage:design-review: 0.0% -
triage:validation: 0.0% -
triage:integration: 0.0% -
none: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 86.6% -
priority:P2: 7.1% -
priority:P1: 6.3%
Type
- [✓]
bug: 79.8% -
community: 50.0% -
duplicate: 24.5% -
enhancement: 18.2% -
performance: 5.3% -
documentation: 1.0%
Area
- [✓]
area:scheduling: 91.5% -
area:caching: 53.1% -
area:preparation: 40.7% -
area:selene: 34.9% -
area:api: 14.8% -
area:memory: 1.4% -
area:orbit: 0.7% -
area:kernels: 0.5% -
area:engram: 0.4% -
area:rocenante: 0.3% -
area:packaging: 0.2%
Model
-
model:inkling-small: 1.0% -
model:deepseek-v4: 0.8% -
model:deepseek-v4.1: 0.7% -
model:muse-glimmer: 0.4% -
model:gemma4: 0.3% -
model:glm-5.3: 0.1% -
model:qwen3.8-27b: 0.1% -
model:mimo-v2.6: 0.1% -
model:nemotron-3.5-bolt: 0.1% -
model:qwen3.8-flash-next: 0.0% -
model:kimi-k3.1: 0.0%
Apply Labels (Intake)
Applied: +triage:review, +bug, +area:scheduling
Subtraction and simplicity
Lens: Subtraction, Simplicity & Conventions. The diff is mostly lean — the core change is a net deletion (helios/src/server/runtime.rs −36/+8 by dropping the threaded core_parameter_defs parameter; ignition/direct/scheduler.py legitimately deletes its private _wire_fp32/_FP32_MAX and the dead tokens=None parameter of _cache_key). Three removable items remain:
-
helios/src/execution/manifest.rs:89-104 — the new pub(crate) is_text_forward() is a second name for the pre-existing public samples() (its body was samples()'s body on main), with samples() reduced to a one-line forwarder. Drop the whole hunk: point the two call sites at samples() instead (helios/src/model/contract.rs:652, helios/src/model/packing.rs:140). Existing callers (transport.rs:1537 (not opened),1552; manifest.rs:944; model/testing.rs:171 (not opened); server/runtime.rs:2949) already read samples() as the text-forward predicate, so nothing drifts; AGENTS.md:188-193 rules out rearrangements that do not serve the requested behaviour, and this is the file most exposed to post-base conflicts (2147cd4c is ~10 merges behind).
-
docs/api.md:768-771 and docs/direct-execution.md:87-90 add a "what the CPU tests and Kani harnesses cover" inventory that duplicates docs/TODO.txt:10-16 and belongs there per AGENTS.md:57-60 ("Record unresolved … unrun checks … in docs/TODO.txt, not in design documents"). Replace each with one sentence: CPU-tested, GPU not qualified, pointing at docs/TODO.txt. Same section: docs/prefix-cache-offload.md:773-785 grew the admission bullet from 9 to 13 lines and left a mis-wrapped line at :781; three sentences carry it.
-
Low value: ignition/direct/scheduler.py:119-136 still wraps the now-shared wire_fp32 in try/except that re-raise a generic message, discarding the label the helper takes (ignition/preparation/contract.py:15-28, used with labels at contract.py:140,145,146). Pass label=... at :122/:132 and delete both wrappers, keeping the helper's type gate intact.
Checked and not flagged: the duplicate doc comments on admit/plan_admission; the 12 mechanical core_parameters: vec![] test literals (API question for the Correctness lens); the construction-vs-admission negative tests (different stages).
Open: whether one sentence apiece satisfies TODO.txt:15-16's close criterion; whether the manifest relocation is intentional churn. Zero human engagement on #621, so no maintainer steer exists.
Correctness and contracts
PR #621 is sound in its core mechanics; no blocker. I verified the rejection precedes free_slot() and cache.lookup, that declaration-free cores keep byte-identical prefix roots, that preemption preserves parameter identity, and that the graph-kind relocation is behaviour-neutral. The findings are a silent-failure seam, diagnosability, and claim accuracy.
- Major — values are resolved against
config.contract(helios/src/server/request.rs:333-335) but validated againstself.capabilities.core_parameters(helios/src/scheduler.rs:1565,1576); nothing pins the two lists equal, andhelios/src/server/runtime.rs:2753-2755swallows the error (let Ok(plan) = plan else { return; };), so divergence silently removes pool lookup and then rejects 100% of requests with no metric. - Minor — all seven admission predicates share one message (
helios/src/scheduler.rs:1582-1585), so the parameterless-on-a-declaring-core trap this PR closes never names core parameters or the right entry point. - Minor — two breaking public API changes are under-described: a required field with no
Default/#[non_exhaustive](helios/src/scheduler.rs:110-111) and thevalidate_core_parameters→validate_core_parameter_declarationsrename (helios/src/runtime_core/mod.rs:48-50). - Minor —
tests/direct/test_scheduler.py:998-1001tests the helper inignition.preparation.contractonly, so a re-broken import inignition/direct/scheduler.py:44stays green; the undeclared_cache_keysignature change rides along at:878-882. - Minor — the cited Kani harnesses are #505's pre-existing proofs (
helios/src/model/contract/kani_proofs.rs:85-142); the diff adds none. - Minor —
docs/prefix-cache-offload.md:773-779now restrictsplan_admissionto declaration-free cores while:833still describes admission that way unconditionally. - Minor — the CLI suite count is reported only with
CUDA_VISIBLE_DEVICESunset, which is not how the repo's CPU CI runs it.
Open questions: whether begin_pool_lookup's dropped error belongs in this PR (the pattern predates it), whether SchedulerCapabilities is a supported out-of-tree type, the exact "86 passed" invocation, and clean-merge status after #608/#620 — no CI ran on cbb7a4f.
Final review
Recommendation: Changes Requested
The core design is sound, model-agnostic, and closes the real unsalted-admission trap from #505 cleanly with net code deletion in helios/src/server/runtime.rs and ignition/direct/scheduler.py. However, head cbb7a4f is stale against current main with a verified merge conflict and test compile break in helios/src/scheduler/policy_tests.rs (where main refactored cold_deepseek_16k_engine into prefill_catalog_engine, which lacks the new required core_parameters field), and no CI checks have run on the PR head. Rebase onto main, update prefill_catalog_engine, and get green CI runs across native serving, Helios lifecycle/Kani, and Python CPU suites to merge.
Merge Risk
Level: Low (once rebased and CI-verified)
- Narrow hot-path footprint:
plan_admission_with_core_parametersreads&self.capabilities.core_parameters(helios/src/scheduler.rs:1565) instead of a caller-supplied slice, adding no per-admission allocation, lock, or I/O. Rejection runs beforeself.free_slot()?(:1587) andself.cache.lookup(&history)?(:1602), leaving slots, pages, snapshots, and cache state untouched. - Backward compatibility preserved: Declaration-free and legacy cores initialize
core_parameters: vec![]and produce byte-identical prefix root hashes (PrefixHistory::with_core_parameterswith an empty iterator matchesPrefixHistory::newathelios/src/cache/hash.rs:37-53). No protobuf wire fields orModelContract.versionchange. - In-tree Rust API break + stale base: Adding a required public field to
SchedulerCapabilities(helios/src/scheduler.rs:110-111) and renaminghelios_core::runtime_core::validate_core_parameters(helios/src/runtime_core/mod.rs:48-50) breaks Rust struct-literal and validator callers—currently safe for external consumers because the crates are unpublished, but already collides withprefill_catalog_engineadded onmain.
Walkthrough
- Scheduler-owned core-parameter declarations (
helios/src/scheduler.rs,helios/src/model.rs,helios/src/server/runtime.rs): Addspub core_parameters: Vec<CoreParameter>toSchedulerCapabilities, validates declarations inRequestScheduler::new(scheduler.rs:714), populates it inscheduler_capabilities(model.rs:340), removes the declaration-slice parameter fromplan_admission_with_core_parameters(scheduler.rs:1560-1565), and removes threadedcore_parameter_defsarguments acrossbegin_pool_lookup,admit_with_checkpoint_accounting,admit_with_host_store, and their callers (runtime.rs, net +8/−36). - Validator naming & graph-kind predicate consolidation (
helios/src/runtime_core/{mod,protobuf}.rs,heliopause/src/export/binding.rs,helios/src/execution/manifest.rs,helios/src/model/{contract,packing}.rs): Renamesruntime_core::validate_core_parameterstovalidate_core_parameter_declarations; deletes the duplicatedis_text_forward_graphfree function incontract.rsin favor ofGraphKind::is_text_forward()inmanifest.rs:93-104(withsamples()delegating). - Unified Python FP32 narrowing & dead-param cleanup (
ignition/preparation/contract.py,ignition/direct/scheduler.py,tests/direct/test_scheduler.py): Promotes_wire_fp32towire_fp32(value, label="value"), deletes the duplicate_wire_fp32/_FP32_MAXinignition/direct/scheduler.pyand the unusedtokens=Noneparameter on_cache_key, and adds binary32 boundary/type-gate unit tests (tests/direct/test_scheduler.py:998-1025). - Negative admission tests & qualification docs (
helios/src/scheduler/tests.rs,helios/src/model/tests.rs,helios/src/server/runtime/phase_tests.rs,docs/{TODO.txt,api.md,direct-execution.md,prefix-cache-offload.md},helios/model-contract.md): Tests duplicate-declaration rejection at scheduler construction (scheduler/tests.rs:2630-2646), parameterless rejection without slot consumption (model/tests.rs:138-142,phase_tests.rs:6818), clarifies FP32 representability vs range clamping, and records pending GPU qualification indocs/TODO.txt:10-16and user-facing docs.
Pre-merge Checks
- [PASS] Security / malicious screen: Pure validation hardening and deduplication; no unsafe code, external I/O, dependency changes, or instruction-injection patterns.
- [PASS] Charter & value fit: Model-agnostic root-cause fix aligning with "keep the runtime small and model-agnostic" and "#417 don't silently ignore fields"; GPU qualification gap is transparently tracked in
docs/TODO.txt:10-16(and no in-repo recipe declares core parameters yet). - [WARN] Related / duplicate / conflict check: Clean follow-up to #505 with no duplicate PR, but conflicts with
maininhelios/src/scheduler/policy_tests.rswherecold_deepseek_16k_enginewas refactored intoprefill_catalog_engine(missingcore_parameters). - [WARN] Tests & verification evidence: Local test/Kani/lifecycle/mutation results are plausible and match repo gates (all 13
#[kani::proof]harnesses verified in tree; modified tests are isolated with no shared global state), but no GitHub Actions CI checks exist on headcbb7a4fand currentmainwill not compile cleanly without rebase.
Blockers
- Rebase conflict and compile break on current
main(helios/src/scheduler/policy_tests.rs:4477, 5626) plus missing CI runs oncbb7a4f:- Adding the required field
pub core_parameters: Vec<CoreParameter>toSchedulerCapabilities(helios/src/scheduler.rs:110-111) requires every struct literal to specifycore_parameters. - On PR head
cbb7a4f, this PR patches aSchedulerCapabilitiesliteral insidecold_deepseek_16k_engine(helios/src/scheduler/policy_tests.rs:5626). On currentmain,cold_deepseek_16k_engine(helios/src/scheduler/policy_tests.rs:5648-5664) has been refactored to call a new helperprefill_catalog_engine(helios/src/scheduler/policy_tests.rs:4466-4488), whoseSchedulerCapabilitiesliteral at line4477lackscore_parameters. - In addition, no CI workflows (
native-serving.yml,helios-lifecycle.yml,python-cpu.yml) have run on headcbb7a4f. - Fix: Rebase onto
main, resolve the conflict inhelios/src/scheduler/policy_tests.rs, addcore_parameters: vec![]toprefill_catalog_engine(helios/src/scheduler/policy_tests.rs:4477-4486), and confirm all required CI checks pass on the rebased head.
- Adding the required field
Should Fix
None.
Subtract / Simplify
- Drop redundant
try/exceptwrappers aroundwire_fp32inLayout.__post_init__(ignition/direct/scheduler.py:121-136):wire_fp32already takes alabelargument (ignition/preparation/contract.py:15-28) and raises descriptiveValueErrormessages as used inignition/preparation/contract.py:140-146. The twotry/except ValueErrorblocks inLayout.__post_init__discard that diagnostic context and re-raise generic strings (from None). Passinglabel=f"core parameter {parameter['name']!r} default"/minimum/maximumdirectly removes 4 lines and aligns diagnostics with preparation (verified no tests intests/match the old generic strings). - Optional: call
GraphKind::samples()directly instead of adding a forwarding twin (helios/src/execution/manifest.rs:89-104):GraphKind::samples()and the newpub(crate) fn is_text_forward()match the exact same seven variants, withsamples()reduced to a one-line forwarder. If you prefer a smaller diff surface, you can leavemanifest.rsuntouched and call.samples()athelios/src/model/contract.rs:652andhelios/src/model/packing.rs:140(keepingis_text_forward()is also reasonable if you prefer its naming at core-parameter sites).
Nits
- Document the public validator rename in the PR description: "What changed" notes that Rust callers constructing capabilities or passing declaration slices must update, but omits the public rename
helios_core::runtime_core::validate_core_parameters→validate_core_parameter_declarations(helios/src/runtime_core/mod.rs:48-50). - Keep
docs/prefix-cache-offload.mdinternally consistent (docs/prefix-cache-offload.md:781, 833): Line 773-779 now restrictsplan_admissionto declaration-free cores, while line 833 still saysAdmission consults the store after \plan_admission`` unconditionally; consider rewording to "after admission planning" and rewrapping long line 781. - Dedicated error message for missing/invalid core parameters (
helios/src/scheduler.rs:1576-1585): Evaluatingvalidate_resolved_core_parametersseparately from the prompt/token-limitifblock would let callers who mistakenly calladmit/plan_admissionon a declaring core immediately see that resolved core parameters are required rather than a combined prompt/output/parameter error message.
Dropped on verification
- Correctness Lens #1 ("divergent declaration lists fail silently in
begin_pool_lookup"): Dropped as false/speculative, and its proposed fix would introduce a regression. In production HTTP serving (helios/src/server/runtime.rs:595-599),ModelRuntime::startconstructsRequestSchedulersolely viascheduler_capabilities_with_manifest→scheduler_capabilities(helios/src/model.rs:340, 352), which clonesconfig.contract.core_parameters; neither list is mutated afterward, so they cannot diverge in production. Moreover,begin_pool_lookupintentionally ignoresErr(runtime.rs:2753-2755) becauseplan_admission_with_core_parameterscallsself.free_slot()?(scheduler.rs:1587), which returnsAdmissionError::Capacitywhenever slots are full duringWorker::enqueue(runtime.rs:1234, 1245); callingincoming.reject_admission(error)insidebegin_pool_lookupwould erroneously reject queued requests at slot capacity. On an actualInvaliderror,incoming.awaits_pool(...)isfalse(runtime.rs:1427) and lines1441-1484immediately reject the request viaincoming.reject_admission(error). - Correctness Lens #7 & Dossier #5 ("
CUDA_VISIBLE_DEVICES=""CLI test mismatch withpython-cpu.yml"): Dropped as a false conflation. The author'sCUDA_VISIBLE_DEVICESnote refers to the Rustflare-clisuite (226 tests), which CI runs in.github/workflows/native-serving.yml:69-73(not opened) (cargo test --locked --release --manifest-path flare-cli/Cargo.toml(not opened)) withoutCUDA_VISIBLE_DEVICES="". Only.github/workflows/python-cpu.yml:30-33(not opened) (Pythonpytest) setsCUDA_VISIBLE_DEVICES: "". - Correctness Lens #4 ("new Python test does not exercise direct execution's use of
wire_fp32/ undeclared_cache_keychange"): Dropped as over-flagged. Direct execution'swire_fp32integration is already covered bytest_direct_server_core_parameters_and_model_card(tests/direct/test_scheduler.py:909-930) via_core_parameters(ignition/direct/server.py:111-118) →Layout.resolve_core_parameters(ignition/direct/scheduler.py:225) with-0.0,True,"0.5",1e100, and1e-100. Removing the unusedtokens=Noneparameter from_cache_key(ignition/direct/scheduler.py:878-882; only 2 single-arg callers at lines605and888) is clean dead-code removal. - Correctness Lens #5 ("pre-existing Kani harnesses presented as verification of this change"): Dropped as low-signal.
docs/design-review.md:221-225, 234-240mandates running the existing Kani proofs (13#[kani::proof]harnesses verified inhelios/src/**/kani_proofs.rs) and TLA+ lifecycle conformance suite whenever touching admission or sequential validators; reporting those required regression runs alongside the new negative unit tests and mutation check is accurate. - Subtraction Lens #2.1 ("qualification notes in
docs/api.md:767-771anddocs/direct-execution.md:87-90violateAGENTS.md"): Dropped as over-flagged.AGENTS.md:55-57explicitly instructs stating support as present qualification ("what is implemented, the hardware and configurations on which it is qualified, and what is not qualified"), anddocs/TODO.txt:15-16explicitly pairs with these two-sentence notes; the "exhaustive inventories" prohibition inAGENTS.md:119applies to PR descriptions, not concise qualification statements. - Subtraction Lens #1.1 sub-claim ("
helios/src/execution/manifest.rsis most exposed to merge conflicts withmain"): Dropped as factually false;helios/src/execution/manifest.rs:80-105onmainis unchanged since base2147cd4c.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 99.9% -
triage:design-review: 0.0% -
triage:integration: 0.0% -
triage:validation: 0.0% -
triage:partial: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
none: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with. decide malicious: all_clear (100%): No malicious content found
explore
Author: jcartu (CONTRIBUTOR; Discord: jcartu) Motivation: After #505 added core-declared FP32 parameters, a caller of the parameterless Rust admission API could start a prefix lookup without those parameters in the cache key, so two differently-parameterised requests could share prefix state. #621 makes the scheduler own the declarations so that omission fails loudly instead of silently hashing an unsalted prefix. Scale: +148 / −117 lines in 25 files Proposal:
SchedulerCapabilitiesgainscore_parameters, validated inRequestScheduler::new(scheduler.rs:109-110, :696)- Admission takes only resolved values;
plan_admissionnow passes&Default::default()and a declaring core rejects beforefree_slot()/cache.lookup(scheduler.rs:1448-1505) is_text_forward_graphfolded intoGraphKind::is_text_forward()(execution/manifest.rs:89-104)- Python FP32 narrowing unified as
wire_fp32(ignition/preparation/contract.py:15-28) - Public validator renamed
validate_core_parameters→validate_core_parameter_declarations; GPU qualification recorded in docs/TODO.txt:10-16 Touches: - helios/src/scheduler.rs — admission contract and a required public field (breaking)
- helios/src/server/runtime.rs (+8/−36) — admission call sites lose the declaration slice
- helios/src/runtime_core/mod.rs — public symbol rename Related items:
- #505 Bind core-declared FP32 parameters into text forward graphs (merged): parent; #621 closes its two should-fix review items
- #608 helios,ignition,ci: restore catalog validation, CPU Python tests, script separation (merged): edits the same scheduler.py and adds the CI whose
CUDA_VISIBLE_DEVICES=""contradicts #621's CLI verification - #599 runtime-loaded low-rank weight/steering overlays (open issue): proposes on top of core_parameters; must live with scheduler-owned declarations
- #461 Document strict tool selection and numeric range precision (open): same author, also appends to docs/TODO.txt
- #620 Remove copy drafts and history drafts while keeping legacy cores loadable (merged): current base parent; did not touch the graph-kind helpers
Link: https://github.com/NVIDIA/hyperflare-inference/pull/621
Autobot comments: Amendment-only items since the last report: head rebased
cbb7a4f→55bab978onc146d7be(#620, main tip), resolving the stale-base finding at unchanged size; evidence re-run with higher totals (Helios 1,799 / Heliopause 216 / Flare 245 / CLI 227, 593,697 transitions) but still #505's own checker (593,660) and no new Kani harness; a flare-autobot "Changes Requested" review now exists (23:13, 1 blocker) whose sole blocker — apolicy_tests.rsconflict overprefill_catalog_engine— is stale at head, sincecore_parameters: vec![]is present at policy_tests.rs:4489; labelsarea:scheduling, bug, triage:reviewwere added; a new nit is the same-name pairvalidate_core_parameter_declarationsin contract.rs:460 vs runtime_core/mod.rs:48; no CI exists on the new head even though python-cpu.yml:3-7 and native-serving.yml:3-7 fire on every pull_request. The bot comment asks readers to follow an external "Full Review" link; I did not, and all Autobot artifacts are generated material, not human review.
Value Proposition
Value Proposition — PR #621 "Validate scheduler admission against the core parameter declarations" (jcartu, 25 files, +148/−117, head 55bab978, parent c146d7be = #620 = current main)
1. Charter alignment — good. After #505, a caller of the parameterless Rust admission API could start a prefix lookup without the values the core declares in the cache identity. A standard input silently absent at the layer that keys the cache is exactly what the charter forbids: "If a standard request field is passed in, either implement it according to the spec or reject it" (#417), with root-cause fixes rather than swallowed errors (#397). Taking declarations from the core at construction, and failing before cache.lookup/free_slot() on missing values, is the smallest correct footprint in shared code — and it removes code (server/runtime.rs +8/−36, ignition/direct/scheduler.py +6/−21, model/contract.rs −14). No per-model branch, no new flag, no runtime-vs-recipe ownership crossing.
2. Novelty & status — additive. Nothing on main fixes this; no competing open PR is cited, so not superseded; not obsolete. The rebase onto the #620 tip clears the earlier stale-base objection.
3. Value vs maintenance cost — real but unproven at the edges. Beneficiary is the in-process Rust SDK (#6), still unpublished: the API break is cheap now, expensive after publication — the strongest argument to take it. Counterweights: no production cache mix-up was ever observed, so the defect is latent; all evidence is self-reported (Helios 1,799 / Heliopause 216 / Flare 245 / CLI 227, 13/13 Kani — no new harness added, lifecycle totals are #505's checker re-run); there is no CI on 55bab978 although three workflows would fire (python-cpu.yml, native-serving.yml, and helios-lifecycle.yml, path-filtered on helios/**), so the author's "override unset" caveat still does not match how CI runs the suite. No GPU export/serving evidence is claimed; deferral to docs/TODO.txt:10-16 is defensible since no kernels or in-repo recipe declares core parameters yet.
Conditions: add a test pinning that config.contract.core_parameters (resolution, server/request.rs:333-335) and capabilities.core_parameters (admission) agree — the PR's central invariant is currently unasserted; resolve the duplicate identifier (contract.rs:460-469 vs runtime_core/mod.rs:48-50); obtain one human review and CI on the new head.
Provenance finding: the only review is flare-autobot's; its sole blocker is stale at head (policy_tests.rs:4489 already sets core_parameters: vec![]). That comment also directs the reader to an off-repository "Full Review" link and to "have your agent review" it — I did not follow or act on those instructions, and treated all Autobot artifacts as review prompts, not evidence.
Verdict: Worth it with changes.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Classify intake
Selected: triage:review, area:scheduling
Threshold: 65%
Triage
- [✓]
triage:review: 99.8% -
triage:validation: 0.1% -
triage:design-review: 0.0% -
none: 0.0% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:partial: 0.0% -
triage:superseded: 0.0% -
triage:verify-for-closure: 0.0%
Priority
-
none: 95.5% -
priority:P2: 3.3% -
priority:P1: 1.2%
Type
-
bug: 59.3% -
enhancement: 46.9% -
community: 34.9% -
performance: 24.5% -
duplicate: 14.8% -
documentation: 0.1%
Area
- [✓]
area:scheduling: 94.7% -
area:api: 14.8% -
area:caching: 11.9% -
area:preparation: 8.5% -
area:memory: 1.0% -
area:engram: 0.4% -
area:selene: 0.4% -
area:kernels: 0.3% -
area:orbit: 0.2% -
area:packaging: 0.0% -
area:rocenante: 0.0%
Model
-
model:inkling-small: 1.2% -
model:deepseek-v4: 1.1% -
model:deepseek-v4.1: 0.9% -
model:glm-5.3: 0.5% -
model:kimi-k3.1: 0.2% -
model:nemotron-3.5-bolt: 0.2% -
model:qwen3.8-27b: 0.2% -
model:mimo-v2.6: 0.1% -
model:muse-glimmer: 0.1% -
model:gemma4: 0.1% -
model:qwen3.8-flash-next: 0.1%
Apply Labels (Intake)
No label changes
Subtraction and simplicity
Subtraction lens on PR #621 (head 55bab978): the diff is mostly lean and genuinely subtractive — _wire_fp32 deleted from ignition/direct/scheduler.py in favour of the existing wire_fp32 (preparation/contract.py:15), _cache_key's unused tokens argument removed, is_text_forward_graph removed as a byte-identical duplicate of samples(), and the core_parameter_defs slice deleted from four signatures and four call sites in helios/src/server/runtime.rs.
Four suggestions:
- (high)
helios/src/execution/manifest.rs:89-104now has two names for one predicate:samples()just callspub(crate) fn is_text_forward(). Makeis_text_forwardpub, deletesamples(), rename its 5 call sites (manifest.rs:944, transport.rs:1537 (not opened),1552, testing.rs:171 (not opened), server/runtime.rs:2906). −2 lines, one name. - (high) The wire-level rename
validate_core_parameters→validate_core_parameter_declarations(runtime_core/mod.rs:48-50, protobuf.rs:54,85,952,966,1012, heliopause/src/export/binding.rs:1051) supports no behaviour the PR needs and now shares its identifier with the pre-existinghelios::model::contract::validate_core_parameter_declarations(contract.rs:460) — two public fns, same name, different layers. AGENTS.md:188-193 rejects rename-only churn; revert it. - (medium) The "pending qualification" prose is added to design docs (docs/api.md:766-770, docs/direct-execution.md:86-89) as well as docs/TODO.txt:10-16, contrary to AGENTS.md:57-60. The TODO entry already names the removal criterion; delete both design-doc sentences.
- (low, note not demand)
helios/src/scheduler.rs:1448-1452:plan_admissiondocuments "Rejects cores that declare core parameters" but the rejection is realised only byvalidate_resolved_core_parameters's length check (contract.rs:475-482), whose error is folded into the generic admission message at scheduler.rs:1479-1482. An explicit empty-declarations guard would match the doc.
No correctness bugs reported (other lens). Checked and deliberately not flagged: RequestScheduler::new's re-validation (scheduler.rs:696, pub-constructor guard with its own test at scheduler/tests.rs:2432-2446) and Python Layout.__post_init__ range checks (pre-existing, outside the diff). Open: the five SchedulerCapabilities test-literal updates are mechanical; no in-repo recipe declares core parameters, so nothing pins config.contract.core_parameters against capabilities.core_parameters.
Correctness and contracts
Correctness/Contracts/System review of PR #621 (head 55bab97). The mechanical parts are sound; one design-level contract hazard and four small claim/test/naming gaps.
Key findings:
- F1 (Minor, needs a reply): declarations now have two owners with no invariant linking them —
SchedulerCapabilities.core_parametersfor admission/prefix identity (helios/src/scheduler.rs:109-110, validated once at:696, used at:1462) vsconfig.contract.core_parametersfor the values actually resolved and packed (helios/src/server/request.rs:333-335,helios/src/model/admission.rs:76), bridged only by a clone athelios/src/model.rs:336. A hand-built capabilities struct withvec![]on a declaring core rejects every request with a prompt-blaming message (scheduler.rs:1473-1482) instead of failing at startup. Fail-closed — no cache mix-up — but pre-PR drift was impossible. Fix: compare the two lists inModelRuntime::start(server/runtime.rs:637-641) or take declarations fromPreparedContractinstead of storing a secondVec. - F2 (Minor): the description omits a third break — a renamed
pubre-export with no alias,helios_core::runtime_core::validate_core_parameters→validate_core_parameter_declarations(helios/src/runtime_core/mod.rs:48-50, consumed atheliopause/src/export/binding.rs:1051). - F3 (Minor): "declaration-free cores keep their existing prefix keys" is untested;
plan_admissionnow routes everything through the salted path (scheduler.rs:1450-1452,:1485-1491), and a key change would silently invalidate persisted checkpoints. - F4 (Minor): four unrelated preconditions fold into one
AdmissionError::Invalidwith one message (scheduler.rs:1463-1483), so a caller cannot tell that "this core declares parameters, pass values" is the cause. - F5 (Minor): same identifier, two meanings —
model/contract.rs:460takes&[CoreParameter],runtime_core/mod.rs:48takes&wire::ModelContract, while the values check keeps the old verb (contract.rs:521). - Sound: no admission-metric/span/threshold change (
server/runtime.rs:2779-2863untouched), no lock/alloc/queue/memory cost (the change removes an argument), no new panic surface (scheduler.rs:1488index is provably total),GraphKindmove is behaviour-identical, Pythonwire_fp32shared safely, no OS-specific code touched.
Open: the two declaration owners are unpinned and untested; no CI on the new head; the prior bot-review blocker (a policy_tests.rs conflict) is stale at head and unretracted; the out-of-repo "Full Review" link was not fetched.
Re-review
Recommendation: Ready To Merge
Rebasing onto c146d7be (current main tip, head 55bab978) cleanly resolved the prior merge-conflict blocker in helios/src/scheduler/policy_tests.rs:4489, and every SchedulerCapabilities construction site across the repository is now updated. The change closes the #505 unsalted-admission gap at the right layer with net code deletion in the server runtime and Python direct scheduler, preserves prefix-key compatibility for declaration-free cores, and introduces no hot-path allocation, lock, panic, or lifecycle regression. Confirm GitHub Actions CI passes on 55bab978 before merging.
Merge Risk
Level: Low
- Minimal hot-path footprint, zero resource leaks on rejection:
RequestScheduler::plan_admission_with_core_parameters(helios/src/scheduler.rs:1457-1505) borrows&self.capabilities.core_parametersinstead of taking a caller slice—adding no lock, allocation, or I/O—and validates resolved values (:1473-1483) strictly beforeself.free_slot()?(:1484) andself.cache.lookup(&history)?(:1499). Thecore_parameters[parameter.name.as_str()]lookup at:1488is total becauseRequestScheduler::new(:696) rejects duplicate declarations andvalidate_resolved_core_parameters(helios/src/model/contract.rs:471-485) enforces exact name-set and cardinality agreement. - Backward compatibility preserved: Declaration-free cores populate
core_parameters: vec and produce byte-identical prefix keys (PrefixHistory::newalready delegates toPrefixHistory::with_core_parameterswith an empty iterator athelios/src/cache/hash.rs:37-39, pinned by BLAKE2b-128 golden digests inhelios/src/cache/tests.rs:96-125). No protobuf wire fields, HTTP schemas, or host-restore cost/timing spans (helios/src/server/runtime.rs:2721-2805) change. - Rust API surface changes contained in tree: Adding
SchedulerCapabilities.core_parameters(helios/src/scheduler.rs:110), dropping the declaration slice fromplan_admission_with_core_parameters(:1457-1461), and renaminghelios_core::runtime_core::validate_core_parameters(helios/src/runtime_core/mod.rs:48) are breaking Rust API changes, but the crates are unpublished and all 20 in-treeSchedulerCapabilitiesliterals and validator callers are updated cleanly.
Walkthrough
- Scheduler-owned core-parameter declarations: Adds
pub core_parameters: Vec<CoreParameter>toSchedulerCapabilities(helios/src/scheduler.rs:109-110), validates declarations inRequestScheduler::new(:696), populates them fromconfig.contract.core_parametersinscheduler_capabilities(helios/src/model.rs:336), and updatesplan_admission/plan_admission_with_core_parameters(helios/src/scheduler.rs:1448-1491) so declaring cores reject parameterless admission before slot reservation or cache lookup. - Server runtime simplification: Drops the redundant
core_parameter_defsslice parameter frombegin_pool_lookup,admit_with_checkpoint_accounting,admit_with_host_store, and their call sites inhelios/src/server/runtime.rs(+8/−36). - Graph-kind & wire-validator cleanup: Deletes the duplicated
is_text_forward_graphfree function fromhelios/src/model/contract.rsin favor ofGraphKind::is_text_forward()(helios/src/execution/manifest.rs:89-104, withsamples()delegating) and renamesruntime_core::validate_core_parameters→validate_core_parameter_declarationsacrosshelios/src/runtime_core/{mod.rs,protobuf.rs}andheliopause/src/export/binding.rs:1051. - Shared Python FP32 narrowing & dead-parameter removal: Exports
wire_fp32(value, label="value")fromignition/preparation/contract.py:15-28, deletes the duplicate_wire_fp32/_FP32_MAXimplementation and unusedtokens=Noneargument on_cache_keyinignition/direct/scheduler.py(+6/−21), and adds binary32 boundary/type-gate unit tests intests/direct/test_scheduler.py:997-1025. - Tests & qualification documentation: Adds duplicate-declaration constructor rejection (
helios/src/scheduler/tests.rs:2432-2449), parameterless rejection without slot consumption (helios/src/model/tests.rs:135-139), and distinct parameterless-rejection vs different-scale cache-miss vs matching-scale cache-hit checks (helios/src/server/runtime/phase_tests.rs:6843-6860); records pending GPU qualification indocs/TODO.txt:10-16and updatesdocs/api.md:766-770,docs/direct-execution.md:86-89,docs/prefix-cache-offload.md:773-781, andhelios/model-contract.md:128-134.
Pre-merge Checks
- [PASS] Security / malicious screen: Pure validation hardening and deduplication; no unsafe code, external I/O, dependency changes, or prompt-injection attempts.
- [PASS] Charter & value fit: Model-agnostic root-cause fix aligning with
#417(reject missing/invalid inputs rather than silently dropping them) and keeping Helios small and generic; pending GPU qualification is transparently tracked indocs/TODO.txt:10-16while no in-repo recipe declares core parameters yet. - [PASS] Related / duplicate / conflict check: Clean follow-up to #505 rebased onto
c146d7be(maintip, #620) with no conflicts or competing PRs. - [WARN] Tests & verification evidence: Reported local runs cover every applicable
docs/design-review.mdCPU gate (--locked --releasesuites across Helios/Heliopause/Flare/CLI, 13/13 Kani harnesses, TLC + Rust lifecycle conformance, 86 Python tests, and isolated real-path new tests), but GitHub Actions check statuses on55bab978(native-serving.yml,python-cpu.yml,helios-lifecycle.yml) are not observable here—verify CI is green on55bab978prior to merge.
Blockers
None.
Should Fix
None.
Subtract / Simplify
- Optional: revert the unrelated wire-validator rename (
helios/src/runtime_core/mod.rs:48-50,helios/src/runtime_core/protobuf.rs:54,85,952,966,1012,heliopause/src/export/binding.rs:1051). Renamingpub fn validate_core_parameters→validate_core_parameter_declarationsdoes not support the scheduler-admission change (AGENTS.md:190-193), introduces an undocumented public re-export break inhelios_core::runtime_core, and creates two public functions with the same name taking different types (&wire::ModelContractatruntime_core/mod.rs:48vs&[CoreParameter]atmodel/contract.rs:460). Reverting these hunks removes unnecessary churn; if kept, mention the rename alongside the other Rust API breaks in the PR description.
Nits
- Dedicated error message for core-parameter validation failure (
helios/src/scheduler.rs:1463-1483).plan_admission_with_core_parameterscurrently ORsvalidate_resolved_core_parameters(...).is_err()into the sameAdmissionError::Invalidguard as prompt/boundary/limit checks, so calling parameterlessadmit()/plan_admission()on a declaring core returns the combined"request requires a nonempty prompt, positive output limit, bounded total tokens, and resolved core parameters"message. Splitting the core-parameter check into its ownErrreturn would make diagnosing missing/invalid core parameters clearer for Rust SDK callers.
Dropped on verification
- Prior bot review blocker (
helios/src/scheduler/policy_tests.rsprefill_catalog_enginemissingcore_parameters): Stale at55bab978;policy_tests.rs:4489setscore_parameters: vec![]and all 20SchedulerCapabilitiesconstruction sites in the repository compile cleanly againstmain(c146d7be). - Correctness F1 / Value Proposition condition ("two independent declaration owners with no startup check / missing parity test"): Dropped.
ModelRuntime::start(helios/src/server/runtime.rs:637-641) never accepts an externally constructedSchedulerCapabilities; it always derives capabilities from&worker_configviascheduler_capabilities_with_manifest→scheduler_capabilities(helios/src/model.rs:336), matching every other field onSchedulerCapabilities(vocabulary,page_tokens,vision, etc.). Furthermore,helios/src/model/tests.rs:119-139already builds the scheduler viascheduler_capabilities(&config)on a declaring core and asserts parameterless admission is rejected, directly exercising that link; even a hand-constructed mismatchedSchedulerCapabilitiesfails closed at admission. - Correctness F3 ("declaration-free prefix-key compatibility is untested"): Dropped as false.
PrefixHistory::new(helios/src/cache/hash.rs:37-39) already delegates toSelf::with_core_parameters(identity, std::iter::empty::<(&str, f32)>()), which is pinned by fixed BLAKE2b-128 golden digests inhelios/src/cache/tests.rs:96-125, andplan_admissionalready routed throughplan_admission_with_core_parameterswith&[]pre-PR. - Subtraction #1 ("delete
GraphKind::samples()and replace withpub fn is_text_forward()"): Dropped. The PR already eliminated the duplicated 7-armmatches!block by havingpub fn samples(self)delegate topub(crate) fn is_text_forward(self)(helios/src/execution/manifest.rs:89-104). Deletingsamples()would break a public method and reduce clarity at sampling-specific call sites (manifest.rs:944,transport.rs:1537,1552,model/testing.rs:171,server/runtime.rs:2906). - Subtraction #3 ("pending-qualification notes in
docs/api.md:766-770anddocs/direct-execution.md:86-89violateAGENTS.md"): Dropped as false.AGENTS.md:55-58explicitly requires design/user docs to state present qualification status ("what is implemented, the hardware and configurations on which it is qualified, and what is not qualified")—matching existingNot qualified:/ qualification notes acrossdocs/api.md,docs/core-design.md(not opened),docs/model-preparation.md(not opened), anddocs/windows.md(not opened)—while recording actionable pending work indocs/TODO.txt. - Discovery Dossier #5 ("'override unset' CLI caveat contradicts CI"): Stale; that caveat is no longer present in the PR description at
55bab978.
Full report Decision to Test: yes (59%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.
Classify triage
Selected: triage:review
Threshold: 65%
Triage
- [✓]
triage:review: 87.7% -
triage:validation: 11.9% -
none: 0.2% -
triage:design-review: 0.1% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:integration: 0.0% -
triage:partial: 0.0% -
triage:superseded: 0.0%
Apply labels
No label changes
Pre Test Report
Hardware Test Plan — PR #621 "Validate scheduler admission against the core parameter declarations"
Headline: there is no speedup to measure
PR #621 claims no performance improvement. It is a fail-loud correctness fix: after #505, a Rust caller could admit a request on a core that declares FP32 forward parameters while passing no declarations, hashing an unsalted prefix root. The PR makes the scheduler own the declaration list (SchedulerCapabilities.core_parameters, helios/src/scheduler.rs:109-110), validates it at construction (:696), and makes plan_admission / admit reject declaring cores before free_slot() (:1484) and cache.lookup (:1499). Net code deletion in helios/src/server/runtime.rs (+8/−36) and ignition/direct/scheduler.py.
The diff touches no CUDA kernels, no transport frames, no graph capture, and no packing code. The hot path gains nothing and loses nothing: plan_admission_with_core_parameters now reads &self.capabilities.core_parameters instead of a caller slice — one fewer argument, no allocation, lock, or I/O. A GPU campaign therefore cannot "validate the change" in the usual sense; CPU gates already cover the changed logic.
So the correct use of GPU time is narrow: a ~30-minute regression check on one GPU, plus one genuinely untested claim that CPU tests cannot reach. Anything beyond that wastes the budget.
What GPU time can and cannot prove here
| Goal | Needs GPU? | Verdict |
|---|---|---|
| Admission rejection logic, duplicate-declaration rejection, FP32 narrowing | No | Covered by cargo test + the 13 Kani harnesses + pytest |
| Declaration-free prefix keys unchanged (the PR's core back-compat claim) | Partly | CPU pins the BLAKE2b-128 digest (helios/src/cache/tests.rs:96-125 (not opened)), but not a previously persisted checkpoint read by the post-PR binary |
Real-core load/serve of a core that declares core_parameters |
Yes | Blocked — no such core exists (see Gap) |
| Throughput / cache-hit-rate regression | Yes (weak signal) | Cheap parity check, not a speedup hunt |
| arm64 (GB10/SM121) smoke | Yes | Cheap, catches toolchain issues the x86 CI matrix cannot |
Recommended plan
Phase 0 — free, do it first, no GPU (≈0 GPU-minutes)
0.1 Get CI green on head 55bab978. Zero GitHub Actions runs exist on this head even though python-cpu.yml:3-7, native-serving.yml:3-7, and helios-lifecycle.yml:3-11 all fire on pull_request. If these fail, stop — do not spend GPU time on an unverified head. The exact CI commands:
cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) \
--target-dir flare-cli/target --features runtime-core,server # native-serving.yml:63
CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/ -q # python-cpu.yml:30-33
python3 verification/helios-lifecycle/check.py (not opened) --tlc-jar "$RUNNER_TEMP/tla2tools.jar"
cargo kani --manifest-path helios/Cargo.toml (not opened) --features runtime-core --lib
Note: the earlier bot blocker (a policy_tests.rs conflict) is fixed on this head — core_parameters: vec![], is added inside prefill_catalog_engine at policy_tests.rs:4489. The stale "Changes Requested" review should be disregarded.
0.2 Verify a usable core actually exists. Every listed model reports "0 GiB" on both machines, which suggests nothing is materialized. Confirm before booking a slot, or the session burns on a download:
flare models list --json
flare models inspect <CORE> # check arch, rank count, size, and flare.core_parameters
Two constraints decide the machine:
- Architecture split.
cn5is Blackwell Max-Q (SM120 class);cn7is GB10 = SM121. Perdocs/model-preparation.md:477-478, a prepared core is architecture-specific, so one core cannot be used on both machines. - Rank count. A
QLoRA-free 27B NVFP4 TP1 core fits in a single 96 GiB GPU. Use--gpus 0oncn5; do not reserve all four GPUs.
Phase 1 — regression suite on cn5, one GPU (≈20 min)
Run only the two tests that actually exercise prefix-checkpoint identity. tests/server/test_prefix_cache_offload.py is the sole existing GPU test that measures real checkpoint persistence across process restarts.
cargo build --locked --release --manifest-path flare-cli/Cargo.toml (not opened)
export FLARE_RUN_CUDA_TESTS=1
export CUDA_VISIBLE_DEVICES=0
export FLARE_OFFLOAD_TEST_CORE=/path/to/tp1-core.safetensors
export FLARE_TEST_PUBLISHER_KEYS=/path/to/publishers.json (not opened) # if the core needs it
.venv/bin/python -m pytest tests/server/test_prefix_cache_offload.py -q \
-k "disabled_offload_preserves or restart_separates_draft_state" \
--basetemp "$HOME/scratch/pt" # must be a direct-I/O filesystem
Pass criteria (these are the tests' own asserts, test_prefix_cache_offload.py:117-190): flare_cache_reused_tokens_total grows by >32,000 on a repeated identical prompt; all flare_host_cache_* stay 0 when offload is disabled; across restarts flare_host_cache_fetched_total > 0, fetch_failed == 0, reused_tokens > 32,000, stored > 0; a corrupted .ckpt degrades cleanly (fetched == 0, restore launches == 0, init == 1, prefill_tokens > 32,000).
Keep --prefix-cache-disk-limit at 4G or below — a job only gets 16 GiB scratch, and the test otherwise asks for 8G.
Why this catches this PR's most likely real regression: the PR asserts declaration-free cores keep byte-identical prefix keys. If that broke, cache hits collapse and reused_tokens falls — these asserts fail loudly instead of silently costing users throughput.
Phase 2 — the one thing no existing test covers (≈10 min, same slot)
Existing tests only cover within-version records and corruption fallback. They never cover pre-PR record read by post-PR binary — precisely the compatibility claim.
- Serve with the
mainbinary, disk cache enabled:flare run <CORE> --gpus 0 --prefix-cache-disk /tmp/pt --prefix-cache-disk-limit 4G - Send one long prompt twice; confirm
flare_cache_reused_tokens_totalrises by >32,000 and records appear in/tmp/pt. Stop the server. - Restart with the PR binary, same
--prefix-cache-disk /tmp/pt. - Send the identical prompt.
Pass: flare_host_cache_fetched_total > 0 and flare_host_cache_reused_tokens_total grows by >32,000 — the old checkpoint is still found. Fail: fetched == 0 with a clean fetch_failed and a re-prefill: the prefix root moved, silently invalidating persisted checkpoints and Selene shared host-cache entries. That is a merge blocker, not a test flake.
Phase 3 — HTTP contract on a declaration-free core (≈2 min, same slot)
curl -s localhost:8000/v1/models | jq '.data[0].flare.core_parameters' # expect []
curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"<id>","messages":[{"role":"user","content":"hi"}],"core_parameters":{"bogus":0.5}}'
Expect HTTP 400 naming an undeclared parameter (helios/src/model/contract.rs:505-512), and 400 for "core_parameters": [] or 1 (protocol/decode.rs:52-67 (not opened)). A plain request with no core_parameters must serve normally — that is the 99% path this PR must not disturb, and the #417 rule it enforces.
Phase 4 — optional throughput parity (≈10 min, only if asked)
Not a speedup measurement — a guardrail. scripts/benchmark_scheduler.py supports A/B via --variant / --pair-order / --reuse-requests (:176-191):
python3 scripts/benchmark_scheduler.py --base-url http://127.0.0.1:8000 \
--model <id> --concurrency 1,8 --prompt-tokens 512 --output-tokens 256 \
--seconds 60 --warmup-seconds 30 --trials 3 \
--reuse-requests /tmp/pt/ref.jsonl --output /tmp/pt/ab.jsonl
Pass = parity within run-to-run noise (~2–3%). Given the diff removes an argument and adds one startup-time Vec clone (helios/src/model.rs:336), any consistent drop in decode tok/s or in cached prompt tokens is a red flag, not a benchmark artifact. Skip this entirely if GPU minutes are tight — the Phase 1 asserts on reused_tokens are the higher-value signal.
Phase 5 — optional arm64 smoke on cn7 (≈10 min)
Only if a GB10/SM121 core is available. flare run <SM121 CORE> --gpus 0, one request, confirm /v1/models returns flare.core_parameters: [] and the request completes. Purpose is purely to prove the arm64 build links and admits — cn7's 60 GiB RAM is not roomy for a TP1 27B core plus host cache.
Total: ~35–45 GPU-minutes on one GPU of cn5. Nothing here needs a second GPU, a tensor-parallel deployment, or a multi-host setup.
Blocking gap: the PR's own qualification TODO cannot be run
docs/TODO.txt:10-16 asks the tester to "export and serve a core that declares core_parameters … including mixed-parameter batches and speculative decoding … and --direct GPU execution with a recipe that declares core_parameters."
No such core can be produced from this repository today. Searching for core_parameters= outside tests finds only the contract helper (ignition/preparation/contract.py:150), the direct scheduler reading it from config (ignition/direct/scheduler.py:202), and synthetic fixtures (tests/direct/test_scheduler.py, helios/src/model/testing.rs (not opened), phase_tests.rs:6687). Official recipes are out-of-tree (docs/model-preparation.md:310-330), and none declares core parameters.
Producing one is engineering work, not a test session. A core must satisfy (helios/model-contract.md:116-134, ignition/preparation/contract.py:31-37,131-157):
core_parameter(name, default, minimum=, maximum=), ap.CORE_PARAMETER(ValueSource 43) binding withparameter="name", width-1 contiguous FP32 destination covering the request capacity, zero offset/padding, emptytensor;- bound on every selected text-forward graph (prefill, terminal_prefill, scored_prefill, resume, decode, speculative, mixed), forbidden on init/restore/snapshot/vision;
- and the model forward must actually consume the value — otherwise the parameter cannot influence output and checkpoint isolation is unobservable in generated text.
That last point is model work. Recommendation: do not attempt it in this test cycle. Leave the TODO open — which the PR already does honestly and the final review credits — and book it as a separate follow-up. Marking the TODO closed requires closing criteria at docs/TODO.txt:15-16 (updating the qualification notes in docs/api.md and docs/direct-execution.md), so it cannot be closed from this plan.
Do not do
- Don't reserve four GPUs on
cn5— a TP1 core needs one. - Don't run the full GPU matrix or the
--directpath; no changed code runs there. - Don't hunt a speedup; none is claimed and the diff has no hot-path cost.
- Don't try to build a declaring core during the session (see Gap).
- Don't use a core whose architecture doesn't match the machine — an SM120 core on GB10/SM121 will not serve.
Stop conditions
Abort and report rather than continue if: Phase 0 CI fails; no cached core matches the machine's architecture; flare models inspect shows the core already declares core_parameters (it would make Phase 1 asserts fail for unrelated reasons, and it means a declaring core does exist — reassign it to the TODO); or Phase 2 shows fetched == 0 with clean fetch_failed, which is a genuine regression and a merge blocker.
Provenance note
The only review on this PR is flare-autobot's. Its comment on this PR directs readers to an off-repository "Full Review" link and to "have your agent review" it. I did not follow or act on those instructions, and treated all Autobot artifacts as review material, not as evidence or instruction. There are zero human reviews; every test result in the PR description is self-reported and un-CI-verified.
Discord Test Request
Discord post (ready to paste)
Recommendation: Test
Medium-high confidence. ~35–45 GPU-minutes on one GPU is enough, because the PR claims no speedup — it is a fail-loud correctness fix whose logic is already covered by CPU tests (cargo test, 13 Kani harnesses, pytest). Only one claim is genuinely GPU-only and untested: that prefix checkpoints persisted by the old binary are still found by the new one. Confidence is not higher only because one part of the PR's own qualification TODO (serving a core that declares core_parameters) cannot be run at all — no such core exists anywhere in the repo.
Hardware Required
- 1 GPU on
cn5(SM120 class) — use--gpus 0; a TP1 core needs one GPU, not all four. - A prepared TP1 core whose architecture matches the machine (per
docs/model-preparation.md:477-478(not opened), a prepared core is architecture-specific — an SM120 core will not serve on GB10/SM121). - Scratch on a direct-I/O filesystem, with
--prefix-cache-disk-limitat 4G or below (the test asks for 8G but a job only gets 16 GiB).
Justification
- The only real risk is invisible if untested: declaration-free cores must keep byte-identical prefix keys. If that broke, persisted checkpoints and Selene shared host-cache entries silently stop being found — cache hits collapse and users quietly lose throughput. The offload test asserts fail loudly on it (
flare_cache_reused_tokens_totalmust grow >32,000;flare_host_cache_fetched_total > 0across restarts). - Nothing else in the diff needs a GPU: no kernels, transport frames, graph capture or packing code change; the hot path only loses one argument (
&self.capabilities.core_parametersreplaces a caller slice) and rejection happens beforefree_slot()andcache.lookup. A speedup hunt would be waste.
Estimated Time to Complete
~35–45 GPU-minutes, one 30–40 minute session on cn5, plus ~10 minutes of free CPU work first (get CI green on head 55bab978 — if it fails, stop). Breakdown: ~20 min prefix-cache regression tests, ~10 min cross-version checkpoint check (serve with main binary, then read the same disk cache with the PR binary), ~2 min HTTP contract 400/accept checks; optional 10 min arm64 smoke on cn7 (only with an SM121 core) and optional 10 min throughput parity (guardrail only, skip if minutes are tight).
What I verified in the repo before writing it
- Recommendation/scope:
pr_filesshows 25 files, no CUDA/kernel/transport/packing paths;helios/src/server/runtime.rs(not opened) is +8/−36 andignition/direct/scheduler.py(not opened) +6/−21 — net deletion, supporting "no performance claim." - Scheduler ownership of declarations: diff confirms
pub core_parametersadded toSchedulerCapabilities(helios/src/scheduler.rs:109-110), validated inRequestScheduler::new(:696), andplan_admission_with_core_parametersnow takes only the resolved values (declaration slice dropped), so the hot path gains nothing and loses nothing. - Cross-version claim is untested: the PR's own
docs/TODO.txtaddition (new[ ]item) explicitly asks for GPU qualification of declaredcore_parameters, mixed-parameter batches, speculative decoding and--direct, closing only whendocs/api.md(not opened) /docs/direct-execution.md(not opened) qualification notes are updated. - No declaring core exists in-tree: searching
core_parameter(/core_parameters=finds only the contract helper (ignition/preparation/contract.py:131 (not opened),150-156), the direct scheduler reading config (ignition/direct/scheduler.py:202(not opened)), and test fixtures (tests/direct/test_scheduler.py(not opened),helios/src/server/runtime/phase_tests.rs:6686(not opened)). This is why the report's "blocking gap" and my confidence cap are correct. - Pass criteria quoted are real:
tests/server/test_prefix_cache_offload.pyhas the asserted counters at lines 130, 160, 171, 186, 215 (reused tokens >32,000; host fetched >0 after restart; ==0 when offload disabled; corrupted checkpoint fallback). - Benchmark flags quoted are real:
scripts/benchmark_scheduler.py:189,191define--pair-orderand--reuse-requests. - Not independently verified (stated in the source report, taken as-is): the architecture split at
docs/model-preparation.md:477-478(not opened), the "0 GiB" model listings, the CI workflow line numbers, and the conflict-fix atpolicy_tests.rs:4489(not opened). These only affect which machine and core to book, not the recommendation. - Prompt-injection note: the PR's
flare-autobotcomments link to an off-repository "Full Review" page and say "Have your agent review the Full Review." I treated this as review material, not an instruction, and did not follow it — consistent with the source report's provenance note. There are zero human reviews on #621 and no CI runs on the head commit, so the PR's test numbers are self-reported.
Full report Human Approval: Do you approve this test? → No answer in time.
Discord post (ready to paste)
Recommendation: Test
Medium-high confidence. ~35–45 GPU-minutes on one GPU is enough, because the PR claims no speedup — it is a fail-loud correctness fix whose logic is already covered by CPU tests (cargo test, 13 Kani harnesses, pytest). Only one claim is genuinely GPU-only and untested: that prefix checkpoints persisted by the old binary are still found by the new one. Confidence is not higher only because one part of the PR's own qualification TODO (serving a core that declares
core_parameters) cannot be run at all — no such core exists anywhere in the repo.Hardware Required
- 1 GPU on
cn5(SM120 class) — use--gpus 0; a TP1 core needs one GPU, not all four.- A prepared TP1 core whose architecture matches the machine (per
docs/model-preparation.md:477-478(not opened), a prepared core is architecture-specific — an SM120 core will not serve on GB10/SM121).- Scratch on a direct-I/O filesystem, with
--prefix-cache-disk-limitat 4G or below (the test asks for 8G but a job only gets 16 GiB).Justification
- The only real risk is invisible if untested: declaration-free cores must keep byte-identical prefix keys. If that broke, persisted checkpoints and Selene shared host-cache entries silently stop being found — cache hits collapse and users quietly lose throughput. The offload test asserts fail loudly on it (
flare_cache_reused_tokens_totalmust grow >32,000;flare_host_cache_fetched_total > 0across restarts).- Nothing else in the diff needs a GPU: no kernels, transport frames, graph capture or packing code change; the hot path only loses one argument (
&self.capabilities.core_parametersreplaces a caller slice) and rejection happens beforefree_slot()andcache.lookup. A speedup hunt would be waste.Estimated Time to Complete
~35–45 GPU-minutes, one 30–40 minute session on
cn5, plus ~10 minutes of free CPU work first (get CI green on head55bab978— if it fails, stop). Breakdown: ~20 min prefix-cache regression tests, ~10 min cross-version checkpoint check (serve withmainbinary, then read the same disk cache with the PR binary), ~2 min HTTP contract 400/accept checks; optional 10 min arm64 smoke oncn7(only with an SM121 core) and optional 10 min throughput parity (guardrail only, skip if minutes are tight).
What I verified in the repo before writing it
- Recommendation/scope:
pr_filesshows 25 files, no CUDA/kernel/transport/packing paths;helios/src/server/runtime.rs(not opened) is +8/−36 andignition/direct/scheduler.py(not opened) +6/−21 — net deletion, supporting "no performance claim."- Scheduler ownership of declarations: diff confirms
pub core_parametersadded toSchedulerCapabilities(helios/src/scheduler.rs:109-110), validated inRequestScheduler::new(:696), andplan_admission_with_core_parametersnow takes only the resolved values (declaration slice dropped), so the hot path gains nothing and loses nothing.- Cross-version claim is untested: the PR's own
docs/TODO.txtaddition (new[ ]item) explicitly asks for GPU qualification of declaredcore_parameters, mixed-parameter batches, speculative decoding and--direct, closing only whendocs/api.md(not opened) /docs/direct-execution.md(not opened) qualification notes are updated.- No declaring core exists in-tree: searching
core_parameter(/core_parameters=finds only the contract helper (ignition/preparation/contract.py:131 (not opened),150-156), the direct scheduler reading config (ignition/direct/scheduler.py:202(not opened)), and test fixtures (tests/direct/test_scheduler.py(not opened),helios/src/server/runtime/phase_tests.rs:6686(not opened)). This is why the report's "blocking gap" and my confidence cap are correct.- Pass criteria quoted are real:
tests/server/test_prefix_cache_offload.pyhas the asserted counters at lines 130, 160, 171, 186, 215 (reused tokens >32,000; host fetched >0 after restart; ==0 when offload disabled; corrupted checkpoint fallback).- Benchmark flags quoted are real:
scripts/benchmark_scheduler.py:189,191define--pair-orderand--reuse-requests.- Not independently verified (stated in the source report, taken as-is): the architecture split at
docs/model-preparation.md:477-478(not opened), the "0 GiB" model listings, the CI workflow line numbers, and the conflict-fix atpolicy_tests.rs:4489(not opened). These only affect which machine and core to book, not the recommendation.- Prompt-injection note: the PR's
flare-autobotcomments link to an off-repository "Full Review" page and say "Have your agent review the Full Review." I treated this as review material, not an instruction, and did not follow it — consistent with the source report's provenance note. There are zero human reviews on #621 and no CI runs on the head commit, so the PR's test numbers are self-reported.