Skip to content

Commit 9c3a9d4

Browse files
authored
refactor(operator-trend): drop dead re-export shim layer (T3-2 phase 3) (#78)
* refactor(operator-trend): drop dead re-export shim layer (T3-2 phase 3) The operator_trend_closure_forecast_* fractal carried 16 leaf modules that were pure re-export shims (import + __all__, zero logic), each imported only by its own mirror test and never by any production module. They roughly doubled the apparent size of the fractal without adding behavior. Repoint the 16 mirror tests to import directly from the real source modules (reset_controls / reacquisition_controls / freshness_controls / core) and delete the shims. Also delete the facades test, whose sole purpose was asserting the shims' re-export identity — tautological once the shims are gone. No status string or composer behavior is touched; the recovery-state golden contract is byte-identical and the full suite stays green (2492 passed). Note: the per-tier composer collapse is deferred — the tiers have diverged behaviorally (clamp vs no-clamp) and the golden does not yet cover the dict-composers, so that collapse needs a wider characterization net first. * ci(operator-trend): drop deleted re-export shims from the mypy seam list The 'Type-check operator trend seams' step listed the 16 re-export shim modules removed in this PR, so mypy failed with 'No such file or directory'. Drop them; the 15 real modules still type-check (verified locally).
1 parent c5d1f7f commit 9c3a9d4

34 files changed

Lines changed: 21 additions & 406 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
- name: Lint with ruff
3131
run: ruff check src/ tests/
3232
- name: Type-check operator trend seams
33-
run: python -m mypy src/operator_resolution_trend.py src/operator_trend_support.py src/operator_trend_pending_text.py src/operator_trend_pending_debt.py src/operator_trend_transition_closure.py src/operator_trend_closure_forecast_events.py src/operator_trend_closure_forecast_history.py src/operator_trend_closure_forecast_reweighting.py src/operator_trend_closure_forecast_freshness.py src/operator_trend_closure_forecast_reacquisition.py src/operator_trend_closure_forecast_reacquisition_freshness.py src/operator_trend_closure_forecast_reset_refresh.py src/operator_trend_closure_forecast_reset_reentry_freshness.py src/operator_trend_closure_forecast_reset_reentry_rebuild.py src/operator_trend_closure_forecast_reset_reentry_rebuild_persistence.py src/operator_trend_closure_forecast_reset_reentry_rebuild_freshness.py src/operator_trend_closure_forecast_reset_reentry_rebuild_reentry_restore.py src/operator_trend_closure_forecast_reset_reentry_rebuild_reentry_restore_rererestore_freshness.py src/operator_trend_closure_forecast_reset_reentry_rebuild_reentry_restore_rererestore_persistence.py src/operator_trend_closure_forecast_reset_reentry_rebuild_reentry_restore_rerererestore_persistence.py src/operator_trend_closure_forecast_reset_reentry_rebuild_reentry_restore_rerererestore_recovery.py src/operator_trend_decision_memory.py src/operator_trend_recommendation_drift.py src/operator_trend_confidence_calibration.py src/operator_trend_trust_policy_history.py src/operator_trend_exception_recovery.py src/operator_trend_class_transitions.py src/operator_trend_run_context.py src/operator_trend_summary_context.py src/operator_trend_apply_chain.py src/operator_trend_topline_payload.py
33+
run: python -m mypy src/operator_resolution_trend.py src/operator_trend_support.py src/operator_trend_pending_text.py src/operator_trend_pending_debt.py src/operator_trend_transition_closure.py src/operator_trend_decision_memory.py src/operator_trend_recommendation_drift.py src/operator_trend_confidence_calibration.py src/operator_trend_trust_policy_history.py src/operator_trend_exception_recovery.py src/operator_trend_class_transitions.py src/operator_trend_run_context.py src/operator_trend_summary_context.py src/operator_trend_apply_chain.py src/operator_trend_topline_payload.py

src/operator_trend_closure_forecast_events.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/operator_trend_closure_forecast_freshness.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/operator_trend_closure_forecast_history.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/operator_trend_closure_forecast_reacquisition.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/operator_trend_closure_forecast_reacquisition_freshness.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/operator_trend_closure_forecast_reset_reentry_freshness.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/operator_trend_closure_forecast_reset_reentry_rebuild.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/operator_trend_closure_forecast_reset_reentry_rebuild_freshness.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/operator_trend_closure_forecast_reset_reentry_rebuild_persistence.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)