Code review summary scratchpad · NVIDIA/hyperflare-inference #574

Raw Markdown for agents: https://autobot.eidonix.com/p/1de3b32d-fbf9-43f2-8e36-418b88487cc6.md

#1 [high] PR #574 context + verified diff facts

PR #574 "Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization", author fordbmorris, head 16ffc6f, base main, +54/−1, 2 files, no labels/reviews/checks on head. Only comments: flare-autobot case file (2026-11-28 19:31) and a prior Autobot review (20:29) recommending changes requested: 1 blocker (CPU tests never run on rebased head) + 1 nit. Linked: #509 (merged) "Fix Ignition storage lowering, guard pickling, and compiler worker startup".

Production diff = ONE line, ignition/preparation/forward_metadata.py:42:

39  def _uses_custom_object_state(value):
40      return (
41          hasattr(value, '__dict__')
42          and type(value).__module__.startswith(('ignition.', 'b12x.', 'hyperflare_recipes.'))
43          and not inspect.isclass(value)
44          and not isinstance(value, _NON_OBJECT_NEW_TYPES)
45      )

(_NON_OBJECT_NEW_TYPES at forward_metadata.py:33-36 = Tensor, nn.Module, enum.Enum, int, float, str, bytes, dict, list, tuple, set, frozenset.)

Two consumers only: aot.py:157-166 (_GuardPickler.reducer_override) and forward_metadata.py:277-278 (_ForwardPickler.reducer_override, extra gate hasattr(type(value),'__getattr__')).

Sole occurrence of the string hyperflare_recipes under ignition/ = forward_metadata.py:42 (search_code, path ignition/). No __setstate__ under ignition/ (only a comment at forward_metadata.py:130 and static_triton.py:45,143 __getstate__).

Boundary: tests/preparation/test_core_boundary.py:28-36 walks AST imports only, so a string literal cannot violate it; :66-84 textual ban on "hyperflare_recipes" covers only helios/src, helios/tests, heliopause/src (not Python ignition). String-only check verified true.

No pytest in .github (search_code 'pytest' path .github/ → no matches). Workflows list includes setup-java/CI-infra commits (167f22c8) which are the noise to drop.

#2 [high] Candidate BLOCKER B1 — record CPU test run on 16ffc6f (popped as agreed)

B1 (survives, pop-grade: already agreed in the last review; downstream should not re-adjudicate, only confirm resolved).

Evidence: new test exists but has never been run on the rebased head; PR Caveats admit it: "Original unit tests ran prior to rebasing onto #509's extraction of _uses_custom_object_state (167f22c8); please run CI on test_guard_code.py and test_core_boundary.py." No workflow runs pytest (pytest search under .github/ → no matches); head 16ffc6f has no checks. #509's edit to forward_metadata.py is commit b0d35934 ("Fix Ignition storage lowering, guard pickling, and compiler worker startup (#509)"); 167f22c8 is the branch point, a CI-only commit ("ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570)") — so the cited SHA is wrong (feeds S4 prose, not B1).

Rule: docs/design-review.md:247-251 — "Disclosure does not excuse skipping runnable CPU checks. All three layers run without a GPU or model checkpoint. 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." Layer 1 includes pytest on tests/preparation (design-review.md:180-186).

Fix is one command + paste: pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py on 16ffc6f (CPU-only; test_guard_code.py's only device use is torch.device("cpu")).

Code under test (tests/preparation/test_guard_code.py:277-285):

277  def test_guard_pickler_strips_unguarded_attributes_from_recipe_objects(monkeypatch):
278      import types
279      from torch._dynamo.aot_compile_types import GraphModuleSerializableCallable
280
281      module_name = "hyperflare_recipes.components._synthetic_guard_test"
282      synthetic = types.ModuleType(module_name)
283      _RecipeKernelOwner.__module__ = module_name
284      synthetic._RecipeKernelOwner = _RecipeKernelOwner
285      monkeypatch.setitem(sys.modules, module_name, synthetic)

DROP from this item any CI-infra framing (setup-java / runner red checks) — repo CI is simply silent on Python preparation tests.

#3 [high] Candidate SHOULD FIX S1 — third package literal vs declared roots (4 lenses merged)

S1 = merge of Architecture S1, Conventions #2, Simplicity #2, Correctness #1. Widening is keyed on a third package literal; the repo already binds declared source roots.

Code (forward_metadata.py:39-45) quoted in note 1. Reached contract: AGENTS.md:379-384 "Official model recipes live in local-inference-lab/hyperflare-recipes … and external recipe repositories can pass their own Recipe tuples directly to ignition.cli.main(...)"; AGENTS.md:392-393 "Core ignition must never import hyperflare_recipes or introduce a plugin discovery framework."

Already-existing binding mechanism:

Competing dispositions to hand downstream (do not flatten): (a) Recommended, low churn: one shared module-level constant with a docstring stating the rule, used by predicate + test fixture, plus a recorded stopgap entry in docs/TODO.txt (exists; verified via list_files). Keeps behaviour identical, makes the exclusion visible. (b) Declared-root derivation (match type(value).__module__ against _EXTRA_ROOTS labels + ignition./b12x.) — the general fix but a maintainer design call; note hoisting is cycle-free (rebuild_manifest.py imports only . runtime_core_pb2, nothing imports rebuild_manifest; aot.py already imports from forward_metadata at :135,:155). (c) REJECT the Simplicity "drop the module-prefix clause entirely, rely on structural guards" variant: it is not bounded on the _ForwardPickler path (forward_metadata.py:277-278 rebuilds any object whose type has __getattr__ as _object + vars() + _set_state, silently dropping __slots__/__getstate__ state for arbitrary packages). Guard path alone would be safe (aot.py:157-160 turns everything outside guard_tree_values into _Missing), which is why (a)/(b) beat (c).

Honesty note for downstream: the alternative "decide by membership in _GuardPickler.guard_tree_values" is NOT free — _GuardPickler also serializes functions/modules/bound methods by reference (aot.py:153-154, 166).

#4 [high] Candidate SHOULD FIX S2 — stale duplicate allowlist drops recipe weight views

S2 = merge of Architecture N1, Conventions #1, Simplicity #1, Correctness nit, Subtractive #2 (four lenses found it; it stays a should-fix because the PR's own Caveats raise it and it is the same drift class). Distinct from S1: this is the second copy of the allowlist, not the literal shape.

Code, ignition/preparation/rebuild_manifest.py:358-369:

358          elif isinstance(value, torch.nn.Module):
359              owner = f'{type(value).__module__}.{type(value).__qualname__}'
360              children = ((f'.{key}', child) for group in (value._parameters, value._buffers, value._modules)
361                          for key, child in group.items())
362          elif is_dataclass(value) and not isinstance(value, type):
363              owner = f'{type(value).__module__}.{type(value).__qualname__}'
364              children = ((f'.{field.name}', getattr(value, field.name)) for field in fields(value))
365          elif type(value).__module__.startswith(('b12x.', 'ignition.')) and hasattr(value, '__dict__'):
366              owner = f'{type(value).__module__}.{type(value).__qualname__}'
367              children = ((f'.{key}', child) for key, child in vars(value).items())
368          else:
369              return

Consumer: rebuild_weights_metadata at :441-449 if isinstance(roots, WeightDeclaration): return _declared_metadata(roots) … for name, owner, tensor in weight_views(roots):; validate_weights (:462-464) only checks entries that are present, so omission is silent. Module docstring :5-15 promises "Tensors under types without a declared classification are reported as unavailable instead of being treated as weights" — the else: return contradicts that promise for a hyperflare_recipes.* container.

Mitigation available today: declare_weights (:86-106) / WeightDeclaration is the supported path and short-circuits at :445-446; AGENTS.md:497-518 asks deficiencies be traced through equivalent paths.

Recommended resolution for downstream: single shared constant/predicate (ties into S1 option (a)) + record in docs/TODO.txt; do NOT expand this PR into the rebuild path (subtractive lens: different mechanism, PR does not make rebuild wrong). Honest limits: no in-repo example of an undeclared hyperflare_recipes weight container (recipe code lives in local-inference-lab/hyperflare-recipes), so reachability is unproven.

#5 [high] Candidate SUBTRACT/SIMPLIFY S3 — new test neither asserts stripping nor needs 53 lines

S3 = merge of Subtractive #1 (~33 lines) + Simplicity #3 + Conventions nits (unrestored monkeypatch, third copy of boilerplate). Keep the SUBTRACTIVE option, per instruction: shrink the test rather than expand it. Reject the Correctness request to add a __getattr__-defining case to the same test (that expands code); instead note it as optional follow-up.

Problem 1 (assertion gap) — tests/preparation/test_guard_code.py:296-302 asserts parity and guard invalidation but never that the unpicklable handle came back stripped:

296      loaded = type(compiled).deserialize(data)
297      torch.testing.assert_close(loaded(forward), torch.full((2,), 3.0))
298      assert loaded.guard_check(forward) is True
299      forward.owner.scale = 5
300      assert loaded.guard_check(forward) is False
301      forward.owner.scale = 3
302      assert loaded.guard_check(forward) is True

The test's own name promises "strips unguarded attributes", yet nothing asserts isinstance(..., _Missing); it would pass if the handle were restored live. In-file precedent for the assertion it should carry: :124 assert isinstance(restored.unguarded, _Missing).

Problem 2 (duplication/size) — :252-302 duplicate the compile→serialize→deserialize flow of :232-249 and the dead class attr at :258 is overwritten at :283:

252  class _UnpicklableHandle:
253      def __reduce__(self):
254          raise TypeError("compiled kernel handles cannot be pickled")
...
257  class _RecipeKernelOwner:
258      __module__ = "hyperflare_recipes.components.synthetic"
...
268  class _RecipeForward:
269      def __init__(self, scale):
270          self.value = torch.ones(2)
271          self.owner = _RecipeKernelOwner(scale)

_RecipeForward exists only to be compiled. The file already has the unit helper _roundtrip_guard at :91-100 (constructs _GuardPickler + pickle.loads), used by 5 sibling tests, and the monkeypatch idiom at :212-214.

Replacement shape (Subtractive, ~16-20 lines; must include id(owner.scale) in guard_tree_values or aot.py:158-160 strips scale too and restored.scale == 3 fails; synthetic._RecipeKernelOwner = _RecipeKernelOwner is load-bearing because the object branch returns (_guard_object, (type(obj),), state) at aot.py:165 pickled by reference):

def test_guard_pickler_strips_unguarded_attributes_from_recipe_objects(monkeypatch):
    module_name = "hyperflare_recipes.components._synthetic_guard_test"
    synthetic = types.ModuleType(module_name)
    synthetic._RecipeKernelOwner = _RecipeKernelOwner
    monkeypatch.setitem(sys.modules, module_name, synthetic)
    monkeypatch.setattr(_RecipeKernelOwner, "__module__", module_name)

    owner = _RecipeKernelOwner(3)
    restored = _roundtrip_guard(
        owner, guard_tree_values={id(owner): owner, id(owner.scale): owner.scale}
    )
    assert restored.scale == 3
    assert isinstance(restored.compiled_handle, _Missing)

Still red without the fix: object falls to super().reducer_override (aot.py:166) → default state pickling → _UnpicklableHandle.__reduce__ raises. Trade-off to hand downstream: the direct _roundtrip_guard form drops the end-to-end serialize/deserialize proof (design-review.md:187-188 "Tests must exercise the actual production entry points"); conservative fallback = keep :287-296 but delete _RecipeForward, the dead :258 line, and add the _Missing assertion (~25 lines total). Either way add assert isinstance(restored.compiled_handle, _Missing)-style assertion.

Nit that dies into S3: :283 _RecipeKernelOwner.__module__ = module_name is a plain assignment that monkeypatch does not revert (only the sys.modules entry at :285 is restored), leaving a class whose __module__ names a module that no longer exists — use monkeypatch.setattr.

#9 [high] Research summary

Produced a deduplicated, code-grounded candidate brief for PR #574 from the six upstream lenses, saved in the scratchpad (entries 1–8).

Process: read the diff, the PR body/comments, and every cited site at head myself (forward_metadata.py, aot.py:90-185, rebuild_manifest.py weight walk + declare_weights + rebuild_weights_metadata, source_identity.py, cli/init.py:367-373, test_guard_code.py in full, test_core_boundary.py, design-review.md:175-255, AGENTS.md:72-115 and 375-396, preparation-development.md:368-388), and verified history claims (search_history: b0d35934 is #509's edit; 167f22c8 is a CI-only commit) plus file existence (docs/TODO.txt exists).

Result: 6 survivors — 1 popped blocker (CPU tests never run on the rebased head; no pytest in .github, so the caveat is unactionable), 4 should-fix (third package literal vs the existing _EXTRA_ROOTS/source_roots mechanism; the divergent duplicate allowlist at rebuild_manifest.py:365 that silently drops recipe weight views; shrink-the-test with the missing _Missing assertion — the subtraction option, preferred over every "add cases" request; undocumented state contract imposed on externally owned classes), and 1 combined prose/evidence item (wrong SHA, no negative control, unreproducible export claim). Each survivor carries exact quoted file:line code. Dropped as noise: CI-infra red-check framing, the false core-boundary reading, the is True brittleness nit contradicted by the same file, and two speculative correctness code-change proposals; these are recorded in scratchpad entry 8 with the verified-clean inventory so downstream need not re-check.

#10 [high] Final brief skeleton, verdict, counts, links

REPORT SHAPE (assemble from entries 1-10; do not re-derive).

Verdict line for downstream (Verify & Adjudicate): the production change is correct and minimal; merge is gated only by B1 (recorded CPU run on 16ffc6f). Everything else is design-judgment: S1/S2 (literal vs declared roots, duplicated allowlist), S3 (subtract ~33 test lines — the preferred direction), S4 (prose/doc contract), S5 (prose/evidence).

SURVIVOR COUNT: 6 — Blocker 1 (B1, popped/agreed), Should Fix 4 (S1, S2, S4, S5), Subtract/Simplify 1 (S3). Nits 2 (TypeError vs PicklingError signature; untested __getattr__ forward branch). Net if S3 lands: +54/−1 → ≈ +21/−1, production line untouched.

ORDER for the final brief:

  1. Key findings (settled) — entry 8 "verified-clean inventory" + entry 1 diff facts.
  2. Candidate Blockers — B1 (entry 2): pop-grade; only confirm resolved.
  3. Candidate Should Fix — S1 (entry 3, highest judgment value: (a) constant+TOML vs (b) declared roots vs (c) rejected literal-drop), S2 (entry 4), S4 (entry 6), S5 (entry 7).
  4. Candidate Subtract/Simplify — S3 (entry 5); explicitly state it wins over correctness #3 and simplicity's extra-case requests.
  5. Candidate Nits — entry 8 point 6-7 + entry 5 tail.
  6. Dropped-as-noise list — entry 8 points 1-9 (so adjudicator sees pre-filtering was done, and why).

LINKS: PR https://github.com/NVIDIA/hyperflare-inference/pull/574 (head 16ffc6f, +54/−1). Comments: flare-autobot case file 2026-11-28 19:31; prior Autobot review 20:29 "Changes Requested" (1 blocker: tests not run on rebased head; 1 nit) https://autobot.eidonix.com/p/e5ce5686-860d-46bc-a17e-b63ec533036f.html. Related: #509 (merged, commit b0d35934) "Fix Ignition storage lowering, guard pickling, and compiler worker startup".

Dedup ledger (state explicitly in report): Architecture S1 + Conventions #2 + Simplicity #2 + Correctness #1 → S1; Architecture N1 + Conventions #1 + Simplicity #1 + Correctness nit + Subtractive #2 → S2; Subtractive #1 + Simplicity #3 + Conventions test nits → S3; Architecture N3 + Prose #4 + Correctness #2/#3 → S4 (prose-only retention); Prose #2/#3/#5 + nit 6 + Architecture N4 → S5. Six lenses → six candidates; no lens produced a candidate in isolation.

#6 [medium] Candidate SHOULD FIX S4 — undocumented contract on externally owned classes (merged 4 lenses)

S4 = merge of Architecture N3 + Correctness #2 + Correctness #3 + Prose #4 into ONE contract/behaviour item (they describe the same fact from four angles). Cheapest resolution is prose/doc; drop the code-change proposals as unverified howlers.

The fact: the widened predicate changes behaviour for newly matched classes in two different ways. (1) Guard path — aot.py:157-166:

157          if _uses_custom_object_state(obj):
158              state = {key: value if id(value) in self.guard_tree_values
159                       else _Missing('unguarded attribute')
160                       for key, value in vars(obj).items()}
161              from b12x.preparation.device import DetectedDevice
162
163              if isinstance(obj, DetectedDevice):
164                  return restore_prepared_device, (type(obj), state)
165              return _guard_object, (type(obj),), state
166          return super().reducer_override(obj)

Contract imposed on another repo's classes: rebuilt via object.__new__ (aot.py:98-99), own __getstate__/__reduce__ bypassed (reducer_override wins), attributes outside the guard tree come back as _Missing('unguarded attribute'). Verified: no __setstate__ exists anywhere under ignition/ (search: only a comment at forward_metadata.py:130), so the ignition./b12x. classes are all consistent with the 3-tuple form; the contract is simply unestablished for hyperflare_recipes classes. (2) Forward path — forward_metadata.py:277-278, opposite disposition (full state kept):

277          if _uses_custom_object_state(value) and hasattr(type(value), '__getattr__'):
278              return _object, (type(value),), dict(vars(value)), None, None, _set_state

slots_-only recipe classes are untouched by both (predicate requires hasattr(value,'__dict__') at :41), so the reported crash stays reachable for them — mention, no code ask.

Recommended resolution (prose/doc only, 1-2 sentences): state in the PR body + docs/preparation-development.md:372-388 (nearest guard-serialization text; nothing there says which packages keep only guard-tree attributes) that guard-state attributes outside the guard tree now deserialize as _Missing('unguarded attribute') for hyperflare_recipes.* objects, and that the same predicate also decides forward-metadata encoding for classes defining __getattr__.

Deducted from upstream (do NOT carry as candidates): Correctness' "no state_setter → load_build calls external setstate, KeyError/TypeError" is speculative (unverified that any recipe class defines __setstate__; Correctness itself lists it as open question) and its suggested fix (return the 6-tuple with _set_state) changes the guard format for newly matched classes — an unverified format change, worse than the silent strip. Correctness' "object.new not safe for bytearray/Exception subclasses" adds exclusions for hypothetical classes.

#7 [medium] Candidate SHOULD FIX S5 — prose/evidence defects (all formatting notes merged here)

S5 = merge of Prose #2, #3, #5, nit 6 into ONE prose/evidence item (rule: at most 1 combined prose/formatting item — but S4 and B1 are substance, so this is the single prose item).

Verified against PR body (read_item 574): (a) Wrong SHA: Caveats say "rebasing onto #509's extraction of _uses_custom_object_state (167f22c8)". search_history on ignition/preparation/forward_metadata.py: b0d35934 "Fix Ignition storage lowering, guard pickling, and compiler worker startup (#509)" is #509's edit; search_history on .github/workflows: 167f22c8 = "ci: upgrade setup-java to v5 and Java 21 in helios-lifecycle (#570)" — the branch point, a CI-only commit. Fix: cite b0d35934, or replace the sentence with the 16ffc6f result (B1). (b) No baseline/negative control: nothing reports that the new test fails with 'hyperflare_recipes.' removed from forward_metadata.py:42 — cheap to run on CPU, and AGENTS.md:103-105 requires baseline/reference per claim. (c) Unreproducible evidence: "end-to-end 4-Spark TP4 Inkling 2 Small exports" (architecture N4, prose nit 6) names no command/revision/criterion; AGENTS.md:110-112 requires reproduction inputs directly or by precise reference. (d) Entry-point wording: Why says the crash happens in aot_forward, but the test drives torch.compile(...).aot_compile(...) under _guard_serialization() one layer below it (test_guard_code.py:288-296). Prose-only either way because the pickler is production code. (e) "per-class __getstate__ workarounds" is an unexplained reference (no artifact named).

Combined fix: cite b0d35934 (or drop), add the with/without-tuple before/after result, give the export command or drop the bullet, and say "at the aot_compile level under _guard_serialization()".

Not carried (nit-grade): splitting "Benefit & Evidence" into two sections; PR-description length; test_core_boundary.py listed unannotated. Fold (d)/(e)/aot_forward-line as sub-bullets only.

#8 [medium] Dropped noise + verified-clean inventory

Lens findings dropped as noise/stale/contradicted (do NOT hand to adjudicator):

  1. CI-infra framing: every lens's "no checks on head / no pytest in .github" is TRUE (verified: search_code 'pytest' under .github/ → no matches) but is only used as support for B1, not as a separate red-CI finding. No setup-java/runner-infra claim survives on its own (167f22c8 is a CI commit, irrelevant to compilation/test breakage of this diff).
  2. "PR breaks core boundary" — nobody claimed it, and it is false: test_core_boundary.py:28-36 walks AST imports only; the textual ban at :66-84 covers helios/src, helios/tests, heliopause/src only. String literal is legal. Recorded as verified-clean, not a candidate.
  3. Correctness nit "guard_check(...) is True is brittle vs truthiness elsewhere" — CONTRADICTED by the file: :50-51 itself uses assert loaded.guard_check(forward) is valid (identity vs a bool variable). Dropped.
  4. Correctness #2's "missing state_setter → load_build invokes external setstate" — speculative (no __setstate__ exists under ignition/, no evidence any recipe class defines one) and its fix (6-tuple with _set_state) would change the guard format for newly matched classes. Folded into S4 as a prose note only; code change dropped.
  5. Correctness' "_NON_OBJECT_NEW_TYPES misses bytearray/Exception subclasses" — hypothetical classes, no evidence; dropped.
  6. Correctness #3's ask to add a __getattr__ forward-metadata round-trip test (tests/preparation/test_unavailable_resources.py) — expands tests; per the subtraction preference it stays an OPTIONAL follow-up mention inside S3, not a candidate.
  7. Local import types at test :278, _RecipeForward padding, test name vs sibling precedent, dead __module__ at :258 — all dissolve into S3's rewrite; not separate items.
  8. Prose nits: splitting "Benefit & Evidence" (AGENTS.md:95-102), annotating test_core_boundary.py in the evidence line, Caveats phrased as a question — dropped as mechanical; S5 keeps only substantive prose defects.
  9. Architecture N4's "hasattr(value,'__dict__') leaves slots classes reachable" — real but out of this PR's scope; one clause inside S4.

Verified-clean facts the adjudicator can rely on (no re-checking needed):

#11 [medium] Verbatim rule quotes backing B1 / S5 (for citation in report)

docs/design-review.md:180-188 — layer 1 mandate: "1. Crate unit and contract tests (CPU). Run cargo test --locked --release on every affected Rust crate (…) and pytest on affected Python suites (tests/cli, tests/preparation, and component and scheduler tests). cargo check does not substitute for cargo test. Tests must exercise the actual production entry points, validate rejection without partial mutation, and avoid mocks or source-text checks that bypass runtime behavior."

docs/design-review.md:247-251 — the B1 rule: "Disclosure does not excuse skipping runnable CPU checks. All three layers run without a GPU or model checkpoint. 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."

AGENTS.md:103-105 (evidence per claim, used by S5): "Connect each material claim to the relevant checks or measurements: the behavior tested, baseline or reference, configuration, result, and limits of the conclusion."

AGENTS.md:110-112 (reproduction inputs, used against the 4-Spark export bullet): "Reproduction commands must identify the required inputs and configuration directly or through a precise reference; placeholder arguments alone do not explain a measurement. Never invent evidence to complete the description."

AGENTS.md:88-94 (What Changed must name behaviour/compat changes, used by S4): "Name the affected components and explain the concrete implementation and behavior changes. Make the before/after explicit … Identify material numerical, compatibility, and resource-lifetime changes."

AGENTS.md:72-80 (four-question order: why, what exactly changed, benefit/result, evidence) — PR body holds this order and ends with "Discord: woooflet", so prose structure is NOT a finding (only content is, see S5).

docs/preparation-development.md:377-381 (nearest guard-serialization doc; silent on which packages keep only guard-tree attributes — S4's doc target): "retain canonical kernel selections, execution guards, live kernel owners, and bound storage. Standalone guards retain their full check tree and callbacks; discard the unused Dynamo diff tree and duplicate debug lists."

#12 [low] Verification method — what I opened at head (report may state this)

All 5-15-line quotes in entries 2-7 were read directly at PR head 16ffc6f via read_file, not copied from lens text:

Independent verifications performed (so downstream need not repeat): search_code hyperflare_recipes under ignition/ → single hit at :42; search_code __getstate__|__setstate__ under ignition/ → only static_triton.py:45,143 and a comment at forward_metadata.py:130 (no setstate defined anywhere in core ignition); search_code pytest under .github/ → no matches; search_history on forward_metadata.py (16ffc6fd then b0d35934) and on .github/workflows (167f22c8 = setup-java/Java 21 CI commit); list_files docs/TODO* → docs/TODO.txt exists; search_code for importers of rebuild_manifest / of forward_metadata → no matches, so hoisting a shared constant is cycle-free (rebuild_manifest.py:18-24 imports only stdlib + . runtime_core_pb2; aot.py imports forward_metadata at :135,:155).

Could not verify from this repository (state as open, not as a defect): whether Inkling 2's prepared object actually holds an unpicklable handle; whether any recipe class uses slots/getstate/setstate; whether an undeclared hyperflare_recipes weight container ever reaches weight_views. All recipe code lives in local-inference-lab/hyperflare-recipes, and test_core_boundary.py:40 asserts hyperflare_recipes is absent from this repo.