Opened by a workflow run, Nov 28, 2026 9:29 PM EST.
screen malicious
Screen Result: All Clear
Evidence:
- Discussion: PR #505 has no comments, reviews or inline review comments at all — only the author's description; there is no human-authored text in the thread that could carry an injection.
- Description: Reads as the repository's documented PR template ("Why / What Changed / Claimed Result / Supporting Evidence and Limitations"). No "ignore previous instructions", no text addressed to reviewers, agents or automated tooling, no "do not report / approve this / report all clear" phrasing, no requests to fetch or transmit data.
- Diff (32 files, +2393/−261, read file by file): helios/proto/runtime_core.proto; helios/src/model/{contract,packing,admission,testing}.rs plus model.rs and model/tests.rs; helios/src/cache/hash.rs and cache/tests.rs; helios/src/scheduler.rs; helios/src/runtime_core/{mod,protobuf}.rs; helios/src/server/{models,request,inference,runtime}.rs, server/protocol/decode.rs and server/runtime/{phase_tests,prompt_tests}.rs; heliopause/src/export/binding.rs; ignition/preparation/{contract.py,runtime_core_pb2.py}; ignition/direct/{packing,scheduler,server}.py; tests/direct/test_scheduler.py; docs/api.md, docs/direct-execution.md, helios/model-contract.md. Content is purely technical contract/plumbing code. No new eval/exec/subprocess/os.system, shell, network (curl/wget/requests) or obfuscation payloads; no hidden zero-width/bidi Unicode;
runtime_core_pb2.pyis a genuine protoc-generated descriptor regeneration. - Trailing "Discord: jcartu" line is a documented repository requirement (AGENTS.md:144-150 requires a Discord line in every PR/issue description; docs/design-review.md:163-165 repeats it), so it is expected metadata, not an injection vector. Verified in-repo this turn.
- Incidental (not an injection): the description's evidence section cites pass counts and one "pre-existing failure on origin/main" attributed to #555 — a verifiable claim that deserves normal review scrutiny, not steering. Functionally the change is fail-closed (HTTP
core_parametersrejects unknown names, non-object values, booleans, non-numeric, non-finite, >f32::MAX and underflow-to-zero values; bit equality enforced between the admission plan and packed uploads).
Full report · Notes decide malicious: all_clear (100%): No malicious content found
explore
Author: jcartu (Joshua Cartu; outside contributor, association CONTRIBUTOR); no Discord handle given in the PR Motivation: It lets a model core declare named FP32 knobs in its proto contract so the runtime can bind a per-request value (a gain, a steering scale) into an existing captured graph, instead of hardcoding each knob in the engine. Nobody in this repository uses it yet and no speed or quality gain is claimed. Scale: +2,393 / −261 lines in 32 files Proposal:
- Adds
repeated CoreParameter core_parameters = 8toModelContract, withCoreParameter/CoreParameterRangemessages and-0.0→+0.0canonicalization. - Adds
ValueSource CORE_PARAMETER = 43andValueBinding.parameter = 7;ModelContract.versionstays 3. - Validation: every text-forward graph must bind every declared parameter, bindings limited to text-forward kinds and canonical Float32 layouts.
- Prefix-hash root mixes declared name/value pairs after the existing
flare-prefix-root-v1prefix, so declaration-free cores keep the old root exactly. - HTTP, packing, scheduler and direct-execution plumbing plus Kani harnesses and tests. Touches:
helios/src/model/contract.rs(new validation rules and canonicalization) — most riskyhelios/src/model/packing.rs(packing path rewritten in part, zero steady-state allocation)helios/proto/runtime_core.proto(new wire contract: message field 8, enum value 43) Related items:- #404 Add optional per-request activation steering (closed): the owner closed it "in favor of #505" and that comment is #505's only sign-off — in vocabulary (
scalar_arguments) that does not exist in the landed code - #566 Engram prefetch contract (merged): ~11h earlier, same weekend, shipped with measured GPU numbers and a companion recipe PR
- #590 Qwen3.8 PLE lookahead (merged): owner-authored, six minutes after #505, extends the same contract with served numbers
- #535 contract-shape approval request (open): the in-tree approval request #505's body lacks; 0 comments, merged over
- #555 intermediate batch capacities (merged): cited by #505
Link: https://github.com/NVIDIA/hyperflare-inference/pull/505
Autobot comments: Correction to my earlier note: an owner approval was recorded (2026-11-28 22:11, closing #404), but on another PR and for an interface named
scalar_arguments/SCALAR_ARGUMENTthat matches nothing in the tree — the shipped names arecore_parameters,CORE_PARAMETER=43,ValueBinding.parameter=7. So the gap is not "no approval" but "approved interface never verified against the merged one", which AGENTS.md:373-378 covers explicitly. I also withdraw my earlier claim that maintainers route scalars out of core: #566 and #590 land such contracts routinely, but always with a measured consumer and GPU run; #505 has neither, and its only GPU evidence sits on #404's prototype branch, not atef94d62. #505 still has zero reviews and zero CI, while flare-autobot blocked #566 the same weekend for the same missing sign-off.
Value Proposition
Verdict: Worth it with changes (the mechanism itself is right and proportionate; three follow-ups should gate reliance on it)
#505 landed as 85de9eae (+2,393/−261 across 32 files, merged 2026-11-28). Judged on its merits against the charter, it is a legitimate, correctly-layered implementation of a maintainer request, not speculative abstraction — but its value today is entirely deferred to an out-of-tree consumer, and the one path that actually uses the feature has never run on hardware.
Charter fit: this is a maintainer request, and it is in the right layer
- Explicit maintainer request.
lukealonsoin #404 (2026-11-21): "See if your agent can implement this not as a hardcoded steering_scale parameter, but as a generic system by which model cores can expose scalar arguments that can then be provided on a per-request basis and bound dynamically into the graphs. All of this would be described in the model proto." He then closed #404 in favor of #505, delegating the recipe-side consumer tolocal-inference-lab/hyperflare-recipes. The charter's "What gets merged" list includes "PRs that address a maintainer request." This is the strongest possible authorization for the shape of the change. - No per-model branch, flag, or allowlist (charter "Keep the runtime small and model-agnostic"; principles 1 and 3). The declaration is generic data in
ModelContract—core_parameters = 8inhelios/proto/runtime_core.proto:273-283— plus one newValueSource::CORE_PARAMETER = 43andValueBinding.parameter = 7. There is nosupports_*, no recipe identity check, and no second graph kind:CORE_PARAMETERreuses existing kinds, and the allowed set is derived from the contract, not hardcoded per model (helios/src/model/contract.rs:417-427,:690-728). This is exactly the correction #404's first review demanded (that review rejected deriving parameter width from asteering_sidecar_sha256capability field in shared Helios code). - Does not silently ignore API fields (#417). Unknown names, non-object values, booleans, non-numbers, non-finite,
> f32::MAX, and nonzero-underflow-to-zero all return 400 (helios/src/server/protocol/decode.rs:49-76); declared defaults, ranges, and values are advertised underflare.core_parametersin/v1/models(helios/src/server/models.rs:72-125); request values are clamped only to a declared and advertised inclusive range, with-0.0canonicalized. Consistent with the sampling-range convention indocs/api.md:735-765. - No non-goal touched. Not a model alias, not hardware coverage, not a backend layer, not multi-model routing. Direct execution (
ignition/direct/{scheduler,packing,server}.py) is mirrored, which the repo already requires of new packing/admission inputs indocs/direct-execution.md(not opened). - Validation depth matches the testing hierarchy. The change touches admission and prefix identity, so layer 3 was mandatory: TLA+
verification/helios-lifecycle/check.py(not opened) (all 9 models plus mutations and observed Rust replays) and Kani (helios/src/model/contract/kani_proofs.rs:84-142, two new proofs over arbitraryf32) were run, not skipped. Principle 1's "no hardcoded capacities" holds: capacity tests come from declared buffers andlimits.request_capacity(). - Description quality passes principle 16/17: four parts in order,
Discord: jcartu, AI disclosure, and honest limitations ("No model recipe in this repository binds a core parameter… No throughput or output-quality improvement is claimed… GPU end-to-end qualification remains to be executed").
Who benefits, and how much: one contributor today, zero for any shipped configuration
- Direct beneficiary:
jcartu's single-loaded TP4 DeepSeek core serving mixed conditioning strengths (previous evidence and motivation throughout #404). Without this, that deployment needs two ~473 GiB cores or a ~2-minute core swap; that is a concrete, quantified operational cost, not a hypothetical. - Zero benefit for every configuration in this repository right now. I confirmed no in-tree recipe binds a core parameter (no
core_parameter/CORE_PARAMETERmatches underignition/recipes, which after the recipe split holds no recipe packages). The PR says so explicitly. By the charter's own standard ("hypothetical future consumers… do not establish a need"), the need rests on the maintainer request plus that one deployment — which is enough, but it means this lands as enabling infrastructure, not a delivered feature, and should be labeled as such in user-facing prose. - No performance or quality benefit claimed, and none visible: correct and honest.
Cost: low steady-state, moderate surface
- Runtime cost for existing cores is genuinely ~zero. An empty
BTreeMaponPrompt/Admission/LiveRequest/AdmissionPlan(helios/src/model.rs:29), one zero-length validation call per admission (helios/src/model/admission.rs:71-77,:134-139), andPrefixHistory::with_core_parameters(identity, empty)which hashes exactly the previous bytes —flare-prefix-root-v1\0 || identity(helios/src/cache/hash.rs:36-53), pinned by the existing independent BLAKE2b vector test and the new ordering/-0.0test (helios/src/cache/tests.rs:127-155).Inputs::core_parametersgets capacity 0 unless aSubmissionRowbinding exists (helios/src/model/packing.rs:285-307), so the "zero steady-state allocation" claim holds. No throughput measurement is needed to accept that; the branches are per-binding, not per-token. - Wire compatibility is handled the way principle 13 requires:
versionstays 3, additions are optional withserde(default)(helios/src/model/contract.rs:110-141,:231-235), and the runtime test asserts a previous core decodes with empty declarations and validates (helios/src/runtime_core/protobuf.rs:959-967). - Real, recurring cost is the duplicated validator.
ignition/direct/scheduler.py:131-185(≈110 lines) plus:227-256re-implement FP32 narrowing, declaration/range validation, text-forward completeness, contiguous width-one FP32 destination checks, and prefix identity thathelios/src/model/contract.rs:437-500already does in Rust. Two implementations of the same invariants drift; this mirrors existing repo practice (direct execution mirrors packing and scheduling), so it is acceptable, but it is the main thing a reviewer will be paying for in maintenance. - Surface added for one scalar-per-request: declared name, optional finite default, optional min/max range,
/v1/modelsenumeration, HTTP parsing in four protocols, prefix-root salting, packing staging plus a second entry point on the scheduler.range/default//v1/modelsare all justified — without them the alternative is clamping or dropping silently, which #417 forbids — but this is more contract than the narrowest version of the feature needs.
Is there a simpler route to the same end? Mostly no, and the alternatives were examined in #404
jcartu laid out the three options in #404 before writing #505: (1) one mode per core applied at export time, (2) a second captured graph ladder plus request batching by profile, (3) a per-slot conditioning input. Option 1 needs no Helios change at all but requires duplicate 473 GiB cores or swaps; option 2 costs a parallel graph ladder and time-slicing; option 3 is what shipped, and it is the minimal general form of it: one named FP32 per request row, applied only on text forward graphs, salted into prefix identity, and completely inert when unused. I found no cheaper way to get per-request forward conditioning on one loaded core. Nothing in the tree duplicates it — ConditioningEvent (helios/src/cache/hash.rs:15-18) carries per-position identity derived from image layout, not per-request scalars, and SAMPLING_PARAMETERS is deliberately left at six columns (docs/api.md:132, helios/model-contract.md:132-133).
Risks and changes I would require
- The feature has never executed on a GPU. The limitation is disclosed, but it means the only consumer path — export a declaring core, bind the row buffer, serve it — is unvalidated. Principle 13 also asks that previous cores be validated by loading and serving, and #404's first review demanded exactly that after an earlier revision. Given #404 showed an unexplained score-divergence under mixed rows (a two-row comparison matched bit-exactly, but unconstrained chat exceeded the 0.05 logprob tolerance), this needs one live export/serve of a declaring core with a mixed-parameter batch, plus a pre-existing core loaded and served unchanged, before anyone treats it as supported. That evidence belongs in the recipe repo as the acceptance gate, which is fair — but until it exists, the wire contract should be described as experimental in
docs/api.md, andhelios/model-contract.mdshould say the path has no in-repo consumer. - Two admission entry points invite a silent-declaration path.
RequestScheduler::admit/plan_admissionforward&[]andDefault::default()(helios/src/scheduler.rs:1519-1536), andvalidate_resolved_core_parametersaccepts that combination for a declaring core (0 == 0), so a calling path that forgot the declarations would be rejected only later — byvalidate_prompt/Admission::validate(helios/src/model/admission.rs:71-77,:134-139) or, in the worst case, at pack time as "core-parameter admission is incomplete" (helios/src/model/packing.rs:582-592) rather than as a clean admission rejection. Today no production path does this (helios/src/server/runtime.rsusesplan_admission_with_core_parameterseverywhere), so it is latent, not a live defect. I would fold the declarations into the scheduler (or intoPrompts) so there is one entry point that cannot be called with an incomplete set. - Inactive rows are written as
0.0(helios/src/model/packing.rs:543-545, documented inhelios/model-contract.md:128) even when the declared range excludes zero. Harmless because inactive rows produce no visible output, but it breaks the prior convention that inactive-row content is the binding's declared padding — and padding is required to be zero here. Worth one sentence in the contract doc stating that kernels must not observe inactive core-parameter rows, or keeping the declared-padding convention.
Minor, non-blocking: the diff also converts many pre-existing offset/extent computations to checked arithmetic (helios/src/model/packing.rs:151-190, :534-620, :908-1010). That is scope-adjacent churn, but it is defensive, small, and the new elements > input.elements rejections are unreachable for cores that already passed Inputs::new validation — so I read it as hardening the code it touched rather than an unrelated refactor.
Bottom line
The design is the right one: generic data in the model proto, all policy in the declaring recipe, zero per-model branches in Helios, byte-identical prefix roots and wire format for every existing core, and no steady-state cost when unused. The cost is ~2,400 lines for a capability no in-repo recipe uses yet, doubling a Python validator, and the loss of end-to-end hardware evidence. Because a maintainer asked for exactly this and a named contributor has a quantified deployment need, I would keep it — worth it with changes: add the live export/serve evidence for a declaring core (and a pre-existing-core load/serve), mark the path experimental in the API and contract docs until an official recipe uses it, and collapse the two admission entry points so declarations cannot be omitted.
Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.
Architecture
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/scheduler.rs:1519-1528:
plan_admission/admitdelegate with empty declarations and values, so they admit an unsalted request on a core that declares core parameters; the failure only appears at pack time (helios/src/model/packing.rs:582-597), violating design-review principle 2's explicit-rejection rule. Keep one admission entry point. - docs/design-review.md:116-123 (principle 13): compatibility evidence is unit-only —
helios/src/runtime_core/protobuf.rs:963-966only decodesb"\x08\x03"; no previously exported core is loaded or served, and the description discloses no GPU run. A CPU fixture loaded throughserving_contract+PreparedContract::validatewould close most of the gap.
Nits: 2
- docs/prefix-cache-offload.md:717-720 still documents
plan_admission(&spec)although the worker now usesplan_admission_with_core_parameters(helios/src/server/runtime.rs:2755, 2781, 2806). - ignition/direct/server.py:135-144 advertises only
core_parametersunderflare, unlike the native card (helios/src/server/models.rs:69-125); docs match, so informational.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/505
Conventions
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/model/contract.rs:424-435:
is_text_forward_graphre-states the exact seven-variant set already published asGraphKind::samples()(execution/manifest.rs:89-100); the same list is now written out five times in this PR (contract.rs:424, server/runtime/phase_tests.rs:6640, model/tests.rs:60, ignition/direct/scheduler.py:49, tests/direct/test_scheduler.py). - helios/src/scheduler.rs:1526-1540:
plan_admission_with_core_parametersadds a declaration list as a new argument and splits admission into a with/without pair; model geometry that admission validates against already travels inSchedulerCapabilities(scheduler.rs:96-110, model.rs:308-341, precedentvision), forcing acore_parameter_defsparameter through four runtime functions and ~8 call sites (server/runtime.rs:2741, 2777, 2796, 2861, 2883). - helios/proto/runtime_core.proto:276-284:
CoreParameterRange{min,max}duplicatesSamplingFloatRange(runtime_core.proto:561-576) and the RustSamplingRange<f32>/SamplingRanges::validate(model.rs:155-168, 190-217); containment/clamp is now hand-written a fourth time (contract.rs:438-459, server/models.rs:72-82, ignition/direct/scheduler.py:135-155/245-248). - ignition/direct/scheduler.py:53-65:
_wire_fp32is a verbatim second copy ofignition/preparation/contract.py:15-27(same three finiteness/underflow rules, its own_FP32_MAX), and direct already imports that package (ignition/direct/packing.py:8, scheduler.py:43).
Nits: 3 — packing.rs:286-293/307/598-608 adds a second staging vector with bespoke bounds checks beside the new write_floats helper (packing.rs:940-967) that SamplingParameters does not need; ignition/direct/scheduler.py:68-81 _row_contiguous/Layout.buffer_contiguity re-checks contiguity already enforced at ignition/preparation/graphs.py:160-176 (with a weaker verdict); naming/placement drift (CoreParameters alias at model.rs:29 vs model::contract::CoreParameter; core_parameter() → Option where graph() → Result; validate_core_parameters means values in contract.rs:537 and declarations in runtime_core/mod.rs:46).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/505
Prose
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- docs/api.md:749-765, docs/direct-execution.md:84-88/-151-162, helios/model-contract.md:116-133: documents describe cores with declared core parameters as supported behavior; per the PR's own limitations no core has been exported or served with a declaration on GPU, and docs/TODO.txt gains no entry, contrary to AGENTS.md:52-60 and the repo-prose skill lines 30-37.
Nits: 1 — helios/model-contract.md:128-132 says admission "rejects … out-of-range numeric encodings" while finite values are clamped (helios/src/model/contract.rs:453-462); the rejected class is values that cannot become finite nonzero FP32 (helios/src/server/protocol/decode.rs:58-68), which docs/api.md:757-759 states correctly.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/505
The PR description itself passes: all four required sections in order (why, what changed with explicit before/after, claimed result scoped to "no throughput or output-quality improvement claimed", evidence with unrun GPU checks disclosed), plus the Discord: jcartu line. Wire-visible documentation claims check out against the code — rejection classes at helios/src/server/protocol/decode.rs:49-75, /v1/models advertisement with canonicalized defaults at helios/src/server/models.rs:72-89 and :123, text-forward-only binding validation at helios/src/model/contract.rs:665-720, and the direct server's parsing and model card at ignition/direct/server.py:111-118 and :135-142. Proto comments and the regenerated bindings (runtime_core_pb2.py:5, gencode 7.36.1) are consistent with the description and free of chronology or lifecycle labels.
Open questions: the new api.md section sits under "Reasoning, sampling, and usage" though it says "Every generation protocol"; the protobuf>=7.36.2,<8 pin claimed in the description was not located in ignition's requirement files; the commit body of 85de9eae was not readable; GPU qualification is disclosed in the description but not in repository prose.
Simplicity
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/scheduler.rs:1519-1528: two admission entry points —
plan_admission(&spec)(declaration-free, test-only) andplan_admission_with_core_parameters; the declarations are static core config, so put them on the scheduler and delete the wrapper plus the nine hand-threaded&self.config.contract.core_parametersarguments in server/runtime.rs. - ignition/direct/scheduler.py:50-65:
_wire_fp32/_FP32_MAXare a second implementation of contract.py:12-27 in the same package tree; import the one helper and delete the copy.
Nits:
_cache_key(..., tokens=None)parameter never passed (scheduler.py:881) whileCheckpoint.cache_key(418) keeps a second key shape in agreement by hand; theRequest.core_parametersproperty pair (445-447) exists only to letvalidate(544) inject aMappingProxyType; the text-forward graph-kind set is written five times; packing.rs:540 is an unreachable re-check of whatInputs::newenforced at 153-161; models.rs:77-88 builds a typedCoreParameterRangeonly to serialize it, andcore_parameter()(contract.rs:508) makesvalidate/resolvequadratic for a handful of names.
Link: https://github.com/NVIDIA/hyperflare-inference/pull/505
Correctness
Verdict: should-fix issues only
Blocking:
- None.
Should fix:
- helios/src/scheduler.rs:1526-1528:
plan_admissiondelegates with&[]/Default::default(), andvalidate_resolved_core_parameters(contract.rs:484-497) accepts two empty collections — soadmit/admit_plannedon a core that does declare parameters succeeds with an empty map and fails only atpacking.rs:588-592on every forward launch, violating design-review principle 2 (reject explicitly at admission). - heliopause/src/export/binding.rs:1044-1047: export validates only declarations (
runtime_core/protobuf.rs:54-73: names/defaults/ranges), while the new binding invariants live inpacking.rs:139-152,162-168andPreparedContract::validate(contract.rs:693-728), reached at load/Inputs::newonly — an invalid core-parameter binding exports successfully and fails at model load.
Nits: 3 — mismatched-length error reads as "core_parameters does not match the model core's resolved parameters" instead of naming missing parameters (contract.rs:495); packing.rs:162-168 rejects CoreParameter offsets with "value offset requires an integer value source", wrong for float sources; /v1/models emits "range": null (server/models.rs:83-87) where the rest of serving metadata strips nulls (protobuf.rs:87).
Link: https://github.com/NVIDIA/hyperflare-inference/pull/505
Checked and sound: prefix roots are byte-identical for declaration-free cores and salt in declaration order with -0.0 canonicalization (cache/hash.rs:37-65); refresh_admission_plan plus the pool-lookup/admission helpers keep the salted history and packed value in sync across retries, preemption and readmission (scheduler.rs:1584-1590, server/runtime.rs:2738-2811); SubmissionRow staging is sized once and cleared per binding so multiple parameters per graph are safe; offset/extent arithmetic is checked; the bit-equality check at packing.rs:593-597 is correct; all four HTTP protocols share one decode path; the Python direct path mirrors the Rust binding set; serving_contract restructuring is behaviourally identical and ModelContract.version stays 3.
Limits: findings come from reading code; I did not run the Rust/Python suites, TLA+ conformance or Kani. Finding 1 is settled by admitting via scheduler.admit on a declaring core (currently Ok, error later); finding 2 by exporting a core with a CORE_PARAMETER binding on a non-text-forward graph (exports Ok, fails at load).
Subtractive
Verdict: make it smaller first The change: +2393 / −261, 32 files Could remove: about 150–330 lines, in 6 places Biggest subtractions:
ignition/direct/scheduler.py:121-185: the PythonLayout.__post_init__re-implements the entire core-parameter contract validation (names, defaults, ranges, per-graph completeness, maintenance-graph rejection, indexing/offset/padding/dtype/row-count/contiguity) thathelios/src/model/contract.rs:473-482,665-728already applies to the same prepared model. Keep_wire_fp32,resolve_core_parameters,core_parameter_identityand the packing case atpacking.py:84; drop the rest plusbuffer_contiguity/_row_contiguous/_core_parameter_rowsand the tests that only exercise the duplicate rejections: about 90 product + 110 test lines.helios/src/model/admission.rs:62,74-76:Admission.core_parametersis a second clone of the mapLiveRequest.core_parametersholds (both fromprompt.core_parameters), so the field, itsvalidate_core_parameterscall, thevalidate_promptcall at:137-139, the wrapper atcontract.rs:534-536, the pack-time bit-equality guard atpacking.rs:588-597, and 15 fixture fills in tests go: about 36–55 lines.helios/src/model/contract.rs:424-435:is_text_forward_graphlists the same seven graph kinds asGraphKind::samples()(helios/src/execution/manifest.rs:89-100); usekind.samples()atcontract.rs:665,packing.rs:139-145, and in the two new test helpers: about 14 + 12 lines.helios/src/model/packing.rs:139-145,236-239,598-603: pack-time re-checks (graph kind, indexing, FP32 dtype,destination + 1 <= elements) thatcontract.rs:697-719,704,706already enforced at load; the fallback arm atpacking.rs:146already states the indexing rule: about 12 lines.- FP32 wire validation written four times (
ignition/preparation/contract.py:12-28,ignition/direct/scheduler.py:50-65,helios/src/server/protocol/decode.rs:49-75,helios/src/model/contract.rs:453-462) plus-0.0canonicalization threaded through five call sites (contract.rs:420-422,461,466,cache/hash.rs:49,server/models.rs:79-85,decode.rs:71, both Python copies) for an invariant that only fragments the prefix cache: about 20–40 lines. Left behind: None. Link: https://github.com/NVIDIA/hyperflare-inference/pull/505
Pre Test Report
Pre-Test Report — PR #505 "Bind core-declared FP32 parameters into text forward graphs"
Recommendation: DO NOT REFER TO HARDWARE TESTING YET. The change is architecturally sound and in-charter, but a hardware run now would spend GPU time on code that is already scheduled to change in the same files, would not exercise the feature it is meant to validate (no core in any repository declares a core parameter, and no consumer forward exists), and would leave the two substantive defects untouched because neither is visible on a GPU.
1. What the PR is, and its state
Merged as ef94d621 (2026-11-28), 32 files, +2393/−261, external contributor (jcartu). Zero human reviews and no CI on the head — the only thread entry is the case-file bot (pr_comments).
Mechanism: ModelContract.core_parameters = 8, ValueSource::CORE_PARAMETER = 43, ValueBinding.parameter = 7 (helios/proto/runtime_core.proto:270-284,379-403). Declarations are validated at load and export; request values are resolved and clamped at the HTTP boundary in all four protocols (helios/src/server/protocol/decode.rs:49-75); the prefix-cache root is salted in declaration order while non-declaring cores keep byte-identical roots (helios/src/cache/hash.rs:37-56); resolved values are packed into a text-forward graph row buffer (helios/src/model/packing.rs:582-611). ModelContract.version stays 3.
Charter fit is genuine, and I want to be clear that this is not a "wrong place" objection: the declaration is generic contract data with no per-model branch, no supports_* flag, no new graph kind, and no steady-state cost when unused. The owner did ask for it (lukealonso, #404, 2026-11-21: a generic way for cores to expose "scalar arguments … described in the model proto").
2. Findings that must be resolved before hardware time
| # | Severity | Finding | Evidence (verified directly in the merged code) |
|---|---|---|---|
| 1 | Should fix | plan_admission/admit admit an unsalted request on a declaring core. They delegate with &[]/Default::default(), and validate_resolved_core_parameters accepts 0 == 0, so admission succeeds with an empty map; the failure appears mid-serving at pack time on every forward launch instead of as one clean admission rejection. Violates design-review principle 2 ("Admission … rejects unsupported features … explicitly"). Latent, not live — all production call sites use the parameterized entry. |
helios/src/scheduler.rs:1519-1528; helios/src/model/contract.rs:484-498; helios/src/model/packing.rs:582-597; production callers helios/src/server/runtime.rs:2755,2781,2806,2861,2883; every .admit( in helios/src is a test |
| 2 | Should fix | Export validates declarations only (names/defaults/ranges), not the new binding invariants. A CORE_PARAMETER binding on a VISION/INIT graph, or a declared parameter missing from one selected prefill graph, exports successfully and fails at load — contradicting the PR's own claim of export-time validation, and costing a multi-GB re-export instead of a cheap error. Declaring cores only. |
heliopause/src/export/binding.rs:1041-1047 vs the binding rules in helios/src/model/contract.rs:693-728 |
| 3 | Should fix (prose/process) | No core has ever been exported or served with a declaration, yet docs/TODO.txt records no entry for that unrun check while docs/api.md (not opened), docs/direct-execution.md (not opened) and helios/model-contract.md (not opened) describe the path as supported behavior. Contradicts AGENTS.md:52-60. |
docs/TODO.txt (no match for any core-parameter spelling); PR limitations field |
| 4 | Should fix (duplication/churn) | Text-forward graph-kind set re-written 5×; CoreParameterRange re-declares SamplingFloatRange; _wire_fp32 duplicated verbatim in ignition/preparation/contract.py:15-27 and ignition/direct/scheduler.py:53-65 (not opened); declarations hand-threaded through four runtime functions instead of SchedulerCapabilities (the vision precedent). |
confirmed at those paths |
| 5 | Nits | -0.0→+0.0 canonicalization threaded through five sites for an invariant that only fragments the cache; packing re-checks what load already enforced; /v1/models emits "range": null; misleading error strings; docs/prefix-cache-offload.md:717-720 (not opened) still documents the pre-PR admission entry point. |
— |
Governance note worth recording: the owner's approval (#404, closing comment 2026-11-28) names the interface ModelContract.scalar_arguments / SCALAR_ARGUMENT; the shipped names are core_parameters / CORE_PARAMETER. AGENTS.md:373-378 requires explicit approval for a new operation contract "even if it reuses an existing graph kind or enum value." One maintainer line should confirm the merged names are the approved contract.
Findings 1 and 2 are functional defects in the exact modules a hardware run would touch, and finding 4 plus the honest state of GPU evidence guarantee those files get edited again. Testing them now wastes time.
3. Expected value of a hardware run now: low
- No consumer exists.
ignition/recipes/does not exist in this repository (recipes live inlocal-inference-lab/hyperflare-recipes;AGENTS.md:379-384), andCORE_PARAMETERappears only in the proto, docs,ignition/direct, andtests/direct. Any declaring core would have to be authored for the test and then rewritten once the rework lands. - The prerequisite artifact does not exist. The cheapest in-repo GPU fixture,
helios/tests/runtime_core_fixture.py, passesserver=server_config(root), andhelios/tests/fixture_frontend.py:10-20writes nomodel_contractat all. The only in-repo fixtures that build a realPreparedContractarecollective_core_fixture.py:116-136(a 4-GPU TP4 collective fixture) andlegacy_cluster_fixture.py:30(not opened) (an emptyModelContract()). A lightweight declaring core must be authored — roughly half a day of contributor work, not a test-engineer task. - A declaring core has no observable effect by itself. A
CORE_PARAMETERbinding is only read by a captured forward that a recipe binds it into. With fixture fixtures the best a GPU run can show is "the contract loads, the row buffer uploads, the value lands at the bound slot" — plumbing assertions the CPU suites (--features runtime-core,server,tests/direct, heliopause, Kani) already cover. - The genuinely device-coupled risk is regression, not the feature. The packing hot path changed for every request (the
write_floats/write_rawrefactor, checked arithmetic, a second staging vector —packing.rs:286-307,531-611), so a non-declaring core could in principle regress. That is a small targeted check, not the sweep a full referral implies. - The most-cited mitigation is cheaper on CPU. The principle-13 "existing cores still load and serve" gap closes for a fraction of the cost by loading a recorded existing
ServingContractthroughserving_contract+PreparedContract::validate— precisely where the new validation runs. That is a test to add, not hardware to book. - The claimed result explicitly states "No throughput or output-quality improvement is claimed," so there is no A/B benchmark worth running.
4. Conditions to lift the hold (all zero-hardware)
- Collapse to one admission entry point so declarations cannot be omitted, or make the parameterless path reject on a declaring core (finding 1).
- Run a binding-level validator (or
PreparedContract::validate) fromserving_metadataso a bad binding fails at export (finding 2). - Add three CPU tests: an existing core loaded +
PreparedContract::validate; a declaring core admitted viaadmit⇒Err; an export with a misplacedCORE_PARAMETERbinding ⇒Err. - Add the
docs/TODO.txtentry and qualify the three documents perAGENTS.md:52-60. - Land the dedup so the duplicated Python validator (
ignition/direct/scheduler.py:121-185(not opened), ~90 lines) and_wire_fp32are single-sourced; otherwise a hardware result validates a copy that is about to change.
5. Proposed minimal test plan — only after §4 lands
One 1-GPU job on cn5 (4× RTX PRO 6000 Blackwell, amd64/SM120 — the charter's primary target), ~45–60 min total. Do not book the 4-GPU TP job. cn7 (GB10, arm64) is excluded: the replay fixture hardcodes sm_version="sm_120" (helios/tests/runtime_core_fixture.py:50) and no architecture-specific path exists in this diff.
- A. Compatibility / regression replay (~15 min, best value per minute).
FLARE_RUN_CUDA_TESTS=1 CUDA_VISIBLE_DEVICES=0 pytest tests/preparation/test_runtime_core.py -k "payload_forms or core_replays_without_python". Exports cores fromruntime_core_fixture.pyand the legacyfixed_core_fixture.py(not opened) and replays them ("192 graph launches", "native fixed-address replay passed"). Caveat: this path never builds aPreparedContractand never enters Helios packing, so it is a load/replay guard, not end-to-end coverage. - B. Declaring core — the PR's own admitted gap (~20 min run, fixture first). Author a standalone declaring fixture using
c.model_contract(..., core_parameters=[c.core_parameter("gain", 1.0, minimum=0.5, maximum=1.5)])(ignition/preparation/contract.py:135-161) with aCORE_PARAMETERbinding in every text-forward graph. Assert: value readback at the bound slot; 0 cached-token reuse between0.5and1.5; full reuse for equal values; declared default whencore_parametersis omitted. OneREQUEST_ROWand oneACTIVE_ROWvariant suffices. - C. Shared-path guard (~20 min). Serve a non-declaring core at C=8 over a fixed prompt set and compare first-token/output bits against the merge parent. This is the only item covering the whole-population packing refactor; expect zero difference, and treat any output delta as a hard failure rather than a tolerance judgment.
Explicitly excluded: throughput/output-quality benchmarks (no claim); C32/mixed-batch and the #404 logprob-tolerance question (no consumer forward exists); arm64/Cn7; re-running the Rust/Python/TLA+/Kani suites on GPU (they are CPU work, already reported).
6. Honest limits of this report
I read code and review material; I did not execute the suites, Kani, or TLA+. The PR's test counts are unverified by me, and its flare-helios baseline carries a pre-existing failure attributed to #555. Findings 1 and 2 I confirmed myself in the merged code; the remaining should-fix items rest on the review lenses, which agree on them and agree there is no blocking issue. main is content-identical to ef94d62 at the admission code I re-read, so what would be tested is the merged code with findings 1–2 present.
Malicious-content screen: consistent with my own reading — the description follows the repository template, the Discord: line is required by AGENTS.md:144-150, and nothing in the diff or thread attempts to direct a reviewer or agent. No injection finding to report.
code review summary
Recommendation: Changes Requested
No lens found a blocking defect and the generic core-parameter design is the sanctioned one, but seven should-fix items remain — chiefly a latent admission bypass where the parameterless admit/plan_admission accepts a declaring core with an unsalted prefix history, an export path that validates declarations but not bindings, and an unrecorded GPU qualification.
- Blockers: 0
- Should fix: 7
- Subtractive suggestions: 4
- Nits: 2
All six lenses independently agree there is no blocking defect. What survives, with the code quoted in the report:
- SF1
helios/src/scheduler.rs:1519-1528—plan_admissiondelegates with&[], &Default::default(), andvalidate_resolved_core_parameters(contract.rs:484-498) passes on two empty collections, so a declaring core is admitted unsalted and fails only at pack time (packing.rs:588-592). Production never calls it (grep-verified: test modules only), so it is a latent trap plus eight hand-threadedcore_parameter_defsarguments. Preferred fix is deletion, not an added check: hold declarations on the scheduler /SchedulerCapabilities(thevisionprecedent,scheduler.rs:95-110). - SF2
is_text_forward_graph(contract.rs:424-435) is set-identical toGraphKind::samples()(manifest.rs:89-100) and written out five times. - SF3
CoreParameterRangere-declaresSamplingFloatRange; the bounded-float rule now has four implementations that disagree (reject vs clamp). - SF4
_wire_fp32duplicated verbatim incontract.py:12-27andignition/direct/scheduler.py:50-65; the import already exists. - SF5 Export validates declarations only (
binding.rs:1044-1047); binding invariants live inPreparedContract::validate(contract.rs:697-728), so a mis-placed binding exports clean and fails at load. - SF6 The unrun GPU qualification is recorded nowhere (
docs/TODO.txthas no entry) while three docs state present behavior; AGENTS.md:52-60 requires the TODO entry. - SF7
helios/model-contract.md:128-132says admission "rejects … out-of-range numeric encodings" where it clamps.
Subtractive: ignition/direct's ~90-line re-implementation of the contract, pack-time re-validation (packing.rs:139-146), the bespoke core-parameter staging vector, and "range": null in /v1/models. Two nits: misleading error strings, and naming/placement drift in the contract API.
Open: whether ignition/direct must validate independently (its premise is weakened because --direct prepares in-process), which packing form preserves the zero-allocation claim, and the GPU/principle-13 compatibility evidence, which no amount of code reading settles. No suite was executed; all claims are read from head ef94d62.
Final review
Recommendation: Changes Requested
The core design, wire compatibility, HTTP decoding, prefix-cache salting, steady-state packing, and Kani/TLA+ verification are sound with 0 blockers, and match the generic contract mechanism requested in #404. Two verified issues should be addressed before relying on the path: eliminate the latent unsalted-admission trap on RequestScheduler (by holding declared core parameters on the scheduler instead of hand-threading them), and record the unrun GPU export/serving qualification in docs/TODO.txt with matching qualification scope in user-facing docs per AGENTS.md.
Blockers
None.
Should Fix
-
Hold declared
core_parametersonRequestSchedulerso parameterlessadmit/plan_admissioncannot silently build unsalted plans on declaring cores- Evidence:
RequestScheduler::admitandRequestScheduler::plan_admission(helios/src/scheduler.rs:1519-1528) delegate toplan_admission_with_core_parameters(spec, &[], &Default::default()). Becausevalidate_resolved_core_parameters(&[], &Default::default())(helios/src/model/contract.rs:484-498) returnsOk(()), calling either public method on a scheduler built for a declaring core succeeds with an unsaltedPrefixHistoryand an emptycore_parametersmap (helios/src/scheduler.rs:1566-1579). The defect only surfaces later at pack time as"core-parameter admission plan is incomplete"(helios/src/model/packing.rs:588-592), contradicting Design Review Principle 2 (docs/design-review.md:38-39: admission rejects unsupported inputs explicitly). - Scope & extra plumbing: All production server paths currently call
plan_admission_with_core_parameters(helios/src/server/runtime.rs:2755, 2781, 2806), whileadmit/plan_admissionare called in test suites — so this is a latent API trap rather than a live serving bug. Because the scheduler does not hold the declarations,helios/src/server/runtime.rsalso hand-threadscore_parameter_defs: &[crate::model::contract::CoreParameter]throughbegin_pool_lookup,admit_with_checkpoint_accounting, andadmit_with_host_store(helios/src/server/runtime.rs:2741, 2777, 2796, 2858-2887), anddocs/prefix-cache-offload.md:717-720still describesplan_admission(&spec)/admit(spec)as the worker's two-step interface. - Fix: Carry
pub core_parameters: Vec<crate::model::contract::CoreParameter>onSchedulerCapabilities(helios/src/scheduler.rs:96-110, populated bymodel::scheduler_capabilitiesathelios/src/model.rs:308-341, defaulting to empty for tests) and validate againstself.core_parametersinsideRequestScheduler. Thenplan_admission(&spec)/admit(spec)automatically reject declaring cores at admission time (or collapse into a singleplan_admission(&spec, &CoreParameters)), and the threecore_parameter_defsparameters inhelios/src/server/runtime.rscan be deleted. Updatedocs/prefix-cache-offload.md:717-720if the worker entry point signature changes.
- Evidence:
-
Record the unrun GPU qualification in
docs/TODO.txtand state qualification scope in user-facing docs- Evidence:
AGENTS.md:55-58requires: "State support as present qualification: what is implemented, the hardware and configurations on which it is qualified, and what is not qualified. Record unresolved defects, unrun checks, and pending measurements indocs/TODO.txt, not in design documents." The PR description honestly discloses that no in-repo recipe declares a core parameter and that live GPU export and serving of a declaring core were not run on this commit (and backward-compatibility evidence is limited to a wire decode unit test ofb"\x08\x03"inhelios/src/runtime_core/protobuf.rs:963-966, rather than loading and serving a previously exported core perdocs/design-review.md:123). However,docs/TODO.txthas no entry for core-parameter GPU qualification, anddocs/api.md:749-765anddocs/direct-execution.md:84-88, 154-159present the capability without noting its qualification status. - Fix: Add an entry in
docs/TODO.txttracking live GPU export and serving of a declaring core (including mixed-parameter batches) plus load/serve verification of a pre-existing core, and add a brief qualification sentence indocs/api.md(anddocs/direct-execution.md) stating that the runtime path is CPU/formally verified while GPU export and serving with a declaring recipe remain pending qualification. Keep unrun-check tracking out ofhelios/model-contract.mdperAGENTS.md:57-58.
- Evidence:
Subtract / Simplify
- Deduplicate
_wire_fp32/_FP32_MAXin Pythonignition/direct/scheduler.py:50-65re-implements the exact FP32 narrowing/validation helper already defined inignition/preparation/contract.py:12-27(usingnp.float32instead ofstruct.packand dropping thelabelparameter). Becauseignition/direct/scheduler.py:43already imports fromignition.preparation, export one shared helper fromignition/preparation/contract.pyand delete the duplicate_FP32_MAXand_wire_fp32inignition/direct/scheduler.py.
Nits
- Clarify clamping vs. rejection phrasing in
helios/model-contract.md:128-132: Writing "clamps finite FP32 request values to declared inclusive ranges ... and rejects unknown names or out-of-range numeric encodings" puts "out-of-range" right next to "declared inclusive ranges", which is easily misread as rejecting values outside[min, max]. Reword to "rejects unknown names and values outside the finite FP32 range (non-finite numbers, magnitude abovef32::MAX, or nonzero values underflowing to FP32 zero)" to matchdocs/api.md:754-759. is_text_forward_graphduplicatesGraphKind::samples():helios/src/model/contract.rs:424-435matches the exact same 7GraphKindvariants asGraphKind::samples()(helios/src/execution/manifest.rs:89-100) and has only 2 call sites (contract.rs:665,packing.rs:140). Either callkind.samples()directly or placeGraphKind::is_text_forward()besidesamples()if the two concepts may diverge. (The two ~25-line test setup helpers inhelios/src/model/tests.rs:59-84andhelios/src/server/runtime/phase_tests.rs:6629-6661could also share one builder inhelios/src/model/testing.rs(not opened).)- Dead parameter on
Scheduler._cache_key:tokens=Noneinignition/direct/scheduler.py:881-885is never passed by either caller (:608,:891). - Overloaded
validate_core_parametersnaming:helios_core::runtime_core::validate_core_parameters(helios/src/runtime_core/mod.rs:46-48) validates wire declarations, whilePreparedContract::validate_core_parameters(helios/src/model/contract.rs:534-536) validates resolved request values (andcontract.rs:473usesvalidate_core_parameter_declarations). Renaming the wire entry point tovalidate_core_parameter_declarationsavoids ambiguity.
Verified passes
- Prefix-cache identity and backward compatibility (
helios/src/cache/hash.rs:36-65,helios/src/scheduler.rs:1560-1567):PrefixHistory::newdelegates towith_core_parameterswith an empty iterator, keeping the exactflare-prefix-root-v1\0 || identityroot digest for cores without declarations. Declaring cores hash each declared parameter in declaration order with length-prefixed name and canonical little-endian FP32 bits (-0.0canonicalized to+0.0). - Wire format compatibility (
helios/proto/runtime_core.proto:265-284,helios/src/model/contract.rs:110-111,helios/src/runtime_core/protobuf.rs:82-88, 963-966):ModelContract.versionstays3, new fields are additive with#[serde(default)], and existing cores decode with emptycore_parameters. - HTTP decoding across all four protocols (
helios/src/server/protocol/decode.rs:49-75, 614-615): Single shared decode path rejecting non-objects, empty/unknown names, booleans, non-numbers, non-finite numbers,|x| > f32::MAX, and nonzero underflow to FP32 zero, with-0.0 -> +0.0canonicalization. - Steady-state packing and bit-equality guard (
helios/src/model/packing.rs:286-309, 533-618, 927-969):Inputs::core_parametershas capacity0when noSubmissionRowcore-parameter binding exists (zero overhead for non-declaring cores) and pre-allocatesrequest_capacity()otherwise for zero steady-state allocation;pack_stepverifiesvalue.to_bits() == planned.to_bits()against the scheduler'sLiveRequestbefore uploading and guards offsets/extents with checked arithmetic. - Formal verification (
helios/src/model/contract/kani_proofs.rs:85-142): Two Kani harnesses verify finite ordered declaration validation and canonical range-clamped resolution over arbitraryf32values. - Charter & architecture fit (
docs/design-review.md:16-61): GenericModelContractdata with zero per-model branches, capability flags, or new graph kinds.
Dropped on verification
- Candidate SF2 (
is_text_forward_graphvsGraphKind::samples()) — demoted to Nit: exact 7-variant overlap (contract.rs:424-435vsmanifest.rs:89-100) with only 2 production call sites is a minor cleanup, not a bug or contract defect. - Candidate SF3 (
CoreParameterRangevsSamplingFloatRange, "four divergent bounded-float implementations") — dropped: false comparison between load-time default validation (helios/src/model.rs:197, which rejects defaults outside bounds just likeCoreParameter::validateatcontract.rs:445) and request-time clamping (contract.rs:458-460, which matches sampling clamping indocs/api.md:737-740); keepingCoreParameterRangedistinct fromSamplingFloatRangeinruntime_core.proto:281vs:561preserves intentional decoupling from sampling. - Candidate SF4 (
_wire_fp32overflow-warning risk) — demoted to Subtract / Simplify:abs(wide) > _FP32_MAXatignition/direct/scheduler.py:60already guardsnp.float32(wide)at:62from overflowing, leaving only clean Python deduplication. - Candidate SF5 (Heliopause export validates declarations but not bindings) — dropped: the PR description explicitly distinguishes export-time declaration validation from load-time binding validation, and
heliopause/src/export/binding.rs:932invokesserving_metadata(&mut Default::default(), server)pre-capture (before any manifest buffers exist) and never validatesGraphContract.inputsfor any of the 42 existingValueSourcevariants. - Candidate SF7 (
helios/model-contract.md:128-132"out-of-range numeric encodings") — demoted to Nit: technically refers to FP32 encoding range (matchingdecode.rs:67anddocs/api.md:754-759), just ambiguously phrased next to declared inclusive ranges. - Candidate SUB1 (Delete
ignition/direct/scheduler.pycore-parameter validation + tests) — dropped: the "already validated at load/export" premise is false because--directprepares in-process from the checkpoint with no core (docs/direct-execution.md:23-24) and never runs Helios or Heliopause export;Layout.__post_init__(scheduler.py:121-185) is the only contract guard on that path (deadtokens=Nonearg on_cache_keykept as Nit). - Candidate SUB2 (Delete pack-time validation in
packing.rs:139-146, 236-239, 540) — dropped: removingCoreParameterfrom:236-239without altering:240-245would break dtype validation, and:540bounds-checks allSubmissionRowbindings againstframe.configpassed topack_step;:139-145is a 6-line defense-in-depth arm. - Candidate SUB3 (Remove
Inputs::core_parametersstaging vector inpacking.rs) — dropped: unlikeSamplingParameters(which skipsSubmissionRowinactive-row padding atpacking.rs:546, 930),CoreParameterSubmissionRowbindings must zero-pad inactive rows in one contiguous upload without steady-state allocation, and sizing frommaximumwould waste megabytes on non-declaring cores. - Candidate SUB4 (
/v1/modelsemits"range": null) — dropped:protobuf.rs:87strips top-level nulls only for internalServingContractdeserialization;/v1/modelsalready serializes absentOption<SamplingRange<_>>bounds asnullunderflare.sampling_ranges(models.rs:122,model.rs:179-187,docs/api.md:44), and native (models.rs:86) and direct (direct/server.py:137) match. - Candidate N1 (
packing.rs:167&contract.rs:495error messages) — dropped:packing.rs:162-168is unreachable forCoreParameterbecausecontract.rs:714already rejects nonzerovalue_offsetduringconfig.contract.validate(manifest)atpacking.rs:67, and"requires an integer value source"is accurate for float sources;contract.rs:495is an internal post-resolution check.
Full report 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.