Pre test report report · NVIDIA/hyperflare-inference #574

Raw Markdown for agents: https://autobot.eidonix.com/p/aee7eb4d-753b-468a-9485-719e32bd00ab.md

Pre-test report — PR #574 "Strip unguarded attributes from hyperflare_recipes objects in AOT guard serialization"

Recommendation: NOT referred to hardware testing. Send back to the author for two code changes plus one manual CPU test run. Testing this diff on cn5/cn7 would spend hardware time on a change that is, as written, provably unobservable on any in-repo model, and whose production line is likely to change shape before merge.

PR facts verified myself (not taken from the summaries): open, head 16ffc6f, +54/−1, 2 files, author fordbmorris / Discord woooflet, no reviews, no CI checks, one autobot case-file comment. Only refs: #509 (merged, b0d35934), #474 (closed, superseded by #509). No prompt injection in the body, code, comments or test scaffolding; the body's "please run CI…" is an ordinary caveat, not an instruction to an agent.

1. What actually changes

One production line, ignition/preparation/forward_metadata.py:42, inside _uses_custom_object_state (39–45):

and type(value).__module__.startswith(('ignition.', 'b12x.', 'hyperflare_recipes.'))   # was ('ignition.', 'b12x.')

Grep-verified, exactly two consumers: _GuardPickler.reducer_override (ignition/preparation/aot.py:155-166) — guarded attrs kept via self.guard_tree_values, everything else replaced with _Missing('unguarded attribute'), object rebuilt as object.__new__ (aot.py:98-99); and _ForwardPickler.reducer_override (forward_metadata.py:277), which additionally requires hasattr(type(value), '__getattr__'), so a plain recipe class does not change path in the worker-IPC pickler. The _GuardPickler guarded/_Missing policy itself (aot.py:126-152, 157-165) is untouched; ignition./b12x. objects reduce exactly as before, so no persisted format, core artifact, guard-code cache key (aot.py:206-210, keyed on sha256 of the pickled parts) or Helios behaviour changes. The change is confined to core Ignition preparation and respects the core boundary (tests/preparation/test_core_boundary.py:39-58 scans AST imports only; the new match is a string literal).

2. Why hardware testing has zero expected value

The decisive fact: hyperflare_recipes does not exist anywhere in this repository. tests/preparation/test_core_boundary.py:40 asserts not (ROOT / "hyperflare_recipes").exists(); pyproject.toml has no such dependency (torch/transformers/flashinfer/cuda-tile only); the only occurrences under ignition/ are the new string at forward_metadata.py:42. Every class defined in this repo is ignition.*, b12x.*, torch.*, a test module, or a builtin — none can match the added prefix. Therefore:

Additional blocker-class reason not to test yet (code will likely change): the fix keys a core-Ignition predicate on a third hardcoded package literal, while the repo's documented, generic mechanism for external recipe packages is registration — ignition/cli/__init__.py:367-375 (recipes= → active_recipes, source_roots= → bind_source_roots), ignition/registry.py:24-41, ignition/preparation/source_identity.py:12-45, backed by AGENTS.md:379-393 ("external recipe repositories can pass their own Recipe tuples directly to ignition.cli.main(...)") and AGENTS.md:188-193 (reject speculative per-case additions). Any other external recipe repo still hits the identical PicklingError, and the next port needs a fourth literal. The ground truth is already in the pickler: self.guard_tree_values is used at aot.py:127, 148 and 158, so keying on guard-tree membership (or on roots derived from the active registration) generalises in the same one line. Because that fix touches the same line, testing the current literal is testing code that will be rewritten. Same class of defect, unfixed, in the sibling allowlist that this PR leaves diverged: ignition/preparation/rebuild_manifest.py:365 still checks ('b12x.', 'ignition.') inside weight_views (:338-374, else: return at :368-369), so a hyperflare_recipes.* weight holder's tensors land in neither tensors nor unavailable on the legacy path (the declared WeightDeclaration path bypasses it at :445-446). The PR body admits leaving it out — fine as follow-up, but the two lists must not drift silently.

Test-quality defects that make the PR's own claim untested:

3. Required validation before any hardware consideration (CPU only, minutes)

  1. uv sync --locked --extra prepare --extra test (per docs/model-preparation.md:73 (not opened)), then pytest tests/preparation/test_guard_code.py tests/preparation/test_core_boundary.py -q on 16ffc6f; report pass/skip counts.
  2. Negative control: remove 'hyperflare_recipes.' from forward_metadata.py:42 and show the test (fixed version, asserting _Missing) fails with the PicklingError-class error, then restore. This is the baseline the body lacks.
  3. Land the two code changes: generalise the predicate (guard-tree membership or registration-derived roots) instead of the third literal, and share one prefix constant with rebuild_manifest.py:365 (or state why the legacy walk is out of scope). Decide explicitly whether recipe classes may keep state only in __dict__ (bypassing __getstate__/__reduce__) and document it in docs/preparation-development.md (not opened) or the _GuardPickler docstring (aot.py:102-103); note __slots__-only recipe classes still bypass the strip entirely (forward_metadata.py:41 requires __dict__).

If maintainers decide to keep the literal allowlist as a stopgap, say so in the description and file the generalisation as a follow-up, per AGENTS.md:188-193.

4. Conditional, minimal hardware plan — only if maintainers accept the code as-is and a reproduction is supplied

Single job, no sweep, no perf A/B (the PR claims no performance result):

5. Assessment of the review summaries

Substantively aligned with my own reading; I verified the load-bearing claims and correct these items:

Bottom line: no hardware allocation. Return for (1) predicate generalisation + shared prefix constant, (2) a test that asserts _Missing and restores __module__ via monkeypatch, (3) a manual CPU pytest run with a negative control and corrected/complete evidence in the description. Reconsider a single cn7 fail-before/pass-after export only when a reproducible external-recipe trigger is supplied.