| name | address-pr-review-comments |
| description | Inspect, triage, implement, test, and reply to unresolved BrainRot pull request review comments while preserving exact model ownership for game files. Use for human, Copilot, or automated PR feedback and requested changes. |
Address PR Review Comments
Collect and triage feedback
- Confirm the PR and check out its non-default head branch before changing files. Stop if the current branch is
main, another default branch, detached HEAD, or unrelated to the PR.
- Prefer connected GitHub tools for PR metadata and comments. Use
gh or its GraphQL API when thread resolution state or inline context is unavailable otherwise.
- Fetch unresolved review threads, review summaries, and relevant check failures.
- Record a verdict and rationale for each comment:
VALID: fixes a real bug, performance problem, accessibility issue, or meaningful maintainability problem.
SKIP: cosmetic preference without material value, incorrect codebase assumptions, duplication, or a change that would break intended behavior.
Route valid fixes
- For comments on
public/games/{game}/{model}/index.html, resolve the version's exact model and modelId from games-metadata.json.
- Dispatch the fix to that exact model using the harness's model-selection mechanism. Do not rely on a static routing table.
- Pass the review comment verbatim with its file path and inline context. Do not replace it with the orchestrator's proposed solution.
- If the exact model cannot be dispatched, leave that comment blocked and report it. The orchestrator or another model must not edit the game file.
- Handle non-game files with an appropriate available model or the current agent.
Verify and respond
- Batch compatible fixes, then review the consolidated diff once. Run
npm run update-metadata after game-file changes and check its output against the implementation.
- Run one applicable change-scoped path from
verify-changes after the fixes are complete. Reuse passing evidence while the relevant inputs remain unchanged; the updated pull request reruns the complete lint, build, and Playwright gate in CI.
- Commit fixes with a Gitmoji subject and the repository's required co-author trailer, then push normally.
- Reply to each valid thread with the implementing model, concise fix summary, and commit identifier.
- Reply to skipped comments with the triage rationale. Resolve a thread only after its fix or rationale is published.
- Report any blocked comments and leave them unresolved.
Never commit or push review fixes directly to the default branch.