docs(tasks): align CLAUDE and TASKS-2 with task1 state

This commit is contained in:
dj-oyu 2026-03-05 00:11:34 +09:00
parent 70d70bd050
commit 80d502ac7b
2 changed files with 18 additions and 2 deletions

View file

@ -55,12 +55,13 @@ Lint: `golangci-lint run`
## 未実装タスク
以下の `todo/` ファイルに分割。各ファイルは互いに依存関係がなく、別ブランチで並列実装可能
以下の `todo/` ファイルに分割。基本は別ブランチで並列実装可能(※ TASKS-2 は TASKS-1 の型変更前提あり)
| ファイル | 概要 |
|---|---|
| [`todo/TASKS-1.md`](todo/TASKS-1.md) | ~~**Memory & Performance Optimization**~~ ✅ 実装済みMemoryStore キャッシュ+パース済み state、FunctionCall.Arguments map統一、ToolDefinition.Parameters RawMessage化、検索結果フォーマット共通化、stats 定期フラッシュ) |
| [`todo/TASKS-2.md`](todo/TASKS-2.md) | **Subagent Orchestration (Container Model)** — SubagentContainer、Orchestrator、Presets enforcement、Subagent Plan Mode |
| [`todo/TASKS-2.md`](todo/TASKS-2.md) | **Subagent Orchestration (Container Model)** — SubagentContainer、Orchestrator、Presets enforcement、Subagent Plan ModeTASKS-1 の型変更前提メモ追記済み) |
| [`todo/TASKS-3.md`](todo/TASKS-3.md) | **Session DAG (SQLite Store)** — セッション管理の SQLite 移行、Turn ベース線形+セッション間 DAG、Fork/Report フロー |
| [`todo/TASKS-4.md`](todo/TASKS-4.md) | **Mini App & Static Serving** — 静的配信の汎用化、バンドラ導入、フロントエンドテスト追加 |
| [`todo/TASKS-5.md`](todo/TASKS-5.md) | ~~**Heartbeat Worktree Management**~~ ✅ 実装済み(`/plan worktrees``list/inspect/merge/dispose`、安全化した `PruneOrphaned`、Mini App `/miniapp/api/worktrees` + Git タブ UI |

View file

@ -1,5 +1,17 @@
# TASKS-2: Subagent Orchestration (Container Model)
## TASKS-1 反映メモ (2026-03-05)
TASKS-2 実装時は以下の型変更を前提にすること。
- `FunctionCall.Arguments` は JSON 文字列ではなく `map[string]any` 扱い。
- 旧来の `json.Unmarshal([]byte(tc.Function.Arguments), ...)` 前提コードは不要。
- `ToolFunctionDefinition.Parameters``json.RawMessage`
- 生成時は `providers.MustMarshalParameters(...)``SetParametersMap(...)` を利用。
- `map[string]any` を直接代入しない。
- `MemoryStore` はキャッシュ化済み。
- `GetPlanTaskName` / `GetPlanWorkDir` / `GetMemoryContext` を優先して利用し、`ReadLongTerm()` 直叩きは最小化する。
SubagentManager を Container ベースの Orchestrator に進化させる。
セッション管理の内部実装 (TASKS-3) には依存しない — 現行の SessionManager 上で動作させ、後から SessionStore に差し替える。
@ -225,3 +237,6 @@ conductor は spawn 後に Delegated に記録、結果受信後に Findings に
- Deliberate preset の clarifying → review → executing フロー動作
- SandboxConfig による exec 制限が全 preset で正しく enforcement
- escalation chain (subagent → conductor → human) が動作