Opened by a workflow run, Dec 3, 2026 12:58 PM EST. decide malicious: all_clear (100%): No malicious content found
explore
Author: lukealonso (COLLABORATOR; named in the charter as a priority contributor and in docs/design-review.md:22-26 as project owner; Discord: lukealonso)
Motivation: For nine vision-language models the image feature token is inside the normal vocabulary and is not masked while decoding, so text generation can sample it. Once such a request is parked and re-admitted, Helios's strict prompt validation rejected the appended token, the error unwound out of Worker::run, and the whole flare-model thread (and every request on it) died; the shared Ignition VisionState also keyed validation/injection on the token id rather than the feature index, so relaxing Helios alone would have overwritten text embeddings with image features.
Scale: +736 / −56 lines in 7 files
Proposal:
- Split prompt validation into an immutable initial-prompt prefix (strict feature-token bijection, atomic spans) and generated continuation tokens (must be
-1-indexed and in-vocabulary) via newvalidate_continuation_prompt_data/Admission::from_continuation, keeping old entry points as wrappers. - In
Worker::admit, deriveinitial_prompt_tokensfromCarried::prompt_tokensand turnAdmission/TokenStops/TextStopsfailures intoscheduler.cancel+incoming.fail+continueinstead of unwinding out ofWorker::run. - Write
self.admissions[slot]only after all three constructions succeed. - Make Ignition
VisionStateindex-driven:validate_prefillandinjectkey onvision_token_indices >= 0, andimage_tokenbecomes an optional cross-check with aNonedefault. - Add Helios unit/phase tests and two Python component tests for these paths. Touches:
helios/src/server/runtime.rs(Worker::admitreadmission and worker-lifecycle error handling)helios/src/model.rs+helios/src/model/admission.rs(prompt/continuation validation)ignition/components/vision_state.py(shared VLM feature validation/injection) Related items:- #626 helios: Allow speculative reasoning for grammar-constrained requests (merged): created
park_grammar_transition, one of the three readmission paths this fixes. - #615 helios: thinking_token_budget for ContentHeaders (merged): created the
Worker::parkbudget readmission path also fixed here. - #483 Add Gemma 4 image preparation … and atomic spans (open): overlaps
helios/src/model.rsspan/feature-token validation; #708 relaxes the continuation side, #483 tightens the initial-prompt side. - #621 Validate scheduler admission against the core parameter declarations (open): edits the same
Worker::admitvalidation path; rebase interaction, not a duplicate. - #697 helios/scheduler: preserve interior anchor for open-reasoning prompts (merged): its
preserve_message_anchorwork shows up in #708's diff only as stale-base drift. Link: https://github.com/NVIDIA/hyperflare-inference/pull/708 Autobot comments: No issue or prior report exists for this bug; the problem statement is entirely self-authored and the trigger paths were created by recent merges (#615, #626 — the latter by the author). The "9 VLM recipes" blast radius is unverifiable here: no in-tree code usesVisionState(recipes live in the externallocal-inference-lab/hyperflare-recipesrepo). Undeclared effects:image_token=Nonesilently disables the token-id cross-check, andindex == -1on an actual image token is now accepted as text — both weakenings against principle 15. Wider than the description implies, the error-isolation change protects every text deployment from worker-fatal admission/stop errors. Evidence is honest but weaker than peers: 7 failing helios tests (6 needFLARE_TEST_TEMPLATE_DIR), no GPU, no checkpoint-backedimage_admission, no live core re-export/serving — yet the legacy-core compatibility claim (ExecutionError::Device { code: 32 }) is exactly a serving-path claim; Kani and mutation testing (required for new admission guards) were not run. No docs updated. The diff viewer shows ~10 extra files from a stale base (preserve_message_anchor, AGENTS.md, docs, flare-cli), which should not be attributed to this PR. Zero comments, reviews, or labels so far.
Value Proposition
Value Proposition — PR #708 fix(helios,ignition): handle decoded VLM feature tokens on continuation readmission and unify index-driven VisionState
Charter alignment — in lane. The three production files are helios/src/* plus ignition/components/vision_state.py, which AGENTS.md:388-396 explicitly lists as a permitted Helios-ABI module. No Protobuf, ModelContract, config-key, or CLI-flag change; no per-model branch — the description invokes design-review principles 3 and 13 as the reason a capability flag distinguishing index-driven qwen38 from token-keyed qwen38_dense is disallowed. That is charter line 12 / #267/#334 applied honestly, and the error-isolation half is a genuine #397 fix (one malformed request must not kill the runtime thread).
Novelty & status — genuinely additive. No linked issue, no duplicate in the searchable window; the bug is a regression from merged #626 (the author's own grammar-transition park), #615 and #619, so main does not fix it — not obsolete. Not superseded: #483 touches the same span/feature-token surface but tightens the initial prompt while #708 relaxes only the continuation suffix — disjoint ranges that should compose (textual conflict in helios/src/model.rs unverified). #621 is a rebase interaction, not a duplicate.
Value vs maintenance cost. Beneficiaries: nine named VLM recipes whose feature token is in-vocabulary (all external, uncountable here) and, more broadly, every text deployment, which stops losing the flare-model thread to a bad stop string or prompt geometry — a wider win than the VLM framing suggests. Cost is modest: +736/−56, four test files, no new dependency, no operator action, no re-export needed to load old cores. The weak point is evidence, not scope: the claim keeping legacy token-keyed cores safe (ExecutionError::Device { code: 32 }, clean single-request failure) is reasoning only — no GPU, no checkpoint-backed image_admission, no live re-export + flare run. That is the load-bearing unmeasured claim. Also understated: image_token=None silently disables the token cross-check for callers that omit it, and an image_token with index == -1 is now accepted as text — a principle-15 weakening. Honest disclosure of unrun checks and green CI work in its favor.
Changes needed: (1) run live re-export + serving, or downgrade the compatibility claim; (2) reconcile the 7 helios failures against peers' 0 and run cargo-kani/cargo-mutants (design-review:221-228 — a validator changed); (3) drop or guard the image_token=None default; (4) update docs/core-design.md/helios/README.md if they still state whole-prompt bijection (no doc file is touched); (5) owner acknowledgement of the deliberate root-cause deferral (no decode mask).
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, bug
Threshold: 65%
Triage
- [✓]
triage:review: 99.4% -
triage:design-review: 0.3% -
triage:validation: 0.2% -
none: 0.0% -
triage:investigate: 0.0% -
triage:integration: 0.0% -
triage:partial: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0%
Priority
-
none: 47.5% -
priority:P2: 47.5% -
priority:P1: 5.0%
Type
- [✓]
bug: 94.0% -
community: 34.9% -
performance: 18.2% -
enhancement: 7.6% -
duplicate: 0.4% -
documentation: 0.2%
Area
-
area:scheduling: 34.9% -
area:preparation: 10.7% -
area:api: 6.8% -
area:memory: 2.0% -
area:engram: 1.4% -
area:caching: 1.1% -
area:kernels: 0.9% -
area:orbit: 0.6% -
area:selene: 0.5% -
area:packaging: 0.2% -
area:rocenante: 0.0%
Model
-
model:glm-5.3: 40.7% -
model:inkling-small: 24.5% -
model:qwen3.8-27b: 22.3% -
model:qwen3.8-flash-next: 14.8% -
model:mimo-v2.6: 9.5% -
model:kimi-k3.1: 7.6% -
model:nemotron-3.5-bolt: 5.3% -
model:gemma4: 4.2% -
model:muse-glimmer: 0.4% -
model:deepseek-v4.1: 0.2% -
model:deepseek-v4: 0.1%
Apply Labels (Intake)
Applied: +triage:review, +bug
Subtraction and simplicity
Subtraction & Simplicity audit — PR #708
Scope: the 7 files in pr_files (+736/−56). Verdict up front: the Ignition half is nearly lean, the Helios runtime half is not — it buys per-request error isolation by triplicating the same seven-line recovery block and by deepening a 90-line match by one indentation level, and two of the three new isolation arms guard failure modes that the request pipeline already rejects twice upstream. There is ~30–40 lines of removable plumbing in Worker::admit and two dead/self-disabling knobs in VisionState.
Findings are ordered by value. All line numbers are at head 4fee325.
1. [High] Triple-duplicated isolation block, and two of the three guarded failures are already rejected twice upstream
helios/src/server/runtime.rs:1641-1648, :1652-1663, :1667-1683 contain the identical recovery sequence three times:
self.scheduler.cancel(handle)?;
incoming.fail(error);
progress = true;
continue;
The TokenStops/TextStops variants have to continue from inside what used to be a plain Option::unwrap_or arm, which is the only reason the PR rewrote let parked = match parked { Some(parked) => parked, None => Parked { … } } (:1649-1716) into a nested form — ~65 lines of Parked construction pushed one level deeper purely to host two continues.
Both of those two failure sources are pure functions of incoming.prompt, and both are already validated twice before the worker sees the request:
helios/src/server/request.rs:336-339:let stop_sequences = opts.token_stops.clone(); super::stops::TokenStops::new(stop_sequences.clone(), config.contract.vocabulary)?; … super::stops::validate_strings(&stop_strings, !stop_sequences.is_empty(), grammar.is_some())?;helios/src/server/runtime.rs:949-957(same two calls, on the samePromptthe worker later receives).
TokenStops::new (helios/src/server/stops.rs:14-31) has no state and no dependency on the handle, the scheduler, or the admission; TextStops::new → StringStops::new → the identical validate_strings (stops.rs:94-95) likewise.
Simplification: hoist the matcher construction above Admission::from_continuation (it needs nothing the admission produces), so the only code that can now fail after self.scheduler.admit is the admission itself. That deletes two of the three isolation arms, restores let parked = match parked { … } to a one-expression unwrap_or_else-shaped arm, and leaves exactly one cancel-and-fail site:
let stops = TokenStops::new(incoming.prompt.stop_sequences.clone(), self.config.contract.vocabulary)?; // pre-admit
let request_admission = match Admission::from_continuation(…) { Ok(a) => a, Err(e) => { … one site … } };
Net: roughly −30 lines and two fewer indentation levels in the hottest function in the file, with the same guarantees. (The new test worker_admit_isolates_admission_and_stop_matcher_failures_without_killing_worker at phase_tests.rs:9326 mutates bad.prompt.stop_sequences after preparation, so it exercises a state production code cannot reach — worth knowing before treating those two arms as load-bearing.)
Related inconsistency introduced alongside: the pre-existing admission-rejection path at runtime.rs:1572-1575 does incoming.reject_admission(error); continue; with no progress = true, while the three new failure paths set it. Same class of event (a request dies, a slot is freed). Pick one; a reviewer will ask which is correct.
2. [High] VisionState.inject carries a parameter it no longer reads, and image_token is now a knob that disables its own check
ignition/components/vision_state.py:51:
def inject(self, metadata, embedding):
The body (:52-61) never touches metadata. Before this PR it did (torch.where((metadata.token_ids == self.image_token)[:, None], …)). It is now a required positional argument that every caller must supply for nothing.
Second, :26 makes image_token=None the default, and image_token's only remaining use is the cross-check at :45-46:
if self.image_token is not None:
valid &= ~visual | (tokens == self.image_token)
So the class now has an optional field whose sole effect, when omitted, is to silently drop a validation rule — an invalid state (index-driven injection with a token check nobody asked for, or vice versa) is representable, and defaulting to None is the strictest-weakening direction. The PR's own thesis is that the index is the invariant; either the token id is a real requirement (keep it positional/required, as all 5 in-tree call sites in tests/components/test_vision_state.py:17,39,55,81 already pass it) or it is not needed (delete the field and :45-46 entirely, and drop the metadata parameter with it). Carrying it as "required before, optional now, used once, disable-able by omission" is the one shape worth subtracting.
Caveat for whoever applies this: the 9 recipes are external (AGENTS.md:382-396 (not opened)), so dropping the metadata argument is a call-site edit there; the if self.image_token is not None weakening can be removed with no external churn by making the argument required again.
3. [Medium] validate_prefill repeats the ~visual | … plumbing three times; inject already shows the one-conjunct form
ignition/components/vision_state.py:43-49:
visual = index >= 0
valid = (index == -1) | (visual & (index < self.count[slot]) & (index < self.arena.shape[1]))
if self.image_token is not None:
valid &= ~visual | (tokens == self.image_token)
valid &= ~visual | (self.generation[slot] == b.row_generations[0])
valid &= ~visual | ((self.feature_slot >= 0) & (self.feature_slot < self.arena.shape[0]))
return (~live | valid).all()
Three separate valid &= ~visual | X lines are equivalent to one conjunction, and inject right below (:55-60) already computes exactly that conjunction as a single visual mask. Collapsing to
visual = index >= 0
indexed = (index < self.count[slot]) & (index < self.arena.shape[1]) \
& (self.generation[slot] == b.row_generations[0]) \
& (self.feature_slot >= 0) & (self.feature_slot < self.arena.shape[0])
valid = (index == -1) | (visual & indexed)
if self.image_token is not None:
valid &= ~visual | (tokens == self.image_token)
keeps the exact semantics (including the tested index == -1 vs index < -1 distinction, test_vision_state.py:111-112) and makes the two methods read as the same rule, which is the stated goal of the PR. It also removes the duplicated (self.feature_slot >= 0) & (self.feature_slot < self.arena.shape[0]) expression that currently appears verbatim at :48 and :58-59.
4. [Medium] Two of the three new wrappers have no production caller left
The PR adds four names (validate_continuation_prompt_data, Admission::validate_continuation, Admission::from_continuation, plus initial_prompt_tokens threading) while keeping three thin delegating wrappers:
helios/src/model.rs:406-408—validate_prompt_data→validate_continuation_prompt_data(…, tokens.len()). Two production callers (admission.rs:218,model/prompt.rs:138(not opened)).helios/src/model/admission.rs:72-74—Admission::validate→validate_continuation(config, self.prompt.len()). Callers after this PR:helios/src/model/tests.rs:2521andhelios/src/server/runtime/phase_tests.rs:6424only — zero production callers.helios/src/model/admission.rs:122-137—Admission::from_prompt→from_continuation(…, prompt.tokens.len(), …). Caller after this PR:phase_tests.rs:6412only — zero production callers.
Admission::from_prompt was what Worker::admit called (runtime.rs before-diff line); the PR replaced the last production use. If these are not part of an intentionally published API (they are pub, so that is a judgement call for the author), deleting Admission::validate and Admission::from_prompt removes ~30 lines of indirection whose only remaining consumers are tests — and the tests at tests.rs:2521-2522 and phase_tests.rs:6412-6424 exist specifically to assert the wrappers' tokens.len() behaviour, so they would go too. validate_prompt_data is worth keeping: its two callers are real and its name states the strict-prefix policy.
5. [Medium] validate_continuation_prompt_data checks the same array length twice, in two different blocks
helios/src/model.rs:427-428 and :453:
|| (!data.vision_token_indices.is_empty()
&& (data.vision_token_indices.len() != tokens.len() // 428
…
if data.vision_token_indices.len() != tokens.len() // 453
The second only fires when the array is empty and an image_tokens layout exists, because the first is gated on !is_empty(). That is one rule split across two places for a gating accident; hoisting the length check once (before the geometry chain, applied whenever the array is non-empty, or restated as data.vision_token_indices.len() != tokens.len() unconditionally when image_tokens is set) makes it legible and lets the image_tokens block start directly with the bijection.
Adjacent, lower value but same function: the 30-line boolean chain at :421-449 mixes geometry, vision indices, spans and vocabulary and reports all of them as one string, "prompt arrays violate prepared geometry" (:450). Two of this PR's own new invariants are boundary-argument checks (initial_prompt_tokens == 0 && !tokens.is_empty(), initial_prompt_tokens > tokens.len()); folding them into a message that also means "your spans overlap" will make the first field report of a bad boundary essentially undebuggable. Splitting into 3–4 named checks with distinct messages costs no lines and is the only change here I would call a correctness-of-diagnostics issue rather than a style one.
6. [Low] The new phase test hand-rolls a drive loop the file already provides twice
helios/src/server/runtime/phase_tests.rs:9061-9082 and :9121-9163 are two near-identical plan → reserve_and_pack → completion → complete → publish → drain budget events loops (~40 lines total) differing only in the sampling predicate and the break condition; the file already has advance, planned, budget_pass helpers for exactly this (:355, :394, :426). The 154-line vlm_feature_token_survives_preemption_and_thinking_budget_readmission is the single largest test added and roughly a third of it is loop scaffolding duplicated from its own inner section. Extract one local closure drive(&mut worker, …) -> bool and the test drops ~40 lines — the +374 test lines are the bulk of the PR's size and are worth one pass before merge.
7. [Low] Naming collision between the two new continuation validators
helios/src/model/admission.rs:76 Admission::validate_continuation and helios/src/model.rs:414 validate_continuation_prompt_data are two layers of the same rule with almost the same name, one calling the other (admission.rs:105). The outer one validates sampling, core parameters, grammar mask and prompt length and then the metadata; a name that says so (validate_request_for_prompt_boundary) or inlining the boundary into validate_continuation_prompt_data's own caller would avoid a future reader assuming they are duplicates of each other. Cosmetic, but it is the kind of ambiguity this repo's docs/design-review.md (not opened) wording rules single out.
What is already lean (no action)
helios/src/model/admission.rs:15-57—PromptMetadataMut::extend_textis untouched and remains the single source of the-1continuation indices; the PR correctly reuses it rather than adding a parallel path.helios/src/server/runtime.rs:1629-1632—parked.as_ref().and_then(|p| p.carried.prompt_tokens).unwrap_or(incoming.prompt.tokens.len())is the minimal correct read of the existingCarriedfield; no new state was added, no newOptionwas introduced. Good.helios/src/model/admission.rs:25-56/model.rsdiff — no new config knob, no newModelContractfield, no capability flag, no CLI surface. The PR adds zero operator-visible state; the four-name API addition is confined to validation. This is the right shape.ignition/components/vision_state.py:33-36— arena/generation/count allocation untouched;images_slots=Nonehandling unchanged.tests/components/test_vision_state.py(+67) — five focused assertions reusing the existing fixture style, no duplicated setup helpers.- No CLI flags, no config keys, no dead feature gates, and no duplicated helper that already existed elsewhere, beyond the items above.
Bottom line
Ship the Ignition semantics (they are right), but before merge: (1) hoist TokenStops/TextStops above the admission call in Worker::admit and collapse the three isolation arms into one, restoring the flat match parked — this is the single biggest subtraction available (~30 lines, two indentation levels, and it also resolves the progress = true inconsistency against runtime.rs:1573); (2) decide whether image_token is required or gone, and drop the now-unread metadata parameter of inject; (3) collapse the three valid &= ~visual | … lines in validate_prefill into the one conjunction inject already uses; (4) delete Admission::validate / Admission::from_prompt if they are not published API — they have no production callers left after this PR.
Gates and contracts
Contracts, Charter & Verification-Gates Audit — PR #708
Scope: hard governance only (docs/design-review.md, AGENTS.md), contract boundaries, vendored upstream files, mandatory verification gates, and material claim/scope contradictions. No algorithm-correctness review.
Verdict: no blocking contract, wire, vendored-file, or scope violations. Two genuine open items, both narrow and both related to weakened/undemonstrated guarantees — not to format or scope.
Gate 1 — Signed core-format / wire / captured-graph / public-contract boundaries: PASS
- No core-format or wire change.
pr_filesis exactly 7 files:helios/src/model.rs,helios/src/model/admission.rs,helios/src/model/tests.rs(not opened),helios/src/server/runtime.rs,helios/src/server/runtime/phase_tests.rs(not opened),ignition/components/vision_state.py,tests/components/test_vision_state.py. No.proto, nohelios/src/model/contract.rs, noCargo.toml(not opened)/Cargo.lock. No newValueSource/GraphKind/HistoryKindmember, no newModelContractfield, noSupports*flag — the new entry points are Rust functions (validate_continuation_prompt_data,Admission::from_continuation) with the old names kept as delegating wrappers (helios/src/model.rs:406-408,helios/src/model/admission.rs:72-74,122-137). - No captured-graph operation family added, so principle 1's owner-approval clause is not triggered. The description explicitly declines the one path that would have needed it (no
GrammarMask/GrammarEnableddecode mask). - Existing cores still load from the format's perspective: nothing in the diff changes how a core is read, validated structurally, or bound. Contract-version and signature checks are untouched.
- No contradicted normative document. I searched
docs/for the invariant the PR relaxes:bijection,validate_prompt_data,Admission::from_prompt,prompt validation,vision_token_indices,feature_token,ImageSpan,image_token,VisionState— no match anywhere indocs/(onlydocs/api.md(not opened) user-facing image-budget text). So the Discovery Dossier's open question 6 answers itself: no design doc states whole-prompt strict bijection, so there is no contradicted normative doc left stale and no doc that this PR must update to stay coherent. This is aNo blocker / no doc-gatefinding, not a TODO.txt nit. - The change actually implements documented behavior rather than contradicting it.
docs/core-design.md:486-489already specifies: preempted requests "are readmitted with its history ... Shared handling extends text-position and image-index metadata for generated tokens before readmission," anddocs/core-design.md:1620-1639("Multimodal identity") says "A sequence of image-placeholder token IDs alone is insufficient to identify model state" with canonical positions, dependencies and feature indices describing the prompt. The PR's continuation rule (positions extended,vision_token_indices == -1, in-vocabulary only —helios/src/model.rs:427-448) and its index-drivenVisionStateare the code-side realization of exactly that text. Atomic-span invariants indocs/scheduling-runtime-design.md:342,418,503concern prefill-chunk boundaries and frontend-declared spans, which remain scoped to0..initial_prompt_tokens(helios/src/model.rs:468-487), so they are not violated. - One governance weakening worth a maintainer decision (Minor, not a format/contract violation).
VisionState.__init__now takesimage_token=Noneas a default (ignition/components/vision_state.py:26) and skips the token-id cross-check entirely when it is unset (:45-46). That is a silent, default-off suppression of a validation check for any future caller that omits the keyword, andvalidate_prefillnow also acceptsindex == -1on a token that is the image token (:43-46) — an image whose index was lost is treated as text rather than rejected. AgainstAGENTS.md:182-186("Reject weakened guarantees ... Do not remove validation") and principle 3's rejection of "default-false opt-ins" (docs/design-review.md:58-61) and principle 15 (:135-146), the recommended repair is to makeimage_tokenrequired again, or to reject a visual-layout core that leaves itNone, keeping the index-driveninject(:51-61) as-is. In-tree blast radius is currently zero (image_token=appears only intests/components/test_vision_state.py:18,40,56,82;VisionStatehas no other in-repo consumer), so this is a forward-looking contract-tightening request, not a shipped-default break.
Gate 2 — Vendored upstream dependencies and cross-PR dependency pins: PASS
- No vendored upstream file is touched:
helios/native/roce_proxy.c(not opened) and every otherhelios/native/*path are absent frompr_files. No.patch, no forked upstream C source. - No dependency change at all (no Cargo manifest or lock file in the PR), so the pin-everything rule is untouched.
- No hard dependency on an unmerged external PR or a
local-inference-lab/hyperflare-recipescommit. The only external coupling is the operational statement that legacy token-keyed cores need re-export, which is the normal recipe workflow described inAGENTS.md:382-396, not a build- or merge-order dependency. Info only: the "9 VLM recipes" population and theimage_token=call sites live in that external repository and cannot be counted or checked from this repository; the claim is unverifiable here rather than false.
Gate 3 — Mandatory verification evidence: one substantive open item
Layer 1 (crate unit/contract tests, --release) — satisfied.
- Author reports
helios --features runtime-core,server --lib1,837 passed / 47 ignored / 7 failed,flare255/0,flare-cli246/0,heliopause229/0, targeted continuation/worker run 4/0, Pythontests/components/test_vision_state.py5/0 andtests/components+tests/cli336/56 skipped. - Those 7 reported failures are environment artifacts, not failing tests, and I explicitly do not flag them.
.github/workflows/native-serving.yml:28-31(not opened) generates the template fixtures and:59,67,72,76exportFLARE_TEST_TEMPLATE_DIR, which accounts for the 6 template failures;:61-62(ulimit -l,prlimit --memlock=67108864) accounts for the singleengram::readermemlock failure, which the author also re-ran clean (helios/README.md:170(not opened) confirms those tests panic when the variable is unset). The Discovery Dossier's concern that this diverges from peers' "0 failed" is therefore resolved from the workflow file, not a gate failure. - The Python suite choice matches the affected component (
tests/components).
Layer 3 (verification/helios-lifecycle/check.py) — satisfied.
- The change does touch admission/readmission, cancellation (
self.scheduler.cancel(handle)?) and worker lifecycle, so the TLA+ + trace-conformance gate applies. The author reportspython3 verification/helios-lifecycle/check.py --tlc-jar … --target-dir flare-cli/targetpassing all models —Lifecycle1,710 edges,RankProtocol1,291,DispatchRing7,940,OffloadTransfer8,490,CacheOwnership222,817,Speculation13,566,ResponseLifecycle365,508,CheckpointReservation68,RankDispatch— plus 12 concurrency/lifecycle regressions. Checking prior rounds/comments (pr_comments: only the case-file notice) shows no contradicting evidence. - The response-ownership invariant the change touches (
ResponseLifecycle) and the runtime-admission mutation fixtures are in that catalog, so the run covers the right models.
Kani — satisfied, not missing.
helios/src/model/kani_proofs.rscoversvalidate_completiononly; there is no prompt-validation harness onmain, so the change creates no new proof obligation for an unharnessed function. More decisively,.github/workflows/helios-lifecycle.yml:36-47(not opened) runscargo kani --manifest-path helios/Cargo.toml (not opened) --features runtime-core --libon every PR touchinghelios/**(:5-6), and CI passed on4fee325. The author's local "Kani not installed" disclosure is not a skipped gate.
Mutation testing — Info, not a blocker.
check.py --mutations(catalog atverification/helios-lifecycle/check.py:417-677) targets scheduler, cache-memory, offload-transfer, dispatch-ring and runtime response-admission invariants. None of the changed lines (Worker::admiterror isolation,validate_continuation_prompt_data) are in that catalog, so running--mutationswould not have exercised the new guards;cargo-mutantswas not installed. Honest disclosure, no reachable CPU gate skipped. Optional hardening for the maintainer: calibrate a mutation againstworker_admit_isolates_admission_and_stop_matcher_failures_without_killing_worker(helios/src/server/runtime/phase_tests.rs:9326(not opened)) andcontinuation_prompt_validation_permits_decoded_in_vocab_image_and_span_tokens_only_after_initial_prompt(helios/src/model/tests.rs:2461(not opened)).
Open item (Major, disclosed in the description): principle 13's "Validate previous cores through loading and serving" was not performed.
- The load-bearing compatibility claim — that legacy token-keyed cores still load unchanged and, when they must re-prefill an unindexed decoded feature token, fail only that request with
ExecutionError::Device { code: 32 },active = False, no embedding corruption and no worker termination — is reached by reasoning fromVisionState's GPU-sidevalidate_prefilland fromcatch_unwind/worker_healthhandling. Noflare runserving, no legacy-core replay, no checkpoint-backedimage_admissionrun, and no GPU test was done.docs/design-review.md:116-123andAGENTS.md:435-448both call for previous cores to be validated through loading and serving, anddocs/design-review.md:110-115requires actual Helios service measurements for served-path claims. Because the PR relaxes acceptance for cores that already exist and asserts a specific clean-failure mode for them, this is the one gate that remains genuinely open. It is not waivable by disclosure (:247-251) but it is also not runnable without a GPU and checkpoint, so the correct disposition is: merge-blocking only if the maintainer wants the compatibility claim to stand as stated; otherwise the description's compatibility paragraph should be downgraded to "expected, not measured." No transcript, log, or artifact for that behavior exists in the diff.
No performance claim is made anywhere in the description, so no main-vs-branch served-workload A/B benchmark is required (docs/design-review.md:106-115 applies to performance claims only).
Gate 4 — Material scope / claim contradictions: PASS
- Every named artifact exists at the stated place. Verified in the tree at head:
helios/src/model/tests.rs:2461(not opened)continuation_prompt_validation_permits_decoded_in_vocab_image_and_span_tokens_only_after_initial_prompt;helios/src/server/runtime/phase_tests.rs:9035(not opened)vlm_feature_token_survives_preemption_and_thinking_budget_readmission,:9217vlm_feature_and_span_tokens_survive_grammar_transition_readmission,:9326worker_admit_isolates_admission_and_stop_matcher_failures_without_killing_worker;tests/components/test_vision_state.py:77test_unindexed_feature_tokens_remain_text_during_validation_and_injection,:128test_index_only_vision_state_without_image_token. The production changes described all appear:Admission::from_continuation(helios/src/model/admission.rs:137-161), the continuation validator (helios/src/model.rs:414-493),initial_prompt_tokensfromCarried::prompt_tokensand the three isolated error paths (helios/src/server/runtime.rs,Worker::admithunk), andself.admissions[slot]written only after all three constructions succeed. Nothing promised is missing; nothing material is done that is omitted except the two weakenings already covered under Gate 1 (theimage_token=Nonedefault andindex == -1on an image token). - No bundling of unrelated tooling. +736/−56 in 7 files, of which +564 is tests. No new scripts, harnesses, or generated artifacts.
- Diff-viewer extra files are a stale-base artifact, not hidden scope. The viewer shows
AGENTS.md,docs/*,flare-cli/src/*andpreserve_message_anchorfields (e.g.helios/src/server/runtime.rs:47-52,helios/src/server/request.rs(not opened)) as added; those are #697's merged interior-anchor work re-shown by a stale base.pr_files(7 files) is authoritative. Info only. - No agent-directed instructions appear in the PR body or comments; the body follows the required why / what / claimed result / evidence order (
docs/design-review.md:147-162), givesDiscord: lukealonso(:163-169), and discloses unrun checks (:106-115).Design-Signed-Off-Bytrailers are not observable through my tools, so I make no finding either way. - Overlap with open #483 (
helios/src/model.rsspan validation) and #621 (Worker::admit) is textual-rebase risk on unmerged PRs, not a governance gate. Info / Nit.
Findings summary
| # | Gate | Finding | Severity |
|---|---|---|---|
| A | 3 | Principle 13 "validate previous cores through loading and serving" not performed: the legacy token-keyed core compatibility claim (ExecutionError::Device { code: 32 }, clean single-request failure) is reasoning-only — no flare run, no legacy core replay, no GPU/checkpoint image_admission run |
Major, open (disclosed; not runnable without a GPU) |
| B | 1 / governance | VisionState(image_token=None) defaults off the tokens == image_token cross-check, and index == -1 on an actual image token is accepted as text — a silent validation weakening (AGENTS.md:182-186; principles 3 / 15) |
Minor, request change (make image_token required or reject None for visual layouts) |
| — | 1 | No proto / core-format / enum / captured-graph / ModelContract change; no contradicted normative doc (docs/ contains no whole-prompt-bijection statement) |
No violation |
| — | 2 | No vendored upstream file, no dependency change, no unmerged-PR pin dependency | No violation |
| — | 3 | Layer 1 crate + Python tests run; the 7 reported helios failures are explained by native-serving.yml:28-31,59,61-62; TLA+ conformance run reported; Kani runs in CI (helios-lifecycle.yml:36-47) |
Gate satisfied |
| — | 3 | Mutation testing not run for the new guards (--mutations catalog does not cover the changed lines) |
Info |
| — | 4 | All six named tests present at the stated lines; stale-base diff noise explained; no fabricated evidence | No violation |
No contract, wire, vendored-file, or material-scope blocker. Code-format and public-contract boundaries are intact; the two items above are (A) one verification gate that cannot be closed on this host and should either be run on GPU or have its claim downgraded, and (B) one default-off validation weakening that should be removed before merge.
Code correctness
Deep Code Correctness, Invariants & Hot-Path Performance Audit — PR #708 @ 4fee325
Scope & method
This PR is 7 files / ~736 changed lines, but the authored surface (excluding the unrelated doc/AGENTS.md (not opened)/TODO.txt/orbit changes I found in the diff) is a single-subsystem pair: helios (model + server runtime) and ignition. That is ≤ 900 LOC across 2 crates, so per the partitioning rule I audited directly rather than spawning sub-agents.
Every non-trivial changed site was traced with all four protocol steps:
| Site | Callees/enums opened | Result |
|---|---|---|
validate_continuation_prompt_data (model.rs:414-493) |
PromptData (model.rs:280-292), ImageTokenLayout/ImageSpan (contract.rs:390,420), PreparedContract::validate (contract.rs:542-594), validate_completion (model.rs:374-404), Admission::validate_continuation (admission.rs:76-111) |
one latent finding below |
Admission::validate/validate_continuation/from_continuation (admission.rs:71-163) |
Error/AdmissionError (error.rs:145-183), validate_prompt (admission.rs:167-225), prompt_metadata::extend_text (admission.rs:25-56) |
sound |
Worker::admit initial-prompt derivation + 3 error-isolation sites (runtime.rs:1629-1717) |
Carried (runtime.rs:424-434), park_with_tokens (runtime.rs:2496-2559), requeue (runtime.rs:2988-3016), clear_active_entry (runtime.rs:3274-3290), RequestScheduler::cancel/retire (scheduler.rs:3146,3183), TokenStops::new/TextStops::new (stops.rs:14-31,156-166), Incoming::fail/notify_admission (runtime.rs:335-363), http.rs:576 |
sound |
VisionState.validate_prefill / .inject (vision_state.py:38-61) |
PrefillVisionInputs (vision_state.py:11-22), image_capacity (components/capacity.py (not opened)), torch broadcasting semantics |
sound |
helios/src/model/tests.rs:2459-2581, phase_tests.rs:8685-9385 |
fixtures enable_vlm_image_tokens, budget_cut, speculative_burst_frame, budget_pass |
tests are consistent with the code |
Finding 1 — Minor (latent): continuation suffix bound uses the wrong vocabulary tier, so forced control tokens can become a hard readmission failure
Diff site — helios/src/model.rs:446-448 (new code):
|| tokens[initial_prompt_tokens..]
.iter()
.any(|token| *token as usize >= config.contract.vocabulary)
{
return Err("prompt arrays violate prepared geometry".into());
Contradicting callee — helios/src/model/admission.rs:92-95 (unchanged, runs on every admission before the above):
|| self
.prompt
.iter()
.any(|token| *token as usize >= config.contract.input_vocabulary)
And helios/src/model/contract.rs:546-548:
if self.vocabulary == 0
|| self.input_vocabulary < self.vocabulary
|| self.input_vocabulary > u32::MAX as usize
input_vocabulary is an input-only tier (input embeddings wider than the sampling head) and the contract explicitly allows input_vocabulary > vocabulary. The contract itself validates every image/span token id against the input tier, not the sampling tier (contract.rs:579-591):
if self.vision.enabled() != self.frontend.image_tokens.is_some()
|| self.frontend.image_tokens.as_ref().is_some_and(|layout| {
layout.feature_token as usize >= self.input_vocabulary
|| layout.span.as_ref().is_some_and(|span| {
span.max_tokens == 0
|| span.start_token == span.end_token
|| [span.start_token, span.end_token]
.iter()
.chain(&span.interior_tokens)
.chain(&span.unscoped_tokens)
.any(|id| *id as usize >= self.input_vocabulary)
Counterexample. Core with vocabulary = 100_000, input_vocabulary = 100_512 (control-reasoning tier), qwen-style reasoning.close = 100_200. Request with thinking_budget runs the forced-close path in runtime.rs:2298-2299:
if forced {
for token in cut.close {
match request.close_reasoning(token, &self.config.eos_token_ids)
…which is then parked with those tokens appended (runtime.rs:2348-2349):
let appended: &[u32] = if forced { &injected } else { &[] };
self.park(slot, appended, remaining)?;
park_with_tokens calls extend_text(...) and reassigns incoming.prompt.tokens (runtime.rs:2525-2527), so the forced tokens now live at indices >= carried.prompt_tokens, i.e. squarely in tokens[initial_prompt_tokens..]. On readmission Worker::admit runs Admission::from_continuation → validate_continuation → the new suffix check, and 100_200 >= 100_000 is true → Err("prompt arrays violate prepared geometry"). The request dies (cleanly, per the new isolation path) instead of continuing its budget pass. The same holds for a decoded control token in [vocabulary, input_vocabulary).
Note this is a behavior change vs. the old code only in where it fails: previously validate_prompt_data had no vocabulary bound on the tail at all (config.contract.vision.enabled() || *i as usize >= tokens.len() was the only index bound), so a [vocabulary, input_vocabulary) control token in a parked continuation was accepted. The PR's own rationale for the check ("blocking out-of-vocabulary sentinels") does not require the sampling tier — the input tier is the tier that actually holds such tokens.
Why not Major: no in-repo core can trigger it. ignition/preparation/contract.py:159 (not opened) defaults the tier to the sampling vocabulary —
result = dict(version=3, vocabulary=vocabulary, input_vocabulary=input_vocabulary or vocabulary,
— and no recipe in the tree passes input_vocabulary= (grep of ignition/ and flare-cli/src/ finds only that defaulting line). Every shipped core therefore has the two tiers equal and the finding is unreachable today. It is a latent trap for the first core that uses the documented wide-input tier.
Fix (one line, helios/src/model.rs:448):
|| tokens[initial_prompt_tokens..]
.iter()
.any(|token| *token as usize >= config.contract.input_vocabulary)
matching admission.rs:95 and contract.rs:581,589. (If the intent genuinely is "decode can never emit above the sampling head", then the forced-token producer at runtime.rs:2349 must be exempted instead — but the input_vocabulary bound is the consistent choice, since admission.rs:92-95 already proves that tier is legal in prompt.tokens.)
Everything else I traced and cleared (with the reasoning, so the claim is checkable)
1. Strict initial-prompt validation is genuinely preserved. validate_prompt_data now delegates with initial_prompt_tokens = tokens.len() (model.rs:406-408), so every old strict check keeps its exact old domain: the bijection (*token == layout.feature_token) == (*index >= 0) degenerates to the position < initial_prompt_tokens arm (model.rs:459-460), the span-membership scan covers tokens[..initial_prompt_tokens] == all tokens (model.rs:473), the span-end bound s.end > initial_prompt_tokens is the old s.end > tokens.len() (model.rs:443), and the new suffix checks are vacuous over an empty range. prompt.validate (admission.rs:218) and model/prompt.rs:138 still call the strict wrapper, so a user prompt cannot smuggle an unindexed feature_token or a loose span token.
2. No panic path in the new slicing. tokens[initial_prompt_tokens..] (model.rs:446) and tokens[..initial_prompt_tokens] (model.rs:473) are the first-and-second || chains evaluated after initial_prompt_tokens > tokens.len() has already returned Err (model.rs:421-422), so initial_prompt_tokens <= tokens.len() holds at both sites. Admission::from_continuation (admission.rs:161) and Worker::admit (runtime.rs:1629-1648) both surface the Err rather than unwrapping.
3. carried.prompt_tokens cannot drift across repeated parks (the subtle one). park_with_tokens sets prompt_tokens: Some(active.carried.prompt_tokens.unwrap_or(prompt_tokens)) (runtime.rs:2550), so a second park re-carries the original boundary instead of live.prompt_tokens (which now equals original + previously generated). requeue (runtime.rs:3011) passes carried: active.carried unchanged. The test at phase_tests.rs:9181-9187 exercises exactly this. So Worker::admit's parked.as_ref().and_then(|p| p.carried.prompt_tokens).unwrap_or(incoming.prompt.tokens.len()) (runtime.rs:1629-1632) yields the original user prompt length on every readmission, and a decoded feature_token at index >= initial_prompt_tokens can never be mistaken for a real image position.
4. Error isolation is state-complete. All three new Err arms (runtime.rs:1642-1647, 1657-1662, 1677-1682) do self.scheduler.cancel(handle)? → incoming.fail(error) → progress = true → continue, and none of them had already written self.admissions[slot] (the assignment was moved after all three constructions, runtime.rs:1717). cancel → retire releases pages/snapshots/image slot and marks the slot retiring (scheduler.rs:3130-3142); fail routes through finish_error which is idempotent on failure.is_some() (runtime.rs:351-356) and emits GenerationEvent::Error, which http.rs:576 maps to the response error. No slot leak, no double-fail, no admission-counter drift (metrics.admitted is only bumped at runtime.rs:1718-1720, after success). The parked binding is not moved before the failure arms, so the continue paths are borrow-clean.
5. VisionState.inject broadcast shapes are correct and cannot corrupt text rows. visual is built from 1-D tensors of length embedding.shape[0] (vision_state.py:55-60), then visual[:, None] broadcasts against an [N, hidden] embedding and self.arena[slot, indices] (slot clamped, indices clamped) is [N, hidden] because slot is a 1-element tensor after .clamp on a 1-element tensor. The clamp keeps the torch.where data operands in-bounds regardless of gate values, and the gate itself uses unclamped index/feature_slot, so the clamp cannot create a visual position — a stale nonnegative index with feature_slot == -1 yields visual == False and the original text embedding (asserted at test_vision_state.py:117-125). validate_prefill uses the identical unclamped predicate family (vision_state.py:43-48), so validate and inject agree bit-for-bit on which rows are visual — the property the PR needs to keep re-prefill safe. index < self.arena.shape[1] defends against a stale index past arena width, and image_token=None only removes a conjunct (vision_state.py:45), strictly loosening, never making a previously-valid state invalid.
6. Backward compatibility of the Python surface. image_token became image_token=None (vision_state.py:26) without moving it after the *, — it was already keyword-only (*, image_token, features, hidden), so all recipe call sites passing image_token= still bind. test_index_only_vision_state_without_image_token (test_vision_state.py:128-141) covers the omitted case.
7. No hot-path regression. All added work is O(len(tokens)) single-pass over slices already in cache (model.rs:446-448 suffix vocabulary scan, model.rs:473-484 span scan now over a prefix — strictly cheaper than before), and it runs once per admission, not per step/victim/iteration. VisionState gained two elementwise comparisons plus one if on a per-prefill-chunk tensor (vision_state.py:43-46), with no new allocation (visual is a bool tensor that replaces the two tokens == image_token temporaries the old code built, so the net allocation count is down).
8. Tests in the changed code are consistent and would catch the PR's claimed behavior. vlm_feature_token_survives_preemption_and_thinking_budget_readmission (phase_tests.rs:9035-9213) really does assert the packed -1s (:9131-9142), the preserved boundary after a second park (:9186), and the exact post-readmission token stream (:9212); vlm_feature_and_span_tokens_survive_grammar_transition_readmission (:9216-9281) asserts an in-vocab span-start token and feature_token survive a grammar-transition park with carried.prompt_tokens == Some(2); worker_admit_isolates_... (:9284-9385) asserts full slot/page reclamation for all three failure sites. continuation_prompt_validation_... (model/tests.rs:2459-2581) asserts the initial-vs-continuation boundary, the 0/7 invalid boundaries, the OOV suffix, and span-overrun rejection. I found no test that contradicts the code.
Verdict
No Blocker or Major correctness defect is present. The two headline invariants — strict multimodal validation on the user prompt prefix, and unindexed decoded image/span tokens treated as ordinary text on readmission — are correctly established, the same-loop state ordering in Worker::admit is right (admissions[slot] written only after all three fallible constructions succeed, before active[slot]), repeated parking preserves carried.prompt_tokens, and all three new failure paths fully reclaim scheduler slots and pages.
The one real defect is Minor and currently unreachable: model.rs:448 bounds continuation tokens by config.contract.vocabulary while every other input-side check in the same admission path (admission.rs:95) and in the contract's own image-token validation (contract.rs:581,589) uses the wider config.contract.input_vocabulary, which the contract explicitly permits to exceed the sampling vocabulary (contract.rs:547). Because forced reasoning-cut close tokens are appended into the continuation (runtime.rs:2349) and re-validated on readmission, a core that ever populates that documented wide-input tier would fail the affected readmission outright. One-line fix: use config.contract.input_vocabulary at model.rs:448.
Final review
Recommendation: Ready To Merge
PR #708 does exactly what it claims, at the right layer, with no per-model branching and no core-format change. I verified every load-bearing site at 4fee325 — the continuation validator (helios/src/model.rs:406-493), the two Admission entry points (helios/src/model/admission.rs:71-163), the Worker::admit boundary derivation and three error-isolation arms (helios/src/server/runtime.rs:1629-1717), and the index-driven VisionState (ignition/components/vision_state.py:38-61 with tests/components/test_vision_state.py:77-141) — and found no verified code bug: strict initial-prompt semantics are exactly preserved, -1 continuation indices pack cleanly through feature_index (helios/src/scheduler.rs:283-299, helios/src/model/packing.rs:711-725), failed admissions fully reclaim slot/pages, and admissions[slot] is no longer visible half-built. The only material gap is evidence, not code: the legacy token-keyed core compatibility claim (ExecutionError::Device { code: 32 }) was reasoned, not measured, which I raise as an explicit pre-merge WARN rather than a blocker since the author disclosed it and no core format, metadata, or storage contract changed.
Merge Risk
Level: Low
- Admission/readmission logic in a hot, fast-moving file (
helios/src/server/runtime.rs: ≥29 PRs in 180 days) is restructured (+71/−33), but the newphase_tests.rs:9035-9385cases drive the realWorkerloop through preemption (with and without checkpoint eviction),thinking_token_budget, grammar transition, and all three failure sites. - The load-bearing compatibility claim for already-exported token-keyed cores is unmeasured on GPU (
code: 32,active = False, no embedding corruption); failure mode is documented as clean single-request failure, not worker death. ignition/components/vision_state.pysemantics change for 9 external recipes that are not in this repository (AGENTS.md:382-396); in-tree blast radius is zero (image_token=appears only intests/components/test_vision_state.py:18,40,56,82), and legacy cores keep working until re-exported.
Walkthrough
- Helios prompt validation split by boundary (
helios/src/model.rs:406-493):validate_prompt_datanow delegates withtokens.len(), so the feature-token bijection (:452-467) and atomic-span membership scan (:468-487) keep their exact old domain on0..initial_prompt_tokens; continuation positions must carryindex == -1(:459-464) and be< config.contract.vocabulary(:446-448), with boundary rejections at:421-422guarding both slices against panics. - Boundary threaded through admission (
helios/src/model/admission.rs:76-111,140-163):validate_continuation/from_continuationadded,validate/from_promptretained as strict delegating wrappers;input_vocabularybound at:95still rejects out-of-range prompt tokens before the new data checks. - Worker readmission boundary (
helios/src/server/runtime.rs:1629-1717):initial_prompt_tokenscomes fromCarried::prompt_tokens, whichpark_with_tokenspins to the original prompt length (:2550), so repeated parks cannot drift the boundary (assertedphase_tests.rs:9186). - Per-request error isolation (
runtime.rs:1641-1683): the three former?sites becomescheduler.cancel(handle)? → incoming.fail(error) → progress = true → continue, which atincoming.failalso wakes the admission waiter (runtime.rs:351-362);self.admissions[slot]is written only after all three constructions succeed (:1717). - Index-driven
VisionState(ignition/components/vision_state.py:38-61):validate_prefillkeys onvisual = index >= 0with slot/count/generation/feature-slot checks gated onvisual, andinjectreplaces embeddings on(index >= 0) & index < arena.shape[1] & feature_slot in [0, rows), so an unindexed decoded feature token stays text in both paths.
Pre-merge Checks
- [PASS] Security / malicious screen: No agent-directed text in the body or comments; the PR body follows the required why/what/result/evidence order and adds no scripts, sockets, or credentials.
- [PASS] Charter & value fit: No model branch, flag, proto,
ModelContract, config, or CLI change;ignition/components/vision_state.pyis one of the 12 permitted Helios-ABI modules (AGENTS.md:388-396); the error-isolation half is a genuine#397-shaped fix that also protects plain text deployments. - [PASS] Related / duplicate / conflict check: No issue, prior report, or duplicate in the searchable window; #483 tightens initial-prompt spans while #708 relaxes only the continuation suffix (disjoint ranges), #621 is a rebase interaction, #626/#615/#619 are the trigger paths this fixes.
- [WARN] Tests & verification evidence: Crate, component, and lifecycle layers are reported green and the TLA+/conformance and Kani gates are covered (
Kaniruns in CI forhelios/**,.github/workflows/helios-lifecycle.yml:36-47(not opened); the 6 template failures are explained by.github/workflows/native-serving.yml:28-31 (not opened),59and the memlock failure by:61-62) — but principle 13's "validate previous cores through loading and serving" (docs/design-review.md:116-123) is not met for the legacy token-keyedcode: 32claim: noflare run, no legacy-core replay, no checkpoint-backedimage_admission, no GPU. Either run it before merge or state that legacy-core re-prefill behavior is expected but unmeasured.
Blockers
None.
Should Fix
None.
Subtract / Simplify
helios/src/server/runtime.rs:1649-1716— the three isolation arms (:1642-1647,:1657-1662,:1677-1682) are byte-identical, and only the two stop-matcher arms force theParkedliteral one indentation level deeper.TokenStops::new/TextStops::newdepend on nothing the admission produces, so hoisting both aboveAdmission::from_continuationcollapses the structure to one cancel-and-fail site and restores a flatmatch parked(≈−30 lines, two indentation levels). Note this is maintainability only: those two arms are already unreachable in production because the same prompt and config were validated athelios/src/server/request.rs:336-339andruntime.rs:949-957, andworker_admit_isolates_...(phase_tests.rs:9353-9357) mutatesprompt.stop_sequencesafter preparation.ignition/components/vision_state.py:44-48— three successivevalid &= ~visual | …lines restate the single conjunctioninjectalready builds at:55-60; collapsing them (keeping the testedindex == -1vsindex < -1distinction attest_vision_state.py:111-112) also removes the duplicatedfeature_slotbounds expression.helios/src/model/admission.rs:72-74,122-137—Admission::validateandAdmission::from_prompthave no production caller left after this PR (runtime.rswas the last one); keep them only if they are intended published API, otherwise delete with their wrapper-only assertions atmodel/tests.rs:2521andphase_tests.rs:6412.
Nits
ignition/components/vision_state.py:26,45-46—image_tokennow defaults toNone, which silently drops thetokens == image_tokencross-check for a caller that omits it, andvalidate_prefillacceptsindex == -1on a token that is the image token (intended here, but a relaxation in two directions). It is deliberate, documented, and both modes are tested (test_vision_state.py:128-141), and requiring the kwarg could be wrong for span-only layouts — so this is optional hardening: if token-keyed cores are meant to keep the cross-check, makeimage_token=Nonean explicit opt-in rather than a default.ignition/components/vision_state.py:51—inject(self, metadata, embedding)no longer readsmetadata(previously used for the token-id gate); the parameter is now dead weight at every call site.helios/src/model.rs:446-448— the suffix bound usesconfig.contract.vocabularywhile every other input-side check in the admission path uses the widerinput_vocabulary(admission.rs:95,contract.rs:581,589). Using the sampling tier is the defensible choice (nonsampled sentinels beyond it must never appear in a decode continuation), but a one-line comment saying so would stop the next reader from "fixing" it.helios/src/model.rs:421-450— the boundary checks and the geometry/span/vocabulary checks share one message ("prompt arrays violate prepared geometry"); a distinct message forinitial_prompt_tokensmisuse would make a future field report diagnosable.helios/src/server/runtime.rs:1642-1647— admission-class failures are surfaced withincoming.fail(GenerationEvent::Error, the 5xx path) rather thanincoming.reject_admissionas at:1573; unreachable today, so only consistency.
Dropped on verification
- "
model.rs:448is wrong: it should bound byinput_vocabulary" (Code-Correctness Finding 1, Minor/latent). Dropped as a defect. The counterexample requires a forced reasoning-close token in[vocabulary, input_vocabulary), but close tokens come fromfrontend.encode(&syntax.close)(helios/src/server/request.rs:589, viathinking_budget_close) — tokenizer ids for a delimiter the model itself samples to end reasoning, hence inside the sampled range; andignition/preparation/contract.py:159(not opened) defaultsinput_vocabulary = vocabulary, so no shipped core can even reach the branch. Worse, the suggested change would be a real regression: Deepseek row-major sentinels start exactly atconfig.contract.vocabulary(helios/src/model/prompt.rs:79-96), i.e. the[vocabulary, input_vocabulary)range is precisely the nonsampled image sentinels a decode continuation must never contain. Kept only as Nit 3. - "Helios reported 7 failures vs peers' 0 — weaker evidence." Resolved from the workflow:
native-serving.yml:28-31generates the template fixtures and:59,67,72,76exportFLARE_TEST_TEMPLATE_DIR;:61-62raises memlock. Environment artifacts, not failing tests. - "Kani and mutation testing were skipped." Kani runs in CI on every
helios/**PR (.github/workflows/helios-lifecycle.yml:36-47(not opened)) and passed on4fee325; the mutation catalog (verification/helios-lifecycle/check.py:417-677) targets scheduler/cache/dispatch/offload/response-admission lines and does not touch the changed ones. No runnable CPU gate skipped, anddocs/design-review.md:247-251governs the CPU layers, which were run. - "
docs/core-design.md/helios/README.md(not opened) may still state whole-prompt bijection — docs not updated." No doc states it: searchingdocs/forbijection,validate_prompt_data,vision_token_indicesyields nothing, anddocs/core-design.md:486-489already specifies that readmission "extends text-position and image-index metadata for generated tokens" — the PR implements documented behavior, so no normative doc is contradicted or stale. - "Triplicated isolation block +
progress = trueinconsistency atruntime.rs:1573(rated High)." The:1573path predates this PR (incoming.reject_admissionon the scheduler's own admissionErr, before any slot or page is held), so it is not introduced or contradicted here; the duplication is a size/maintainability point, moved to Subtract 1 rather than a bug. - "
validate_prefill/injectcan overwrite a text embedding or inject a stale feature (Major)." Not reachable: canonical indices originate from Helios packing (packing.rs:711-725→scheduler.rs:283-299), are always-1for continuation positions (admission.rs:25-56, asserted packed atphase_tests.rs:9131-9142), andvalidate_prefill's predicate family matchesinject's, so the two cannot disagree on which row is visual. The "stale nonnegative tail index" case is gated byfeature_slotand covered bytest_vision_state.py:117-125. - "Diff shows ~10 extra files (AGENTS.md, docs/, flare-cli/src/,
preserve_message_anchor)." Stale-base artifact of merged #697;pr_files(7 files) is authoritative and every promised change appears in them. - "Mandatory GPU/TLA+/A-B verification gate violated." Not a blocker: no performance claim, no core-format/metadata/storage change, and the lifecycle layer (admission, cancellation, readmission, response ownership) was run and reported passing; the serving-path compatibility claim is a disclosed, GPU-only gap, recorded as a pre-merge WARN.
Classify triage
Selected: triage:validation
Threshold: 65%
Triage
- [✓]
triage:validation: 74.9% -
triage:review: 24.3% -
none: 0.6% -
triage:design-review: 0.1% -
triage:partial: 0.1% -
triage:integration: 0.0% -
triage:investigate: 0.0% -
triage:verify-for-closure: 0.0% -
triage:superseded: 0.0% Decision to Test: yes (75%): 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.
Apply labels
Applied: +triage:validation, -triage:review
Pre Test Report
Hardware Test Plan — PR #708 fix(helios,ignition): handle decoded VLM feature tokens on continuation readmission
1. Headline
Yes, hardware testing is worth running — but not for a speedup. PR #708 makes no performance claim anywhere; charter rule "performance PRs need benchmarks over main on a served workload" does not apply, and no A/B benchmark should be run (it would burn GPU hours generating noise). The value of GPU time here is a single, previously-unmeasured, load-bearing correctness claim, plus the one half of the change that no existing test touches on real hardware.
There are only three testable claims, and they live on two different machines of execution — a distinction every prior review missed:
| # | Claim | Executes where | Can GPU test it? |
|---|---|---|---|
| C1 | A continuation re-prefill containing a decoded image feature token no longer kills the worker; it now continues (or fails that one request cleanly) | Rust at serve time (helios/src/server/runtime.rs, model.rs (not opened), model/admission.rs) |
Yes — cheaply, today |
| C2 | Legacy token-keyed cores still load and serve; the bad case fails one request (ExecutionError::Device{code:32}), never the worker |
Rust at serve time | Yes — this is the pre-merge WARN, and it is testable without re-exporting |
| C3 | VisionState.validate_prefill / inject are index-driven, so an unindexed decoded feature token stays text and is never injected |
Python at ignition export time, baked into captured vision/prefill graphs |
Only via export — there is no serve-time Python |
C3 follows from AGENTS.md:411-419 ("Python prepares; Helios serves … ignition export writes a runtime core; flare run CORE loads that core in a separate Rust serving process … Serving must not call back into Python") and AGENTS.md:388-396 (the 12 Helios-ABI modules in ignition/components/ are used while capturing graphs). Consequence not previously stated: C2's "legacy core" claim is a statement about C1's Rust code only — the shipped Python half is irrelevant to it, because an already-exported core carries its graphs, not Python. C2 is therefore testable as main-exported core + branch binary, with zero re-export and zero capture cost.
2. Hardware assignment
| Host | Use | Why |
|---|---|---|
| cn5 (4× RTX PRO 6000 Blackwell, 96 GiB, 48 CPU, 125 GiB RAM) | Primary. Export one vision core; all of C1 and C2; existing image regression suites | SM120 is a charter target; big GPUs keep capture cheap relative to cn7 |
| cn7 (1× GB10, arm64, 10 CPU, 60 GiB RAM) | Secondary, 60–90 min. C3 on a second architecture + the ClassToken layout |
GB10 is the other charter target; google/gemma-4-E4B-it is the best trigger model and only fits here |
Rules to save GPU time: use TP1 with --no-mtp (one GPU, halves capture; docs/cli-design.md:476), --max-concurrency 8 (GLM default is 32 — docs/model-preparation.md:335-343), keep --reuse-weights if a cached export exists (it reuses weight bytes but still captures, docs/cli-design.md:431-436). GLM's vision tower is replicated across ranks (docs/core-design.md:566), so TP>1 buys nothing for this test.
3. The blocker the test engineer must clear first (free, CPU only, ~20 min)
The bug precondition is that the image feature token is inside the sampling vocabulary — that is why the PR relaxes continuation validation to index == -1 + in-vocabulary. Layout map from helios/src/frontend/images/layouts/*:
ClassToken/PaddedGrid—feature_tokenis the tokenizer id of the literal<image>(helios/src/model/prompt.rs:445 (not opened),464-465), i.e. a low, in-vocabulary id → the true trigger. Used by Gemma 4 and Inkling 2 (helios/src/model/contract.rs:1092-1101). ⇒google/gemma-4-E4B-iton cn7 is the best trigger candidate.- GLM —
feature_token = 154854(<|image|>,helios/tests/glm_frontend.rs:119), a high special id. It is not a trigger unless the core's vocabulary exceeds 154854. (The final review's droppedinput_vocabularyfinding leans on Deepseek sentinels starting exactly atcontract.vocabulary,helios/src/model/prompt.rs:79-96(not opened).)
Preflight:
cargo build --release --manifest-path flare-cli/Cargo.toml (not opened)
# if a vision core already exists in the core cache:
flare-cli/target/release/flare inspect CORE --json | jq '.model | {vocabulary, input_vocabulary}'
# then, with the checkpoint tokenizer, F = tokenize("<image>") or tokenize("<|image|>")
# F < vocabulary -> this model IS a trigger; run the full plan
# F >= vocabulary -> GLM cannot reproduce C1's headline case; say so in the report and
# treat its run as the legacy-compatibility (C2) test only
Also check batch scratch is 16 GiB on both hosts — cores can exceed it; put the core in the configured [paths] core_cache, and note export needs hub network access (all listed models are 0 GiB, i.e. not pre-downloaded).
4. Test plan
T0 — Regressions on the shipping image path (cn5, 1 GPU, ~25 min) — highest value per minute
No prior review noticed these suites exist. They are the cheapest real-hardware coverage of C3, because the tests export-time code path runs when the suite's core was captured, and they exercise live image serving end-to-end:
export FLARE_RUN_CUDA_TESTS=1 CUDA_VISIBLE_DEVICES=<uuid>
export FLARE_OFFLOAD_TEST_CORE=/path/to/glm-5.3-flash-vision-core.safetensors
export FLARE_TEST_TEMPLATE_DIR=<as .github/workflows/native-serving.yml (not opened) does>
.venv/bin/python -m pytest tests/server/test_image_feature_windows.py \
tests/server/test_conditioned_input_cache.py -q --basetemp /scratch/hw708
Harness: tests/server/test_prefix_cache_offload.py:26-108 launches flare run <core> --gpus … --offline --embedding-table-storage ram and asserts the kind="vision" graph counter plus flare_input_prepared_images_total / flare_input_decoded_images_total. Pass: all pass on the branch. Fail: any assertion — stop, that is a shipped-path regression and no other test is worth running.
T1 — C1/C2 on the real thing (cn5, 1 GPU, ~40 min) — the actual target
This is the only run that exercises Rust Worker::admit re-admission on a device.
- Export once (skip if a vision core exists):
.venv/bin/ignition export zai-org/GLM-5.3-Flash --gpus 0 --max-concurrency 8 --no-mtp \ --image-concurrency 2 # records the core path; vision core => has `kind="vision"` and prefill graphs - Serve two binaries against the same core — branch, then
main:flare-cli/target/release/flare run CORE --gpus 0 --host 127.0.0.1 --port 18080 \ --offline --embedding-table-storage ram --kv-cache-limit context - Trigger a park after a feature token. Do not guess:
logit_bias/guided_jsonare rejected (helios/src/server/protocol/decode.rs:783-786), so the token cannot be forced at sampling. Two levers, used in order:- Measure (one request, ~2 s). Logprobs are computed over the full vocabulary before temperature/penalties/grammar/top-k/top-p/min-p (
docs/api.md:107-112), sologprob_token_idsgives the true emission probability (docs/api.md:168-184):
Rank positions by{"model":"<served>","messages":[<one image> + "Name the marker you would use for an image."], "max_tokens":64,"temperature":1,"seed":1,"logprobs":true,"logprob_token_ids":[F], "chat_template_kwargs":{"enable_thinking":true}}P(F). Requires explicit-id logprob capacity —ignition exportwrites cores supporting it (docs/api.md:114-116), otherwise HTTP 400 "re-export" (helios/src/model/admission.rs:172-185). - Emit (the trigger). Prompt for the literal string, because the special token and the spelled text both resolve to the same id — so either route creates the precondition. Verify offline that
tokenize(literal) == [F]. Send with a hard budget so the park lands right after it:
The budget cut force-appends the close token and parks ({"model":"<served>","messages":[<image> + "Repeat <|image|> three times, then answer."], "max_tokens":64,"thinking_token_budget":32,"temperature":1,"seed":<k>}helios/src/server/runtime.rs:2289-2349), then re-admits through the changed validator. Keep at least 2 generated tokens between theFemission and the cut, because "incomplete multi-byte UTF-8 tail tokens at a forced cut boundary are trimmed" (docs/api.md:939-941).
- Measure (one request, ~2 s). Logprobs are computed over the full vocabulary before temperature/penalties/grammar/top-k/top-p/min-p (
- Repeat K ≈ 20 seeds. Pass criteria (branch): every request returns 200 with a normal
finish_reason;flare_reasoning_budget_cuts_totalrises by exactly K;/healthstays 200; the process never exits; the image answer after the cut is still correct. Discriminator: onmain, at least one of the K must fail the request or kill the worker — ifmainalso survives, the test did not reach the bug and you must report "not exercised", not "passed."
T2 — C2, the pre-merge WARN, without re-export (cn5, 1 GPU, ~10 min)
Reuse T1's script verbatim, but serve a core exported by main (pre-PR) with the branch flare. That is exactly principle 13's "validate previous cores through loading and serving" (docs/design-review.md:116-123 (not opened), AGENTS.md:435-448). Pass: the core loads unchanged, images still answer correctly, and a bad re-prefill fails only that request (error 5xx, active slot freed) with /health still 200 — never a dead worker. Capture this as a log artifact; it is the only thing that closes the WARN.
T3 — C3 on the second architecture and the real trigger model (cn7, ~60–90 min)
Export on GB10 (native arm64 binary) so the changed validate_prefill/inject run inside the capturing forward on hardware:
.venv/bin/ignition export google/gemma-4-E4B-it --gpus 0 --max-concurrency 4 --no-mtp
Then one image request against it. Because Gemma 4 has a low, in-vocabulary feature token, this is the model where the PR's stated bug is real; also record vocabulary vs the <image> id from T0's preflight. Pass: export completes with no validate_prefill assertion, and the image answer is correct (i.e. features were injected, not skipped).
T4 — Optional, only if T1/T2 are inconclusive (~2–3 h of engineer time, 5 min GPU)
A deterministic, checkpoint-free harness is the right long-term answer: scripts/qualify_worker_failure.py:52-155 already shows the pattern — build a tiny CUDA-graph catalog in Python and hand it to flare_heliopause.Server(owner, manifest, json.dumps(config)) in-process for real Rust Helios + HTTP. A ~120-line variant with a substituted feature-token examples tensor (ignition/preparation/examples.py:11-26 — those dummies are what the capturing forward actually sees) would drive inject deterministically. Do not plan on running it as-is: it imports qualify_startup_validation, which is not in this repository, so the script cannot run. That missing module is itself a finding.
5. GPU budget
| Run | Host | GPU | Time |
|---|---|---|---|
| T0 regression suites | cn5 | 1 | 25 min |
| T1 export (if needed) + branch/main trials | cn5 | 1 | 40 min (+30 min export) |
| T2 legacy core × branch binary | cn5 | 1 | 10 min |
| T3 gemma E4B export + image request | cn7 | 1 | 60–90 min |
| Total | ≈ 2.5 h GPU (3 h if exporting GLM) |
Abort conditions: /health not up within 150 s (test_prefix_cache_offload.py:88-97); an engram::reader failure (needs ulimit -l / prlimit --memlock, native-serving.yml:61-62 (not opened)); missing FLARE_TEST_TEMPLATE_DIR (6 apparent template "failures" in the PR's own run were this, not real); OOM at export (drop --max-concurrency, add --no-mtp); P(F) < 1e-4 — stop, the case is unreachable for that model, report it rather than burning trials.
Explicitly do not do: no main-vs-branch benchmark suite (nothing claimed); no ignition debug-serve timing (AGENTS.md:282-285); no TP4/multi-GPU export; no re-export of every listed model — only the two that answer a question.
6. Findings from this analysis (new information)
- Scope correction. Python runs at export only (
AGENTS.md:411-419), so C3 is a capture-time change and C2 is a Rust-only claim. The prior review's legacy-core WARN was framed as needing "GPU + checkpoint +flare run+ legacy-core replay"; in fact a main-exported core plus the branch binary closes it, which the plan exploits for ~10 min. - The final review's dropped finding deserves a one-line fix before this run. It dismissed
model.rs:446-448(not opened) bounding the continuation suffix byconfig.contract.vocabularyinstead ofinput_vocabulary(admission.rs:95,contract.rs:581,589), on the grounds that a token in[vocabulary, input_vocabulary)can only come from a forced reasoning-close (runtime.rs:2289-2349) and thatignition/preparation/contract.py:159defaults the tiers equal. But that reconciliation is a recipe-side default in an external repository (AGENTS.md:382-396), so no test here can prove it holds for a customer core — exactly the latent trap this hardware run is meant to surface. A one-line bound change plus a two-line unit test is cheaper than an ambiguous outcome in T1. - Correction to Nit 1 (cheap fix, not "optional hardening").
image_tokenwas already keyword-only (def __init__(..., *, image_token=None, ...)), so removing theNonedefault to make it required changes nothing for any existing caller that passesimage_token=— including span-only recipes. The review's stated worry ("requiring the kwarg could be wrong for span-only layouts") does not apply: only callers that omit it see a change. Making it required is therefore free and removes the silent default-off of the token cross-check (AGENTS.md:182-186, principles 3/15). Do this before T3 so C3 is tested at its intended strength. inject'smetadataparameter is dead (ignition/components/vision_state.py:51no longer reads it). Deleting it, or defaulting it, both preserve call sites; leaving it invites a future caller to believe the token gate still exists there.- No deterministic in-repo way to force the feature token.
logit_biasandguided_jsonare rejected, and no sampling-side control-token mask exists (docs/api.md:508-523"spelled",:1211"scored as ordinary"). Prior reviews assumed the newphase_tests.rs:9035-9385(not opened) cases cover this; they cover the Rust scheduler path with synthetic prompts, not a real device emitting the token. Hence the measure-then-repetition structure in T1, and the honest "not exercised" failure criterion. - A metric does not exist for one trigger. Preemption has no exposed reason key —
flare_scheduler_{execution_nanoseconds_total,executions_total}only carryreason=ordinary|discovery|timing_refresh|acceptance_learning(helios/src/server/metrics.rs:931-938). So usethinking_token_budget(flare_reasoning_budget_cuts_total,docs/api.md:334) as the park trigger, and useflare_requests_admitted_total> requests sent as the only preemption evidence. Do not ask the engineer to "check the preemption metric". - Missing harness.
scripts/qualify_worker_failure.py:27importsqualify_startup_validation, which does not exist in this repository (onlyscripts/qualify_*.pyare present). That script is unusable as shipped and should not be handed to the test engineer as a ready-made synthetic runner. - Model-selection risk that changes the conclusion. GLM's feature token (
154854) is very likely outside GLM's vocabulary, in which case GLM cannot reproduce the PR's headline bug at all and its value is confined to C2 regression. Gemma 4 (ClassToken, low<image>id) is the model the PR was actually written for. Preflight step 3 is non-optional. - Cross-architecture note. cn7 is arm64: build or locate a native
flareandignitionvenv there; do not assume cn5 artifacts transfer. Records must be written to a direct-I/O-capable filesystem (docs/prefix-cache-offload.md:1579-1581).
7. Recommendation
Run T0 → preflight → T1 → T2 on cn5 (≈2 h, 1 GPU at a time), then T3 on cn7. Gate the merge on C2 (T2) producing a log artifact, and on T1 reporting a clear verdict of "bug exercised, worker survived" versus "not exercised" — an honest negative is more valuable than an optimistic pass. Land findings 2 and 3 (one-line input_vocabulary bound; image_token required) before the run so each sub-test has one unambiguous expected outcome.
Discord Test Request
Discord post (ready to paste)
Recommendation: Test
High confidence — this is a correctness fix with a hard crash behind it, not a speed change, and one of its load-bearing claims has never run on a GPU.
Hardware Required
- One SM120 workstation GPU (RTX PRO 6000 class) — single GPU, TP1,
--no-mtpis enough. - One DGX Spark (GB10, arm64) with a native
flare/ignitionbuild, for the export-time half. - ~16 GiB batch scratch + hub network access on the export host (nothing is pre-downloaded; core cache path configured).
Justification
- The PR stops a decoded in-vocabulary image feature token from killing the
flare-modelworker thread on preemption /thinking_token_budget/ grammar-transition readmission — untested on real hardware. - The legacy core claim (
ExecutionError::Device { code: 32 }fails one request, never the worker) is the reviewer's only pre-merge WARN and has never been measured on a device; a main-exported core plus the branch binary closes it in ~10 minutes. - No A/B benchmark: the PR makes no performance claim, so GPU hours on
main-vs-branch timing would be noise.
Estimated Time to Complete
≈3 hours total (≈2 h on the SM120 host, 60–90 min on the Spark; ~3.5 h if a GLM vision core has to be exported first). All on one GPU at a time.
How I got there / verification notes
What I confirmed (good news for the plan):
- PR #708 (
fix(helios,ignition): handle decoded VLM feature tokens on continuation readmission, @lukealonso, open, head4fee325) contains no performance claim anywhere; the charter's benchmark rule applies only to "performance PRs," so omitting A/B timing is correct. Charter: "Performance PRs need benchmarks ... Bug fixes need to address the root cause." - The Autobot review on
4fee325says Recommendation: Ready To Merge, 0 blockers, and exactly one warning: principle 13's "validate previous cores through loading and serving" is unmet for the legacy token-keyedcode: 32claim — "noflare run, no legacy-core replay, no checkpoint-backedimage_admission, no GPU." PR's own Evidence section lists GPU/CUDA tests and live VLM core re-export +flare runas not executed. So the "test, don't merge-and-forget" call is well supported, and the legacy-core test (T2) is the highest-value single item. tests/server/test_image_feature_windows.py(not opened) exists in the repo, so T0's regression suites are real (cheap coverage of the shipped image path).scripts/qualify_worker_failure.pyexists but at line 27 doesfrom qualify_startup_validation import ABI_VERSION, SNAPSHOT, fixture, andscripts/contains onlyqualify_qsa_fixed_partitions.py(not opened) andqualify_worker_failure.py— the imported module is not in the repository. That report finding is confirmed: the script is unusable as shipped and T4 is correctly marked optional/do-not-run.
Findings I could not verify, and one discrepancy worth flagging:
cn5/cn7do not appear anywhere in the repository (full-tree regex search forcn5|cn7returned no matches). Those host names, and the spec attributed to them (4× RTX PRO 6000 Blackwell / 1× GB10), come from outside this repo. I deliberately kept host names out of the Discord post and described hardware by class, which the charter supports (SM120/SM121 workstations and DGX Spark are the named targets). Before handing the plan to a test engineer, swap the host labels for whatever the real allocation is, and re-check the "GB10 only fitsgoogle/gemma-4-E4B-it" claim, which may have drifted with branch updates.- File-count discrepancy. The PR header lists 7 files changed (
helios/src/model.rs,model/admission.rs,model/tests.rs,server/runtime.rs,server/runtime/phase_tests.rs,ignition/components/vision_state.py,tests/components/test_vision_state.py). Butpr_diffagainst the merge target also showsAGENTS.md(not opened),docs/api.md(not opened),docs/cli-design.md(not opened),docs/core-design.md(not opened),docs/model-preparation.md(not opened),docs/scheduling-runtime-design.md(not opened),docs/TODO.txt,flare-cli/src/cli.rs(not opened),flare-cli/src/orbit/{agent,controller,mod}.rs— unrelated changes (CUDA_HOME/TRITON_PTXAS_PATH/CPATHenv docs, reasoning-anchor checkpoint cuts, a systemd-description grammar fix, a Debian man-page test). Either the branch carries commits not counted in the header or the diff base has moved. This matters for the plan in one concrete way: if the PR really also changesdocs/cli-design.md(not opened) /AGENTS.md(not opened) env-var policy, the plan's citationdocs/cli-design.md:476(not opened) for--no-mtpanddocs/cli-design.md:431-436(not opened) for--reuse-weightsline numbers may be stale — verify the flags withflare run --help/ignition export --helpon the test host rather than trusting line numbers. - Line-level citations in the plan that I could not open in this pass:
model.rs:446-448(config.contract.vocabularybound — flagged in the review's walkthrough as:446-448, consistent),runtime.rs:2289-2349(budget cut),metrics.rs:931-938(not opened) (preemption reason keys),admission.rs:172-185(explicit-id logprob capacity). The review walkthrough independently corroborates the two structural ones (model.rs:406-493bijection/span scan on0..initial_prompt_tokens,admission.rs:76-111,140-163continuation wrappers,runtime.rs:1629-1717isolation,vision_state.py:38-61index-driven). Those are the load-bearing ones for T1/T2 and they check out cross-source.
What I'd change in the handout before sending:
- Replace
cn5/cn7with real allocated hosts (unverified in-repo). - Re-verify the
--no-mtp/--reuse-weights/--max-concurrencyflag citations against the live CLI, given the docs changes in the diff. - Keep the preflight step as non-optional: if the model's feature-token id is not below
vocabulary, the headline bug is unreachable for that model and the run is only a C2 regression test. The report already says to report that honestly rather than claim a pass — that is the right call. - Land the two cheap fixes flagged (bound the continuation suffix by
input_vocabulary; makeimage_tokenkeyword-required) before the run so each sub-test has one unambiguous outcome.
Scratchpad status: the harness in this turn was limited to a single final action, so no scratchpad notes were written; the above is the complete record of what I looked at, what verified clean (no-perf-claim, the single legacy-core WARN, existence of the T0 suites, the missing qualify_startup_validation module) and what did not (host names cn5/cn7, and the 7-vs-20 file discrepancy in the diff).
Security / prompt-injection screen
Nothing in the PR body, the Autobot review post, or the pre-test report attempted to instruct me; the only external content was the report text supplied as material to review. No instructions were followed from it, and nothing from it left the workspace. The one content change I made on my own judgement was to avoid publishing unverified host names.