Skip to content

Commit ac4a297

Browse files
authored
refactor(operator-trend): collapse the last 3 renderer/selector clone families onto parametrized bases (T3-2 phase 7c) (#93)
Finish the clone-collapse phase for operator_resolution_trend.py by collapsing the last three worthwhile clone families: - refresh-recovery summaries (rebuild / restore / rerestore) -> _refresh_recovery_summary_base - tier-rollup summaries (rebuild_reentry / rerestore / rererestore) -> _tier_summary_base - freshness hotspot selectors (rebuild_reentry / restore) -> _freshness_hotspots_base Each was an exact structural clone differing only in per-tier keys, status tokens, and reworded prose; collapsing removes the triplicated render/selector skeletons and their drift risk. Proven byte-identical by exhaustive branch differentials (512 cases/tier for the 6-branch refresh summaries; 112/tier for the tier rollups; a 9-class grouping/filter/sort/cap corpus per freshness tier). Signatures verified identical across tiers before wrapping. The full suite is the integration backstop (no composer golden covers this file). The remaining clone families (16 side-from-status mappers, direction helpers) are intentionally left: collapsing 4-7 line functions costs more wrapper+spec scaffolding than it saves, and they are exact clones with zero drift. The only remaining structural target here is the 1,852-line _build_resolution_trend. Verification: pytest 2539 passed / 2 skipped; mypy clean; ruff clean.
1 parent 4337ba1 commit ac4a297

1 file changed

Lines changed: 318 additions & 308 deletions

File tree

0 commit comments

Comments
 (0)