fix(aiops): treat openclaw strategy actions as advisory
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
OG T
2026-05-05 13:49:36 +08:00
parent c57b8f40ee
commit f6a2a05e3f
2 changed files with 18 additions and 6 deletions

View File

@@ -641,8 +641,21 @@ class ElephantAlphaAutonomousEngine:
# NOTE: openclaw weekly_strategy / meta_analysis / strategic_analysis /
# market_analysis / pricing_strategy dispatch removed — weekly_strategy 由
# run_scheduler.py 週一 06:00 統一發送(防 EA 6h 重複觸發 35+/週)。
# orchestrator Gemini 仍回傳這些 action會落到下方 raise ValueError
# 由 _execute_decision 的 try/except 捕捉並計入 circuit breaker。
# 2026-05-05: orchestrator prompt once allowed openclaw generate_* actions.
# Treat those legacy strategy steps as advisory no-op so they do not trip
# the autonomous engine circuit breaker.
if agent_type == "openclaw" and action in {
"generate_strategic_analysis",
"generate_market_analysis",
"generate_pricing_strategy",
"weekly_strategy",
"meta_analysis",
"strategic_analysis",
"market_analysis",
"pricing_strategy",
}:
self._log.warning("OpenClaw advisory step skipped: action=%s", action)
return
if action in {"auto_heal", "resource_optimization", "optimize_resources", "handle_exception"}:
return await self._run_with_timeout(

View File

@@ -152,15 +152,14 @@ DECISION FRAMEWORK:
ALLOWED EXECUTION ACTIONS:
- hermes / analyze_price_competition
- nemotron / dispatch_alert
- openclaw / generate_strategic_analysis
- openclaw / generate_market_analysis
- openclaw / generate_pricing_strategy
- elephant_alpha / auto_heal
- elephant_alpha / code_fix
OpenClaw strategy/report actions are advisory only. Do not place openclaw / generate_* actions in execution_plan; put strategic recommendations in strategic_assessment, reasoning, expected_outcome, or contingency_plans.
價格調整紅線:
- 禁止輸出 execute_price_adjustment、adjust_price、apply_price_change、update_price。
- 若需要調價,請改輸出 openclaw / generate_pricing_strategy並在 description 說明「需要人工核准後才能調價」
- 若需要調價,請在 strategic_assessment / reasoning 中輸出定價策略建議,並明確說明「需要人工核准後才能調價」;不要放入 execution_plan
- 本系統不得由 AI 直接修改商品價格,只能產生建議與人工覆核項目。
BUSINESS CONTEXT: