PR #397: helios: skip zero-valued kernel-node attributes the replay driver rejects

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/c82e9848-c5c6-4b23-8fbf-25744ede1c7d

Opened by a workflow run, Nov 29, 2026 6:30 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

Author: jannerchang (outside contributor; GitHub association NONE; first PR/issue in this repo; no Discord handle — the mandatory Discord: line is absent from the PR body) Motivation: Cores exported by a newer CUDA toolkit record kernel-node attribute id 11 with an all-zero payload; older R580 drivers reject the call, so flare run aborts at Prepare execution and the core cannot load at all. The PR would make the replay loader log and skip any zero-valued attribute the driver rejects instead of failing. Scale: +20 / −0 lines in 1 file Proposal:

Verdict: request changes — real field bug (two independent GB10/580 reporters), wrong layer, unproven cause, no test, and it suppresses an error the charter explicitly declines.

Full report · Notes

Value Proposition

Value Proposition — PR #397 (helios: skip zero-valued kernel-node attributes the replay driver rejects)

1. Charter alignment: right problem, wrong layer

The user-facing failure is in scope: two independent GB10 reporters (jannerchang, lemassykoi; both on 580.178.04) cannot load a third-party core on DGX Spark / ThinkStation PGX — hardware the charter's Vision names explicitly — and the PR makes it serve. But the change collides with the charter's "Bring real evidence" bullet, which cites this exact number: "Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)." The diagnosis is unexplained and, per the author's own 2026-11-26 probe, unreproduced: SetAttribute(11, all-zero) returns 0 on 580.173.02 while the field failure is status 1 on 580.178.04. It also sits against "smallest footprint… or a way to solve it without new code at all (#404)", against "never accept it and quietly drop it (#417)", and against docs/design-review.md:116-123 (old cores must load) / AGENTS.md:182-187 (no error suppression). Per #215, a future test would not cure this.

2. Novelty & status: additive but mis-layered

Not obsolete — main at c146d7be has no attribute-replay handling and the hunk still applies. Not superseded — search_items finds no competing PR or tracking issue. It is genuinely new behaviour for this loop. However, the same symptom already has an accepted, no-code remedy recorded in #2 (forward-compat user-mode libraries, 13.3/610.43.02 and 595.58.03, on the same 580 hosts), and merged #430 already rewrote this loop with the Option<GreenCtxDriver>/try_load capability-probing pattern, while merged #581 shows the maintainer-accepted shape for changing captured-graph semantics (explicit export flag, harness in node_priority_tests.rs:117-356, old cores untouched). Commit dcb1d7b1 is the export-side precedent: fix the encoding, not the loader.

3. Value vs maintenance cost

Benefit evidence is real but thin at the diagnostic level; cost is broad and permanent. The guard is id- and status-agnostic (mod.rs:892-900): any non-zero status × any all-zero payload for all 10 recorded ids, on every driver. The preserved-failure branch is unexercised; cargo test --lib 543/547 never reaches the guard; the branch is two main-rewrites plus #613/#620 behind; the Discord: line is missing; the aggregated log dropped the node index and prints nothing if a graph aborts mid-loop; and a load emits ~37,496 skip lines (~5 MB) per launch.

Verdict: Worth it with changes

The problem matters and an outside contributor deserves a path, but not this diff. Requirements: establish the root cause (id vs zero value on 580.178.04); narrow the skip to the documented case; add replay coverage on the #581 harness; rebase; complete the four-part description and Discord: line. Preferred: move the fix one layer — drop id 11 at export (dcb1d7b1 shape) or add a compat-libs/minimum-driver diagnostic (flare-cli, alongside #506). Otherwise, decline.

Full report Decide Value: yes (90%): This change is worth reviewing: it provides value to the project in line with its charter.

Classify intake

Selected: triage:review, priority:P2

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +priority:P2

Subtraction and simplicity

