Skip to content

fix(native-build): give the build child the image's library search path, and report why the torch probe failed - #2912

Merged
chaojhou merged 8 commits into
mainfrom
fix/prewarm-torch-abi
Nov 27, 2026
Merged

chaojhou merged 8 commits into
mainfrom
fix/prewarm-torch-abi

Conversation

@zoroyihan7

@zoroyihan7 zoroyihan7 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The aiter prewarm on an image with torch 2.11.0+rocm10.0.0 (Python 3.12, gfx950) failed its build preflight with:

preflight_toolchain: host torch is not a ROCm build (torch=)

An empty torch= means probe_torch_abi got nothing usable: it parsed the probe's entire stdout as a single JSON document and discarded stderr, so a failing import torch and a stray stdout line both produced this message, and the message could not tell them apart.

Root cause (confirmed)

The isolated build child runs with PATH, HOME, TMPDIR and LC_ALL only. In that image torch/cuda/__init__.py imports amdsmi, which loads libamd_smi.so from a ROCm SDK directory that only the image's LD_LIBRARY_PATH names (.../site-packages/_rocm_sdk_devel/lib). Without it import torch fails, the probe exits non-zero, and the preflight reported an empty torch version.

Measured inside the image, with the image's interpreter, as uid 65534:

  • A: environment PATH/HOME/TMPDIR/LC_ALL only (the build child's): import torch fails in amdsmi with KeyError: 'libamd_smi.so' / cannot open shared object file.
  • B: the same plus the image's LD_LIBRARY_PATH: import torch succeeds (2.11.0+rocm10.0.0, hip 7.15.26333).

The compile step's environment is built the same way and would have failed the same import.

Change

  • The build child's environment carries the service's LD_LIBRARY_PATH where it is set, from the isolation's own pass list CHILD_PASSED_ENV_NAMES = ("LD_LIBRARY_PATH",) (in measure/runner/native/recipes.py, because isolated.py imports that module), not the local runner template's IMAGE_ENV_NAMES; nothing else of this process (no credentials, proxies, LD_PRELOAD, PYTHONPATH or key paths). Under bubblewrap its absolute directories are bound read-only.
  • A native recipe's compile environment uses the same list.
  • docs/reference/environment-variables.md and the module docstring of isolated.py name the library search path the child is given.
  • Diagnostics: the probe prints its facts on one line prefixed with HYPERLOOM_TORCH_ABI=; only that line is parsed, other stdout is ignored.
  • torch counts as a ROCm build only when torch.version.hip is set.
  • A failed probe (non-zero exit, no facts, timeout, interpreter that cannot start) returns an error with the return code and the tail of stderr, and none of the facts it may have printed; the targeted-build preflight puts it in its failure summary, so a failure names its cause.

Tests

  • The child's environment holds the image's LD_LIBRARY_PATH and no other variable of this process; under bubblewrap its directory is bound read-only; the existing "only its own environment" test runs with LD_LIBRARY_PATH unset.
  • A stub torch that imports only when a library directory is on LD_LIBRARY_PATH: the real probe fails naming libamd_smi.so in the old reduced environment and passes in the child's.
  • A recipe's compile environment carries LD_LIBRARY_PATH only where it is set.
  • The child is never given LD_PRELOAD (nor a credential, proxy or PYTHONPATH), and the pass list is exactly LD_LIBRARY_PATH.
  • Probe parsing: fake outputs modelled on torch 2.11.0+rocm10.0.0 with stray stdout lines, a +rocm version without hip (not ROCm), a CUDA torch, an unmarked JSON line (a failure), a probe that printed facts and then exited non-zero (facts not read), a failing import with a long stderr, timeout and missing interpreter, plus a real run against a stub torch that prints on import.

measure/runner/native/tests (except two bubblewrap timeout tests that also fail on the base commit on the local host, which cannot start bubblewrap) and the touched orchestrator/enablement/runtime tests pass.

Follow-up: a4w4 coverage check vs aiter's narrow-N overlay

With the torch probe fixed, the prewarm built module_gemm_a4w4_blockscale on the same image and then refused it:

PrewarmError: the built modules lack kernels of gfx950/256 rows of narrow_n_a4w4_blockscale_tuned_gemm.csv

and the serving preflight moved the module aside for the same reason.

Cause: aiter (ROCm/aiter#7317) added configs/model_configs/narrow_n_a4w4_blockscale_tuned_gemm.csv, which is merged into the default AITER_CONFIG_GEMM_A4W4 table. Its 43 gfx950/256 rows select triton_preshuffle_* and flydsl_mxpsh_* kernels, with no libtype column, and some name a fallbackKernelName. aiter's CK codegen (get_tune_dict in csrc/ck_gemm_a4w4_blockscale/gen_instances.py) drops rows whose kernel starts with _ZN, triton_ or flydsl_, and builds each CK fallbackKernelName instead. csv_jit_kernel_rows dropped only _ZN rows, so it asked the CK module for the Triton/FlyDSL kernel names, which no module holds.

Change: csv_jit_kernel_rows skips libtype-less rows with the same prefixes (FOREIGN_KERNEL_PREFIXES) and, for such a row, requires its CK fallbackKernelName (not _ZN/Triton/FlyDSL, not empty or 0), keyed apart from the CK rows' dispatch entries as aiter's separate fallback registry is. This fixes both the prewarm's check and the serving preflight's.

Tests: rows copied from the real narrow-N CSV (header and rows as in aiter): the rows give only their CK fallbacks for gfx950/256 and nothing for another CU count; a module with those fallbacks covers the table and one without them does not; a fallback of 0 is not required; a CK row and a fallback of the same shape are both required (neither replaces the other); the prewarm installs an a4w4 module built from an image with the narrow-N overlay when it holds the CK fallback, and refuses it naming the overlay when it does not (this case fails before the change).

Real-image evidence

Same image (gfx950, CU 256) and the same recipe both times; the recipe sets no AITER_CONFIG_*.

  • Run 1 at fd9b690207 (probe fixed): the build child imported torch and built module_gemm_a4w4_blockscale, then the coverage check refused it against the narrow-N overlay (above), and the serving preflight moved the image's own module aside. That was the second cause.
  • Run 2 at 12fea4eaf3 (coverage check fixed): no prewarm was needed. The image's module_gemm_a4w4_blockscale passes the corrected check and is no longer moved aside; nothing was moved, nothing was built before the test, and nothing was built at the first prefill.

In run 2 the runner logged nothing about the preflight: _build_image_own_once only logged when the preflight moved modules aside, so a preflight that found the image's modules covering its tables (skip) and one that could not run (noop, e.g. no card target or no aiter JIT directory) both left no trace.

Log what the preflight decided

_build_image_own_once now logs one INFO line per test with the preflight's summary for skip and noop (e.g. aiter serving preflight before the test: the serving .so covers the CSVs this boot loads for gfx950; nothing moved, or ...: nothing checked: <reason>); a preflight that moves modules aside stays a WARNING. Test: one line per decision, at INFO for skip and noop and WARNING for invalidate.

Review decisions (round 2)

  • The isolation keeps its own pass list (CHILD_PASSED_ENV_NAMES, only LD_LIBRARY_PATH) for both the child and the compile; it no longer shares the local runner template's IMAGE_ENV_NAMES.
  • The +rocmN version-label rule is dropped: ROCm is decided by torch.version.hip only.
  • The three behaviours (library search path + probe diagnostics, a4w4 coverage, the preflight log line) stay in this one PR.

Trims: the unmarked-JSON branch of _abi_line, the env parameter of probe_torch_abi and the environ parameter of _child_environment are removed; their tests now set os.environ (monkeypatch) or wrap the probe's run.

…rt why it failed

probe_torch_abi parsed the probe's whole stdout as one JSON document and
dropped stderr. Any extra stdout line (a banner or warning printed while
torch imports) or a failing `import torch` (a missing shared library in a
reduced environment, the wrong interpreter) came back as an empty
torch_version, so the preflight said "host torch is not a ROCm build
(torch=)" with nothing to act on.

- The probe prints its facts on one line prefixed with
  HYPERLOOM_TORCH_ABI= and only that line is parsed; other stdout is
  ignored (an unmarked JSON line is still accepted).
- torch is a ROCm build when torch.version.hip is set or its version
  carries a +rocmN label (2.11.0+rocm10.0.0).
- A failed probe (non-zero exit, no facts, timeout, interpreter that
  cannot start) returns an `error` with the return code and the tail of
  stderr, and the targeted-build preflight puts it in its summary.
- probe_torch_abi takes an optional env.
@zoroyihan7
zoroyihan7 requested a review from a team as a code owner November 25, 2026 11:50
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Code metrics gate: PASSED

Judged: the 16 files this change touches. Files it does not touch never fail it; anything found there is listed under Outside this change for information.

Dimension Limit New Worse Improved Over the limit vs base
Cyclomatic complexity fails > 20 0 0 0 0 +0
Cognitive complexity fails > 30 0 0 0 0 +0
Function length (lines) fails > 60 0 0 0 0 +0
Nested block depth fails > 4 0 0 0 0 +0
Parameter count fails > 5 0 0 0 0 +0
Module length (lines) warns > 800, fails > 1200 0 0 0 0 +0
Duplicated lines per file fails > 0 0 0 0 0 +0
Dead code (vulture) fails > 0 0 0 0 0 +0
Directory size (entries) fails > 50 0 0 0 0 +0
Check Findings Effect
Comments 0
Broad catch without a reason 0
Broad catch that records nothing 0
English only 0
Production code imports test code 0
Repeated literals 0
A1 Private name of another package 0
A8 Flag argument 0
A9 Tuple return 0
A10 Raw vocabulary comparison 0
A11 Hidden global write 0
A12 Pure forwarder 0
A12 Single-implementation abstraction 0

Module length warning: over 800 lines, within the 1200-line failure limit (not failing): 2

Module Lines Limit
src/hyperloom/orchestrator/actions/executors/_aiter_jit.py 1064 warns > 800
src/hyperloom/orchestrator/enablement/runtime/targeted_build.py 803 warns > 800

Verdict computed by the gate scripts in /home/runner/work/_temp/code-metrics-gate, not by this tree's copy.

Thresholds and sources: [tool.hyperloom.code_metrics] in pyproject.toml. Tools: complexipy 8.0.1, jscpd 5.4.1, radon 6.0.1, ruff 0.16.2, vulture 2.16.

The image's torch imports amdsmi, which loads libamd_smi.so from a ROCm
SDK directory that only the image's LD_LIBRARY_PATH names. The isolated
build child ran with PATH/HOME/TMPDIR/LC_ALL only, so its preflight's
`import torch` failed ("libamd_smi.so: cannot open shared object file")
and the prewarm reported a non-ROCm torch; the compile step, whose
environment is built the same way, would have failed the same import.

- The child's environment carries LD_LIBRARY_PATH (IMAGE_ENV_NAMES, the
  variable the local template already carries for the image) where this
  process sets it; nothing else of this process. Under bubblewrap its
  directories are bound read-only like PATH's.
- A native recipe's compile environment carries it as well.
@zoroyihan7 zoroyihan7 changed the title fix(enablement): read the torch ABI probe from a marked line and report why it failed fix(native-build): give the build child the image's library search path, and report why the torch probe failed Nov 25, 2026
…d's variables

CI runners set LD_LIBRARY_PATH, which the build child is now given: the
toolbox test that lists the child's variables allows it, and the
bubblewrap test that names every variable runs with it unset.
@zoroyihan7
zoroyihan7 requested a review from chaojhou November 25, 2026 13:12
aiter's narrow-N overlay of the a4w4 table selects Triton and FlyDSL
kernels in a table with no libtype column. The CK codegen drops rows
whose kernel starts with _ZN, triton_ or flydsl_ and builds the CK
kernel a row names as fallbackKernelName instead. The coverage check
skipped only _ZN rows, so a module built from the image's own tables
was refused by the prewarm and moved aside by the serving preflight.

Skip the same prefixes and require the CK fallback kernels.
…hing

A preflight that found the image's modules covering its tables, or that
could not run, left no line in the runner's log, so a run could not show
whether it ran. Log its summary at INFO for skip and noop; a preflight
that moves modules aside stays a warning.

@chaojhou chaojhou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #2912 -- fix(native-build): give the build child the image's library search path, and report why the torch probe failed

What it does: The aiter prewarm compiles in an isolated child whose environment was four variables. On an image whose torch loads a library that only LD_LIBRARY_PATH names, import torch failed there and the preflight said only that the host torch is not a ROCm build. The child and the compile now also carry the service's LD_LIBRARY_PATH, and a failed torch probe names its return code and the tail of its error. Two more changes found on the same image ride along: the a4w4 coverage check follows aiter's CK codegen for Triton, FlyDSL and ASM rows (it requires their CK fallback, not their own name), and the runner logs one line when its serving preflight moved nothing.

Scenario: on an image whose torch imports amdsmi, which loads libamd_smi.so from a directory only LD_LIBRARY_PATH names, the prewarm's build preflight runs in the isolated child. At the merge base the child's environment is PATH, HOME, TMPDIR and LC_ALL, a failing import comes back as empty facts, and the preflight reports host torch is not a ROCm build (torch=). At the head merged with main the child also holds the service's LD_LIBRARY_PATH, and a probe that still fails is reported as the torch probe of <python> failed (rc=1): ... libamd_smi.so: cannot open shared object file.
Layer: producer for each part (_child_environment, src/hyperloom/measure/runner/native/isolated.py:461-476; probe_torch_abi, src/hyperloom/orchestrator/enablement/runtime/build_utils.py:290-325; csv_jit_kernel_rows, src/hyperloom/orchestrator/actions/executors/_aiter_jit.py:671-681) -> the same frames: they build the child's environment, the probe's result and the list of kernels a module must hold.

Risk: medium -- src/hyperloom/measure/runner/native/isolated.py decides what reaches the unprivileged child that compiles a candidate's code
Decisions for a human:

  • src/hyperloom/measure/runner/native/isolated.py, src/hyperloom/measure/runner/native/recipes.py -- the untrusted build child is now given the service's LD_LIBRARY_PATH as it stands, relative and empty entries included (run), as PATH already was; credentials, proxies, LD_PRELOAD and PYTHONPATH stay out. The list of what passes is the local runner template's constant, so a name added there later also reaches the child -- accept the shared list, or give the isolation one of its own?
  • src/hyperloom/orchestrator/enablement/runtime/build_utils.py -- a torch whose version carries +rocmN now counts as a ROCm build when it reports no HIP version, which the stated failure does not need (the image's torch reports one). Such a torch passes the preflight, and on the native path a compile failure after it is recorded as the candidate's -- keep the label rule?
  • src/hyperloom/orchestrator/actions/executors/_aiter_jit.py, src/hyperloom/measure/runner/run.py -- three behaviours land together under a title that names the first. The coverage change also newly requires the CK fallback of a libtype-less ASM row, which was skipped whole; aiter builds it -- accept one PR for the three?

Blocking issues: 1

  1. [X3] The reference and the module docstring still give the build child's old environment [verified]
    Problem: docs/reference/environment-variables.md:1088-1089 says of the isolated compile "its environment is only PATH, HOME, TMPDIR and LC_ALL", which was exact before this change; the child now also gets the service's LD_LIBRARY_PATH (src/hyperloom/measure/runner/native/isolated.py:469-475). src/hyperloom/measure/runner/native/isolated.py:8-9, the module's own statement of the isolation, still says the child runs "with none of this process's variables". The diff changes no docs file and rewrites the function's docstring only.
    Impact: the page an operator reads to learn what reaches the unprivileged compile lists four variables where there are five, the fifth a loader search path copied from the service.
    Action: add the library search path to the sentence at docs/reference/environment-variables.md:1088-1089 (where the service sets it; its directories read-only under bubblewrap) and to src/hyperloom/measure/runner/native/isolated.py:8-9.

Trim in this PR:

  • src/hyperloom/orchestrator/enablement/runtime/build_utils.py:280 -- the unmarked-JSON branch of _abi_line (or [line for line in lines if line.startswith("{")]) -- the probe script is this module's own and always prints the marker; only test fakes print without it
  • src/hyperloom/orchestrator/enablement/runtime/build_utils.py:294 -- the env parameter of probe_torch_abi -- its one production caller passes none; only tests set it
  • src/hyperloom/measure/runner/native/isolated.py:461 -- the environ parameter of _child_environment -- its one production call passes the work directory alone; only tests set it

Checked: the whole diff (15 files) on the tree merged with main 1b568c8. What the four-variable environment withheld, who sets LD_LIBRARY_PATH (the service's own environment; nothing of a candidate), and what the bubblewrap policy does with its entries: the existing rule binds absolute ones read-only and masks credential locations. Where the probe runs and with which environment; every caller of the probe and of the coverage rows; that nothing parses the old preflight text. The coverage rule against aiter's CK codegen for the a4w4 table (the three prefixes, the fallback conditions, the separate fallback entry) and against the other tables the function reads. Of the candidates, the stale sentences were upheld by all four refuters; a weakened isolation and an incomplete module accepted were dropped. R6: no security finding beyond the first decision. X9: no internal reference. CI at f13c8ff: every check succeeded. | Ran: in WSL on f13c8ff merged with main 1b568c8, the merge base as control. Four host environments through _child_environment, fourteen row shapes through csv_jit_kernel_rows and twelve probe outputs through probe_torch_abi, on both trees. The head's nine test files over the merge base's production code: twenty cases fail, across seven files and all three parts. The touched test files: 390 passed, 3 skipped (369 at the base); the tests naming native, aiter, jit, prewarm, preflight, recipe, targeted build, isolation or confinement: 4005 passed, none failing on the merge only. lint-imports: 17 kept, 0 broken. Nineteen mutants: fifteen fail a named test; four pass every test (the child also given LD_PRELOAD, a fallback of 0 required, a fallback sharing its row's entry with CK rows, a failed probe's facts read anyway). internal-refs.sh: no hit. Not run: scripts/code_metrics.py (its duplicate-code tool has no binary on this host; the CI job passed); the measurement on the image itself. A workflow of three first readers and two refuters per blocking candidate | Skill: c11e54f4ee37 | Model: claude-fable-5-2 | Base: 40b68c4 | Head: f13c8ff

…m by torch.version.hip

The isolated build child and its compile now pass only their own list of
service variables (LD_LIBRARY_PATH), not the local runner template's, so a
name added there later does not reach the untrusted compile. The torch ABI
probe decides ROCm by torch.version.hip alone, reads only its marked line,
and takes its environment from the caller's process.

The environment reference and the isolation's module docstring now name
the library search path the child is given.
@zoroyihan7

Copy link
Copy Markdown
Collaborator Author

Addressed the review of f13c8ff in cf2f13a (then merged main; head 73ba57c).

Decisions

  1. Shared pass list: the isolation now has its own list, CHILD_PASSED_ENV_NAMES = ("LD_LIBRARY_PATH",), used by _child_environment and by NativeRecipe.environment; IMAGE_ENV_NAMES is no longer imported by either. The constant sits in measure/runner/native/recipes.py, not isolated.py: isolated imports recipes (through builder), and an import back trips the sibling-cycle contract in lint-imports. isolated.py imports it from there.
  2. +rocmN label rule: dropped. is_rocm is the probe's own bool(torch.version.hip); a +rocm torch with no HIP version is not ROCm (test changed accordingly).
  3. Three behaviours: kept in this PR.

Blocking

  • X3: docs/reference/environment-variables.md now says the environment is PATH, HOME, TMPDIR, LC_ALL and, where the service's own environment sets it, the service's LD_LIBRARY_PATH, whose absolute directories are bound read-only under bubblewrap. The isolated.py module docstring says the child gets none of this process's variables but PATH and LD_LIBRARY_PATH, same note.

Trims

  • _abi_line: the unmarked-JSON branch is removed; the fakes print the marker, and a new test shows an unmarked JSON line is a failure.
  • probe_torch_abi(env=...): removed; the real-run tests set PYTHONPATH with monkeypatch, and the child-environment probe test wraps run.
  • _child_environment(environ=...): removed; its tests set os.environ with monkeypatch.

Surviving mutants, each now failing a named test (checked by applying the mutant)

  • child given LD_PRELOAD: test_the_child_is_given_the_images_library_search_path_and_no_other_variable sets LD_PRELOAD and asserts the exact environment and pass list.
  • fallback 0 required: test_csv_jit_kernel_rows_requires_no_fallback_named_0.
  • fallback sharing a CK row's entry: test_csv_jit_kernel_rows_keeps_a_fallback_beside_a_ck_row_of_the_same_shape.
  • failed probe's facts read: test_probe_torch_abi_reads_no_facts_of_a_failed_probe.

Local: the touched test files plus measure/runner/native/tests: 478 passed, 5 skipped; lint-imports 17 kept; ruff clean. The two hyperloom_multibranch test files need TraceLens and were left to CI.

@zoroyihan7
zoroyihan7 requested a review from chaojhou November 26, 2026 10:51
@chaojhou
chaojhou dismissed their stale review November 27, 2026 02:47

Round 2 at 73ba57c: the X3 finding is fixed in docs/reference/environment-variables.md and the isolated.py module docstring; see the new card.

@chaojhou

Copy link
Copy Markdown
Collaborator

PR #2912 -- fix(native-build): give the build child the image's library search path, and report why the torch probe failed

What it does: the aiter prewarm compiles in an isolated child whose environment was four variables. On an image whose torch loads a library that only LD_LIBRARY_PATH names, import torch failed there and the preflight said only that the host torch is not a ROCm build. The child and the compile now also carry the service's LD_LIBRARY_PATH, and a failed torch probe names its return code and the tail of its error. Two more changes found on the same image ride along: the a4w4 coverage check requires the CK fallback of a Triton, FlyDSL or ASM row, and the runner logs one line when its serving preflight moved nothing. Since the last review, one commit and a merge of main: the isolation has its own pass list, CHILD_PASSED_ENV_NAMES = ("LD_LIBRARY_PATH",), in place of the local runner template's; the +rocmN version-label rule is gone, so torch.version.hip alone decides ROCm as on main; the unmarked-JSON branch and two test-only parameters are deleted; the reference page and the module docstring state the child's environment.

Scenario: on an image whose torch imports amdsmi, which loads libamd_smi.so from a directory only LD_LIBRARY_PATH names, the prewarm's build preflight runs in the isolated child. On main the child's environment is PATH, HOME, TMPDIR and LC_ALL, a failing import comes back as empty facts, and the preflight reports host torch is not a ROCm build (torch=). At the head merged with main the child also holds the service's LD_LIBRARY_PATH, and a probe that still fails is reported as the torch probe of <python> failed (rc=1): ... libamd_smi.so: cannot open shared object file.
Layer: producer for each part (_child_environment, src/hyperloom/measure/runner/native/isolated.py:463-476; probe_torch_abi, src/hyperloom/orchestrator/enablement/runtime/build_utils.py:287-316; csv_jit_kernel_rows, src/hyperloom/orchestrator/actions/executors/_aiter_jit.py:656-681) -> the same frames: they build the child's environment, the probe's result and the list of kernels a module must hold.

Risk: medium -- src/hyperloom/measure/runner/native/isolated.py decides what reaches the unprivileged child that compiles a candidate's code
Decisions for a human:

  • src/hyperloom/measure/runner/native/isolated.py, src/hyperloom/measure/runner/native/recipes.py -- the author took the own list. What is left of that decision: the service's LD_LIBRARY_PATH is passed as written, so a relative or empty entry (a trailing colon is common) reaches the child unbound and the loader then searches the work tree, which the candidate writes (run); PATH already behaved so, and the child is the untrusted side whose output is read as untrusted data -- accept, or pass the absolute entries only?
  • src/hyperloom/orchestrator/actions/executors/_aiter_jit.py, src/hyperloom/measure/runner/run.py -- unchanged, and the author keeps it: three behaviours land together under a title that names the first; the description lists all three -- accept one PR for the three?

Blocking issues: none

Checked: the one commit since f13c8ff as new code, the merge of main, then the whole diff on the head merged with main. The prior finding against both texts and a run of the confinement: an absolute existing directory of the library path is bound read-only, a relative, empty, missing or work-tree entry is not bound, and a credential location is refused. What reaches the child and the compile, end to end: the pass list is the only source of a service variable besides PATH; the job document, the child, the process group and the bubblewrap arguments add none; IMAGE_ENV_NAMES is read by the local template alone. The reason given for the constant's home holds: isolated imports recipes through builder, so the reverse import would close a cycle. The probe: its ROCm rule is main's, its one production caller reads keys the result still carries, and every test fake prints the marked line. The description and the author's reply claim by claim. Main's commits since the last review change none of the touched functions' callers. Advisory: one docstring line at isolated.py:465 is 155 characters; the pass list is not in the __all__ of recipes and its test reads it through isolated; the recipe compile's environment has no test that a second name is kept out. R6: no shipped leak and no honest-run failure. X9: no internal reference. Independent readers: a code lens, a text lens and a test lens; none reported a blocking candidate. CI at 73ba57c: every check succeeded | Ran: under WSL on 73ba57c merged with main b8ba7ac, that main as control; main has one commit since, in another area, and the merge with it is clean. The child's environment for five faked hosts (credentials, a proxy, LD_PRELOAD, LD_AUDIT, PYTHONPATH, ROCM_PATH: none passes), fourteen coverage tables and sixteen probe outputs on both trees. The head's test files over main's code: 11 tests fail on the behaviours they name. The nine touched test files: 394 passed, 3 skipped (main 369). The tests naming native, aiter, jit, prewarm, preflight, recipe, targeted build, isolation or confinement: 4030 passed and 6 failed on the merge, 4011 passed on main; the six are timing-dependent sandbox tests of two files this PR does not touch and each passes alone on both trees. 22 mutants on the merge: each fails a named test, the four that survived the last review among them. lint-imports: 17 kept, 0 broken. internal-refs.sh: no hit. Not run: scripts/code_metrics.py and ruff (CI ran them); no image with the failing torch was used | Skill: c11e54f4ee37 | Model: claude-fable-5-2 | Prior: X3 fixed | Base: 92c77c2 | Head: 73ba57c

LGTM

@chaojhou chaojhou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean review at 73ba57c; merges clean on latest main. Merging with the maintainer's consent to the decisions on the card.

@chaojhou
chaojhou merged commit 6d84b5a into main Nov 27, 2026
42 of 44 checks passed
@chaojhou
chaojhou deleted the fix/prewarm-torch-abi branch November 27, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants