PR #621: Validate scheduler admission against the core parameter declarations

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/383f8d31-5ffd-46e2-958b-991d7fe31bee

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:

Full report · Notes

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

Priority

Type

Area

Model

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:

  1. 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).

  2. 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.

  3. 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.

Full report · Notes

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.

  1. Major — values are resolved against config.contract (helios/src/server/request.rs:333-335) but validated against self.capabilities.core_parameters (helios/src/scheduler.rs:1565,1576); nothing pins the two lists equal, and helios/src/server/runtime.rs:2753-2755 swallows the error (let Ok(plan) = plan else { return; };), so divergence silently removes pool lookup and then rejects 100% of requests with no metric.
  2. 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.
  3. Minor — two breaking public API changes are under-described: a required field with no Default/#[non_exhaustive] (helios/src/scheduler.rs:110-111) and the validate_core_parameters → validate_core_parameter_declarations rename (helios/src/runtime_core/mod.rs:48-50).
  4. Minor — tests/direct/test_scheduler.py:998-1001 tests the helper in ignition.preparation.contract only, so a re-broken import in ignition/direct/scheduler.py:44 stays green; the undeclared _cache_key signature change rides along at :878-882.
  5. Minor — the cited Kani harnesses are #505's pre-existing proofs (helios/src/model/contract/kani_proofs.rs:85-142); the diff adds none.
  6. Minor — docs/prefix-cache-offload.md:773-779 now restricts plan_admission to declaration-free cores while :833 still describes admission that way unconditionally.
  7. Minor — the CLI suite count is reported only with CUDA_VISIBLE_DEVICES unset, 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.

Full report · Notes

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)

Walkthrough

Pre-merge Checks

Blockers

  1. Rebase conflict and compile break on current main (helios/src/scheduler/policy_tests.rs:4477, 5626) plus missing CI runs on cbb7a4f:
    • Adding the required field pub core_parameters: Vec<CoreParameter> to SchedulerCapabilities (helios/src/scheduler.rs:110-111) requires every struct literal to specify core_parameters.
    • On PR head cbb7a4f, this PR patches a SchedulerCapabilities literal inside cold_deepseek_16k_engine (helios/src/scheduler/policy_tests.rs:5626). On current main, cold_deepseek_16k_engine (helios/src/scheduler/policy_tests.rs:5648-5664) has been refactored to call a new helper prefill_catalog_engine (helios/src/scheduler/policy_tests.rs:4466-4488), whose SchedulerCapabilities literal at line 4477 lacks core_parameters.
    • In addition, no CI workflows (native-serving.yml, helios-lifecycle.yml, python-cpu.yml) have run on head cbb7a4f.
    • Fix: Rebase onto main, resolve the conflict in helios/src/scheduler/policy_tests.rs, add core_parameters: vec![] to prefill_catalog_engine (helios/src/scheduler/policy_tests.rs:4477-4486), and confirm all required CI checks pass on the rebased head.

Should Fix

None.

Subtract / Simplify

  1. Drop redundant try/except wrappers around wire_fp32 in Layout.__post_init__ (ignition/direct/scheduler.py:121-136): wire_fp32 already takes a label argument (ignition/preparation/contract.py:15-28) and raises descriptive ValueError messages as used in ignition/preparation/contract.py:140-146. The two try/except ValueError blocks in Layout.__post_init__ discard that diagnostic context and re-raise generic strings (from None). Passing label=f"core parameter {parameter['name']!r} default" / minimum / maximum directly removes 4 lines and aligns diagnostics with preparation (verified no tests in tests/ match the old generic strings).
  2. Optional: call GraphKind::samples() directly instead of adding a forwarding twin (helios/src/execution/manifest.rs:89-104): GraphKind::samples() and the new pub(crate) fn is_text_forward() match the exact same seven variants, with samples() reduced to a one-line forwarder. If you prefer a smaller diff surface, you can leave manifest.rs untouched and call .samples() at helios/src/model/contract.rs:652 and helios/src/model/packing.rs:140 (keeping is_text_forward() is also reasonable if you prefer its naming at core-parameter sites).

Nits

  1. 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).
  2. Keep docs/prefix-cache-offload.md internally consistent (docs/prefix-cache-offload.md:781, 833): Line 773-779 now restricts plan_admission to declaration-free cores, while line 833 still says Admission consults the store after \plan_admission`` unconditionally; consider rewording to "after admission planning" and rewrapping long line 781.
  3. Dedicated error message for missing/invalid core parameters (helios/src/scheduler.rs:1576-1585): Evaluating validate_resolved_core_parameters separately from the prompt/token-limit if block would let callers who mistakenly call admit/plan_admission on a declaring core immediately see that resolved core parameters are required rather than a combined prompt/output/parameter error message.

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

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:

