PR #574: Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/4125eeba-fbea-4e80-b709-08d2f49d6824

Opened by a workflow run, Nov 28, 2026 2:23 PM EST.

screen malicious

Screen Result: All Clear

Evidence: Screened PR #574 (head 628f361, 2 files, +54/−1) end-to-end for prompt injection and other attempts to induce unwanted agentic behavior. Nothing malicious or suspicious was found.

The diff is exactly what the description claims: a one-line widening of the module-prefix tuple in _uses_custom_object_state at ignition/preparation/forward_metadata.py:42 (now ('ignition.', 'b12x.', 'hyperflare_recipes.')), plus one new test at tests/preparation/test_guard_code.py:252–302. The check is a plain str.startswith on type(value).__module__, so no import of hyperflare_recipes is introduced and the core-boundary AST import scan stays satisfied.

Absent, after targeted checks: HTML comments, zero-width/bidi/control characters, encoded blobs, eval/exec/os.system/curl/network/credential access, and any workflow, CI, dependency, or config edits. The only subprocess.run (test_guard_code.py:67) and exec (:81) are pre-existing lines in an unrelated cached-guard-source test. The PR has no comments and no reviews, and no instruction-like text appears in code, docstrings, comments, assertion messages, class names, or module names. The description's "please run CI on the rebased tip" reads as a normal reviewer caveat, not a directive to an agent.

Two benign, non-security reviewer notes: the sibling predicate at ignition/preparation/rebuild_manifest.py:365 still checks only ('b12x.', 'ignition.'), leaving extracted hyperflare_recipes objects unwalked there (consistency gap); and the new test mutates _RecipeKernelOwner.__module__ at class level (test_guard_code.py:283) while only the sys.modules insertion is monkeypatched, so that attribute change persists after the test. Minor administrative oddity: PR body author fordbmorris (no repo association) vs. commit author "woooflet", which the body also gives as a Discord handle.

Open questions: no CI ran on the head commit, and the PR's own caveat asks for a rebased-tip run of tests/preparation/test_guard_code.py and tests/preparation/test_core_boundary.py, which has not yet happened.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: fordbmorris (external contributor, GitHub association NONE; Discord: woooflet) Motivation: Ignition's AOT guard pickler decides whether an object gets its per-attribute state rebuilt (dropping unpicklable, unguarded handles such as Triton CompiledKernel) based on a hardcoded list of module prefixes. When official model recipes moved out of ignition into the separate hyperflare_recipes package, objects defined there stopped matching, so their compiled-kernel attributes were pickled and aot_forward raised PicklingError. This PR adds 'hyperflare_recipes.' to that prefix list so those objects are handled again. Scale: +54 / −1 lines in 2 files Proposal:

Full report · Notes

Value Proposition

Verdict: Worth merging — with changes (no redesign needed)

What the PR is

One production line at ignition/preparation/forward_metadata.py:42, where _uses_custom_object_state now matches ('ignition.', 'b12x.', 'hyperflare_recipes.') instead of ('ignition.', 'b12x.'), plus one ~53-line CPU-only test in tests/preparation/test_guard_code.py.

Because #509 (merged, b0d35934) moved this predicate into forward_metadata.py, it is now shared, so the single line fixes both call sites: _GuardPickler.reducer_override (ignition/preparation/aot.py:155-165) and _ForwardPickler (forward_metadata.py:277-278). That is precisely the "smallest footprint in shared code" the charter asks for.

Why it is worth it, against the charter

Changes I require before merge

  1. CI on the rebased tip (the only real correctness gate). The author states the green run predates rebasing onto #509's extraction. Both affected tests are CPU-only, so pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py should confirm in minutes. I could not execute tests in this review environment, so this must be run.
  2. Test hygiene in tests/preparation/test_guard_code.py: _RecipeKernelOwner.__module__ is set in the class body and reassigned directly at line 283, so after the test the class points at a module monkeypatch has removed. Use monkeypatch.setattr(_RecipeKernelOwner, "__module__", module_name). Also add a direct assertion mirroring lines 104-127 (_roundtrip_guard(owner, guard_tree_values={id(owner): owner, id(scale): scale}) → isinstance(restored.compiled_handle, _Missing)); it pins the exact contract in ~6 lines and fails on main for the right reason.
  3. Record the coupled assumption. _uses_custom_object_state (forward_metadata.py:39-45) should carry a docstring saying why the namespace allowlist exists. Note, and file as a separate TODO, that the identical allowlist at ignition/preparation/rebuild_manifest.py:365 (weight_views, ('b12x.', 'ignition.')) was not updated: tensors held by plain hyperflare_recipes.* container classes are silently omitted from legacy rebuild_weights catalogs, appearing in neither tensors nor unavailable (rebuild_manifest.py:448-459). That is the same extraction bug in a second place — not a blocker here (the declare_weights/declared_views path is unaffected), but the two lists should not drift silently.

Residual risk to state in the PR body

