Files
awoooi/.agents/workflows/lewooogo-backend-core.md
OG T 7478dc0254 feat(phase6-9): Complete modular architecture and Agent Teams
Phase 6.4 - Modular Architecture:
- Add lewooogo-brain adapters for LLM providers
- Add lewooogo-data dual memory (Redis + PostgreSQL)
- Implement consensus engine for multi-agent decisions
- Add incident memory service for historical context

Phase 9 - Agent Teams (Claude Agent SDK):
- Add base agent class with Claude Sonnet 4 integration
- Implement action planner, blast radius, and security agents
- Add agent API endpoints and proposal workflow
- Integrate ADR-009 OpenClaw Agent Teams architecture

DevOps & CI/CD:
- Add GitHub Actions CI/CD workflows (ci.yaml, cd.yaml)
- Add pre-commit hooks and secrets baseline
- Add docker-compose for local development
- Update Kubernetes network policies

Frontend Improvements:
- Add auto-healing error boundary component
- Update i18n messages for agent features
- Enhance dual-state incident card with execution feedback

Documentation:
- Add 7 ADRs covering MCP, design system, architecture decisions
- Update ARCHITECTURE_MEMORY.md with modular design
- Add GLOBAL_RULES.md and SOUL.md for project identity

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 18:40:36 +08:00

731 B
Raw Blame History

description
description
後端引擎與 API 開發規範 (Backend Core & API Development)

lewooogo-backend-core

管轄範圍

apps/api (FastAPI, Python 3.11, asyncpg)

核心約束 (AWOOOI 憲法)

  1. 四大鐵律: Async-First 全域非同步、CORS 嚴格白名單、Pydantic 強型別、structlog 結構化日誌(禁止使用 print
  2. 可觀測性強制注入: 所有 API 必須包含 OpenTelemetry traces並將日誌打向唯一端點 192.168.0.188:4317 (SigNoz)。

自動化驗收

修改後端程式碼完成後,請確保 Docker 容器運行中,並執行以下健康度掃描,若未出現 200 則必須繼續修復:

// turbo-all

curl -s http://localhost:8000/api/v1/health