Skip to content

feat(agents): triage runs pre-PR expert review on diff#2999

Merged
bokelley merged 1 commit intomainfrom
bokelley/triage-pre-pr-review
Apr 24, 2026
Merged

feat(agents): triage runs pre-PR expert review on diff#2999
bokelley merged 1 commit intomainfrom
bokelley/triage-pre-pr-review

Conversation

@bokelley
Copy link
Copy Markdown
Contributor

Summary

Triage routine now runs a mandatory pre-PR expert review on the actual diff (not just the plan) before opening the PR. Spawns code-reviewer + the matching domain expert in parallel, classifies findings as blocker/nit/out-of-scope, fixes blockers in up to 2 iterations, records sign-offs in the PR body.

Paired with flipping all 5 routines (4 triage + 1 context-refresh) from claude-opus-4-7[1m]claude-sonnet-4-6. The stream-idle timeouts we've been hitting on multi-step sessions (issues #2987, python#263) suggest the orchestrator was the bottleneck; Sonnet is 3-5x faster per step and the deep thinking stays in Opus-backed Task subagents.

Changes

  • .agents/routines/triage-prompt.md — new ## Pre-PR expert review section between "Bundling" and "PR constraints"
  • PR constraints body now requires the Pre-PR review block (replaces the weaker "expert-consensus note")
  • Routine model config flipped to Sonnet for all 5 triggers (done via RemoteTrigger API)

Sibling PRs to follow on adcp-client, adcp-client-python, adcp-go.

Test plan

  • CI green
  • Fire one triage run after merge; confirm the pre-PR review block appears in the resulting draft PR body
  • Confirm session completes without stream-timeout on Sonnet

🤖 Generated with Claude Code

Adds a mandatory pre-PR expert review step between "branch pushed" and
`gh pr create`. Spawns code-reviewer + matching domain expert in
parallel on `git diff main...HEAD`, classifies findings as blocker/nit/
out-of-scope, fixes blockers in up to 2 iterations, records sign-offs
in PR body.

Paired with flipping the triage routines from Opus 4.7 1M to Sonnet 4.6
so multi-step flows (draft, self-review, synthesize, PR) complete inside
the idle-timeout window.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Apr 24, 2026
Adds a mandatory pre-PR expert review step between "branch pushed" and
`gh pr create`. Spawns code-reviewer + matching domain expert in
parallel on `git diff main...HEAD`, classifies findings as blocker/nit/
out-of-scope, fixes blockers in up to 2 iterations, records sign-offs
in PR body.

Mirrors adcontextprotocol/adcp#2999. Paired with flipping triage
routines from Opus 4.7 1M to Sonnet 4.6 so multi-step flows complete
inside the idle-timeout window.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bokelley added a commit to adcontextprotocol/adcp-client-python that referenced this pull request Apr 24, 2026
Mirrors adcontextprotocol/adcp#2999. Adds mandatory pre-PR expert
review on the diff (code-reviewer + domain expert in parallel) before
`gh pr create`, capped at 2 review→fix iterations. Sign-offs recorded
in PR body.

Paired with flipping triage routines to Sonnet 4.6 so multi-step flows
complete inside the idle-timeout window.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bokelley added a commit to adcontextprotocol/adcp-go that referenced this pull request Apr 24, 2026
Mirrors adcontextprotocol/adcp#2999. Adds mandatory pre-PR expert
review on the diff (code-reviewer + domain expert in parallel) before
`gh pr create`, capped at 2 review→fix iterations. Sign-offs recorded
in PR body.

Paired with flipping triage routines to Sonnet 4.6 so multi-step flows
complete inside the idle-timeout window.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bokelley bokelley merged commit 4035214 into main Apr 24, 2026
11 checks passed
@bokelley bokelley deleted the bokelley/triage-pre-pr-review branch April 24, 2026 10:43
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Apr 24, 2026
… PR (#865)

Adds a mandatory pre-PR expert review step between "branch pushed" and
`gh pr create`. Spawns code-reviewer + matching domain expert in
parallel on `git diff main...HEAD`, classifies findings as blocker/nit/
out-of-scope, fixes blockers in up to 2 iterations, records sign-offs
in PR body.

Mirrors adcontextprotocol/adcp#2999. Paired with flipping triage
routines from Opus 4.7 1M to Sonnet 4.6 so multi-step flows complete
inside the idle-timeout window.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bokelley added a commit to adcontextprotocol/adcp-client-python that referenced this pull request Apr 24, 2026
… PR (#269)

Mirrors adcontextprotocol/adcp#2999. Adds mandatory pre-PR expert
review on the diff (code-reviewer + domain expert in parallel) before
`gh pr create`, capped at 2 review→fix iterations. Sign-offs recorded
in PR body.

Paired with flipping triage routines to Sonnet 4.6 so multi-step flows
complete inside the idle-timeout window.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bokelley added a commit to adcontextprotocol/adcp-go that referenced this pull request Apr 24, 2026
… PR (#86)

Mirrors adcontextprotocol/adcp#2999. Adds mandatory pre-PR expert
review on the diff (code-reviewer + domain expert in parallel) before
`gh pr create`, capped at 2 review→fix iterations. Sign-offs recorded
in PR body.

Paired with flipping triage routines to Sonnet 4.6 so multi-step flows
complete inside the idle-timeout window.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant