Prose scratchpad · NVIDIA/hyperflare-inference #574

Raw Markdown for agents: https://autobot.eidonix.com/p/87c2abab-bfc2-43b9-adee-db5c45977f12.md

#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:

#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:

  1. No baseline/negative control: nothing states that the new test fails without the one-line predicate change (i.e. that _UnpicklableHandle actually reaches a PicklingError when hyperflare_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.
  2. 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.

#5 [high] Should fix: Caveats cites commit 167f22c8 for #509's change, but that id is a CI commit

PR #574 (head 16ffc6f) description, Caveats: "Original unit tests ran prior to rebasing onto #509's extraction of _uses_custom_object_state (167f22c8)".

Verified wrong: search_history path=ignition/preparation/forward_metadata.py lists the file's commits as 16ffc6fd (PR head) then b0d35934 "Fix Ignition storage lowering, guard pickling, and compiler worker startup (#509)" then fa158284 … — so #509's change to this file landed in b0d35934, not 167f22c8, and 167f22c8 does not appear in the file's or aot.py's history. search_history path=.github/workflows shows 167f22c8 = "ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570)" (2026-11-28), i.e. the pull request's base commit, not the extraction. The orientation packet also names 167f22c as the branch point.

Why it matters: the Caveats paragraph is the only statement of which revision the reported test run predates; a reviewer following the id lands on a workflow commit, so the claim cannot be checked. Violates AGENTS.md:122-128 ("Resolve references where they are needed"; "Replace phrases … with the relevant settings or a precise reference") and docs/design-review.md:147-160 ("Reject unexplained references and unsupported claims in all changed prose"). repo-prose SKILL.md:20-21 asks for the durable identifier (revision) on first reference.

Fix: cite b0d35934 (or "#509, merged as b0d35934") for the extraction, or just say the reported run predates the head commit and give the result at 16ffc6f.

#6 [high] Should fix (addition): "please run CI on test_guard_code.py" is unactionable — no workflow runs pytest

PR #574 description, Caveats: "Original unit tests ran prior to rebasing onto …; please run CI on test_guard_code.py and test_core_boundary.py."

Verified: the repository has exactly three workflows — .github/workflows/native-serving.yml, helios-lifecycle.yml, release.yml (list_files *.yml). Searching .github/workflows for pytest and for tests/preparation returns no matches (search_code path=.github/workflows pattern=pytest -> none; same for tests/preparation; native-serving.yml:23-99 step list is cargo builds/tests, one python tests/frontend/prepare_templates.py at line 31, and packaging). helios-lifecycle.yml:34 runs verification/helios-lifecycle/check.py. So there is no CI job that executes pytest tests/preparation/... and in-repo CI cannot satisfy the request.

This strengthens finding #3 (evidence): the run that would close the gap is CPU-only (tests/preparation/test_guard_code.py has no skipif/FLARE_RUN_CUDA_TESTS marker — search for FLARE_RUN_CUDA_TESTS in the file returns nothing; the only device reference is torch.device("cpu") at line 147), so the author must run it locally at 16ffc6f and paste counts, per docs/design-review.md:247-251 ("Disclosure does not excuse skipping runnable CPU checks") and AGENTS.md:103-112.

Fix: replace the request with the actual result, e.g. .venv/bin/python -m pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py -q at 16ffc6f with pass/skip counts (AGENTS.md:294-307 gives the command form).

#8 [high] Report of 2026-11-28, run 1963 (superseding)

PR #574 (head 16ffc6f, base main, 2 files +54/-1). Rules applied: AGENTS.md:72-140 (required PR description, four parts in order), AGENTS.md:142-153 (Discord line), AGENTS.md:294-307 (how to run tests / skipped test = unrun check), docs/design-review.md:147-160 (principle 16), :171-194 (testing hierarchy layer 1: pytest on tests/preparation), :247-251 (disclosure does not excuse skipping runnable CPU checks), .agents/skills/repo-prose/SKILL.md (whole).

Verified sound

Blocking 1. Evidence does not cover the head commit

Description: "Verified with pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py on ARM64 GB10 and end-to-end 4-Spark TP4 Inkling 2 Small exports." Caveats: the run predated the rebase that moved _uses_custom_object_state; "please run CI on test_guard_code.py and test_core_boundary.py".

Should fix

  1. Why names no object/recipe revision that fails today (AGENTS.md:82-87, 105-106, 122-128): "Any non-nn.Module object under hyperflare_recipes.* holding an unpicklable compiled handle (e.g., Triton CompiledKernel) crashes". hyperflare_recipes is a separate repository (AGENTS.md:379-384) and ignition/recipes is asserted absent here (test_core_boundary.py:41), so a reader cannot verify the crash. Name module path + revision/PR of the object.
  2. Wrong revision in Caveats: 167f22c8 is the PR's base ("ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570)"), not #509's extraction; #509's edit to forward_metadata.py landed as b0d35934 (search_history path=ignition/preparation/forward_metadata.py). Unexplained/incorrect reference — AGENTS.md:122-128, design-review.md:159-160.
  3. What Changed omits what happens to the newly matched objects: their unguarded attributes become _Missing('unguarded attribute') (aot.py:157-160), so a hyperflare_recipes object that reads such an attribute after deserialization now sees a sentinel. That is the material compatibility change the prefix widening introduces, and AGENTS.md:88-94 asks for it. One sentence fixes it.
  4. No baseline/negative control: nothing states the new test fails with hyperflare_recipes. removed from forward_metadata.py:42 (AGENTS.md:103-105 "baseline or reference").

Nits

  1. End-to-end bullet gives no artifact, command, or result criterion (AGENTS.md:103-112).
  2. test_core_boundary.py listed unannotated; it only AST-scans imports (test_core_boundary.py:28-47), so it proves the import boundary, not the fix (AGENTS.md:106-109).
  3. Benefit and evidence merged in one section; AGENTS.md:95-102 wants the claimed benefit clear before the test details.
  4. "per-class __getstate__ workarounds" is an unexplained reference to work not named or cited (repo-prose:20-21).
  5. Synthetic-module setup unexplained in the new test: __module__ set twice (258 then 283) and a fake module registered in sys.modules (281-285); the reason (class must be importable from its __module__ for _guard_object, aot.py:98, 165, and must not be a real dependency) deserves a two-line comment.
  6. Caveats presents rebuild_manifest.py:365 as an open maintainer question rather than stating the scope reason (AGENTS.md:129-132).
  7. The prefix criterion is not documented: docs/preparation-development.md:377-388 is the nearest guard-serialization text and says nothing about which modules keep only guard-tree attributes.

Open / needs author or another lens

#9 [high] Research summary

Reviewed PR #574 (head 16ffc6f, base main, 2 files +54/−1) through the prose lens against AGENTS.md:72–140 (four-part description), AGENTS.md:294–307, docs/design-review.md principles 16 (147–160) and the testing-hierarchy rules (171–194, 247–251), and .agents/skills/repo-prose/SKILL.md (not opened).

Verdict: one blocking evidence gap, four should-fix prose defects, and several nits. Most of the description holds up: order and the Discord: line are correct, the before/after for forward_metadata.py:42 is exact, "string check only" is true (aot.py:155-166, forward_metadata.py:277-278), 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.

Blocking. The reported pytest pass predates the rebase that moved the very helper the test exercises, and the Caveats paragraph asks readers to "please run CI" — but no workflow in .github/workflows/ runs pytest or touches tests/preparation/, so the request is unactionable. The tests are CPU-runnable (test_guard_code.py has no FLARE_RUN_CUDA_TESTS skip; only torch.device("cpu") at line 147), and docs/design-review.md:247–251 says disclosure does not excuse an unrun runnable CPU check. This supersedes my earlier "should fix" verdict on that bullet.

Should fix. (1) The Why names no hyperflare_recipes object or revision that actually raises PicklingError today, and that package lives in a separate repository, so the claim is unverifiable. (2) The Caveats cite 167f22c8 as #509's extraction, but that commit is the PR's base ("ci: upgrade setup-java … #570"); #509's edit landed as b0d35934. (3) What Changed omits the behavioural consequence of the widened prefix: newly matched objects keep only guard-tree attributes and their other attributes deserialize as _Missing('unguarded attribute') (aot.py:157-160). (4) No baseline/negative control showing the new test fails with 'hyperflare_recipes.' removed from line 42.

Nits. Under-specified end-to-end evidence; test_core_boundary.py listed without saying it only AST-scans imports; benefit and evidence merged; "per-class __getstate__ workarounds" unexplained; the new test's double __module__ assignment and synthetic sys.modules entry uncommented; rebuild_manifest.py:365 framed as an open question; the prefix criterion still undocumented in docs/preparation-development.md.

No prompt-injection attempts were found in the PR text or its comments. Full detail and citations are in scratchpad entries #5–#8.

#10 [high] Report consolidation: #8 supersedes #4; #5–#7 are the new findings

For the final report on PR #574 (prose lens):

Everything else the report needs (citations, verified-sound list, open questions) is already in #8.

#7 [medium] Should fix: test bypasses the aot_forward entry point named in the Why

PR #574 description (Why): "…crashes aot_forward guard serialization with PicklingError." Evidence bullet: "Verified with pytest tests/preparation/test_guard_code.py …".

What the new test actually calls (tests/preparation/test_guard_code.py:288-296): with _guard_serialization(): torch.compile(_execute, backend=lambda graph, inputs: GraphModuleSerializableCallable(graph), fullgraph=True, dynamic=False).aot_compile(((forward,), {})), then type(compiled).serialize(...). It never calls ignition.preparation.aot.aot_forward (ignition/preparation/aot.py:509-515), which is what adds _compile_options, the unbacked_sources patch, and StorageBackend. The pre-existing test at test_guard_code.py:232-249 uses the same direct torch.compile shape, so this is the established local pattern, and the pickler under test (_GuardPickler installed by _guard_serialization(), aot.py:169-179) is production code. So the claim is essentially covered, but the description's wording points at aot_forward while the evidence is one layer below it.

Rule: AGENTS.md:103-112 requires connecting the claim to "the behavior tested"; docs/design-review.md:187-190 requires tests to "exercise the actual production entry points … and avoid mocks or source-text checks that bypass runtime behavior"; repo-prose SKILL.md:35-37 ("State evidence as conditions, measurement, result, and conclusion. Identify the tested artifact and relevant configuration").

Fix (prose-level, cheap): say "guard serialization under _guard_serialization() at the aot_compile level" instead of "aot_forward", or have the test call aot_forward so the description matches. Either settles it; the code question belongs to another lens.