# Pull Request Review - Consolidate and Submit Step

All files in Pull Request **#{{pull_request_id}}** have accepted answers. Fan them
in to the per-commit consolidated comment and submit the line-anchored threads.

## Actions

1. **Refresh** the live progress comment (lightweight, lock-free) as needed:

   ```bash
   agdt-pr-review-refresh-comment --pr {{pull_request_id}}
   ```

2. **Submit** the final fan-in once every file is answered. This is the single
   terminal mutation — it renders the full per-commit comment (root + 50k
   continuation replies), posts line-anchored suggestion threads, and cascades
   file → folder → overall status:

   ```bash
   agdt-pr-review-submit --pr {{pull_request_id}}
   agdt-task-wait
   ```

   Refresh and submit are mutually exclusive; submit is the authoritative writer
   of terminal review state.

## Next Action

When the comment is rendered and threads are submitted, advance to the decision:

```bash
agdt-advance-workflow decision
```

## Instructions File Reference

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

---

**Workflow Status**: Consolidating and submitting review for PR #{{pull_request_id}}.