Lens verdict on PR #397 (head b49b3675, +20/−0 in helios/src/runtime_core/mod.rs): not lean — all 20 added lines are removable, and the field outcome is reachable with ~2 lines at export instead.

  1. Delete the guard, not patch it (high). The loader tolerance exists only to accept a record the exporter itself chose to write; heliopause/src/export/capture.rs:857-870 already drops one zero-valued attribute (if id == 14 && value.iter().all(|&v| v == 0) { continue; }). Generalizing that existing idiom to id 11 removes the whole loader change (precedent commit dcb1d7b1: fix the encoding, not the loader).
  2. The BTreeMap<(i32,i32), u64> counter is speculative generality (high). mod.rs:790-794 + mod.rs:985-990 build keyed state and a post-loop print for the one observed pair (id 11, status 1); it also loses the node index the earlier line had and prints nothing when a graph aborts mid-loop. A single eprintln! in the skip branch, or the repo's static Once idiom (execution/transport.rs:544-545), covers the real case at −12 lines.
  3. Raw eprintln! bypasses the sink the function already owns (medium). prepare_graphs takes phase: &Phase (mod.rs:766) and advances it (mod.rs:983); Phase::detail (startup.rs:375-378) is the existing, silenceable channel. This is the one structurally meaningful convention violation inside the diff.
  4. The comments assert an unproven cause as fact (low). mod.rs:893-896 claims drivers reject attributes added after their CUDA release — contradicted by the author's own probe (zero write returns 0). AGENTS.md:183-188 on speculative/unfounded additions; delete with the code.

Checked and cleared: no new flag, knob, env var, public API, dependency, module or file; no dead helper beyond the map; no test scaffolding added; no trivial formatting worth raising. The diff's problem is shape, not volume.

Open: whether maintainers want an export-side drop of id 11 or a compat-libs/minimum-driver diagnostic (charter's #404 bullet favours the latter); no issue tracks either.

Full report · Notes

Correctness and contracts

PR #397 (+20/−0 in helios/src/runtime_core/mod.rs, head b49b3675) suppresses an error class it cannot explain, at the loader, with no test and no operator-visible signal. Verdict for this lens: request changes.

  1. Blocker — guard is status- and id-agnostic (helios/src/runtime_core/mod.rs:892-901): any non-zero status on any all-zero payload, including context-fatal codes (3, 4, 700, 719, 909) for ids 1,2,4,5,8,9,10,11,14, becomes a skip. main hard-fails the same call at :1017; driver.rs:177-199 turns every non-zero code into an error. Load then continues into cuGraphInstantiateWithFlags/cuGraphUpload (:1036-1046) on a possibly poisoned context.
  2. Blocker — the stated cause is unreachable on this path (format.rs:570-579 allowlist, called at mod.rs:798): a genuinely newer attribute id is rejected at validation, never at SetAttribute; the exporter zero-fills absent ids (capture.rs:857-887), so zero payloads are the normal encoding. The author's own probe returns 0 for the exact call.
  3. Major — observability/system-level regression (:985-990): per-rank, unlabelled stderr (model.rs:870-901, prefix only on errors at :885), ungated by log_to_stderr (contrast server/runtime.rs:686, server/session.rs:35, helios/README.md:114-121), and it desynchronizes the cursor-relative banner redraw (startup.rs:303-327, :555-581); no metric.
  4. Major — undocumented contract change: docs/runtime-core-design.md:769-778 names the cooperative clamp as the only tolerance and says an unfit grid "rejects loading"; :896-912 lists no attribute-skip limitation.
  5. Blocker (charter) — AGENTS.md:177-181 ("Do not remove validation, suppress errors, silently substitute execution paths"), AGENTS.md:189-194, docs/design-review.md:122-133.
  6. Major — no test reaches the branch: only attribute fixture is helios/tests/cooperative_core_fixture.py:99-116; cargo test --lib cannot reach it.
  7. Minor — claim accuracy: the PR body's log line with "node 0" no longer exists, so the quoted 37,496-line figure is from the pre-aggregation build.

Sound: map bounded, no new locking/hot-path allocation, continue inert, no platform cfg, id-2 clamp and non-zero-payload abort unchanged. Merge hazard: hunk sits on pre-#430 loop; main:894-912/:1002-1016 must be preserved.

Open: whether R580 rejects id 11's id or its zero value (no CUDA headers in-tree, no trace from the failing host), and whether maintainers want a compat-libs/minimum-driver diagnostic instead (#2's forward-compat remedy).

Full report · Notes

Final review

Recommendation: Changes Requested

The field failure on stock GB10 hosts running driver 580.178.04 is real and independently confirmed, but this patch cannot merge as written. None of the three blocking items from @yatesdr's 2026-11-20 review are resolved at head b49b367: the root cause on the failing CUDA 13.0 user-mode driver is still unproven (the 2026-11-26 probe ran on driver API 13020 / CUDA 13.2 where SetAttribute(11, all-zero) returns 0 and never triggers the guard), the skip condition still swallows any non-zero CUDA error across all nine admitted attribute ids, and zero tests exercise the new branch. This exact pattern—suppressing an unexplained driver error in the loader instead of diagnosing and fixing the root cause—is explicitly prohibited by the project charter (which cites #397) and AGENTS.md:177-182.

