Skip to content

Commit 2fefbd9

Browse files
authored
Clarify crisis plugin notification copy (#57)
1 parent a2ac7ee commit 2fefbd9

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

notifications/telegram.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,20 @@
7171
"blend_gate_reason_rsi_cap": "RSI 超阈值",
7272
"blend_gate_reason_bollinger_cap": "突破布林上轨",
7373
"blend_gate_reason_volatility_delever": "{symbol} {window} 日年化波动率 {volatility} 高于 {threshold},SOXL 转向 {redirect_symbol}",
74-
"strategy_plugin_line": "🧩 插件:{plugin} | 模式:{mode} | 路由:{route} | 建议:{action}",
75-
"strategy_plugin_name_crisis_response_shadow": "危机响应观察",
74+
"strategy_plugin_line": "🧩 插件:{plugin} | 状态:{route} | 提醒:{action}",
75+
"strategy_plugin_name_crisis_response_shadow": "危机观察通知",
7676
"strategy_plugin_mode_shadow": "影子观察",
77-
"strategy_plugin_route_no_action": "不操作",
77+
"strategy_plugin_route_no_action": "未触发危机",
7878
"strategy_plugin_route_true_crisis": "真危机",
7979
"strategy_plugin_route_taco_fake_crisis": "TACO 假危机",
80-
"strategy_plugin_route_unknown_route": "未知路由",
80+
"strategy_plugin_route_unknown_route": "未知状态",
8181
"strategy_plugin_action_no_action": "不操作",
82-
"strategy_plugin_action_watch_only": "仅观察",
82+
"strategy_plugin_action_watch_only": "仅通知",
8383
"strategy_plugin_action_small_taco": "小仓 TACO",
8484
"strategy_plugin_action_defend": "防守",
8585
"strategy_plugin_action_blocked": "已阻断",
86-
"strategy_plugin_action_monitor": "监控",
87-
"strategy_plugin_action_unknown_action": "未知建议",
86+
"strategy_plugin_action_monitor": "持续观察",
87+
"strategy_plugin_action_unknown_action": "未知提醒",
8888
"no_trades": "✅ 无需调仓",
8989
"emergency": "🛡️ 金丝雀应急: {n_bad}/4 坏, 全部转入 {safe}",
9090
"quarterly": "📊 季度调仓: 前 {n} 名轮动",
@@ -178,20 +178,20 @@
178178
"blend_gate_reason_rsi_cap": "RSI over threshold",
179179
"blend_gate_reason_bollinger_cap": "price above upper band",
180180
"blend_gate_reason_volatility_delever": "{symbol} {window}d annualized volatility {volatility} is above {threshold}; redirect SOXL to {redirect_symbol}",
181-
"strategy_plugin_line": "🧩 Plugin: {plugin} | mode: {mode} | route: {route} | action: {action}",
182-
"strategy_plugin_name_crisis_response_shadow": "Crisis Response Shadow",
181+
"strategy_plugin_line": "🧩 Plugin: {plugin} | status: {route} | notice: {action}",
182+
"strategy_plugin_name_crisis_response_shadow": "Crisis Watch Notice",
183183
"strategy_plugin_mode_shadow": "shadow",
184-
"strategy_plugin_route_no_action": "no action",
184+
"strategy_plugin_route_no_action": "no crisis detected",
185185
"strategy_plugin_route_true_crisis": "true crisis",
186186
"strategy_plugin_route_taco_fake_crisis": "TACO fake crisis",
187-
"strategy_plugin_route_unknown_route": "unknown route",
187+
"strategy_plugin_route_unknown_route": "unknown status",
188188
"strategy_plugin_action_no_action": "no action",
189-
"strategy_plugin_action_watch_only": "watch only",
189+
"strategy_plugin_action_watch_only": "notify only",
190190
"strategy_plugin_action_small_taco": "small TACO",
191191
"strategy_plugin_action_defend": "defend",
192192
"strategy_plugin_action_blocked": "blocked",
193-
"strategy_plugin_action_monitor": "monitor",
194-
"strategy_plugin_action_unknown_action": "unknown action",
193+
"strategy_plugin_action_monitor": "watch",
194+
"strategy_plugin_action_unknown_action": "unknown notice",
195195
"no_trades": "✅ No rebalance needed",
196196
"emergency": "🛡️ Canary Emergency: {n_bad}/4 bad, rotating to {safe}",
197197
"quarterly": "📊 Quarterly Rebalance: Top {n} rotation",

tests/test_notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_build_translator_supports_chinese():
4444
route=translate("strategy_plugin_route_no_action"),
4545
action=translate("strategy_plugin_action_watch_only"),
4646
)
47-
== "🧩 插件:危机响应观察 | 模式:影子观察 | 路由:不操作 | 建议:仅观察"
47+
== "🧩 插件:危机观察通知 | 状态:未触发危机 | 提醒:仅通知"
4848
)
4949
assert (
5050
translate(

0 commit comments

Comments
 (0)