Explore report · NVIDIA/hyperflare-inference #690

Raw Markdown for agents: https://autobot.eidonix.com/p/27aa3f8f-cc22-4ac2-98f5-a868ceb087cf.md

Amendments to the #690 case file — new head 39796ea4 (pushed 2026-12-02 21:46), after an Autobot review cycle

Scope: only what changed since the report at head 682152b (note #15). Two of its six key findings are retracted, one new finding is added, and the counts/process sections are superseded. The two headline risks that survive are restated at the end so a reviewer does not have to re-read the original.

Key findings (amendments)

  1. RETRACTED — "undeclared TRITON_PTXAS_PATH precedence reversal." The author removed the configured_cuda condition and restored main's line verbatim: if ptxas.is_file() and "TRITON_PTXAS_PATH" not in os.environ: (ignition/cli/environment.py:75 at pr/690 == main:67). CPATH handling is also byte-identical to main (environment.py:77-81 vs main:69-73). The principle-10 "explicit user values win" objection (docs/design-review.md:89-92) and the "second variable the body understates" objection both dissolve.
  2. RETRACTED (mostly) — "AGENTS.md / docs/cli-design.md contradict the new policy." Both normative statements were rewritten and now match the code and the /usr/local/cuda table row. Only two cosmetic nits remain (see §2). The principle-10 exception is now genuinely documented, not merely asserted.
  3. NEW — the PR now locks a stale-CUDA_HOME regression in as a tested contract. test_inherited_cuda_home_without_local_files_does_not_fall_back_to_default (tests/cli/test_environment.py:138-148) asserts that a nonexistent inherited CUDA_HOME is preserved with neither TRITON_PTXAS_PATH nor CPATH set and no fallback to _DEFAULT_LINUX_CUDA. On a host that previously worked through /usr/local/cuda, an exported-but-stale CUDA_HOME now silently yields no toolkit environment. Neither the PR text nor any of the three docs mentions this path.
  4. The diff is now exactly one decision, and the PR text describes it accurately. _DEFAULT_LINUX_CUDA = Path("/usr/local/cuda") (ignition/cli/environment.py:22) plus resolution at :54-64. The PR body's claim that TRITON_PTXAS_PATH, CPATH, and Windows behaviour are unchanged (ignition/cli/environment.py:67-72, :73-81) is now verifiable by inspection.
  5. Process went from "no cycle" to one complete cycle. Autobot review at 21:24 = Changes Requested (0 blockers / 2 should-fix / 2 simplify / 3 nits); author disposition at 21:46 (pr_comments). Both should-fix items are factually resolved. Labels now exist: bug, priority:P2, triage:review.
  6. Unchanged and still the dominant review risk: #636 has zero comments and still carries triage:design-review (the PR, by contrast, was triaged to plain triage:review), no human reviewer is assigned, and there is still no end-to-end evidence that preserving CUDA_HOME actually steers flashinfer's JIT/nvcc — only the environment dict is asserted.

1. What is retracted and why (citations)

1a. TRITON_PTXAS_PATH. At 682152b the condition included configured_cuda is not None, so a non-blank ambient TRITON_PTXAS_PATH lost to [paths] cuda. At 39796ea4 the line is if ptxas.is_file() and "TRITON_PTXAS_PATH" not in os.environ: (ignition/cli/environment.py:75), identical to main:67. Ambient value wins as before; a blank value still blocks the assignment (so the earlier "blank branch is untested and undocumented" complaint is moot as a behaviour complaint — the branch is unchanged main code).

1b. Docs. Verified at pr/690:

2. Residual nits that survive (not conflicts)

3. The new finding: a stale inherited CUDA_HOME is now a deliberate, tested no-op

tests/cli/test_environment.py:138-148:

inherited = clean_environment / "custom-cuda"     # never created
monkeypatch.setattr(environment, "_DEFAULT_LINUX_CUDA", default)  # exists
monkeypatch.setenv("CUDA_HOME", str(inherited))
environment.apply(_load_config(clean_environment), ())
assert os.environ["CUDA_HOME"] == str(inherited)
assert "TRITON_PTXAS_PATH" not in os.environ
assert "CPATH" not in os.environ

Code path: ignition/cli/environment.py:58-64 takes the inherited value on truthiness alone (inherited_cuda = os.environ.get("CUDA_HOME", "").strip(); if inherited_cuda: cuda = Path(inherited_cuda)), never checking is_dir(), then :73-81 skips both TRITON_PTXAS_PATH (no bin/ptxas) and CPATH (no include). Net effect versus main: a host with a working /usr/local/cuda and an unrelated/stale exported CUDA_HOME (shell profile, container leftover, another project's toolkit) loses toolkit env entirely instead of falling back. This is the only scenario where main behaves better than the PR, it is the mirror image of #636, and the fix is one clause — fall back to _DEFAULT_LINUX_CUDA when Path(inherited_cuda) is not a directory. At minimum docs/cli-design.md:50-52 should say a non-empty inherited CUDA_HOME is used as-is, without existence checking.

4. Corrected counts and current state

5. What the earlier report said that still stands

Open questions (revised)

  1. Does a maintainer endorse #636's premise that CUDA_HOME outranks /usr/local/cuda? Still nothing recorded on the issue; the PR is only triage:review.
  2. Should the stale/nonexistent inherited CUDA_HOME case fall back to /usr/local/cuda, or should the docs state the no-existence-check policy explicitly? Currently the test freezes the silent no-op behaviour.
  3. Will anyone run the multi-toolkit reproduction that #636 describes (and that #231's review asks for), or is CPU-level env-dict coverage accepted as sufficient?
  4. Is the [paths] cuda-only test pair (tests/cli/test_environment.py:66-93) worth keeping now that it covers only unchanged main behaviour?

Tooling caveat

pr_diff and search_history both fail at this head (Could not read c513e46a… / failed to traverse parents of commit 682152b), so no unified diff could be read. Every statement above was verified by reading files at pr/690 and comparing them against main (ignition/cli/environment.py:54-81 vs main:54-74) and against the cited doc lines.