Skip to content

Commit 74bcf4e

Browse files
authored
Merge pull request #49 from rongxinzy/techdebt/runtime-bridge-convergence
Converge engineering status docs
2 parents 2966e85 + 3e851f0 commit 74bcf4e

File tree

3 files changed

+113
-491
lines changed

3 files changed

+113
-491
lines changed

AGENTS.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,29 +142,43 @@ swarmmind/ ← Python package root
142142
├── renderer.py ✅ LLM Status Renderer
143143
├── agents/
144144
│ ├── base.py ✅ BaseAgent (abstract base with memory utilities)
145-
│ └── general_agent.py ✅ DeerFlowRuntimeAdapter (DeerFlow-driven adapter, compat alias: GeneralAgent)
145+
│ └── general_agent.py ✅ DeerFlowRuntimeAdapter (runtime orchestration shell, compat alias: GeneralAgent)
146146
├── repositories/ ✅ Repository layer (SQLModel + CRUD per domain)
147147
│ ├── agent.py
148148
│ ├── action_proposal.py
149149
│ ├── strategy.py
150150
│ ├── event_log.py
151-
│ ├── working_memory.py
152151
│ ├── memory.py
153152
│ ├── conversation.py
154153
│ ├── message.py
155154
│ └── runtime_catalog.py
155+
├── services/
156+
│ ├── conversation_execution.py ✅ ChatSession send/stream orchestration
157+
│ ├── conversation_support.py ✅ Message/title persistence helpers
158+
│ ├── conversation_trace_service.py ✅ conversation_id -> thread_id trace orchestration
159+
│ ├── lifecycle.py ✅ startup lifecycle + cleanup scanner
160+
│ ├── runtime_bridge.py ✅ sync/async bridge helpers for DeerFlow runtime calls
161+
│ ├── runtime_event_processing.py ✅ stream capture + event normalization helpers
162+
│ ├── runtime_support.py ✅ runtime binding/model/runtime-option helpers
163+
│ ├── stream_events.py ✅ DeerFlow event -> UI stream event translation
164+
│ ├── trace_checkpoint_storage.py ✅ raw checkpoint storage access
165+
│ ├── trace_provider.py ✅ parsed checkpoint provider boundary
166+
│ └── trace_service.py ✅ collaboration trace reconstruction
156167
├── runtime/
157168
│ ├── bootstrap.py ✅ DeerFlow Runtime bootstrap + config generation
158169
│ ├── profile.py ✅ RuntimeProfile management
159170
│ ├── models.py ✅ Runtime data models
160171
│ ├── catalog.py ✅ Model catalog for runtime profiles
161172
│ └── errors.py ✅ Runtime error types
162173
└── api/
163-
└── supervisor.py ✅ FastAPI supervisor REST API
174+
├── supervisor.py ✅ FastAPI app assembly + supervisor/system endpoints
175+
└── conversation_routes.py ✅ conversation route registration and compatibility exports
164176
165177
ui/ ← Supervisor web UI (Vite + React + shadcn/ui)
166178
├── src/
167-
│ └── App.tsx ✅ Full supervisor UI
179+
│ ├── App.tsx ✅ Full supervisor UI shell
180+
│ ├── components/workspace/ ✅ Split chat workspace components
181+
│ └── core/chat/ ✅ Chat stream/scroll/types helpers
168182
├── vite.config.ts
169183
└── tailwind.config.js
170184
@@ -175,6 +189,10 @@ tests/
175189
├── test_layered_memory.py ✅ Layered memory tests
176190
├── test_conversation_titles.py ✅ ChatSession title generation
177191
├── test_conversation_stream.py ✅ Streaming conversation tests
192+
├── test_conversation_trace_service.py ✅ Conversation trace orchestration tests
193+
├── test_runtime_bridge.py ✅ Sync/async bridge tests
194+
├── test_general_agent_stream_bridge.py ✅ GeneralAgent sync/async bridge regression tests
195+
├── test_general_agent_stream_events.py ✅ GeneralAgent stream event processing tests
178196
└── test_runtime_model_catalog.py ✅ Runtime model catalog tests
179197
```
180198

docs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SwarmMind 文档总览
22

3-
> 日期:2026-04-08
3+
> 日期:2026-04-15
44
> 用途:定义当前文档体系的主入口,区分前瞻性设计与工程实现状态
55
66
## 0. 文档分类体系
@@ -24,7 +24,8 @@
2424

2525
- `AGENTS.md` — 当前工程状态总览(含 Phase A 实现清单)
2626
- `docs/README.md` — 本文档,文档体系元数据
27-
- `docs/chat-mainline-execution-plan.md` — 当前主路径执行计划(临时执行文档,完成后归档)
27+
- `docs/chat-mainline-execution-plan.md` — 主路径执行计划草案(当前大部分内容尚未启动)
28+
- `docs/technical-debt-repayment-plan.md` — 技术债收口结论与剩余低利息债项
2829
- `docs/archive/*` — 已完成的临时调研与执行文档(如 gap-analysis、migration-plan)
2930

3031
**阅读场景**: 理解当前代码能做什么、如何运行、如何部署
@@ -101,10 +102,9 @@
101102

102103
用途:
103104

104-
- 记录当前迭代的主线优先级判断
105-
- 约束执行顺序, 避免同时横向铺多个半成品模块
106-
- 作为完成后归档到 `docs/archive/` 的临时执行文档
107-
- 记录主路径相关结构债、运行债和测试债的偿还顺序
105+
- `docs/chat-mainline-execution-plan.md` 保留主线路线草案, 但当前大部分事项尚未进入实施
106+
- `docs/technical-debt-repayment-plan.md` 记录本轮债务收口结论, 不再维护中间态执行步骤
107+
- 两者都属于工程状态文档, 需要随着现实状态更新, 但不应反向覆盖架构文档
108108

109109
## 3. 清理规则
110110

0 commit comments

Comments
 (0)