3e31ebcc1e
Explicit per-stage grants (least-privilege, invariant #5) for the mounted codebase-memory MCP side-car: - role_pipeline: discovery bootstraps the graph (index_repository) + grounds; analyst/architect/decomposer/implementer/reviewer get read-only query tools (search_code/search_graph/get_architecture/trace_path/get_code_snippet) scoped to each role. NOTE: architect flips from pure-reasoning to tool-calling. - review_loop implement+review and task_planning planner get read-only queries. Tools are approval-gated at T2 (server default in config.toml [[mcp]]). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
944 B
TOML
26 lines
944 B
TOML
id = "task_planning"
|
|
description = "Sweep the codebase, understand the request, emit a task graph via task_decompose — then stop. No execution."
|
|
start = "planner"
|
|
|
|
# Single stage: read the request + codebase, emit a task graph, done.
|
|
# require_task_decompose = true is a deterministic kernel gate: stage_complete is blocked
|
|
# until task_decompose (or task_create for a trivial single-task request) returns successfully.
|
|
# The model cannot skip task creation — this is enforced by the orchestrator, not just the prompt.
|
|
[[stages]]
|
|
id = "planner"
|
|
prompt = "prompts/task_planner.md"
|
|
allowed_tools = [
|
|
"file_read", "shell", "task_search", "task_context", "task_decompose", "task_create",
|
|
"mcp__codebase-memory__search_code",
|
|
"mcp__codebase-memory__search_graph",
|
|
]
|
|
require_task_decompose = true
|
|
token_budget = 16384
|
|
max_retries = 2
|
|
|
|
[[transitions]]
|
|
id = "planner-to-done"
|
|
from = "planner"
|
|
to = "done"
|
|
condition_type = "always_true"
|