Recipe objects now inherit core behavior: an unguarded attribute that diagnostic replay genuinely needs will fail at replay (_Missing raises on use) rather than at pickle time. The only evidence that no shipped recipe does this is the author's 4-Spark TP4 Inkling 2 Small export (154 multimodal graphs), which lives in an external repo branch — it should be described as external-branch evidence rather than in-repo verification. The _ForwardPickler side is unchanged in kind: it engages only for types defining __getattr__ and still fails loudly on unsupported attributes, so no new silent drop is introduced there.

No prompt-injection attempts found in the PR description or its single (autobot) comment.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Architecture

Verdict: blocking issues

Blocking:

Should fix:

Nits: 2 — rebuild_manifest.py:365 keeps the old two-package prefix list for the same "prepared object" question (now inconsistent, may silently drop weight views); and the widening imposes an undocumented __dict__-state contract on external recipe classes (bypassing __getstate__, and changing the _ForwardPickler worker path for classes with __getattr__).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

Full report · Notes

Conventions

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 2 — new test is named test_guard_pickler_* but uses the serialize/deserialize pipeline rather than the _roundtrip_guard unit path (test_guard_code.py:277 vs :91-100, :232); it mutates _RecipeKernelOwner.__module__ globally instead of monkeypatch.setattr and leaves a redundant class-level literal (:258 vs :283).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

Full report · Notes

