From 80d502ac7bba8539103fda29ee345ae235046001 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Thu, 5 Mar 2026 00:11:34 +0900 Subject: [PATCH] docs(tasks): align CLAUDE and TASKS-2 with task1 state --- CLAUDE.md | 5 +++-- todo/TASKS-2.md | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index d89a8baac..2909a3f9a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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 Mode(TASKS-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) | + diff --git a/todo/TASKS-2.md b/todo/TASKS-2.md index 78fc45fd3..8233e3b5f 100644 --- a/todo/TASKS-2.md +++ b/todo/TASKS-2.md @@ -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) が動作 + + +