Deployment Verification is a powerful feature of Castrel that automatically detects deployment failures and provides instant root cause analysis, eliminating the need to manually investigate logs and code changes across multiple tools.
Deployment Verification is an AI-powered deployment failure diagnosis system that automatically monitors your CI/CD pipeline through GitHub Webhooks. When a deployment fails, Castrel automatically:
This transforms what typically takes 15-30 minutes of manual investigation into a 2-5 minute automated process.
Step 1: Connect GitHub Repository
Set up the GitHub Webhook integration to enable automatic deployment event detection:
See GitHub Integration for detailed setup instructions.
Step 2: Connect Deployment Tool
Authorize the MCP tool for your deployment platform:
If authorization is missing when a deployment fails, Castrel will prompt you to complete the setup before continuing diagnosis.
Step 3: Receive Diagnosis Report
When a deployment fails, Castrel automatically analyzes and delivers a diagnosis report containing:
Step 4: Apply Fix and Redeploy
Based on the diagnosis report:
You can also provide feedback (Helpful / Not Helpful) to help Castrel improve its diagnosis accuracy.
Castrel follows a systematic approach to diagnose each deployment failure:
1. Deployment Event Detection
When GitHub sends a deployment failure webhook, Castrel automatically:
2. Deployment Tool Identification
Castrel intelligently identifies your deployment tool using multiple signals:
vercel[bot]vercel.app.vercel/project.json, etc.3. Log Retrieval & Error Analysis
Using MCP tools, Castrel:
4. Code Change Correlation
Castrel fetches the commit diff via GitHub MCP and:
5. Report Generation
Finally, Castrel generates a structured diagnosis report with:
| Tip | Description |
|---|---|
| Connect All Tools | Authorize both GitHub and your deployment platform (Vercel, etc.) for complete diagnosis coverage |
| Enable All Repositories | Set up webhooks for all repositories you want monitored to ensure no deployment failures are missed |
| Provide Feedback | Rate diagnosis reports to help Castrel improve accuracy over time |
Castrel combines two analysis approaches:
Log Analysis extracts error information from deployment logs, including error type, location, and stack traces.
Code Correlation matches errors with the specific code changes in the triggering commit, analyzing the causal relationship to identify which change introduced the issue.
Castrel can diagnose various deployment failure types: