Skip to content

Commit 058c794

Browse files
authored
refactor(operator-trend): data-driven emitter for recovery-tier payload keys; collapse first 2 ladder tiers (T3-2 phase 8c) (#99)
Introduces _emit_resolution_payload_entries: a generic emitter that rebuilds the per-target/per-class recovery-tier payload keys from a (out_key, source_name, is_ternary) spec table. Ternary entries reproduce the primary_target override (primary_target.get(out_key sans 'primary_target_', value) if primary_target else value); plain entries pass through sources[source_name][out_key]. Converts the first two ladder tiers (reset_reentry + reset_reentry_rebuild, 71 contiguous A/B entries) to the table and prunes their now-dead source unpacks. Byte-identical by construction (every converted entry matched the emitter's two patterns, get-key included) and proven by the characterization net. The remaining ~245 A/B entries collapse the same way in the follow-up. Verify: net byte-identical; ruff + mypy clean; 2541 passed, 2 skipped. Net -304 lines.
1 parent 9cadf0f commit 058c794

1 file changed

Lines changed: 114 additions & 418 deletions

File tree

0 commit comments

Comments
 (0)