feat(AIOps): 全開 P1-P6 feature flags + Nemotron + offline replay loop
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

- configmap: 啟用 AIOPS_P1~P6 全部總開關與子開關
- configmap: ENABLE_NEMOTRON_COLLABORATION=true(回歸 120s timeout)
- feature_flags.py: 補齊 AIOPS_P6_GOVERNANCE_ENABLED 缺失欄位
- main.py: 掛載 run_offline_replay_loop(ADR-087 Phase 6)

2026-04-15 ogt + Claude Sonnet 4.6(亞太)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-15 21:59:51 +08:00
parent ecfb7148bf
commit 76558a3cd9
4 changed files with 45 additions and 3 deletions

View File

@@ -173,6 +173,10 @@ class AIOpsFeatureFlags(BaseSettings):
default=False,
description="P6: Playbook trust 分布漂移偵測是否啟用",
)
AIOPS_P6_GOVERNANCE_ENABLED: bool = Field(
default=False,
description="P6: 治理閉環總開關offline_replay_service / model_rollback_service 守衛)",
)
def is_phase_enabled(self, phase: int) -> bool:
"""

View File

@@ -383,6 +383,15 @@ async def lifespan(_app: FastAPI) -> AsyncGenerator[None, None]:
except Exception as e:
logger.warning("proactive_inspector_schedule_failed", error=str(e))
# ADR-087 Phase 6: 離線回放(每 7 天)— 決策一致率基線
# 2026-04-15 ogt + Claude Sonnet 4.6(亞太): Phase 6 初始建立
try:
from src.jobs.offline_replay_service import run_offline_replay_loop
asyncio.create_task(run_offline_replay_loop())
logger.info("offline_replay_loop_scheduled", interval_sec=604800)
except Exception as e:
logger.warning("offline_replay_loop_schedule_failed", error=str(e))
yield
# Shutdown