Skip to content

Conversation

@dtsong
Copy link
Owner

@dtsong dtsong commented Jan 23, 2026

Summary

  • Fire webhook on low-confidence reviews to escalate to human reviewers
  • Configurable webhook URL, confidence threshold, and Slack/generic format
  • Integrates after confidence scoring in the review pipeline

Changes

  • src/pr_review_agent/escalation/webhook.py — Slack and generic webhook formatters + sender
  • src/pr_review_agent/config.pyEscalationConfig dataclass
  • src/pr_review_agent/main.py — webhook trigger after confidence check
  • .ai-review.yaml — escalation config section (disabled by default)
  • tests/test_webhook.py — 14 tests

Test plan

  • 14 unit tests passing
  • Lint clean
  • Full test suite unaffected

Closes #8

🤖 Generated with Claude Code

- Add EscalationConfig with webhook_url, trigger threshold, slack_format
- Create escalation/webhook.py with Slack and generic JSON formatters
- Integrate into review pipeline: fires webhook when confidence < threshold
- 14 tests covering escalation logic, payload formatting, webhook delivery

Implements #8

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dtsong dtsong merged commit 19ec7c1 into main Jan 23, 2026
1 of 2 checks passed
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.

[Phase 4.1] Webhook Notifications

2 participants