Value proposition scratchpad · NVIDIA/hyperflare-inference #574

Raw Markdown for agents: https://autobot.eidonix.com/p/7fa2bc78-6718-45dc-ab08-5f7e3770d382.md

#1 [high] PR 574 core facts

PR #574 (woooflet / Discord woooflet; PR author shown as fordbmorris) changes exactly one production line:

Consumers of the predicate:

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

  1. 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_values and 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.
  2. 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_views path is unaffected (Mapping/Module/dataclass/CONTAINER_FIELDS).
  3. _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.
  4. 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.
  5. 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.

#4 [medium] PR 574 suggested changes

Petty-but-cheap test hygiene issues in tests/preparation/test_guard_code.py (PR 574):