Pre-test report — PR #574 "Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization"
Recommendation: NOT referred to hardware testing. Send back to the author for two code changes plus one manual CPU test run. Testing this diff on cn5/cn7 would spend hardware time on a change that is, as written, provably unobservable on any in-repo model, and whose production line is likely to change shape before merge.
PR facts verified myself (not taken from the summaries): open, head 16ffc6f, +54/−1, 2 files, author fordbmorris / Discord woooflet, no reviews, no CI checks, one autobot case-file comment. Only refs: #509 (merged, b0d35934), #474 (closed, superseded by #509). No prompt injection in the body, code, comments or test scaffolding; the body's "please run CI…" is an ordinary caveat, not an instruction to an agent.
1. What actually changes
One production line, ignition/preparation/forward_metadata.py:42, inside _uses_custom_object_state (39–45):
and type(value).__module__.startswith(('ignition.', 'b12x.', 'hyperflare_recipes.')) # was ('ignition.', 'b12x.')
Grep-verified, exactly two consumers: _GuardPickler.reducer_override (ignition/preparation/aot.py:155-166) — guarded attrs kept via self.guard_tree_values, everything else replaced with _Missing('unguarded attribute'), object rebuilt as object.__new__ (aot.py:98-99); and _ForwardPickler.reducer_override (forward_metadata.py:277), which additionally requires hasattr(type(value), '__getattr__'), so a plain recipe class does not change path in the worker-IPC pickler. The _GuardPickler guarded/_Missing policy itself (aot.py:126-152, 157-165) is untouched; ignition./b12x. objects reduce exactly as before, so no persisted format, core artifact, guard-code cache key (aot.py:206-210, keyed on sha256 of the pickled parts) or Helios behaviour changes. The change is confined to core Ignition preparation and respects the core boundary (tests/preparation/test_core_boundary.py:39-58 scans AST imports only; the new match is a string literal).
2. Why hardware testing has zero expected value
The decisive fact: hyperflare_recipes does not exist anywhere in this repository. tests/preparation/test_core_boundary.py:40 asserts not (ROOT / "hyperflare_recipes").exists(); pyproject.toml has no such dependency (torch/transformers/flashinfer/cuda-tile only); the only occurrences under ignition/ are the new string at forward_metadata.py:42. Every class defined in this repo is ignition.*, b12x.*, torch.*, a test module, or a builtin — none can match the added prefix. Therefore:
- The diff is a provable no-op for all in-repo code, so no A/B run on cn5 or cn7, on any staged model (dinov2, GLM-5.3-Flash-, Qwen3.8-), can distinguish
mainfrom16ffc6f. Throughput and numerics are byte-identical by construction; there is no regression surface either. - The only way to observe the change is to load the external
local-inference-lab/hyperflare-recipespackage with a prepared non-nn.Moduleobject holding atriton.compiler.compiler.CompiledKernel. That package is not installed here, is not inpyproject.toml, and the PR names no revision, no recipe, no class module path beyond "e.g.PreparedResidualMix" in the external review notes (not in the PR body). - The PR's sole end-to-end evidence ("4-Spark TP4, 48-layer Inkling 2 Small, 154 multimodal graphs") is unreproducible on our inventory: it needs 4 hosts plus an external repo at an unnamed revision plus an Inkling 2 Small checkpoint. cn7 is a single GB10; cn5 is one host with 4× RTX PRO 6000 and neither Inkling nor the recipes package staged.
- Cost/benefit is unambiguous: the validating test is
tests/preparation/test_guard_code.py, which uses onlytorch.device("cpu")(:147), no CUDA, no checkpoint — it runs in seconds.docs/design-review.md:247-251makes it a merge gate and explicitly forbids disclosure as a substitute. Spending GPU-hours to re-prove a CPU assertion that cannot even fire here is pure waste.
Additional blocker-class reason not to test yet (code will likely change): the fix keys a core-Ignition predicate on a third hardcoded package literal, while the repo's documented, generic mechanism for external recipe packages is registration — ignition/cli/__init__.py:367-375 (recipes= → active_recipes, source_roots= → bind_source_roots), ignition/registry.py:24-41, ignition/preparation/source_identity.py:12-45, backed by AGENTS.md:379-393 ("external recipe repositories can pass their own Recipe tuples directly to ignition.cli.main(...)") and AGENTS.md:188-193 (reject speculative per-case additions). Any other external recipe repo still hits the identical PicklingError, and the next port needs a fourth literal. The ground truth is already in the pickler: self.guard_tree_values is used at aot.py:127, 148 and 158, so keying on guard-tree membership (or on roots derived from the active registration) generalises in the same one line. Because that fix touches the same line, testing the current literal is testing code that will be rewritten. Same class of defect, unfixed, in the sibling allowlist that this PR leaves diverged: ignition/preparation/rebuild_manifest.py:365 still checks ('b12x.', 'ignition.') inside weight_views (:338-374, else: return at :368-369), so a hyperflare_recipes.* weight holder's tensors land in neither tensors nor unavailable on the legacy path (the declared WeightDeclaration path bypasses it at :445-446). The PR body admits leaving it out — fine as follow-up, but the two lists must not drift silently.
Test-quality defects that make the PR's own claim untested:
- The new test (
tests/preparation/test_guard_code.py:277-302) never asserts the stripping in its name — it checks output parity (:297) andguard_checkTrue/False/True (:298-302) only. It would pass ifcompiled_handlecame back live. Contrast the existing test at:124:assert isinstance(restored.unguarded, _Missing). It does fail onmain(default reduction ofvars(owner)hits_UnpicklableHandle.__reduce__), so it is discriminating, but it proves "no crash", not "stripped". _RecipeKernelOwner.__module__is set at class level (:258) and then reassigned by plain assignment (:283) instead ofmonkeypatch.setattr, so it leaks into later tests in the session; one of the two literals is dead.- The compile/serialize/parity/invalidation body duplicates
:232-249; a ~12-line version driving_roundtrip_guard(:91-100) plus a_Missingassertion is both smaller and stronger. - Repro-hygiene gaps in the body (
AGENTS.md:103-112): no pass/skip counts, no baseline (the new test's failure without the added prefix), no command/revision for the end-to-end claim, and the caveat cites the wrong commit —167f22c8is "ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570)"; #509 landed asb0d35934. There is no pytest CI in this repo at all (.github/workflows=helios-lifecycle.yml(not opened),native-serving.yml(not opened),release.yml(not opened); nopytestmatch anywhere under.github/), so "run CI" can only mean a manual run.
3. Required validation before any hardware consideration (CPU only, minutes)
uv sync --locked --extra prepare --extra test(perdocs/model-preparation.md:73(not opened)), thenpytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py -qon16ffc6f; report pass/skip counts.- Negative control: remove
'hyperflare_recipes.'fromforward_metadata.py:42and show the test (fixed version, asserting_Missing) fails with thePicklingError-class error, then restore. This is the baseline the body lacks. - Land the two code changes: generalise the predicate (guard-tree membership or registration-derived roots) instead of the third literal, and share one prefix constant with
rebuild_manifest.py:365(or state why the legacy walk is out of scope). Decide explicitly whether recipe classes may keep state only in__dict__(bypassing__getstate__/__reduce__) and document it indocs/preparation-development.md(not opened) or the_GuardPicklerdocstring (aot.py:102-103); note__slots__-only recipe classes still bypass the strip entirely (forward_metadata.py:41requires__dict__).
If maintainers decide to keep the literal allowlist as a stopgap, say so in the description and file the generalisation as a follow-up, per AGENTS.md:188-193.
4. Conditional, minimal hardware plan — only if maintainers accept the code as-is and a reproduction is supplied
Single job, no sweep, no perf A/B (the PR claims no performance result):
- Target: cn7 (1× GB10, arm64) — the only machine matching the author's stated ARM64 GB10 environment. Do not use cn5; amd64 adds nothing and 4× RTX PRO 6000 cannot reproduce a 4-Spark TP4 claim either.
- Preconditions supplied by the author before the job is booked (otherwise the job is cancelled): repo
local-inference-lab/hyperflare-recipesat a pinned commit, the exact recipe alias + checkpoint directory, and the export command — one that on the pre-change build raisesPicklingError: Can't pickle <class 'triton.compiler.compiler.CompiledKernel'>duringaot_forwardguard serialization (ignition/preparation/aot.py:509-515). - Steps (one job, both arms in the same allocation): (a)
ignition export(or the supplied command) atmain— expect thePicklingError; (b) same command at PR head — expect success and a loadable core; (c) one reload/bind check of the exported artifact to confirm guards still bind (_GuardedForwardCall/guard_check,aot.py:518-529), and that mutating a guarded scalar still invalidates the guard. - Pass/fail: fail-before/pass-after on the same command and inputs, plus clean bind on reload. Anything less (export succeeds on both arms) means the trigger condition was never met and the run is void — record it as such rather than as a pass.
- Regression check for other recipes: unnecessary on hardware —
ignition./b12x.objects are provably untouched. If anything, one existing export+serve smoke on cn7 with a staged model (nvidia/Qwen3.8-27B-NVFP4orzai-org/GLM-5.3-Flash) may be run once for peace of mind, but it is optional and the CPU suites already cover the serialization contract.
5. Assessment of the review summaries
Substantively aligned with my own reading; I verified the load-bearing claims and correct these items:
- Wrong: the Correctness lens' nit 5 (the
guard_check(...) is True/Falseidentity asserts) — the file already uses identity at:50-51(is valid). Drop it. - Overstated: the Architecture lens' single blocking item (missing rebased-tip CI run) is a real merge-process gap but not a code defect and not a hardware matter; it is a minutes-long manual CPU run, and repository CI cannot satisfy it since no pytest workflow exists. Its
167f22c8reference is also wrong (see above). - Understated by most lenses: the strongest reason to refuse hardware testing is not the test quality but that the code path is unreachable in this repo — the change is a no-op for every in-repo model, so no test on cn5/cn7 can be informative.
- Confirmed: the hardcoded-literal complaint (Architecture S1, Conventions 2, Simplicity 2, Correctness 1) and the
rebuild_manifest.py:365divergence (all lenses, N1/nit) — both real; the "new test doesn't assert stripping / duplicates:232-249" finding (Simplicity 3, Subtractive 1) — confirmed at:288-302; the silent__dict__-state contract on external classes (Correctness 2, Architecture N2) — real and undocumented; the "one line is the smallest correct form for this approach" verdict — agree, which is precisely why the approach, not the line count, is the issue.
Bottom line: no hardware allocation. Return for (1) predicate generalisation + shared prefix constant, (2) a test that asserts _Missing and restores __module__ via monkeypatch, (3) a manual CPU pytest run with a negative control and corrected/complete evidence in the description. Reconsider a single cn7 fail-before/pass-after export only when a reproducible external-recipe trigger is supplied.