Simplicity

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 2 — tests/preparation/test_guard_code.py:258 + :281-285 (dead __module__ in the class body, and :283's plain assignment leaks the synthetic module for the rest of the session; use monkeypatch.setattr), and :268-274 (the _RecipeForward wrapper is avoidable padding).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

The production diff itself is clean in this lens — one character-level predicate change, no option, fallback, parallel path, import, or comment bloat — and core-boundary compliance holds (test_core_boundary.py:39-47). No prompt injection found. Open: whether any real recipe weight object reaches weight_views without a WeightDeclaration (rebuild_manifest.py:445-446), which only a test can settle.

Full report · Notes

Prose

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 6 (unspecified end-to-end result criterion; test_core_boundary.py listed as evidence without saying what it verified; benefit and evidence merged in one section; unexplained synthetic-module / double __module__ assignment at tests/preparation/test_guard_code.py:281-285; Caveats posing rebuild_manifest.py:365 as an open maintainer question instead of a stated reason; the prefix criterion remains undocumented in docs/preparation-development.md).

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

The description's factual claims all check out: ignition/preparation/forward_metadata.py:42 now tests ('ignition.', 'b12x.', 'hyperflare_recipes.'), only the class __module__ string is inspected so core ignition still imports nothing, and the new test at tests/preparation/test_guard_code.py:252-302 really does assert serialization, output parity, and True → False → True guard invalidation on a synthetic hyperflare_recipes object with an unpicklable handle. Order, before/after explicitness, and the Discord: line all satisfy AGENTS.md. What is weak is the evidence paragraph: measured result, baseline, and configuration are missing, and the only disclosed gap (the run predates the rebase onto 167f22c8) is a CPU-only check that could simply be re-run.

Full report · Notes

Correctness

Verdict: should-fix issues only

Blocking:

Should fix:

Nits:

  1. ignition/preparation/rebuild_manifest.py:365 sibling allowlist still ('b12x.', 'ignition.'), so hyperflare_recipes tensor owners are dropped from the rebuild catalog while now being guard-serializable.
  2. New test mutates process-global _RecipeKernelOwner.__module__ (test_guard_code.py:283) instead of using monkeypatch.setattr.
  3. Test fixture raises TypeError, not the reported PicklingError from CompiledKernel (test_guard_code.py:253).
  4. Only the _GuardPickler consumer is exercised; _ForwardPickler (forward_metadata.py:277) also gates on hasattr(type(value), '__getattr__'), so it is unaffected by the widening and untested.
  5. guard_check(...) is True/False bool-identity asserts (lines 298-302) versus truthiness elsewhere in the file; return type unverified.

The core change is sound for what it reaches: ignition./b12x. objects keep byte-identical treatment (no persisted-format change), the AST-only core-boundary test still passes since only a string literal was added, the new test genuinely fails on main, and the guard-code cache keys on the sha256 of the pickled guard parts (aot.py:206-210), so new pickled bytes cause a cache miss and a fresh file rather than a stale-guard hit. Open question: head has no CI checks, and the author's own caveat says unit tests predate the rebase onto #509, so the rebased tip is unverified in this review.

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

Full report · Notes

Subtractive

Verdict: make it smaller first The change: +54 / -1 lines (forward_metadata.py +1/−1; tests/preparation/test_guard_code.py +53/−0) Could remove: about 34 lines, in 1 place Biggest subtractions:

Detail: the production fix is the smallest correct form — a string __module__ prefix comparison so core ignition still never imports hyperflare_recipes (tests/preparation/test_core_boundary.py:39-47), adding no option, flag, fallback or helper. All removable weight is in the new test, which rebuilds an end-to-end compile/serialize flow that already exists a few lines above (:232-249) and re-proves guard invalidation and output parity already covered elsewhere in the same file. Without the new prefix the direct round-trip still raises on the unpicklable handle, so the regression stays pinned. Caveat: I could not run pytest, so the ~19-line replacement must be executed to confirm the object branch round-trips; the fallback cut if maintainers want to keep the end-to-end serialize is ~25 lines. Rule basis: AGENTS.md:188-199 and docs/design-review.md:135-146 (scope expansion in tests).

Full report · Notes

code review summary

Recommendation: Changes Requested

Two blockers: the PR is unverified on its own head although both suites run on CPU, and the 53-line new test never asserts the stripping it is named for. Three should-fix items concern the hardcoded 'hyperflare_recipes.' literal in core Ignition versus the documented external-recipe mechanism, a second diverging allowlist at rebuild_manifest.py:365, and an undocumented __dict__ state contract now imposed on externally owned classes.

Full report · Notes

Pre Test Report

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:

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:

3. Required validation before any hardware consideration (CPU only, minutes)

  1. uv sync --locked --extra prepare --extra test (per docs/model-preparation.md:73 (not opened)), then pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py -q on 16ffc6f; report pass/skip counts.
  2. Negative control: remove 'hyperflare_recipes.' from forward_metadata.py:42 and show the test (fixed version, asserting _Missing) fails with the PicklingError-class error, then restore. This is the baseline the body lacks.
  3. 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 in docs/preparation-development.md (not opened) or the _GuardPickler docstring (aot.py:102-103); note __slots__-only recipe classes still bypass the strip entirely (forward_metadata.py:41 requires __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):

5. Assessment of the review summaries

Substantively aligned with my own reading; I verified the load-bearing claims and correct these items:

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.

Full report · Notes

Final review

Recommendation: Changes Requested

The one-line production change (ignition/preparation/forward_metadata.py:42) is clean, minimal, and architecturally sound, but the PR head (16ffc6f) has not had its runnable CPU unit tests executed after rebasing onto #509 (b0d35934), and repository CI workflows do not run pytest on tests/preparation/. Once those CPU tests are run on 16ffc6f and recorded in the PR description, this PR is ready to merge.

Blockers

  1. Runnable CPU tests were not executed on the rebased head (16ffc6f), and CI does not run them.
    • Evidence: The PR description notes that unit tests ran prior to rebasing onto #509's extraction of _uses_custom_object_state into ignition/preparation/forward_metadata.py (b0d35934, immediately preceding 16ffc6f) and asks reviewers to "run CI on test_guard_code.py and test_core_boundary.py". However, none of the repository's GitHub Actions workflows (.github/workflows/native-serving.yml (not opened), .github/workflows/helios-lifecycle.yml (not opened), .github/workflows/release.yml (not opened)) execute pytest on tests/preparation/. Both suites are CPU-only (tests/preparation/test_guard_code.py:147 uses only torch.device("cpu"); tests/preparation/test_core_boundary.py is pure AST/filesystem checks). Per docs/design-review.md:180-186, 247-251, leaving applicable runnable CPU checks unrun blocks PR acceptance and cannot be waived by disclosure.
    • Fix: Run pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py (and optionally tests/preparation/test_compile_pool.py, which exercises the shared _ForwardPickler caller) on 16ffc6f, record the pass/skip results in the PR description (noting that the 4-Spark TP4 Inkling 2 Small export verification is from an external hyperflare-recipes branch), and remove the "please run CI" caveat.

Should Fix

None.

Subtract / Simplify

None.

Nits

  1. Avoid mutating _RecipeKernelOwner.__module__ without restoration (tests/preparation/test_guard_code.py:258, 281-285).
    • Line 258 sets __module__ = "hyperflare_recipes.components.synthetic", which is immediately overwritten at line 283 (_RecipeKernelOwner.__module__ = module_name) without monkeypatch.setattr, leaving the module-level class pointing at a synthetic module name that monkeypatch.setitem removes from sys.modules on teardown. Match the _IgnitionInt pattern in the same file (tests/preparation/test_guard_code.py:139-140, 212-214) by setting module_name = _RecipeKernelOwner.__module__ (removing both the dead string and the class mutation), or use monkeypatch.setattr(_RecipeKernelOwner, "__module__", module_name).

Verified passes

Dropped on verification

Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

screen malicious

Screen Result: All Clear

Evidence: The PR's diff is exactly what the description says: a single allowlist string addition at ignition/preparation/forward_metadata.py:42 (verified — the tuple is now ('ignition.', 'b12x.', 'hyperflare_recipes.') inside _uses_custom_object_state), plus one new test at tests/preparation/test_guard_code.py:252-303. The test uses only test-local synthetic classes (_UnpicklableHandle, _RecipeKernelOwner, _RecipeForward), a monkeypatch.setitem on sys.modules with a fake hyperflare_recipes.components._synthetic_guard_test module, and torch.compile; it performs no network calls, no filesystem writes, no eval/exec, and spawns no processes. The only subprocess.run in that file is the pre-existing, untouched test at line 67.

No agent-directed content was found anywhere: no "ignore previous instructions"-style text, no #autobot:ignore/@flare-autobot directives authored by the contributor, no non-ASCII, zero-width or homoglyph characters in the touched files, and no hidden HTML/comments. The only prose containing requests is the PR template's maintainer-facing caveats (run CI on test_guard_code.py / test_core_boundary.py) and the honest disclosure that the tests predate the rebase onto #509 — legitimate review information, not manipulation.

The change is string-only and consistent with the codebase: hyperflare_recipes is the documented external recipe package (AGENTS.md:379-393; docs/model-development.md:5-7 (not opened), :276), core ignition still never imports it (only a __module__ string comparison), so tests/preparation/test_core_boundary.py:39-58 still holds. The mirrored, intentionally-unmodified check at ignition/preparation/rebuild_manifest.py:365 matches the PR's caveat.

Discussion (pr_comments, read_item 574) contains only the repository's own automated reviewer: a case-file notice and an "Autobot Review — Changes Requested" asking for recorded pytest results on 16ffc6f because CI does not run pytest on tests/preparation/. That is normal project tooling and a substantive review point, not an injection attempt. No human reviews and no CI checks on the head commit.

Nothing suspicious; nothing aimed at causing unwanted agentic behavior.

Full report · Notes decide malicious: all_clear (100%): No malicious content found

explore

Author: fordbmorris (external contributor; GitHub association with the repo is NONE, not a priority contributor); Discord: woooflet Motivation: Recipes and helper objects are moving out of core ignition into the external hyperflare_recipes package, but the guard-state pickler only recognised ignition.* and b12x.* objects. So compiling such a recipe's forward pass crashed while serialising its guards, because a compiled kernel handle sitting on the object could not be pickled; this PR recognises the new package prefix by name only. Scale: +54 / −1 lines in 2 files (head 16ffc6f) Proposal:

Full report · Notes

Value Proposition

Verdict: Worth merging — with changes (small, not a redesign)

The change is right-sized for this charter: one line in shared code, plus a test. I would merge it. The changes I require are a test record on the current tip and two cheap hygiene fixes; none of them is architectural.

What the PR actually is

Since #509 (b0d35934) hoisted this predicate into forward_metadata.py, the single line covers both of its call sites: _GuardPickler.reducer_override (aot.py:155-165) and _ForwardPickler (forward_metadata.py:277-278).

Against the charter

Changes I require before merge

  1. Record the test run on 16ffc6fd. This is the only real gate. I verified there is no Python test job anywhere: no pytest in .github/workflows (only helios-lifecycle.yml (not opened) TLA+/Kani, native-serving.yml (not opened) cargo tests, release.yml (not opened)); the sole Python in CI is pip install huggingface-hub==1.33.0 at native-serving.yml:30 (not opened). So "run CI" cannot be delegated to a workflow — the author must paste the output of pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py at the rebased tip. This also matches the automated review's single blocker. Both tests are CPU-only (same pattern as the existing test_guard_code.py:232-249), so it costs minutes, and the author's own admission that the green run predates the #509 rebase is exactly why it cannot be waived.
  2. Test hygiene at test_guard_code.py:283: _RecipeKernelOwner.__module__ is set in the class body and reassigned by plain attribute assignment, so after the test the class points at a module monkeypatch has already removed. Use monkeypatch.setattr(_RecipeKernelOwner, "__module__", module_name) (the file already has a good model of this at :212-219).
  3. Add ~6 lines pinning the direct contract, mirroring test_guard_code.py:104-127: _roundtrip_guard(owner, guard_tree_values={id(owner): owner, id(scale): scale}) then assert isinstance(restored.compiled_handle, _Missing). Today the test proves stripping only indirectly (the roundtrip succeeds); the direct assertion names the behavior and fails on main for the right reason.

One behavior change the PR body should state

The predicate's second consumer changes in kind, not just for the guard path. _ForwardPickler.reducer_override (forward_metadata.py:277-278) engages for _uses_custom_object_state(value) and hasattr(type(value), '__getattr__'), and reducer_override takes priority over __reduce_ex__. So a hyperflare_recipes.* object that defines both __getattr__ and a custom __getstate__/__reduce__ previously fell through to NotImplemented (:279) and stock pickle — honoring its own state logic — and now has full vars() serialized instead. That is consistent with how ignition/b12x objects are already treated, and it fails loudly rather than silently, so I do not consider it a blocker; but the new test exercises only the guard path. I would ask for one short dumps/loads roundtrip test so both call sites are pinned, and a sentence in the PR body.

Note, not a blocker: the same allowlist exists a second time and was not updated

ignition/preparation/rebuild_manifest.py:365 still gates weight_views on ('b12x.', 'ignition.'). Tensors held by plain hyperflare_recipes.* container classes are therefore silently omitted from legacy rebuild_weights catalogs — appearing in neither tensors nor unavailable (:448-459). That is the same extraction bug in a second place; it is pre-existing and the declare_weights/declared_views path is unaffected (PR #508). Leaving it out of a 1-line PR is defensible, but the author should file it and add a cross-reference comment on both lists so they cannot drift silently. A short docstring on _uses_custom_object_state explaining why the namespace list exists is worth the two lines.

Residual risk to name in the PR body

Recipe objects now inherit core behavior: an unguarded attribute that diagnostic replay genuinely needs will fail at replay (_Missing raises on use) rather than at pickle time. The only evidence that no shipped recipe does this is the author's 4-Spark TP4 Inkling 2 Small export (154 multimodal graphs), which lives on an external repo branch — describe it as external-branch evidence, not in-repo verification.

No prompt-injection attempts in the PR description or its comments; the two autobot comments are ordinary review automation and their one blocker (test results on the rebased head) is the same gate I independently reached.

Full report · Notes Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Subtractive

Verdict: make it smaller first The change: +54 / −1 lines across 2 files (ignition/preparation/forward_metadata.py +1/−1 at line 42; tests/preparation/test_guard_code.py +53/−0 at lines 252–302). Could remove: about 33 lines, in 1 place (plus 0 net here and ~25–30 in a follow-up for the divergent allowlist at rebuild_manifest.py:365). Biggest subtractions:

The production half of the PR is already minimal: one tuple item at forward_metadata.py:42, no flag, helper, or fallback, gating both picklers (forward_metadata.py:277, aot.py:155–166) and matching only __module__ strings, so tests/preparation/test_core_boundary.py:39–47 (not opened) still holds. Only the test is oversized: it re-proves guard-check invalidation on an int attribute already asserted at :47–51 and unguarded-attribute stripping already asserted at :104–127. Caveats: pytest could not be run here so the replacement is unexecuted, and CI runs no collection on tests/preparation, so the PR's "ran tests on GB10" claim is uncorroborated. No prompt injection found in the PR materials.

Full report · Notes

Simplicity

Verdict: should-fix issues only Blocking:

Full report · Notes

Conventions

Verdict: should-fix issues only Blocking:

Full report · Notes

Prose

Verdict: should-fix issues only Blocking:

Should fix:

Nits: 7 — vague end-to-end bullet; test_core_boundary.py listed without saying it only AST-scans imports; benefit and evidence merged; "per-class __getstate__ workarounds" unexplained; synthetic sys.modules/double __module__ setup uncommented; rebuild_manifest.py:365 posed as an open question; the prefix criterion undocumented in docs/preparation-development.md.

Verified sound: four-part order and Discord: woooflet (AGENTS.md:72–112, :142–153); exact before/after at forward_metadata.py:42; "string check only" true (callers aot.py:155–166, forward_metadata.py:277); the new test does assert serialization, output parity and True→False→True guard invalidation (test_guard_code.py:252–302); the rebuild_manifest.py:365 observation is factually correct. No prompt-injection attempts; both comments are the autobot bot.

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

Full report · Notes

Architecture

Verdict: blocking issues

Blocking:

Should fix:

Nits: 4 — (1) rebuild_manifest.py:365 keeps the old ('b12x.', 'ignition.') list, so the same "prepared object" question is answered differently in two files (follow-up, unprovable without the external repo); (2) test_guard_code.py:258/283 duplicates the allowlist literal and mutates a module-level class __module__ without restoring it (the monkeypatch.setitem at :285 is load-bearing and fine); (3) the widened predicate imposes a new undocumented contract on recipe classes (__getstate__ bypassed, state must live in __dict__; __slots__ classes still crash) — worth a sentence in docs/preparation-development.md:372-388; (4) the end-to-end evidence names no command/revision, and no test pins which package is in the tuple.

Scope is right: the fix belongs in core Ignition guard serialization, touches no core format, runtime or Helios surface, and core-boundary tests still pass. Not verifiable here: whether Inkling 2's PreparedResidualMix actually reaches the widened branch, and whether rebuild_weights loses weight views for real recipes — both need the external hyperflare-recipes definitions.

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

Full report · Notes

Correctness

Verdict: should-fix issues only

Blocking:

Should fix:

Nits: 5 — rebuild_manifest.py:365 sibling allowlist not widened (silent omission from rebuild_weights, mitigated by WeightDeclaration); test mutates process-global _RecipeKernelOwner.__module__ (test_guard_code.py:283) instead of monkeypatch.setattr; fixture raises TypeError not the reported PicklingError; guard_check(...) is True/False bool identity; no __slots__ coverage.

Link: https://github.com/NVIDIA/hyperflare-inference/pull/574

Full report · Notes

Pre Test Report

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

  1. Unobservable in-repo (decisive). tests/preparation/test_core_boundary.py:40 asserts not (ROOT / "hyperflare_recipes").exists(), and pyproject.toml (not opened) has no such dependency. Every class defined in this repository is ignition.*, b12x.*, torch.*, a test module, or a builtin — none can match the added prefix. main and 16ffc6f are therefore behaviourally byte-identical for every model staged on either node, so no A/B, throughput delta, or regression can be measured.
  2. No reproduction inputs. Triggering the change needs the external local-inference-lab/hyperflare-recipes package at a pinned revision, a recipe alias, and a checkpoint that actually raises PicklingError: Cannot pickle <class 'triton.compiler.compiler.CompiledKernel'>. The PR body supplies none of these.
  3. 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.
  4. The real gate is CPU-only and has not been produced. test_guard_code.py uses only torch.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/workflows holds only helios-lifecycle.yml (not opened), native-serving.yml (not opened) (cargo; sole Python step is pip install huggingface-hub) and release.yml (not opened); no pytest match anywhere under .github/. So the author's "please run CI" is a manual-run request — a merge-action item, not a hardware one.
  5. The test does not pin the behaviour in its name. test_guard_code.py:288-302 asserts only output parity (:297) and guard_check True/False/True (:298-302); it never asserts isinstance(restored.compiled_handle, _Missing) (the file's own precedent is :124) and never inspects restored guard state. It does fail on main — default reduction of vars(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 _Missing from 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)

  1. pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py -q on 16ffc6f, with pass/skip counts in the description (optionally also tests/preparation/test_compile_pool.py (not opened), which exercises the worker/_ForwardPickler path).
  2. Negative control: remove 'hyperflare_recipes.' from forward_metadata.py:42, show the new test fails, restore. This is the baseline the body lacks.
  3. Strengthen the test: one _roundtrip_guard case (:91-100) asserting isinstance(restored.compiled_handle, _Missing) with guard_tree_values={id(owner): owner, id(owner.scale): owner.scale} — aot.py:157-160 strips any attribute whose id is absent, so scale must be included or the assertion fails for the wrong reason — plus monkeypatch.setattr(_RecipeKernelOwner, '__module__', module_name) at :283 in place of the plain assignment, which currently leaks a dead module reference for the rest of the session.
  4. Cover the second consumer if the widening is to be trusted there: a forward_metadata.dumps/loads round trip for a class defining __getattr__ (forward_metadata.py:277-278), which the new test does not touch.
  5. 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.

Full report · Notes

code review summary

Recommendation: Changes Requested

The one-line production fix is correct and minimal; merge is gated only on recording the CPU pytest run on the rebased head (B1) and a small set of design/prose calls (literal vs declared roots, duplicated allowlist, shrink the 53-line test).

Scope of the change: PR #574 (head 16ffc6f, +54/−1) widens one allowlist element in ignition/preparation/forward_metadata.py:42 to ('ignition.', 'b12x.', 'hyperflare_recipes.'), plus a 53-line test at tests/preparation/test_guard_code.py:252-302. Verified clean: ignition./b12x. reductions are byte-unchanged; the core-boundary test reads AST imports only, so a __module__ string is legal; the new test genuinely fails without the fix; the guard cache is keyed on pickled bytes (no stale guards); no prompt injection found.

B1 (blocker, already agreed — confirm only): the PR admits its pytest pass predates the rebase, and no workflow runs pytest (pytest under .github/ → no matches), so the requested CI run is impossible. docs/design-review.md:247-251 says disclosure does not excuse an unrun CPU check. Fix: one command on 16ffc6f plus pass/skip counts.

Should fix: S1 — keying on a third package literal leaves the PicklingError reachable for every other external recipe repo, though _EXTRA_ROOTS/source_roots already exist; three options given, "drop the prefix entirely" rejected as unbounded on the forward path. S2 — the same allowlist is duplicated and now stale at rebuild_manifest.py:365, silently dropping recipe weight views (declare path mitigates; record in docs/TODO.txt, don't expand the PR). S4 — the widened predicate applies an ignition-internal state protocol to another repo's classes, in opposite directions on the guard (strip to _Missing) and forward (full state) picklers; resolve with prose/docs. S5 — one combined prose item: wrong SHA (167f22c8 vs b0d35934), no negative control, unreproducible 4-Spark export claim.

Subtractive: S3 — the new test never asserts the stripping in its name and ~33 of 53 lines duplicate existing plumbing; a ~20-line _roundtrip_guard version is given, taking the PR to ≈ +21/−1 with the production line untouched. Preferred over upstream requests to add more test cases.

Nits: TypeError vs PicklingError signature; the __getattr__ forward branch is untested.

Open: whether any real recipe class uses __slots__/__setstate__, and whether an undeclared hyperflare_recipes weight container reaches weight_views — both need the external repository.

Full report · Notes

Final review

Recommendation: Changes Requested

The one-line fix in ignition/preparation/forward_metadata.py:42 is minimal, correct, and preserves the core boundary, but the runnable CPU tests have not been executed on the rebased head (16ffc6f) and repository CI does not run pytest. Run pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py on 16ffc6f, record the results in the PR description (removing the stale Caveats / "please run CI" request), and this PR is ready to merge.


Blockers

  1. Runnable CPU tests were not executed on the rebased head (16ffc6f), and repository CI cannot run them — tests/preparation/test_guard_code.py:277-302, tests/preparation/test_core_boundary.py, .github/workflows/native-serving.yml (not opened), .github/workflows/helios-lifecycle.yml (not opened), .github/workflows/release.yml (not opened), docs/design-review.md:180-186,247-251.
    • Verified evidence: The PR's Caveats state that the unit tests ran prior to rebasing onto #509's extraction of _uses_custom_object_state and ask CI to run test_guard_code.py and test_core_boundary.py. None of the workflows under .github/workflows/ invoke pytest (native-serving.yml runs Cargo tests plus prepare_templates.py (not opened), helios-lifecycle.yml runs TLA+/Kani, and release.yml builds/packages the native CLI). Both tests are CPU-only (test_guard_code.py uses CPU tensors and test_core_boundary.py is pure AST/text scanning).
    • Rule: docs/design-review.md:180-186 makes pytest on affected tests/preparation suites a mandatory layer-1 check, and :247-251 states: "Disclosure does not excuse skipping runnable CPU checks. … Leaving an applicable crate test … unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable."
    • Note on Caveats SHA: The Caveats also cite 167f22c8 as #509's extraction of _uses_custom_object_state, but 167f22c8 is ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570); #509's extraction commit on ignition/preparation/forward_metadata.py is b0d35934.
    • Fix: Run pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py on 16ffc6f, record the pass/skip counts in the PR description, and remove the stale Caveats / "please run CI" note (or fix the #509 SHA to b0d35934 if keeping the rebase note).

Should Fix

None.


Subtract / Simplify

None.


Nits

  1. Unreverted __module__ mutation and dead class attribute in the new test — tests/preparation/test_guard_code.py:258,281-285.
    • Line 258 sets _RecipeKernelOwner.__module__ = "hyperflare_recipes.components.synthetic", which line 283 immediately overwrites via plain assignment (_RecipeKernelOwner.__module__ = module_name) without monkeypatch.setattr. After monkeypatch removes module_name from sys.modules on teardown, _RecipeKernelOwner.__module__ still points to the removed module name.
    • Suggested cleanup: Set module_name = _RecipeKernelOwner.__module__ (matching _IgnitionInt at test_guard_code.py:139-140,212-214) or use monkeypatch.setattr(_RecipeKernelOwner, "__module__", module_name). Optionally add a direct _roundtrip_guard assertion (assert isinstance(restored.compiled_handle, _Missing), mirroring :118-124) alongside the end-to-end aot_compile check.
  2. PR description omits the second _uses_custom_object_state consumer — ignition/preparation/forward_metadata.py:277-278.
    • _uses_custom_object_state is shared between _GuardPickler.reducer_override (ignition/preparation/aot.py:157-165) and _ForwardPickler.reducer_override (ignition/preparation/forward_metadata.py:277-278, gated on hasattr(type(value), '__getattr__')). Adding 'hyperflare_recipes.' restores pre-extraction parity for __getattr__-defining recipe objects across compiler-worker IPC as well; a one-sentence mention in the PR description (and optionally a short forward_metadata.dumps/loads check) would document both call sites.

Verified passes


Dropped on verification

Full report Decision to Test: no (100%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

Apply Labels

Applied: +triage:review, +bug, +area:preparation, +model:inkling-small, +priority:P2

Manual review adjustment: +priority:P2

Classification Confidence

Threshold: 65%

Triage

Priority

Type

Area

Model

explore

Author: fordbmorris (external contributor, FIRST_TIME_CONTRIBUTOR; Discord: woooflet) Motivation: When recipes moved into the external hyperflare_recipes package, the guard pickler's "object carries unpicklable state" rule kept only the old ignition./b12x. prefixes, so exporting such objects raised PicklingError. This PR adds the missing prefix. Scale: +54 / −1 lines in 2 files Proposal:

Full report · Notes

Classify intake

Selected: triage:review, priority:P2, bug, area:preparation

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

No label changes

Subtraction and simplicity

Subtraction/Simplicity review of PR #574 (head acbab08, +54/−1 in 2 files). The production diff is already lean — one tuple element, no new flags, knobs, wrappers or fallback branches, and the predicate's other consumer (aot.py:155-166) reuses it unchanged. Four simplification findings, all in the test file or in pre-existing duplication the PR extends.

  1. Duplicate prefix allowlist, already divergent — forward_metadata.py:42 has ('ignition.', 'b12x.', 'hyperflare_recipes.') while rebuild_manifest.py:365 has ('b12x.', 'ignition.'); these are the only two occurrences in the repo and they differ in membership and order. Hoist one constant, e.g. OBJECT_STATE_PREFIXES, and import it at both sites — zero net lines, removes the divergence the PR body only discloses.
  2. Hardcoded external package name vs the repo's declared-root convention (source_identity.py:17-25 source_roots/_EXTRA_ROOTS, bound at cli/__init__.py:364-370; declare_container_fields at rebuild_manifest.py:41-61; AGENTS.md:382-396). Alternative: one object_state_prefixes=() kwarg on main feeding a ContextVar. Decision for maintainers, not a blocker — the boundary is satisfied literally (string compare, no import).
  3. New test duplicates its neighbour and bypasses the file's own helper — test_guard_code.py:287-302 repeats :232-249, and three support classes (:252-274) exist to reach one assertion, while _roundtrip_guard (:91-100, used 11×) goes unused. The regression collapses to ~4 lines through that helper; ~40 of the 53 added lines are removable.
  4. Dead assignment + leaked mutation — :258 __module__ = "hyperflare_recipes.components.synthetic" is overwritten at :283 and that module is never created (delete it); :283 should be monkeypatch.setattr(...) so the class mutation is restored.

Non-findings: the local import types matches the file's existing pattern; the synthetic-module technique correctly avoids the AST core-boundary scan.

Open questions: do maintainers want the hyperflare_recipes. literal in core at all, or a declared root that also fixes rebuild_manifest.py:365; and is the end-to-end compile path deliberate, which decides how far S3 collapses.

Full report · Notes

Correctness and contracts

Reviewed PR #574 at head acbab08 (+54/−1 in 2 files) under the Correctness, Contracts & System-Level Consequences lens.

Open: whether maintainers want the prefix in core at all versus a declared root; whether the _ForwardPickler effect was intended; the recipe package's __setstate__/__slots__ usage is not inspectable from this repo; no CI run on acbab08 (first-time contributor needs approval).

Full report · Notes

Re-review

Recommendation: Changes Requested

The 1-line production fix in ignition/preparation/forward_metadata.py:42 is minimal, sound across spawned CompilePool workers, and restores pre-split guard-pickling parity for classes extracted into hyperflare_recipes without importing the package or violating tests/preparation/test_core_boundary.py. However, the single blocker from the previous review rounds remains unresolved on head acbab08: the latest rebase comment recorded only python3 -m py_compile (syntax check only), and neither a local pytest run nor an approved .github/workflows/python-cpu.yml (not opened) CI run has been recorded on acbab08. Once pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py is confirmed green on acbab08 (locally or via maintainer-approved CI), this PR is ready to merge.

Merge Risk

Level: Low

Walkthrough

Pre-merge Checks

Blockers

  1. No pytest verification recorded on head acbab08 (tests/preparation/test_guard_code.py:277-302, tests/preparation/test_core_boundary.py:39-58, docs/design-review.md:106-115).
    • Verified state: The PR description's Caveats note that the original pytest run predated the rebase onto #509, and the 2026-12-02 update on acbab08 ran only python3 -m py_compile, which checks syntax without importing forward_metadata.py or executing the new test. Merged #608 has since added .github/workflows/python-cpu.yml:30-33 (not opened) (CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/ -q), but first-time-contributor workflows require maintainer approval and no run is recorded on acbab08.
    • Concrete fix: Either run CUDA_VISIBLE_DEVICES="" pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py on acbab08 and post the passing output in the PR description (removing the stale Caveats block), or have a maintainer approve .github/workflows/python-cpu.yml (not opened) on acbab08 and confirm green before merging.

Should Fix

None.

Subtract / Simplify

  1. Remove the redundant __module__ reassignment that leaks class state (tests/preparation/test_guard_code.py:258,281-285).
    • Line 258 sets __module__ = "hyperflare_recipes.components.synthetic", then line 283 overwrites _RecipeKernelOwner.__module__ = "hyperflare_recipes.components._synthetic_guard_test" outside monkeypatch, leaving the class pointing at a module monkeypatch removes on teardown. Following the existing _IgnitionInt pattern at tests/preparation/test_guard_code.py:139-140,212-214, set module_name = _RecipeKernelOwner.__module__ and delete line 283 (_RecipeKernelOwner.__module__ = module_name).

Nits

  1. Incorrect commit SHA in PR description Caveats: 167f22c8 is #570 (ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle); #509's extraction of _uses_custom_object_state landed in b0d35934. Update or remove when clearing the stale Caveats block.
  2. PR description completeness: Optionally mention that _uses_custom_object_state is also consumed by _ForwardPickler.reducer_override (ignition/preparation/forward_metadata.py:282), restoring pre-split parity for hyperflare_recipes.* objects with __getattr__ as well as AOT guard serialization.

Dropped on verification

Full report Decision to Test: no (99%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes