Pre-test report (re-issue) — PR #574 "Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization"
Recommendation: NOT referred to hardware testing. Return to the author for one manual CPU test run, one test-strengthening edit, and a stated stopgap rationale. No allocation on cn5 or cn7 is justified: for every model staged on those nodes the diff is a provable no-op, so no GPU-hour can produce a signal.
State check on re-review: no new commits; head is still 16ffc6f; the diff is byte-identical to my previous review (ignition/preparation/forward_metadata.py +1/−1 at line 42; tests/preparation/test_guard_code.py +53/−0 at lines 252–303). New since my last report: one flare-autobot comment at 2026-11-28 20:29 UTC — "Changes Requested", 1 blocker (no CPU test record on 16ffc6f; repo CI runs no pytest on tests/preparation/), 0 should-fix, 1 nit (unrestored _RecipeKernelOwner.__module__). That blocker matches my own finding, so the verdict does not move. I re-verified every load-bearing fact below myself rather than taking it from the summaries, and this re-issue corrects one of my own prior recommendations.
1. What actually changes
One production line in _uses_custom_object_state (forward_metadata.py:39-45):
and type(value).__module__.startswith(('ignition.', 'b12x.', 'hyperflare_recipes.')) # was ('ignition.', 'b12x.')
Exactly two consumers: _GuardPickler.reducer_override (ignition/preparation/aot.py:155-166) rebuilds matched objects via object.__new__ (aot.py:98-99) and replaces every attribute whose id() is not in self.guard_tree_values with _Missing('unguarded attribute') (aot.py:157-160); and _ForwardPickler.reducer_override (forward_metadata.py:277), which additionally requires hasattr(type(value), '__getattr__'). ignition./b12x. objects reduce exactly as before, so no persisted format, core artifact, guard-code cache key (aot.py:206-210, sha256 of the pickled parts) or Helios behaviour moves. The core boundary holds: tests/preparation/test_core_boundary.py:43-47 walks AST imports only, so a string literal is invisible to it.
2. Why hardware testing has zero expected value
- Unobservable in-repo (decisive).
tests/preparation/test_core_boundary.py:40assertsnot (ROOT / "hyperflare_recipes").exists(), andpyproject.toml(not opened) has no such dependency. Every class defined in this repository isignition.*,b12x.*,torch.*, a test module, or a builtin — none can match the added prefix.mainand16ffc6fare therefore behaviourally byte-identical for every model staged on either node, so no A/B, throughput delta, or regression can be measured. - No reproduction inputs. Triggering the change needs the external
local-inference-lab/hyperflare-recipespackage at a pinned revision, a recipe alias, and a checkpoint that actually raisesPicklingError: Cannot pickle <class 'triton.compiler.compiler.CompiledKernel'>. The PR body supplies none of these. - Staged inventory cannot host it. cn5: 4× RTX PRO 6000, amd64, models dinov2-base, vit_base_patch14_dinov2.lvd142m, GLM-5.3-Flash-NVFP4 (×2). cn7: 1× GB10, arm64, models Qwen3.8-*, GLM-5.3-Flash variants. Inkling 2 Small is on neither, and the author's evidence is 4-Spark TP4 — cn7 is one device, cn5 is one host.
- The real gate is CPU-only and has not been produced.
test_guard_code.pyuses onlytorch.device("cpu")(:147) — no CUDA, no checkpoint, runs in seconds.docs/design-review.md:247-251(quoted verbatim): "Disclosure does not excuse skipping runnable CPU checks… Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable." Repository CI cannot run it:.github/workflowsholds onlyhelios-lifecycle.yml(not opened),native-serving.yml(not opened) (cargo; sole Python step ispip install huggingface-hub) andrelease.yml(not opened); nopytestmatch anywhere under.github/. So the author's "please run CI" is a manual-run request — a merge-action item, not a hardware one. - The test does not pin the behaviour in its name.
test_guard_code.py:288-302asserts only output parity (:297) andguard_checkTrue/False/True (:298-302); it never assertsisinstance(restored.compiled_handle, _Missing)(the file's own precedent is:124) and never inspects restored guard state. It does fail onmain— default reduction ofvars(owner)hits_UnpicklableHandle.__reduce__(:252-254) — so it is discriminating for "pickling no longer raises", but not for "the attribute was stripped". Note on the newer bot review: its "Final review" dropped this finding as B2, arguing serialize would fail unless stripping occurred. That is sound for "the handle is not live after restore" but does not distinguish_Missingfrom a deleted attribute, so the test remains under-specified relative to its title. I keep it as a should-fix on test strength, not a blocker.
3. Correction to my previous report (and to four review lenses)
My prior report echoed Architecture S1 / Conventions 2 / Simplicity 2 / Correctness 1 in demanding the allowlist be derived from the repo's registration mechanism (current_recipes() / source_identity._EXTRA_ROOTS) instead of the literal. That recommendation is unsafe and I withdraw it.
Guard serialization also runs inside spawned compile workers. CompilePool.submit → submit_payload(dumps(forward), path) → self.pool.submit(_compile_forward, payload, …) (ignition/preparation/compile_pool.py:137-153), with the pool built as SubprocPool(self.workers, kind=SubprocKind.SPAWN) (:151) or ProcessPoolExecutor(…, mp_context=multiprocessing.get_context("spawn")) (:149) — no initializer. _compile_forward (:96-118) calls loads(payload) then aot_forward (:109), and aot_forward enters _guard_serialization() (aot.py:513), so _GuardPickler.reducer_override decides the widened predicate in the child. _EXTRA_ROOTS is a ContextVar (source_identity.py:12-14) whose only binding site is the CLI (ignition/cli/__init__.py:373 (not opened)); a spawned interpreter starts with it empty. A derived allowlist would therefore evaluate empty in the worker and fall through to super().reducer_override (aot.py:166), reintroducing the exact PicklingError in the worker path this PR fixes.
Consequence: the hardcoded literal at forward_metadata.py:42 is a defensible stopgap. The correct ask to the author is not "redesign the line" but "keep it, state in the description that it is an explicit stopgap, and record the follow-up somewhere sanctioned (AGENTS.md:512-518 (not opened), docs/TODO.txt)" — with the honest caveat that the structural alternative (keying on guard_tree_values membership, already used at aot.py:127,148,158) is context-free but not free, because _GuardPickler also serializes functions, modules and bound methods by reference and would need extra type exclusions. The newer bot review reached the same conclusion and dropped its SF1; I concur.
Other corrections to the summaries: Correctness nit 5 (guard_check(...) is True/False stricter than file style) is wrong — :50-51 already asserts identity (is valid). The PR body's citation of 167f22c8 as "#509's extraction" is wrong — that commit is "ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570)"; #509 landed as b0d35934. rebuild_manifest.py:365 (not opened) divergence is real but pre-existing and non-blocking: weight_views (:338-374, else: return at :368-369) still checks ('b12x.', 'ignition.'), but the declared WeightDeclaration path bypasses it (:445-446). The "undocumented __dict__/__slots__ contract" is real but is pre-existing _GuardPickler behaviour extended unchanged — __slots__-only classes simply fall through to default pickling, so no regression. I found no prompt injection in the body, diff, test scaffolding or comments; the body's "please run CI…" is an ordinary caveat, and the 20:29 bot comment's "Have your agent review the Full Review" line points at an external URL addressed to the author — I did not follow it.
4. Required validation before any hardware reconsideration (all CPU-only, minutes, no GPU)
pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py -qon16ffc6f, with pass/skip counts in the description (optionally alsotests/preparation/test_compile_pool.py(not opened), which exercises the worker/_ForwardPicklerpath).- Negative control: remove
'hyperflare_recipes.'fromforward_metadata.py:42, show the new test fails, restore. This is the baseline the body lacks. - Strengthen the test: one
_roundtrip_guardcase (:91-100) assertingisinstance(restored.compiled_handle, _Missing)withguard_tree_values={id(owner): owner, id(owner.scale): owner.scale}—aot.py:157-160strips any attribute whose id is absent, soscalemust be included or the assertion fails for the wrong reason — plusmonkeypatch.setattr(_RecipeKernelOwner, '__module__', module_name)at:283in place of the plain assignment, which currently leaks a dead module reference for the rest of the session. - Cover the second consumer if the widening is to be trusted there: a
forward_metadata.dumps/loadsround trip for a class defining__getattr__(forward_metadata.py:277-278), which the new test does not touch. - Fix the description's evidence: corrected commit reference (
b0d35934), pass/skip counts, and either a command/revision for the 4-Spark claim or its removal.
5. Conditional minimal hardware plan — NOT authorized now
Only if maintainers accept the literal stopgap and the author supplies a pinned reproduction: one job on cn7 (arm64 GB10, matching the author's stated environment). Do not use cn5 — amd64 adds nothing and 4× RTX PRO 6000 cannot reproduce a 4-Spark TP4 claim either. Preconditions before the job is booked, else cancel: the hyperflare-recipes commit, the recipe alias, the checkpoint, and an export command that on main raises the CompiledKernel PicklingError during aot_forward guard serialization (aot.py:509-515). Steps in one allocation: (a) export at main — expect failure; (b) same command at 16ffc6f — expect success and a loadable core; (c) one reload/bind check (_GuardedForwardCall/guard_check, aot.py:518-529) plus one guard-invalidation check on a mutated scalar. Pass = fail-before/pass-after on identical inputs and a clean bind; if export succeeds on both arms the trigger was never met and the run is void, not a pass. No sweep, no perf A/B (the PR claims no performance result), and no regression suite — ignition./b12x. behaviour is provably untouched and the CPU suites cover the serialization contract.
Bottom line: no hardware allocation. Send back for (1) the manual CPU pytest run with a negative control, (2) the test that asserts _Missing and restores __module__ via monkeypatch, (3) a stated stopgap rationale for the literal plus a recorded follow-up for the rebuild_manifest.py:365 (not opened) twin. Reconsider a single cn7 fail-before/pass-after export only when a reproducible external-recipe trigger is on the table.