Issue Resolution Protocol
Automated 14-step issue resolution with GitHub webhook integration and mission templates.
Issue Resolution Protocol
When a GitHub issue is opened on a mapped repository, VantagePeers automatically creates a mission with 14 tasks following the Issue Resolution Protocol (IRP). The assigned orchestrator works through each step, with progress comments posted back to GitHub.
How It Works
GitHub Issue Opened
|
v
Webhook receives event
|
v
Auto-comment: "Investigating - assigned to {orchestrator}"
|
v
Mission created with 14 tasks (from template)
|
v
Orchestrator executes steps T0-T13
|
v
Auto-comments at T6, T8, T11
|
v
Issue closed with fix deployedThe 14 Steps (T0-T13)
| Step | Title | Description | Auto-Comment |
|---|---|---|---|
| T0 | Acknowledge | Auto-posted GitHub comment | "Investigating - assigned to {orchestrator}" |
| T1 | KB Search | Search fix patterns and episodes for similar issues | |
| T2 | Verify Config | Verify environment and configuration | |
| T3 | Identify Tests | Find test suites related to the component | |
| T4 | Run Existing Tests | Run tests, document PASS/FAIL | |
| T5 | Evaluate Coverage | Do tests cover the bug? | |
| T6 | Write Missing Tests | Write test that reproduces the bug | "Bug reproduced in test suite" |
| T7 | Fix | Delegate fix to specialist agent | |
| T8 | Run ALL Tests | Full suite, 0 regressions | "Fix ready. All tests pass" |
| T9 | Code Review | Review the diff | |
| T10 | Deploy Dev + Push | Deploy to dev, push branch | |
| T11 | Verification Preview | Test on preview, human confirmation | "Fixed and deployed to production" |
| T12 | Update KB | Store fix pattern in VantagePeers | |
| T13 | Close Issue | Close the GitHub issue |
GitHub Auto-Comments
VantagePeers posts 4 comments on the GitHub issue automatically:
- On open: "Investigating - assigned to
{orchestrator}" - After T6: "Bug reproduced in test suite. Root cause identified."
- After T8: "Fix ready. All tests pass including new regression test."
- After T11: "Fixed and deployed to production. Regression test added."
Customizing the Template
The IRP template is stored in the missionTemplates table and can be modified via MCP tools:
View current template
// get_mission_template
{ "name": "issue-resolution-v2" }Update steps
// update_mission_template
{
"name": "issue-resolution-v2",
"steps": [
{ "title": "Acknowledge", "description": "Auto-posted GitHub comment" },
{ "title": "KB Search", "description": "Search fixPatterns for similar issues" }
],
"createdBy": "carol"
}You can add, remove, or reorder steps. Changes take effect on the next issue opened.
GitHub Webhook Setup
1. Configure webhook on GitHub
In your repo settings, add a webhook:
- URL:
https://your-deployment.convex.site/github/webhook - Content type:
application/json - Events: Issues, Issue comments, Pull requests, Pull request reviews
- Secret: Match your
GITHUB_WEBHOOK_SECRETenv var
2. Map repo to orchestrator
// add_repo_mapping
{
"repo": "your-org/your-repo",
"orchestrator": "dave",
"project": "your-project"
}3. Set environment variables
npx convex env set GITHUB_TOKEN=ghp_your_token
npx convex env set GITHUB_WEBHOOK_SECRET=your_secretThe GITHUB_TOKEN needs repo scope to post comments. The webhook secret validates incoming requests.