From 300d6b9e8ed5b0e4be6771e65a87ba321521d285 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:40:53 +0800 Subject: [PATCH] fix: keep tech communication profile research-only --- docs/strategy_plugin_runtime_contract.md | 5 ++++- docs/strategy_plugin_runtime_contract.zh-CN.md | 5 ++++- src/quant_platform_kit/common/strategy_plugins.py | 1 - tests/test_strategy_plugins.py | 10 +++++++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/strategy_plugin_runtime_contract.md b/docs/strategy_plugin_runtime_contract.md index 517c317..12a35d4 100644 --- a/docs/strategy_plugin_runtime_contract.md +++ b/docs/strategy_plugin_runtime_contract.md @@ -79,7 +79,7 @@ The default registry currently defines versioned plugin contracts: | Plugin | Schema versions | Supported strategies | Status | Supported mode | Escalated alert channel | | --- | --- | --- | --- | --- | --- | -| `market_regime_control` | `market_regime_control.v1` | `tqqq_growth_income`, `global_etf_rotation`, `russell_1000_multi_factor_defensive`, `tech_communication_pullback_enhancement`, `mega_cap_leader_rotation_top50_balanced` | default | `shadow` | `email`, `sms`, `push`, `telegram` | +| `market_regime_control` | `market_regime_control.v1` | `tqqq_growth_income`, `global_etf_rotation`, `russell_1000_multi_factor_defensive`, `mega_cap_leader_rotation_top50_balanced` | default | `shadow` | `email`, `sms`, `push`, `telegram` | | `crisis_response_shadow` | `crisis_response_shadow.v1` | `tqqq_growth_income` | deprecated; successor `market_regime_control` | `shadow` | `email`, `sms`, `push`, `telegram` | | `macro_risk_governor` | `macro_risk_governor.v1` | `tqqq_growth_income` | deprecated; successor `market_regime_control` | `shadow` | `email`, `sms`, `push`, `telegram` | | `taco_rebound_shadow` | `taco_rebound_shadow.v2` | `tqqq_growth_income` | deprecated; successor `market_regime_control` | `shadow` | `email`, `sms`, `push`, `telegram` | @@ -95,6 +95,9 @@ To expand a plugin later, update the shared definition or pass an explicit definition registry into the parser/loader. This keeps future plugin eligibility changes out of platform runtime code. +Tech/Communication Pullback Enhancement is also not listed because it is a research-only +profile and should not appear in current configurable plugin mounts. + SOXL/SOXX is intentionally not listed as a `market_regime_control` runtime mount. Broad macro and crisis signals for SOXL should be delivered through a general `notification_targets.market_regime_notification` artifact and reviewed diff --git a/docs/strategy_plugin_runtime_contract.zh-CN.md b/docs/strategy_plugin_runtime_contract.zh-CN.md index 2106ca9..477b332 100644 --- a/docs/strategy_plugin_runtime_contract.zh-CN.md +++ b/docs/strategy_plugin_runtime_contract.zh-CN.md @@ -74,7 +74,7 @@ artifact 内,并固定为通知/观察用途的 `shadow`。 | 插件 | Schema versions | 支持策略 | 状态 | 支持模式 | 升级告警通道 | | --- | --- | --- | --- | --- | --- | -| `market_regime_control` | `market_regime_control.v1` | `tqqq_growth_income`, `global_etf_rotation`, `russell_1000_multi_factor_defensive`, `tech_communication_pullback_enhancement`, `mega_cap_leader_rotation_top50_balanced` | default | `shadow` | `email`, `sms`, `push`, `telegram` | +| `market_regime_control` | `market_regime_control.v1` | `tqqq_growth_income`, `global_etf_rotation`, `russell_1000_multi_factor_defensive`, `mega_cap_leader_rotation_top50_balanced` | default | `shadow` | `email`, `sms`, `push`, `telegram` | | `crisis_response_shadow` | `crisis_response_shadow.v1` | `tqqq_growth_income` | deprecated; successor `market_regime_control` | `shadow` | `email`, `sms`, `push`, `telegram` | | `macro_risk_governor` | `macro_risk_governor.v1` | `tqqq_growth_income` | deprecated; successor `market_regime_control` | `shadow` | `email`, `sms`, `push`, `telegram` | | `taco_rebound_shadow` | `taco_rebound_shadow.v2` | `tqqq_growth_income` | deprecated; successor `market_regime_control` | `shadow` | `email`, `sms`, `push`, `telegram` | @@ -88,6 +88,9 @@ artifact 内,并固定为通知/观察用途的 `shadow`。 如果未来扩展插件支持范围,应更新共享 definition,或显式传入 definition registry 给 parser / loader。这样平台运行时代码不用承载未来插件资格变更。 +Tech/Communication Pullback Enhancement 也不列入当前挂载清单,因为它已经降级为研究侧 profile, +不应出现在当前可配置插件 profile 中。 + SOXL/SOXX 故意不列入 `market_regime_control` 的运行时挂载清单。SOXL 相关宏观和危机信号应通过通用 `notification_targets.market_regime_notification` artifact 分发,并由人工复核; diff --git a/src/quant_platform_kit/common/strategy_plugins.py b/src/quant_platform_kit/common/strategy_plugins.py index f734420..0438ccb 100644 --- a/src/quant_platform_kit/common/strategy_plugins.py +++ b/src/quant_platform_kit/common/strategy_plugins.py @@ -37,7 +37,6 @@ "tqqq_growth_income", "global_etf_rotation", "russell_1000_multi_factor_defensive", - "tech_communication_pullback_enhancement", "mega_cap_leader_rotation_top50_balanced", } ) diff --git a/tests/test_strategy_plugins.py b/tests/test_strategy_plugins.py index 4c3651f..3d78313 100644 --- a/tests/test_strategy_plugins.py +++ b/tests/test_strategy_plugins.py @@ -219,7 +219,6 @@ def test_default_plugin_definition_supports_market_regime_control_for_approved_s "tqqq_growth_income", "global_etf_rotation", "russell_1000_multi_factor_defensive", - "tech_communication_pullback_enhancement", "mega_cap_leader_rotation_top50_balanced", ): validate_strategy_plugin_compatibility( @@ -227,6 +226,15 @@ def test_default_plugin_definition_supports_market_regime_control_for_approved_s plugin=PLUGIN_MARKET_REGIME_CONTROL, mode=PLUGIN_MODE_SHADOW, ) + with self.assertRaisesRegex( + ValueError, + "market_regime_control does not support strategy tech_communication_pullback_enhancement", + ): + validate_strategy_plugin_compatibility( + strategy="tech_communication_pullback_enhancement", + plugin=PLUGIN_MARKET_REGIME_CONTROL, + mode=PLUGIN_MODE_SHADOW, + ) with self.assertRaisesRegex( ValueError, "market_regime_control does not support strategy soxl_soxx_trend_income",