Skip to content

refactor(operator-trend): collapse persistence/churn hotspot selectors onto a parametrized base (T3-2 phase 7a)#91

Merged
saagpatel merged 1 commit into
mainfrom
refactor/resolution-trend-collapse-hotspots
Jun 20, 2026
Merged

refactor(operator-trend): collapse persistence/churn hotspot selectors onto a parametrized base (T3-2 phase 7a)#91
saagpatel merged 1 commit into
mainfrom
refactor/resolution-trend-collapse-hotspots

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

refactor(operator-trend): collapse persistence/churn hotspot selectors onto a parametrized base (T3-2 phase 7a)

Pivot the fractal collapse to operator_resolution_trend.py (22K LOC).
Collapse the 4 reset-reentry persistence/churn hotspot selectors
(reset_reentry / rebuild_reentry / restore / rerestore) onto one
_hotspots_base + _HotspotsTierSpec + 4 specs. They were exact
structural clones differing only in the per-tier age / persistence / churn
keys, the just-* mode token, and the holding/sustained status set; the
churn-watch fallback set is identical across tiers and stays inline.

Proven byte-identical by an exhaustive branch differential (real vs
base+spec over a 9-class grouping / filter / sort / cap corpus across all
three modes per tier). This file has no composer-golden coverage, so the
differential plus the full suite (which exercises these via the public
resolution-trend API) are the gates.

Net -260 lines. Verification: pytest 2539 passed / 2 skipped; mypy clean;
ruff check clean.

…s onto a parametrized base (T3-2 phase 7a)

Pivot the fractal collapse to operator_resolution_trend.py (22K LOC).
Collapse the 4 reset-reentry persistence/churn hotspot selectors
(reset_reentry / rebuild_reentry / restore / rerestore) onto one
`_hotspots_base` + `_HotspotsTierSpec` + 4 specs. They were exact
structural clones differing only in the per-tier age / persistence / churn
keys, the `just-*` mode token, and the holding/sustained status set; the
churn-watch fallback set is identical across tiers and stays inline.

Proven byte-identical by an exhaustive branch differential (real vs
base+spec over a 9-class grouping / filter / sort / cap corpus across all
three modes per tier). This file has no composer-golden coverage, so the
differential plus the full suite (which exercises these via the public
resolution-trend API) are the gates.

Net -260 lines. Verification: pytest 2539 passed / 2 skipped; mypy clean;
ruff check clean.
@saagpatel saagpatel merged commit 4dfe9e2 into main Jun 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant