Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/tasks/RECENT_TASK_SCHEDULE.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@
|------|------|------|------|
| **P2 · L2** | [`done/task_standards_backend_l2_draft_v1.md`](done/task_standards_backend_l2_draft_v1.md) | **done** | R1 签收 · L2 active |
| **P3+P4** | [`done/task_standards_backend_p3_p4_l3_ruff_v1.md`](done/task_standards_backend_p3_p4_l3_ruff_v1.md) | **done** | PR [#145](https://github.com/Cyning12/ai-ink-brain-api-python/pull/145) · `.mdc` + Ruff CI |
| **Tech-debt Epic** | [`active/task_standards_backend_api_modularization_manifest_v1.md`](active/task_standards_backend_api_modularization_manifest_v1.md) | **in_progress** | W1 **done** [#146](https://github.com/Cyning12/ai-ink-brain-api-python/pull/146) · **当前棒 W2** |
| **Tech-debt Epic** | [`active/task_standards_backend_api_modularization_manifest_v1.md`](active/task_standards_backend_api_modularization_manifest_v1.md) | **in_progress** | W1~W6 **done** · **当前棒 W7**(tools 注册表拆分) |
| **W1** | [`done/task_api_env_rag_env_consolidation_w1.md`](done/task_api_env_rag_env_consolidation_w1.md) | **done** | `rag_env` env 收敛 · index 零 `os.getenv` |
| **W6** | [`done/task_api_agent_loop_split_w6.md`](done/task_api_agent_loop_split_w6.md) | **done** | PR [#153](https://github.com/Cyning12/ai-ink-brain-api-python/pull/153) · agent tool runner + persist |

**执行顺序**:P3+P4 **done** → W1 **done** → **W2**(Legacy chat 路由)→ W3~W8。
**执行顺序**:P3+P4 **done** → W1 **done** → W2~W6 **done** → **W7**(Tool 注册表)→ W8。

### 1.3 semi_auto 退场双轨(**A+B done** · Epic CLOSE · 2026-06-08)

Expand Down
1 change: 1 addition & 0 deletions docs/tasks/_views/done.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@
- `../done/task_harness_p0_openspec_tdd_loop_v1.md`(2026-05-30 验收通过:P0 OpenSpec×TDD Loop 母单 META · R1–R3 · REPORT `p0-openspec-tdd/REPORT_completion_20260530_v1.md` · `HARNESS-P0-OPENSPEC-TDD-LOOP@2026-05-30`)
- `../done/task_portfolio_rag_demo_v1.md`(2026-06-03 验收通过:Portfolio W2/W3/W5 RUNBOOK + sync + 五问留证 · KPI 100% · `PORTFOLIO-RAG-DEMO@2026-06-01` · reinspect `reinspect_portfolio_rag_demo_w5_20260603_v1.md` · 分支 `task/portfolio-rag-w5-v1`)
- `../done/task_api_env_rag_env_consolidation_w1.md`(2026-06-09 验收通过:Epic T1 W1 · `index.py` env 收敛至 `rag_env` · PR #146 · 50 `task_api_env_rag_env_consolidation_w1_reinspect_2026-06-09.md` · `CODING_BACKEND_L2@2026-06-09`)
- `../done/task_api_agent_loop_split_w6.md`(2026-06-09 验收通过:Epic W6 · agent tool runner + persist 子模块 · PR #153 · `CODING_BACKEND_L2@2026-06-09`)
- `../done/task_standards_backend_p3_p4_l3_ruff_v1.md`(2026-06-09 验收通过:P3+P4 L3 `.mdc` + Ruff CI · PR #145 · `CODING_BACKEND_L2@2026-06-09`)

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MANIFEST · 后端 Python 服务模块化 Tech-Debt Epic

> **状态**:active(Epic 母单 · **MANIFEST** · W1 **done** · W2~W8 执行中
> **状态**:active(Epic 母单 · **MANIFEST** · W1~W6 **done** · W7 当前棒
> **schedule_ref**:编码规范 Epic · §1.5 Tech-debt
> **epic**:`standards-engineering` · 子主题 **`api-modularization`**
> **前置**:L2 [`CODING_BACKEND_L2_v1_zh.md`](../../standards/CODING_BACKEND_L2_v1_zh.md) **active**(P-01 路由薄层 · B-01)
Expand Down Expand Up @@ -62,7 +62,7 @@ L2 **P-01** 要求路由 **薄**(handler ~80 行软上限)、领域逻辑下
| **W3** | Admin ingest 路由下沉 | `index` admin/sync 段 | 抽 `api/routes/admin_ingest.py`;ingest 仍调 `ingest_pipeline` | `api-routes-admin-ingest-split` | `task/api-routes-admin-w3` | Medium |
| **W4** | Unified JSON 路径 | `unified_chat` JSON handler 段 | 抽 `api/unified/json_handler.py`(名可调整) | `api-unified-json-split` | `task/api-unified-json-w4` | High |
| **W5** | Unified SSE 路径 | `unified_chat` stream 段 | 抽 `api/unified/sse_handler.py`;契约 `_contract_manifest` 必对照 | `api-unified-sse-split` | `task/api-unified-sse-w5` | High |
| **W6** | Agent 循环 | `agent` ~1095 | 抽 tool 调度 / persist 子模块;`ChatBIAgent` 薄编排 | `api-agent-loop-split` | `task/api-agent-w6` | High |
| **W6** | Agent 循环 | `agent` ~1095 | 抽 tool 调度 / persist 子模块;`ChatBIAgent` 薄编排 | `api-agent-loop-split` | `task/api-agent-w6` | High · **done** PR [#153](https://github.com/Cyning12/ai-ink-brain-api-python/pull/153) |
| **W7** | Tool 注册表 | `tools` ~958 | `text2sql_*` vs RAG tools 分文件;保留 `get_tool_registry()` 入口 | `api-tools-registry-split` | `task/api-tools-w7` | Medium |
| **W8** | Intent 栈 | `intent_agent` 746 + `intent_router` 346 | 表驱动与 LLM 路径分文件;不混改 Unified | `api-intent-stack-split` | `task/api-intent-w8` | Medium |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# W6 · Agent 循环子模块拆分

> **状态**: active(PR 待 merge
> **状态**: done(PR [#153](https://github.com/Cyning12/ai-ink-brain-api-python/pull/153) · 2026-06-09
> **slug**: `api-agent-loop-split`
> **git_branch**: `task/api-agent-w6`
> **风险**: High
Expand Down Expand Up @@ -95,4 +95,4 @@
| 日期 | 说明 |
|------|------|
| 2026-06-09 | v1:W6 task 初稿 — agent 循环子模块拆分 |
| 2026-06-09 | v1.1:实现完成 · PR merge |
| 2026-06-09 | v1.1:实现完成 · PR [#153](https://github.com/Cyning12/ai-ink-brain-api-python/pull/153) merge · 关账 |