#1 [high] Change: the diff itself (2 files, +54/-1)
PR #574, head 628f361 (author woooflet / Discord woooflet), base main, 2 files, +54/-1.
-
ignition/preparation/forward_metadata.py:39-45
_uses_custom_object_state— tuple extended: before:type(value).__module__.startswith(('ignition.', 'b12x.'))after:type(value).__module__.startswith(('ignition.', 'b12x.', 'hyperflare_recipes.'))Rest of predicate unchanged: hasattr(value,'dict'), not inspect.isclass, not isinstance(value, _NON_OBJECT_NEW_TYPES). -
tests/preparation/test_guard_code.py:250-302 — new
test_guard_pickler_strips_unguarded_attributes_from_recipe_objects, plus module-level helpers_UnpicklableHandle(its__reduce__raises TypeError),_RecipeKernelOwner(__module__ = "hyperflare_recipes.components.synthetic", holds guardedscale+compiled_handle),_RecipeForward. The test registers a synthetic modulehyperflare_recipes.components._synthetic_guard_testinsys.modulesvia monkeypatch, re-points_RecipeKernelOwner.__module__to it, compiles_executewithGraphModuleSerializableCallableunder_guard_serialization(), serializes (type(compiled).serialize(compiled).serialized_data), deserializes, asserts output parity (torch.full((2,), 3.0)), guard_check True, then scale=5 -> False, scale=3 -> True. Note: the test never imports hyperflare_recipes (package does not exist in this repo — tests/preparation/test_core_boundary.py:40 assertsnot (ROOT/"hyperflare_recipes").exists()and :50-58 forbids tests importing hyperflare_recipes).
#2 [high] Change: the predicate is shared — reach beyond AOT guards
_uses_custom_object_state (ignition/preparation/forward_metadata.py:39-45) has three call sites at head:
- ignition/preparation/aot.py:155-165 —
_GuardPickler.reducer_override: builds per-attribute state, replaces any attribute not inself.guard_tree_valueswith_Missing('unguarded attribute'), reconstructs via_guard_object(type(obj))(aot.py:98-99object.__new__), with a special case forb12x.preparation.device.DetectedDevice->restore_prepared_device. - ignition/preparation/forward_metadata.py:277-278 —
_ForwardPickler.reducer_override:if _uses_custom_object_state(value) and hasattr(type(value), '__getattr__'): return _object, (type(value),), dict(vars(value)), None, None, _set_state.
So the one-line change also alters forward-metadata (worker IPC) pickling for hyperflare_recipes.* classes that define __getattr__: they are now reconstructed via object.__new__ + full vars() instead of default pickling. PR title/description only claims the AOT guard-serialization effect; this second effect is undeclared (narrow, since it requires a class-level __getattr__).
Predicate is deliberately string-only, so core ignition never imports hyperflare_recipes (cf. AGENTS.md:392-393 "Core ignition must never import hyperflare_recipes" and tests/preparation/test_core_boundary.py:39-47).
#3 [high] Why: the reported PicklingError and the stale module allowlist
Reported problem (PR #574 body, https://github.com/NVIDIA/hyperflare-inference/pull/574): during AOT forward compilation _GuardPickler raises PicklingError: Can't pickle <class 'triton.compiler.compiler.CompiledKernel'> when a non-nn.Module prepared object defined under hyperflare_recipes.* keeps an unguarded compiled handle. Named concrete case: PreparedResidualMix in Inkling 2, being ported from ignition.recipes.inkling2 to hyperflare_recipes.recipes.inkling2.
Cause: _uses_custom_object_state's module-prefix allowlist ('ignition.', 'b12x.') predates the recipe extraction, so hyperflare_recipes.* objects fall through to default pickling in _GuardPickler (aot.py:166 return super().reducer_override(obj)), which tries to pickle the whole __dict__ including the Triton CompiledKernel.
How it got stale: the predicate was introduced/expanded for ignition.*/b12x.* in #474/#509 (see related-work note) while recipes were being moved out of ignition/recipes/ on 2026-11-22..27 (commits da037284, 17bb3c4a, 4d957175, 568aeca0). No linked issue: search_items for "hyperflare_recipes pickling guard" and "aot_forward guards PicklingError Triton kernel" (issues) return only this PR — the report is single-sourced from the PR body.
Repo-visible corroboration that the module boundary is real: tests/preparation/test_core_boundary.py:39-58 forbids ignition/ and tests/ from importing hyperflare_recipes; AGENTS.md:379-393 and docs/model-development.md:3-9 put official recipes in the external local-inference-lab/hyperflare-recipes repo.
#4 [high] Related work: #509 created the line, #474 its predecessor, #388/#129 precedent
- #509 (merged 2026-11-25, lukealonso, +826-33, "Fix Ignition storage lowering, guard pickling, and compiler worker startup") is the PR that created the code this PR edits: it added/centralized
_uses_custom_object_stateinignition/preparation/forward_metadata.py(shared by_GuardPicklerand_ForwardPickler) and its tuple read('ignition.', 'b12x.'). #574 is a direct follow-up on that line: ignition/preparation/forward_metadata.py:42. #509 replaced #474. - #474 (closed 2026-11-25, original-el8, +459-20) is the earlier version; its review told the author to "share one predicate with aot.py:157-161", which is how the predicate ended up shared and centralized. #474's version of the predicate also covered only
ignition./b12x.. - #509's own Autobot review (in #509 discussion) still lists open questions about external recipe packages, e.g. "whether
hyperflare-recipesneedscompile_options" — i.e. reviewers already treat the external recipe package as a consumer of these preparation paths. - #388 (closed, voipmonitor, "Keep CUDA driver streams out of AOT forward metadata") and #129 (merged, original-el8, "Fix complete-copy ordering, CuTe tensor pickling...") are the same genre of fix in the same file: extend the pickler with one more class/module of process-local handle. Precedent, not overlap.
- #427 (closed, original-el8) cites #509's guard/metadata pickling fixes as a dependency; it is a DeepSeek V4.1 export PR, no direct overlap.
- No competing or superseding PR: items_touching forward_metadata.py and test_guard_code.py return only #574, #509, #129 (and #509 for the test file).
- Not fixed here (asymmetry):
ignition/preparation/rebuild_manifest.py:365still usestype(value).__module__.startswith(('b12x.', 'ignition.'))to decide which objects to walk for weight views, sohyperflare_recipes.*containers are still not traversed there. Same class of stale allowlist, different consumer; #574 touches only the pickler.
#5 [high] Process/activity: no Python CI exists, and the cited extraction commit is misidentified
- No CI runs Python tests at all.
.github/workflows/contains onlyhelios-lifecycle.yml(TLA+/Kani),native-serving.yml(cargo build/test + a frontend fixture script),release.yml. Searched forpytestin.github/andscripts/: no matches. AGENTS.md:294-307 tells contributors to run.venv/bin/python -m pytest tests/cli -qlocally. So the PR's closing request — "please run CI ontests/preparation/test_guard_code.pyandtests/preparation/test_core_boundary.pyto confirm on the rebased tip" — cannot be satisfied by this repository's CI; those suites are run by hand. Orientation packet also says "CI on the head commit: no checks". - The branch was rebased onto current
main(single commit 628f3619, base commit chain includes 167f22c8 and later), andgit logshows no commits since 167f22c8 touching either changed file (orientation packet) — main's copy of the predicate at forward_metadata.py:42 is still the two-element tuple, so the diff applies cleanly on top of #509. - Discrepancy in the PR's own citation: the caveat names
167f22c8as "#509's extraction of_uses_custom_object_stateintoignition/preparation/forward_metadata.py". On this repository167f22c8is "ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570)". The #509 work that moved the predicate into forward_metadata.py landed asb0d35934(2026-11-24, "Fix Ignition storage lowering, guard pickling, and compiler worker startup (#509)"), which is the last commit touching forward_metadata.py before this PR. The rebase itself is real; only the cited hash/message is wrong. - The PR's own commit message contains
Signed-off-by(search_history for "Signed-off-by" matches 628f3619), satisfying CONTRIBUTING.md:9-19. - Newer than the PR: commits 2026-11-28 (e.g. 3e2fcd27 gc-phase perf work in ignition/preparation, 7745deea) do not touch
_uses_custom_object_state, so no conflict.
#7 [high] Project fit: respects the core boundary literally, tensions with "the engine is the recipe"
Where it lines up:
- AGENTS.md:379-393 and docs/model-development.md:3-9: official recipes and reusable execution components live in the external
local-inference-lab/hyperflare-recipespackage (hyperflare_recipes/recipes/,hyperflare_recipes/components/); "Coreignitionmust never importhyperflare_recipes". The PR respects this: it matches on the__module__string only, so nothing is imported; the new test registers a synthetic module insys.modulesinstead of importing the package (whichtests/preparation/test_core_boundary.py:50-58forbids for everything excepttest_core_boundary.py/test_source_identity.py). - AGENTS.md:194-199 ("Keep each PR focused on one coherent outcome", "Tests must exercise the affected behavior") — this is one predicate line plus one behavioural test, i.e. the split-out shape #509's review asked for ("Split into 3–4 PRs").
- docs/cli-design.md:19-26: "The engine is the recipe. Per-model knowledge lives in external recipe packages ..., never in core
ignition." A hardcoded package-name prefix in coreignitionis the counter-pressure: the module allowlist (ignition.,b12x., nowhyperflare_recipes.) is knowledge about which packages produce prepared objects, in shared code. Note core already namesb12x.and has ab12xdependency, buthyperflare_recipesis a separate repository, so the allowlist now encodes an external project's name. That is the tension a maintainer would have to rule on; nothing in the charter directly forbids a name match, and AGENTS.md:188-193 rejects "extension points/config switches without a concrete requirement" (no new switch is added here). - There is an established, explicitly parameterized way for external recipe packages to reach core preparation:
ignition.cli.main(..., recipes=..., source_roots=...)(ignition/cli/init.py:367-373; ignition/preparation/source_identity.py:17-49; test: tests/cli/test_recipe_injection.py:78-95). By that precedent, the maintainers' preferred integration is a caller-supplied declaration, not a name check in core — worth noting as the alternative shape, without judging it. - Roadmap/docs: nothing in the roadmap or docs mentions guard pickling or
_uses_custom_object_state(searched docs/ for_uses_custom_object_state|guard serializ|GuardPickler|unguarded→ no matches). docs/preparation-development.md:377-388 describes retaining "execution guards" and releasing "compiled Python wrapper and guards", so guard serialization is a documented preparation concern, but the module-allowlist rule is undocumented. - Non-goals: no new model/format/hardware support; no captured-graph op contract change (so no owner approval requirement); no core-format change.
#8 [high] Claims vs evidence: fix and boundary verified in code; GPU end-to-end run unverifiable
Claims and what backs them:
- "Fix:
aot_forwardguard serialization no longer raises PicklingError forhyperflare_recipes.*prepared objects holding an unguarded CompiledKernel." — Verified by reading the code path:_GuardPickler.reducer_override(ignition/preparation/aot.py:118-166) now matches such objects at line 157, buildsstatereplacing every attribute whoseidis not inself.guard_tree_valueswith_Missing('unguarded attribute')(lines 158-160), and reconstructs via_guard_object(aot.py:98-99,object.__new__). So an unpicklable attribute value is never pickled. Backed by the new unit test, which fails without the change (it would reachsuper().reducer_overrideand pickle_UnpicklableHandle, whose__reduce__raises TypeError). - "Guarded attributes keep their guard checks (no weakened guards)." — Backed in-test:
guard_checkTrue → False afterscale = 5→ True afterscale = 3. - "Core
ignitionnever importshyperflare_recipes;test_core_boundary.pystays satisfied." — Backed by construction (string prefix comparison) and by the boundary test's AST scan (tests/preparation/test_core_boundary.py:39-47, assert at :40 that the directory does not even exist). - "Unit & boundary tests passed on ARM64 GB10, Python 3.12.3, PyTorch 2.14.1+cu132, Triton 3.8.0." — Self-reported, not reproducible from CI (no pytest workflow exists; see process note). The author flags that the run predated the rebase and asks for CI to confirm on the rebased tip.
- "End-to-end: 4-Spark TP4, 48-layer Inkling 2 Small, 154 multimodal graphs, no per-class
__getstate__workarounds." — Unverifiable here: the recipe lives in the externalhyperflare-repo(local-inference-lab/hyperflare-recipes), the run left no logs/commands in the PR, and the PR gives no reproduction command or config (AGENTS.md:103-112 asks for exactly that). It is also the only evidence that the fix is needed in practice, since the in-repo test uses a synthetic class. - Descriptions of scope — "No runtime, core-format, or Helios behavior changes": accurate for the two changed files; nothing in helios/, heliopause/, selene/, or the core format is touched. But it omits the
_ForwardPicklereffect (see the undeclared-effect note). - Caveat honesty: the PR states the rebase gap explicitly; the cited commit hash is wrong (see process note), but the substance (a rebase happened; the predicate now lives in forward_metadata.py) checks out on main.
#6 [medium] People & Community: first-time contributor, three same-day PRs, no comments or reviews
- Author: fordbmorris, GitHub association with the repo: NONE (not a maintainer/collaborator/priority contributor). Charter lists priority contributors as @voipmonitor, @original-el8, @lukealonso — he is not among them.
- Three PRs in the last 180 days, all opened the same day, 2026-11-28, none merged: #574 (this one, ignition guard pickling), #577 (helios/native/roce_proxy.c ring window, +4-1, benchmarks on 4× DGX Spark), #575 (TmlOutput JSON tool arguments). No prior reviewed/merged history in this repo → no track record for reviewers to weigh, and all three arrived as a batch.
- Discord line present (
Discord: woooflet), matching AGENTS.md:142-153. Commit carries Signed-off-by (CONTRIBUTING.md:9-19). - The areas he touches are maintained by others: last 180 days in
ignition/preparation— Luke Alonso 155 commits, Martin Vit 52, Eugene Rakhmatulin 36;tests/preparation— Luke Alonso 203, Martin Vit 34, jasonc 23. The specific fileignition/preparation/forward_metadata.pywas last touched by Luke Alonso (#509, b0d35934), and before that fa158284, fa0eadad (Jason Cook, #129). - Who has engaged so far: nobody.
pr_comments→ "No comments";read_item(574)→ "Discussion (0)"; Reviews: none. No reactions. - The claim of end-to-end verification mentions "4-Spark TP4 ... Inkling 2 Small" — the same 4-Spark GB10 hardware cohort described in #577, and the inkling2 recipe lineage traces to Nero's #433 and Jason Cook's #304, both in-repo recipes that have since moved to
hyperflare_recipes.
#9 [medium] Related work: the same allowlist exists again in rebuild_manifest.py weight traversal
Second lifetime of the same allowlist in shared code: ignition/preparation/rebuild_manifest.py:338-374 weight_views() walks object graphs for exported weight metadata and only descends into objects whose type is a torch.nn.Module, a dataclass, or type(value).__module__.startswith(('b12x.', 'ignition.')) (line 365). Any hyperflare_recipes.* container type that is neither an nn.Module nor a dataclass is therefore reported as unavailable in the weight catalog rather than traversed (module docstring rebuild_manifest.py:10-15: objects without a declared classification are reported unavailable instead of being treated as weights). This PR does not touch that line and its description does not mention the sibling predicate, so the stale-allowlist question reappears in a second consumer with different (weight-payload) consequences. docs/preparation-development.md:37-43 says rebuild_manifest.from_plan builds PreparationManifest, and Heliopause still accepts rebuild_manifest for legacy cores (heliopause/src/export/weight_reuse.rs:234-247), so this file is live code. Confidence: read from source; whether a real recipe hits it is unverified.
#11 [medium] Leads checked and dismissed: #577/#575/#576/#516/#512 and the title-word matches
Orientation-packet leads I checked and judged not relevant (so the report can dispose of them):
- #577 (same author, open) roce_proxy.c ring window: no shared code; relevant only as evidence of the author's shared 4-Spark GB10 hardware cohort, which matches the hardware named in #574's end-to-end claim.
- #575 (same author, open) TmlOutput JSON tool arguments: no shared code; same-day batch context only.
- #576 (same author, open) Helios/RoCE thread pinning: no shared code; same-day batch context only.
- #516 (open)
--kv-cache-formatCLI/planning: no shared code with the pickler. - #512 (closed) forward compilation/warmup progress: touched
test_guard_code.pyper the packet, butitems_touchingon that file at head returns only #574 and #509, so it is not a live overlap. - #484, #497, #545, #546, #543, #427, #129, #388: title-word matches only. #129 (merged, CuTe tensor pickling, same file) and #388 (closed, CUDA driver streams in AOT metadata, same file) are the same kind of one-handle fix and count as precedent; #543/#545/#546/#484/#497/#516 are unrelated.
- #559/#558 merges listed under "recent activity" touch
ignition/preparationbroadly but not this predicate.
#10 [low] Community/activity: nothing found — zero engagement, no conflicts, no injection
Nothing found on either count, recorded so the report can say so with a citation:
- Community interest: zero.
pr_commentsreturns "No comments";read_item(574)shows "Discussion (0)"; the orientation packet shows no reviews, no labels, no reactions, and (unlike #474/#509) no Autobot case-file comment. Nobody has engaged. - Recent activity reversal/conflict: none. The area's recent commits (2026-11-26..28: f377dc85 "Remove joint kernel tuning and grouped AOT forward compilation (#543)", 3e2fcd27 gc-phase perf work, d3d0e783 planning/RRecipeParameters, 7745deea engram prefetch) never touch
_uses_custom_object_stateortest_guard_code.py.search_history(path=ignition/preparation/forward_metadata.py)shows this PR's commit as the first change since b0d35934 (#509, 2026-11-24);search_history(path=tests/preparation/test_guard_code.py)same. So the change builds on #509 rather than fighting anything. - Charter/roadmap: the roadmap (in-process Rust SDK #6, Engram #267, FlashInfer dependency #215) has nothing on guard pickling; docs/ contains no mention of
_uses_custom_object_state/GuardPickler(searched). So project-fit notes rest on AGENTS.md/docs rules, not roadmap items. - Prompt injection: none. The PR body, caveat, and Discord line contain no instructions to the reviewer; the only request ("please run CI on ...") is ordinary review process aimed at humans/CI.