#1 [high] Research summary
Reviewed PR #574 through the prose lens: the description, its evidence claims, the code comment/docstring prose it touches, and the rules in AGENTS.md (Required PR descriptions, §72–140; PR contact, §142–153; contribution scope, §155–199), docs/design-review.md principle 16 (§147–160) and the acknowledgment workflow, .agents/skills/repo-prose/SKILL.md (not opened), and CONTRIBUTING.md.
What holds up. The description follows the mandatory four-part order (why / what changed / claimed benefit / evidence), gives an explicit before/after for _uses_custom_object_state, keeps the Discord line (Discord: woooflet), and its factual claims about the diff check out: _uses_custom_object_state is shared by _GuardPickler (ignition/preparation/aot.py:155-166) and _ForwardPickler (ignition/preparation/forward_metadata.py:277), the changed predicate is exactly ('ignition.', 'b12x.', 'hyperflare_recipes.') at forward_metadata.py:42, and the new test at tests/preparation/test_guard_code.py:252-302 does assert serialization, output parity, and the True → False → True guard invalidation the description promises. The "Caveats" paragraph honestly discloses that the reported test run predated the rebase.
Findings recorded (no blocking prose defect). Should fix: (1) the two evidence bullets do not state a baseline/negative control — neither says the new test fails without the one-line predicate change on the rebased tip, and the CPU suite that would demonstrate it (tests/preparation/test_guard_code.py, tests/preparation/test_core_boundary.py) was not re-run at 16ffc6f, which AGENTS.md:247-251 says disclosure does not excuse for runnable CPU checks; (2) the end-to-end bullet ("Verified across 4-Spark TP4 compiled 48-layer Inkling 2 Small exports (154 multimodal graphs)") names no artifact, core, revision, or command and states no result criterion beyond "without __getstate__ workarounds", so per repo-prose (counts/versions are attributes, not identities) and AGENTS.md:103-112 it cannot support the claim it is attached to — especially since the described trigger ("when ported from ignition.recipes.inkling2 to hyperflare_recipes.recipes.inkling2") is a future state that does not exist in this repository (tests/preparation/test_core_boundary.py:41 asserts ignition/recipes is absent). (3) The description rests its architecture argument on "tests/preparation/test_core_boundary.py remains satisfied", but that test only AST-scans for imports (test_core_boundary.py:28-47) and so cannot establish the boundary rule at AGENTS.md:392-393; the prose should argue the design rather than cite a source-text check. Nits: the same module-prefix test still exists at ignition/preparation/rebuild_manifest.py:365 (not opened) without hyperflare_recipes., and the description's framing of _uses_custom_object_state as the sole site does not disclose that asymmetry; and no documentation records which packages receive custom object state (docs/preparation-development.md:377-384 is the nearest guard-serialization text), so the criterion the PR changes stays undocumented.
#2 [high] Verified: PR #574 why/what claims match the code
PR #574, "Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization", head 16ffc6f, base main, 2 files +54/-1.
Verified against the code:
- Predicate now reads
type(value).__module__.startswith(('ignition.', 'b12x.', 'hyperflare_recipes.'))at ignition/preparation/forward_metadata.py:42, exactly as described; the diff is the one-line before/after the description shows (pr_diff). _uses_custom_object_statehas two callers, both non-importing of hyperflare_recipes:- ignition/preparation/aot.py:155-166 (
_GuardPickler.reducer_override; replaces non-guard-tree attributes of such objects with_Missing('unguarded attribute'), returns_guard_object). - ignition/preparation/forward_metadata.py:277 (
_ForwardPickler, only whenhasattr(type(value), '__getattr__')). Only the class__module__string is inspected, so core ignition never importshyperflare_recipes— matches the description's claim and AGENTS.md:392-393.
- ignition/preparation/aot.py:155-166 (
- New test tests/preparation/test_guard_code.py:252-302 does what the description says: synthetic
hyperflare_recipes.components._synthetic_guard_testowner class (lines 281-285) with a guarded scalarscaleand an unpicklable_UnpicklableHandle(252-254); asserts serialization inside_guard_serialization(), deserialize, output paritytorch.full((2,), 3.0)(297), and guard invalidation True -> False -> True (298-302). - Description structure satisfies AGENTS.md:72-112 ordering (Why / What Changed / Claimed Benefit / Supporting Evidence / Caveats) and includes
Discord: woooflet(AGENTS.md:142-153). Prose lens: description is materially accurate; findings are about evidence quality, not accuracy of the before/after.
#3 [high] Should fix: evidence bullets lack a negative control and the rebased CPU run
Severity: should fix (prose/evidence, AGENTS.md:103-112 "What evidence supports those claims", docs/design-review.md:147-160 principle 16, docs/design-review.md:247-251 "Disclosure does not excuse skipping runnable CPU checks").
Where: PR description "Supporting Evidence" bullet 1 and "Caveats".
Problem: The first bullet reports a pytest run of tests/preparation/test_guard_code.py and tests/preparation/test_core_boundary.py that "passed all tests", on Python 3.12.3 / PyTorch 2.14.1+cu132 / Triton 3.8.0, and the Caveats paragraph then says that run "predated rebasing onto #509's extraction of _uses_custom_object_state into ignition/preparation/forward_metadata.py (167f22c8)" and asks for CI to confirm on the rebased tip. Two gaps:
- No baseline/negative control: nothing states that the new test fails without the one-line predicate change (i.e. that
_UnpicklableHandleactually reaches aPicklingErrorwhenhyperflare_recipes.is absent from the tuple). Without it the test could pass for an unrelated reason (for example, if the object never entered the guard tree). The test's own construction (test_guard_code.py:252-302) makes a negative control cheap: revert the tuple and rerun. - The rebased CPU run is runnable without a GPU and was not performed; the description notes it as a limitation, which AGENTS.md:247-251 says does not excuse skipping runnable CPU checks. (The 4-Spark/GB10 evidence does not cover this: the changed file moved in 167f22c8.)
Fix: state the before/after result for the new test (run on the rebased commit with and without the hyperflare_recipes. entry in the tuple), or run and report pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py at 16ffc6f and record the pass counts and skips.