# Pull Request Review - Delegate Step

You are reviewing Pull Request **#{{pull_request_id}}** as `pr-review/orchestrator`.
There is a **single review path**: delegate one reviewer per file, then fan in.

## Queue Progress

- **Files to review**: {{total_count}}
- **Completed**: {{completed_count}}
- **Remaining**: {{pending_count}}

## The ONLY path

For **each** file in `manifest.json`:

1. Spawn `pr-review/file-reviewer@<fileKey>` with its `file-<fileKey>.md` prompt,
   `pr-context.md`, and the bounded cluster context. It returns a **draft**
   answer via `agdt-file-review-write` and never spawns subagents.
2. For `deep` files, run the rubber ducks yourself: resolve the validated models
   with `agdt-pr-review-resolve-ducks --layer subagent --author-model <model>`,
   spawn `pr-review/rubber-duck` critics, then integrate and record each verdict
   into the answer's `reviewer.rubberDucks`.
3. For `needs-info` returns, gather the requested context and re-spawn (bounded
   retries).

Keep your context bounded by reading on-disk artifacts (`manifest.json`, answer
files) rather than holding every file's content. You are the **only** writer of
shared state; subagents only write their own scoped answer.

## Cross-file synthesis

After every file is answered, run a cross-file synthesis pass: reconcile
findings across clusters and flag any contract/call-chain issues a single-file
reviewer could not see.

## Next Action

When all files are answered, advance to consolidation:

```bash
agdt-advance-workflow consolidate-and-submit
```

## Instructions File Reference

The full prompt for this workflow step is saved in the workflow state directory
as `temp-pull-request-review-delegate-prompt.md`.

---

**Workflow Status**: Delegation in progress
({{completed_count}}/{{total_count}} complete).