Merge Risk

Level: High

Walkthrough

Pre-merge Checks

Blockers

  1. Over-broad error suppression masks all CUDA error codes and all nine attribute ids (helios/src/runtime_core/mod.rs:892-901, helios/src/runtime_core/format.rs:570-579).

    • Verified behavior/impact: if status != 0 && value.iter().all(|word| *word == 0) intercepts every non-zero CUDA status—including context-fatal and resource errors such as CUDA_ERROR_OUT_OF_MEMORY (2), CUDA_ERROR_NOT_INITIALIZED (3), CUDA_ERROR_DEINITIALIZED (4), CUDA_ERROR_INVALID_CONTEXT (201), CUDA_ERROR_ILLEGAL_ADDRESS (700), CUDA_ERROR_LAUNCH_FAILED (719), and CUDA_ERROR_CONTEXT_IS_DESTROYED (909)—across all nine attribute ids admitted by validate_node ([1, 2, 4, 5, 8, 9, 10, 11, 14], format.rs:572). Because heliopause/src/export/capture.rs:857-887 zero-fills unset attributes (unwrap_or([0; 8])) for ids 1, 2, 4, 5, 8, 9, 10 (and 11 when attribute_11 == true), almost every kernel node in every exported core hits the all-zero check. Instead of failing fast via driver.check (helios/src/runtime_core/driver.rs:177-199) and allowing NativeModel::parallel (helios/src/runtime_core/model.rs:876-900) to surface the exact failing call and tear down cleanly across ranks, the loader continues into cuGraphAddDependencies_v2, cuGraphInstantiateWithFlags, and cuGraphUpload (mod.rs:999-1046), misattributing failures or instantiating graphs with silently dropped launch attributes.
    • Fix: Do not add a blanket status != 0 / all-id skip. Either remove the loader workaround entirely (see Subtract / Simplify below) or—only after establishing the root cause and getting maintainer sign-off—narrow any tolerance strictly to the proven (attribute.id, status) pair (e.g., attribute.id == 11 && status == 1 && value.iter().all(|word| *word == 0)), leaving every other id and every other CUDA status fatal.
  2. Root cause on the failing host driver remains unproven; probe tested driver API 13020 instead of the failing CUDA 13.0 UMD (Charter #397, AGENTS.md:177-182, unresolved @yatesdr Blocking #1).

    • Verified behavior/impact: The field failures occur on host driver 580.178.04 (CUDA 13.0 UMD, driver API 13000) with status=1 (CUDA_ERROR_INVALID_VALUE). The author's 2026-11-26 probe ran inside the pilcothink/flare_spark:pre-0.2 (CUDA 13.2.51) container against driver API version 13020 (CUDA 13.2), where cuGraphKernelNodeSetAttribute(11, all-zero) returned 0—so the probe never reproduced the status=1 rejection and never entered the guard. This matches #2, where two GB10 reporters on 580.178.04 cleared the identical cuGraphKernelNodeSetAttribute failed (1, CUDA_ERROR_INVALID_VALUE) failure simply by loading CUDA 13.2/13.3 forward-compat user-mode libraries (595.58.03 / 610.43.02) over the 580 kernel module. Without reproducing status=1 on the failing host libcuda.so, it is still unknown whether host R580 rejects attribute id 11 itself (in which case GetAttribute(11) would also return 1, matching heliopause/src/export/capture.rs:554-556) or rejects the zero value on SetAttribute(11), and whether an official Flare-released core reproduces it.
    • Fix: Run the probe directly against the failing host libcuda.so (outside the container's compat UMD, reporting cuDriverGetVersion and loaded libcuda.so path) for GetAttribute(11), SetAttribute(11, zero), and SetAttribute(11, valid), and test a core exported by an official Flare build on SM121/SM120 as requested in @yatesdr's review. That result determines whether the right fix is an export-side omission, a driver/compat-library diagnostic, or a narrowed loader rule.
  3. No test exercises the new branch (AGENTS.md:189-192, unresolved @yatesdr Blocking #3).

    • Verified behavior/impact: Zero tests were added or modified. Existing attribute replay tests (helios/tests/cooperative_core_fixture.py:102-112, helios/src/runtime_core/cooperative_tests.rs:41-81) only test attribute id 2 with a non-zero payload (1). The reported cargo test --lib run does not execute prepare_graphs or either branch of the new guard.
    • Fix: Add focused test coverage for whatever narrowed behavior survives root-cause analysis—verifying both the tolerated case and that rejected non-zero payloads (and unrelated statuses/ids) still abort loading.

Should Fix

  1. Raw eprintln! in parallel prepare_graphs violates StartupProgress silence contracts, lacks rank attribution, and corrupts terminal redraws (helios/src/runtime_core/mod.rs:985-990, helios/src/runtime_core/model.rs:741-745, 878-888, helios/src/startup.rs:172-188, 303-325, 534-581).

    • Verified behavior/impact: prepare_graphs runs concurrently across flare-load-{index} rank threads (model.rs:878-888) while StartupProgress's animation thread redraws the terminal banner every 125 ms using cursor-relative ANSI escapes (\x1b[{}A using self.drawn_lines, startup.rs:571-580). Unsynchronized eprintln! writes from loader threads do not hold StartupProgress's output mutex and do not update drawn_lines, causing banner corruption on terminals; they also bypass StartupProgress::silent()/observed() (startup.rs:172-188, helios/README.md:114-115) used by embedded Rust sessions, and omit the rank index (which model.rs:885 only attaches on Err).
    • Fix: If any load-time warning survives, do not write raw eprintln! inside prepare_graphs. Return/accumulate the diagnostic into the load result or emit it through a synchronized, silence-respecting startup reporting path that includes the rank index. (Note: phase.detail(...) at startup.rs:375-378 is overwritten on every call and replaced by phase.finish(format!("concurrency {active}")) at model.rs:745, so it is not suitable for a persistent warning.)
  2. Undocumented change to the core-loading contract (docs/runtime-core-design.md:769-778, 896-911).

    • Verified behavior/impact: docs/runtime-core-design.md:769-778 documents cooperative grid clamping (CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE) as the sole load-time attribute tolerance and states that unrecoverable cases reject loading; Limitations (:896-911) lists no attribute-skip tolerance.
    • Fix: If a narrowed loader-side tolerance is approved after root-cause verification, document its exact trigger, scope, and behavioral impact in docs/runtime-core-design.md.
  3. Rebase onto main without regressing #430's green-context cooperative clamp (helios/src/runtime_core/mod.rs:1002-1017 on main).

    • Verified behavior/impact: main now selects (graph_context, upload_stream, partition_sms) per graph (main:894-912) and clamps cooperative launches when status == 720 || (status == 0 && partition_sms.is_some()) (main:1002-1016). Rebasing the PR hunk onto main must preserve the full clamp condition and place any subsequent check strictly after it.

Subtract / Simplify

  1. Delete all 20 lines in helios/src/runtime_core/mod.rs and fix at the right layer once root cause is confirmed.

    • Export layer (heliopause/src/export/capture.rs:542-579, 857-870): The exporter already special-cases id == 11 when cuGraphKernelNodeGetAttribute(11) returns status == 1 (capture.rs:554-560) and already omits all-zero id == 14 in encode_kernel (capture.rs:868-870: if id == 14 && value.iter().all(|&v| v == 0) { continue; }). If root-cause analysis confirms zero-valued id == 11 is a no-op that older replay drivers reject, extending capture.rs:868 to omit all-zero id == 11 stops emitting the problematic zero record in ~1 line—avoiding any silent error suppression in the loader.
    • Diagnostic layer (helios/src/runtime_core/mod.rs:901): For already-exported cores on stock 580 hosts (which #2 showed load cleanly with CUDA 13.2+ forward-compat libraries), improving the driver.check operation string on cuGraphKernelNodeSetAttribute to include the graph name, node index, attribute id, and loaded driver version (matching the cuGraphAddKernelNode_v2 context at mod.rs:860-865 and the request in #2) makes the compat-library remedy immediately obvious without weakening load validation.
  2. Eliminate the per-graph BTreeMap<(i32, i32), u64> and post-loop print (helios/src/runtime_core/mod.rs:790-794, 985-990).

    • The (id, status) map only exists because the guard is over-broad across ids and statuses, and printing only at :985-990 after the node loop means nothing is printed if any node aborts mid-loop (e.g., at :901). Deleting the loader guard (or narrowing to a single id/status with a single per-load summary) removes 12 lines of unnecessary state and eliminates the mid-loop abort blind spot.
  3. Remove the unproven causal comment (helios/src/runtime_core/mod.rs:893-896).

    • "Drivers reject kernel-node attributes added after their CUDA release. A zero-valued attribute carries no behavior..." states an unverified cause as settled fact in shared replay code. Delete it alongside the broad guard.

Nits

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.