Full report · Notes

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

Priority

Type

Area

Model

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:

  1. (high) helios/src/execution/manifest.rs:89-104 now has two names for one predicate: samples() just calls pub(crate) fn is_text_forward(). Make is_text_forward pub, delete samples(), 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.
  2. (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-existing helios::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.
  3. (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.
  4. (low, note not demand) helios/src/scheduler.rs:1448-1452: plan_admission documents "Rejects cores that declare core parameters" but the rejection is realised only by validate_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.

Full report · Notes

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:

  1. F1 (Minor, needs a reply): declarations now have two owners with no invariant linking them — SchedulerCapabilities.core_parameters for admission/prefix identity (helios/src/scheduler.rs:109-110, validated once at :696, used at :1462) vs config.contract.core_parameters for the values actually resolved and packed (helios/src/server/request.rs:333-335, helios/src/model/admission.rs:76), bridged only by a clone at helios/src/model.rs:336. A hand-built capabilities struct with vec![] 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 in ModelRuntime::start (server/runtime.rs:637-641) or take declarations from PreparedContract instead of storing a second Vec.
  2. F2 (Minor): the description omits a third break — a renamed pub re-export with no alias, helios_core::runtime_core::validate_core_parameters → validate_core_parameter_declarations (helios/src/runtime_core/mod.rs:48-50, consumed at heliopause/src/export/binding.rs:1051).
  3. F3 (Minor): "declaration-free cores keep their existing prefix keys" is untested; plan_admission now routes everything through the salted path (scheduler.rs:1450-1452, :1485-1491), and a key change would silently invalidate persisted checkpoints.
  4. F4 (Minor): four unrelated preconditions fold into one AdmissionError::Invalid with one message (scheduler.rs:1463-1483), so a caller cannot tell that "this core declares parameters, pass values" is the cause.
  5. F5 (Minor): same identifier, two meanings — model/contract.rs:460 takes &[CoreParameter], runtime_core/mod.rs:48 takes &wire::ModelContract, while the values check keeps the old verb (contract.rs:521).
  6. Sound: no admission-metric/span/threshold change (server/runtime.rs:2779-2863 untouched), no lock/alloc/queue/memory cost (the change removes an argument), no new panic surface (scheduler.rs:1488 index is provably total), GraphKind move is behaviour-identical, Python wire_fp32 shared 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.

Full report · Notes

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

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. 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). Renaming pub fn validate_core_parameters → validate_core_parameter_declarations does not support the scheduler-admission change (AGENTS.md:190-193), introduces an undocumented public re-export break in helios_core::runtime_core, and creates two public functions with the same name taking different types (&wire::ModelContract at runtime_core/mod.rs:48 vs &[CoreParameter] at model/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

  1. Dedicated error message for core-parameter validation failure (helios/src/scheduler.rs:1463-1483). plan_admission_with_core_parameters currently ORs validate_resolved_core_parameters(...).is_err() into the same AdmissionError::Invalid guard as prompt/boundary/limit checks, so calling parameterless admit() / 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 own Err return would make diagnosing missing/invalid core parameters clearer for Rust SDK callers.

Dropped on verification

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

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

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:

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.

  1. Serve with the main binary, disk cache enabled: flare run <CORE> --gpus 0 --prefix-cache-disk /tmp/pt --prefix-cache-disk-limit 4G
  2. Send one long prompt twice; confirm flare_cache_reused_tokens_total rises by >32,000 and records appear in /tmp/pt. Stop the server.
  3. Restart with the PR binary, same --prefix-cache-disk /tmp/pt.
  4. 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):

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

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.

Full report · Notes

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

Justification

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

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-limit at 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_total must grow >32,000; flare_host_cache_fetched_total > 0 across 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_parameters replaces a caller slice) and rejection happens before free_slot() and cache.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_files shows 25 files, no CUDA/kernel/transport/packing paths; helios/src/server/runtime.rs (not opened) is +8/−36 and ignition/direct/scheduler.py (not opened) +6/−21 — net deletion, supporting "no performance claim."
  • Scheduler ownership of declarations: diff confirms pub core_parameters added to SchedulerCapabilities (helios/src/scheduler.rs:109-110), validated in RequestScheduler::new (:696), and plan_admission_with_core_parameters now 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.txt addition (new [ ] item) explicitly asks for GPU qualification of declared core_parameters, mixed-parameter batches, speculative decoding and --direct, closing only when docs/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.py has 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,191 define --pair-order and --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 at policy_tests.rs:4489 (not opened). These only affect which machine and core to book, not the recommendation.
  • Prompt-injection note: the PR's flare-autobot comments 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.