#1 [high] PR 574 core facts
PR #574 (woooflet / Discord woooflet; PR author shown as fordbmorris) changes exactly one production line:
- ignition/preparation/forward_metadata.py:42
_uses_custom_object_statenow matches module prefixes ('ignition.', 'b12x.', 'hyperflare_recipes.') instead of ('ignition.', 'b12x.'). - Adds tests/preparation/test_guard_code.py test_guard_pickler_strips_unguarded_attributes_from_recipe_objects (~53 lines) using a synthetic class whose module is monkeypatched to hyperflare_recipes.components._synthetic_guard_test, compiled through torch.compile->GraphModuleSerializableCallable->aot_compile inside _guard_serialization(), then serialize/deserialize, output parity, and guard invalidation True->False->True.
Consumers of the predicate:
- ignition/preparation/aot.py:155-165 (_GuardPickler.reducer_override: replaces non-guard-tree attributes with _Missing('unguarded attribute'), reconstructs via _guard_object).
- ignition/preparation/forward_metadata.py:277-278 (_ForwardPickler: only when type has getattr). Because #509 (merged, b0d35934) moved the helper into forward_metadata.py, both picklers share it, so one line fixes both.
A near-identical prefix allowlist also exists at ignition/preparation/rebuild_manifest.py:365 (weight_views, prefixes ('b12x.', 'ignition.')) and was NOT updated by this PR — so recipe-owned weight containers under hyperflare_recipes.* are still not traversed for rebuild_weights metadata.
#2 [high] Charter + repo rules relevant to PR 574
Charter (read_charter): "Solve the right problem in the right place... Look for the smallest footprint in shared code"; "Bring real evidence... Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)"; "Keep the runtime small and model-agnostic"; "No per-model special cases or flags in shared runtime layers"; "PR descriptions: why / what changed / claimed result / evidence". AGENTS.md:165-169 (need demonstrated defect), :188-193 (reject unsupported abstractions/frameworks/extension points/fallbacks without concrete requirement — so demanding a general plugin mechanism here would itself violate the rules), :194-199 (tests must exercise behavior, not source-text checks; PR focused), :379-384 (official recipes live in local-inference-lab/hyperflare-recipes; external recipe repositories can pass their own Recipe tuples to ignition.cli.main), :385-393 (ignition/components limited to 12 Helios-ABI modules; core ignition must never import hyperflare_recipes or add plugin discovery). Boundary enforcement: tests/preparation/test_core_boundary.py:39-47 (no imports of ignition.recipes/hyperflare_recipes from ignition/*.py; AST-based, so the string prefix at forward_metadata.py:42 is legal), :50-58 (tests must not import hyperflare_recipes/qualify — the new test only registers a synthetic sys.modules entry, no import), :66-84 (Rust/heliopause must not mention recipe paths at all). Support for external recipe repos: ignition/cli/init.py:367 main(recipes=(), source_roots=()), ignition/preparation/source_identity.py:12-49 (extra roots digest), tests/cli/test_recipe_injection.py:78-98.
#3 [high] Risk + duplication analysis for PR 574
- Semantics of the change are safe w.r.t. guard strength: ignition/preparation/aot.py:157-165 keeps attributes whose id is in
self.guard_tree_valuesand only replaces the rest with_Missing('unguarded attribute'). So traced/guarded state (e.g., the scalar the test mutates) survives; only attributes Dynamo never guarded are dropped. Same treatment core ignition/b12x prepared objects already get — no guarantee is weakened. - Where the same assumption appears a second time: ignition/preparation/rebuild_manifest.py:365 (
weight_views, used by rebuild_weights_metadata for legacy plain roots) still only walks ('b12x.', 'ignition.'). Not touched by this PR; pre-existing gap from the recipes extraction, it silently omits tensors held by plain hyperflare_recipes container classes (records neither in tensors nor unavailable).declare_weights/declared_viewspath is unaffected (Mapping/Module/dataclass/CONTAINER_FIELDS). - _ForwardPickler side (forward_metadata.py:277) only engages for types defining getattr and does full-vars serialization; unhandled attrs still raise loudly, so no new silent drop there.
- Residual risk to name: recipe objects now inherit core behavior of losing unguarded attributes on restore; a recipe object that relies on an unguarded attribute during diagnostic replay would now fail at replay (_Missing raises on use) rather than at pickle time. Author's claimed 4-Spark TP4 Inkling 2 export/154-graph run is the only evidence for that, and it lives in an external repo branch.
- Test is CPU-only (same aot_compile + GraphModuleSerializableCallable pattern as test_guard_code.py:232-249) so CI can confirm the rebase cheaply; test also does not import hyperflare_recipes, only a synthetic sys.modules entry, so test_core_boundary.py:50-58 stays satisfied.
#5 [high] PR 574 final verdict
Verdict: WORTH MERGING (with changes). One production line (ignition/preparation/forward_metadata.py:42 adds 'hyperflare_recipes.' to the module-prefix tuple) + one ~53-line CPU-only test in tests/preparation/test_guard_code.py. Fix is at the right layer: after #509 (b0d35934) the predicate is shared by _GuardPickler (aot.py:155-165) and _ForwardPickler (forward_metadata.py:277-278), so one line fixes both. No import of hyperflare_recipes (string compare only) so test_core_boundary.py:39-47 stays green; test does not import hyperflare_recipes so :50-58 stays green. Guard strength unchanged (guard_tree_values members preserved, only unguarded attrs -> _Missing). Gates: (1) CI on rebased tip — author admits evidence predates rebase onto #509; (2) test hygiene: _RecipeKernelOwner.module mutated without monkeypatch at test_guard_code.py:283, add a direct _Missing assertion like :104-127; (3) docstring on _uses_custom_object_state + note that the identical allowlist at rebuild_manifest.py:365 was NOT updated (legacy rebuild_weights silently omits tensors from plain hyperflare_recipes containers — separate pre-existing gap, file as TODO, not a blocker). Rejected alternatives: per-class getstate in recipes (root-cause rule), generic plugin/extension-point registry (AGENTS.md:188-193 forbids without concrete requirement), making it general per-repo (AGENTS.md:379-384 keeps the namespace list small and explicit). Residual risk: recipe objects that need an unguarded attribute during diagnostic replay now fail at replay rather than at pickle; only evidence is an external-repo 4-Spark TP4 Inkling 2 run.
#7 [high] Repo CI runs no pytest — tests/preparation is manual only
Search for pytest|tests/preparation under .github returns no matches; the three workflows are .github/workflows/helios-lifecycle.yml (TLA+/Kani), .github/workflows/native-serving.yml (cargo test for eos/selene/helios/flare + Windows packaging), .github/workflows/release.yml (release build/publish). The only Python in native-serving.yml is python -m pip install huggingface-hub==1.33.0 at :30.
Consequence for PR #574: the "run CI on the rebased tip" gate in my verdict cannot be satisfied by a workflow run — the author must paste the manual output of pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py on 16ffc6fd. This matches the autobot review (2026-11-28 20:29) which made exactly that its single blocker. Test is CPU-only (same pattern as tests/preparation/test_guard_code.py:232-249), so it is cheap to reproduce.
#8 [high] PR 574 second-order effect: _ForwardPickler now bypasses reduce for recipe objects
_uses_custom_object_state has two consumers. The guard-side _GuardPickler.reducer_override (ignition/preparation/aot.py:155-165) is the intended target. But the second is _ForwardPickler.reducer_override at ignition/preparation/forward_metadata.py:277-278:
if _uses_custom_object_state(value) and hasattr(type(value), '__getattr__'):
return _object, (type(value),), dict(vars(value)), None, None, _set_state
Before this PR, a hyperflare_recipes.* object defining __getattr__ failed the predicate and fell through to NotImplemented (forward_metadata.py:279) → stock pickle machinery, which honors the type's own __reduce__/__getstate__. After this PR it is routed through _object + dict(vars(value)). Because reducer_override is consulted by the pickle protocol before __reduce_ex__, any recipe object that defines both __getattr__ and a custom __getstate__/__reduce__ (e.g. one that deliberately drops a CompiledKernel) now has that custom state logic bypassed, and full vars() is serialized instead. That is the same treatment ignition/b12x objects already receive, so it is consistent — but it is an untested behavior change on the dumps/loads path (tests/preparation/test_guard_code.py only exercises the guard path), and it is a small real regression risk rather than a pure no-op.
Suggested ask: one short dumps/loads roundtrip test with a hyperflare_recipes.* object (mirroring forward_metadata.py:290-300) so both call sites are pinned, plus a sentence in the PR body saying the forward-pickling path changes in kind for such types.
#4 [medium] PR 574 suggested changes
Petty-but-cheap test hygiene issues in tests/preparation/test_guard_code.py (PR 574):
_RecipeKernelOwner.__module__is set in the class body to "hyperflare_recipes.components.synthetic" and then overwritten in the test via direct attribute assignment (_RecipeKernelOwner.__module__ = module_name); monkeypatch restores sys.modules but not the class attribute, so the class is left pointing at a module that no longer exists after the test. Use monkeypatch.setattr(..., "module", ...) for the class too, or drop the class-body value.- The end-to-end test proves stripping indirectly (roundtrip succeeds). A direct assertion mirroring test_guard_code.py:104-127 (
_roundtrip_guard(owner, guard_tree_values={id(owner): owner, id(scale): scale})thenisinstance(restored.compiled_handle, _Missing)) would pin the exact contract in ~6 lines and fail on main for the right reason. - No docstring/comment added to
_uses_custom_object_state(ignition/preparation/forward_metadata.py:39-45) explaining why the namespace allowlist exists or that it must stay in sync with rebuild_manifest.py:365; docs/preparation-development.md:374-388 describes guard persistence but not which objects lose state.