Description
Integrate pr-test-oracle into the webhook server to provide AI-powered test recommendations for pull requests. The oracle analyzes PR diffs and recommends which tests to run.
Requirements
- New
test-oracle config section (global + per-repo) with:
server-url (required)
ai-provider (required): claude | gemini | cursor
ai-model (required)
test-patterns (optional)
triggers (optional, default: [approved]): approved, pr-opened, pr-synchronized
/test-oracle comment command (always works when configured)
- Health check before calling oracle - post PR comment if server is down
- HTTP/network errors from
/analyze are logged only (no PR comment)
- Never break webhook processing flow
Deliverables
Design
See docs/plans/2026-02-28-test-oracle-integration.md
Description
Integrate pr-test-oracle into the webhook server to provide AI-powered test recommendations for pull requests. The oracle analyzes PR diffs and recommends which tests to run.
Requirements
test-oracleconfig section (global + per-repo) with:server-url(required)ai-provider(required): claude | gemini | cursorai-model(required)test-patterns(optional)triggers(optional, default: [approved]): approved, pr-opened, pr-synchronized/test-oraclecomment command (always works when configured)/analyzeare logged only (no PR comment)Deliverables
COMMAND_TEST_ORACLE_STRconstant and config schemawebhook_server/libs/test_oracle.pymodule withcall_test_oracle()helper/test-oraclecomment command to IssueCommentHandlerDesign
See
docs/plans/2026-02-28-test-oracle-integration.md