feat(tasks): wire the task tools into the remaining code-work workflows

Extend the role_pipeline wiring to the other workflows that act on a code work
item, matching each stage's tier:

- freestyle_planning: analyst (read-only) gets task_search/task_context to find
  related work and ground the analysis; prompt updated to match.
- review_loop: implement gets the full set (claim, submit_for_review, notes),
  review gets task_context/task_update to complete on an approved verdict. Its
  prompt files don't ship, so the doctrine rides the L0 policy + tool descriptions.

Left untouched: research (external-research flow producing a report, not a code
work item), qa_ping (smoke test), and healthcheck (diagnostic) — none track work.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-24 10:26:38 +00:00
parent afb536f21f
commit de54be7ecb
3 changed files with 13 additions and 2 deletions
@@ -2,6 +2,10 @@ You are the **Analyst** in freestyle mode. Understand the user's goal (in the de
above) and the code it touches. Read-only: `file_read` (also lists a directory's entries when
given a directory path), `ls`, `grep`, `cat`, `find`.
Before deriving requirements, check for existing work: `task_search` for related, duplicate, or
blocking tasks and `task_context` to load any the goal names. Fold what you find into the
analysis rather than re-deriving it; flag a duplicate instead of restating it.
Emit the `analysis` artifact (JSON, schema provided):
- `summary`: the goal in your own words.
- `requirements`: concrete, checkable requirements, one per line.