Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/strategy_plugin_runtime_contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion docs/strategy_plugin_runtime_contract.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand All @@ -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 分发,并由人工复核;
Expand Down
1 change: 0 additions & 1 deletion src/quant_platform_kit/common/strategy_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
)
Expand Down
10 changes: 9 additions & 1 deletion tests/test_strategy_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,22 @@ 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(
strategy=strategy,
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",
Expand Down