feat(api): Phase 16 R1.2 絞殺者模式 (Strangler Fig Pattern)
- 新增 USE_NEW_ENGINE 設定開關 (預設 False) - incident_memory.py 雙軌切換: 內嵌版本 ↔ lewooogo-brain - 自動降級: lewooogo-brain 不可用時回退內嵌版本 - 回滾指令: kubectl set env deployment/awoooi-api USE_NEW_ENGINE=false 統帥批准 2026-03-26 立即執行 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,21 @@ class Settings(BaseSettings):
|
||||
description="Enable mock mode for external services (Redis, Ollama, OpenClaw, PostgreSQL, SigNoz)",
|
||||
)
|
||||
|
||||
# ==========================================================================
|
||||
# Phase 16: leWOOOgo 積木化絞殺者模式 (Strangler Fig Pattern)
|
||||
# 2026-03-26 統帥批准立即執行
|
||||
#
|
||||
# 功能開關:
|
||||
# - False: 使用 apps/api 內嵌版本 (當前)
|
||||
# - True: 使用 lewooogo-brain/lewooogo-data 套件版本
|
||||
#
|
||||
# 回滾指令: kubectl set env deployment/awoooi-api USE_NEW_ENGINE=false
|
||||
# ==========================================================================
|
||||
USE_NEW_ENGINE: bool = Field(
|
||||
default=False,
|
||||
description="Phase 16: True=lewooogo packages, False=內嵌版本",
|
||||
)
|
||||
|
||||
# ==========================================================================
|
||||
# CORS - 嚴格白名單 (無 UAT, 無 wildcard)
|
||||
# ==========================================================================
|
||||
|
||||
Reference in New Issue
Block a user