From 303ba4f28bac122b0e663c8e5864b88fdf7bd0af Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Tue, 12 May 2026 05:51:11 +0800 Subject: [PATCH 1/2] Remove crisis plugin TACO copy --- application/runtime_strategy_adapters.py | 4 ++++ notifications/telegram.py | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/runtime_strategy_adapters.py b/application/runtime_strategy_adapters.py index 28bf0ed..d1e9894 100644 --- a/application/runtime_strategy_adapters.py +++ b/application/runtime_strategy_adapters.py @@ -49,6 +49,10 @@ def attach_strategy_plugin_report(self, report, *, signals, error: str | None = def translate_strategy_plugin_value(self, category: str, raw_value: str | None) -> str: value = str(raw_value or "").strip() or "unknown" + if category == "route" and value == "taco_fake_crisis": + value = "unknown_route" + elif category == "action" and value == "small_taco": + value = "unknown_action" key = f"strategy_plugin_{category}_{value}" translated = self.translator(key) return translated if translated != key else value diff --git a/notifications/telegram.py b/notifications/telegram.py index ca93469..71e3e13 100644 --- a/notifications/telegram.py +++ b/notifications/telegram.py @@ -101,11 +101,9 @@ "strategy_plugin_mode_shadow": "影子观察", "strategy_plugin_route_no_action": "未触发危机", "strategy_plugin_route_true_crisis": "真危机", - "strategy_plugin_route_taco_fake_crisis": "TACO 假危机", "strategy_plugin_route_unknown_route": "未知状态", "strategy_plugin_action_no_action": "不操作", "strategy_plugin_action_watch_only": "仅通知", - "strategy_plugin_action_small_taco": "小仓 TACO", "strategy_plugin_action_defend": "防守", "strategy_plugin_action_blocked": "已阻断", "strategy_plugin_action_monitor": "持续观察", @@ -197,11 +195,9 @@ "strategy_plugin_mode_shadow": "shadow", "strategy_plugin_route_no_action": "no crisis detected", "strategy_plugin_route_true_crisis": "true crisis", - "strategy_plugin_route_taco_fake_crisis": "TACO fake crisis", "strategy_plugin_route_unknown_route": "unknown status", "strategy_plugin_action_no_action": "no action", "strategy_plugin_action_watch_only": "notify only", - "strategy_plugin_action_small_taco": "small TACO", "strategy_plugin_action_defend": "defend", "strategy_plugin_action_blocked": "blocked", "strategy_plugin_action_monitor": "watch", From c5d2ae011dd7cffad26da372a3a8eabac5e69adc Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Tue, 12 May 2026 05:51:59 +0800 Subject: [PATCH 2/2] Remove TACO from crisis plugin --- application/runtime_strategy_adapters.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/application/runtime_strategy_adapters.py b/application/runtime_strategy_adapters.py index d1e9894..28bf0ed 100644 --- a/application/runtime_strategy_adapters.py +++ b/application/runtime_strategy_adapters.py @@ -49,10 +49,6 @@ def attach_strategy_plugin_report(self, report, *, signals, error: str | None = def translate_strategy_plugin_value(self, category: str, raw_value: str | None) -> str: value = str(raw_value or "").strip() or "unknown" - if category == "route" and value == "taco_fake_crisis": - value = "unknown_route" - elif category == "action" and value == "small_taco": - value = "unknown_action" key = f"strategy_plugin_{category}_{value}" translated = self.translator(key) return translated if translated != key else value