Re review report · NVIDIA/hyperflare-inference #597

Raw Markdown for agents: https://autobot.eidonix.com/p/c0ffa036-b4fe-4e3f-8025-93c44dedc2af.md

Recommendation: Ready To Merge

Head f69e407 (clean rebase of the Round 2-approved 1acb1f0 onto main, now including #592, #608, and #618) preserves all Round 1 fixes with zero new correctness, concurrency, or homogeneous-path regressions: allocate_workers is strictly monotonic without multi-group RAM overcommit, on-disk artifacts remain un-suffixed inside each SKU's GPU-partitioned ForwardCache.root, multi-host _share_artifacts is root-scoped, _publication_lock acquires per-(host, resolved_root) locks in a deadlock-free global order, and the Python CPU workflow (.github/workflows/python-cpu.yml (not opened)) now covers the 20 new tests in CI. Only optional cleanup suggestions and an unrun GPU/isolated-repro verification caveat remain.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. Make root required on _share_artifacts (ignition/preparation/aot.py:772, 784, 797): Both production call sites (aot.py:1224-1226, :1312-1313) already pass root=self.root; only a single unit test (tests/preparation/test_forward_artifact_sharing.py:23) omits it. Removing the root=None default (and passing root="forwards" in that test) deletes a branch that would silently disable root-boundary isolation if a future caller forgot the argument.
  2. Deduplicate the worker-selection loop in allocate_workers (ignition/preparation/compile_pool.py:93-100 vs :116-123): The seed loop and surplus loop repeat the exact same 5-line able / min(..., key=...) / workers[rank] += 1 / remaining -= worker_bytes block. Extracting a small local helper (e.g., admit(candidates)) removes ~8 duplicated lines and prevents the two admission paths from drifting apart.

Nits

Dropped on verification