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>
64 lines
1.3 KiB
Markdown
64 lines
1.3 KiB
Markdown
# Automation 03: Memory 同步自動化
|
||
|
||
> **觸發**: 任務完成時
|
||
> **目標**: 自動更新 Memory,確保跨 Session 連續性
|
||
|
||
---
|
||
|
||
## ✅ 自動執行 (Tier 1) - 無需確認
|
||
|
||
### 任務完成後自動執行
|
||
|
||
1. **判斷是否需要更新 Memory**
|
||
- 新功能完成 → 更新 project_* MD
|
||
- 修復 Bug → 更新 RCA MD
|
||
- 學到教訓 → 更新 feedback_* MD
|
||
|
||
2. **更新對應 Memory 檔案**
|
||
```bash
|
||
# 自動寫入 Memory
|
||
Write(~/.claude/projects/*/memory/*.md)
|
||
```
|
||
|
||
3. **更新 MEMORY.md 索引**
|
||
```bash
|
||
# 確保索引同步
|
||
Edit(~/.claude/projects/*/memory/MEMORY.md)
|
||
```
|
||
|
||
4. **更新 LOGBOOK.md (重大里程碑)**
|
||
```bash
|
||
# 追加進度紀錄
|
||
Edit(docs/LOGBOOK.md)
|
||
```
|
||
|
||
---
|
||
|
||
## 自動判斷 Memory 類型
|
||
|
||
| 情境 | Memory 類型 | 檔案命名 |
|
||
|------|-------------|----------|
|
||
| 用戶回饋/糾正 | feedback | `feedback_*.md` |
|
||
| 功能完成 | project | `project_phase*.md` |
|
||
| 生產事故 | project | `project_*_rca_*.md` |
|
||
| 新增參考資料 | reference | `reference_*.md` |
|
||
| 用戶資訊 | user | `user_*.md` |
|
||
|
||
---
|
||
|
||
## Session 結束前檢查清單
|
||
|
||
```
|
||
□ 相關 Memory MD 已更新?
|
||
□ MEMORY.md 索引已同步?
|
||
□ LOGBOOK.md 已記錄?
|
||
□ 下一步已標記?
|
||
```
|
||
|
||
---
|
||
|
||
## 禁止自動化
|
||
|
||
- 刪除現有 Memory 檔案
|
||
- 修改他人建立的 Memory (需確認)
|