Files
awoooi/packages/lewooogo-brain
OG T cb5d0ecfe4 feat(phase-6.4g-6.5b): API Synaptic Integration + Dual-State WarRoom UI
Phase 6.4g (API 突觸對接):
- lewooogo-brain dependency binding in apps/api/pyproject.toml
- POST /api/v1/incidents/{id}/propose route (proposals.py)
- Guardrails integration (8/8 tests passed)

Phase 6.5a (視覺皮層建置):
- DualStateIncidentCard.tsx with Nothing.tech visual compliance
- Ping radar animation for alert state
- Tier-based decision layer UI (AI 執行中 / 等待親核)

Phase 6.5b (神經網路串接):
- Main warroom page integration (page.tsx)
- IncidentResponse → DualState mapper function
- Empty state: "系統穩定。0 活躍異常。"

Tests:
- test_guardrails.py (8/8)
- test_incident_engine.py (6/6)
- test_skill_loader.py (6/6)
- Frontend build: 0 errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 11:58:28 +08:00
..

leWOOOgo Brain

AI Reasoning & Decision Engine for AWOOOI 2.0

Overview

leWOOOgo Brain 是 AWOOOI 智能運維平台的 AI 推論核心積木,負責:

  • 決策提案: 分析 Incident 生成修復建議
  • 事件處理: 聚合告警、分析爆炸半徑
  • Skill 載入: 動態載入專業技能模組

Installation

# 在 apps/api 中使用
pip install -e ../../packages/lewooogo-brain

Usage

from lewooogo_brain.interfaces import IProposalEngine
from lewooogo_brain.engines import ProposalEngine

# 使用決策引擎
engine = ProposalEngine(memory=memory_provider)
proposal, message = await engine.generate(incident_id)

Modules

Module Description
interfaces/ ABC 定義
engines/ 推論引擎
skills/ Skill 載入器

ADR Reference