How AI Diagnosis Works
- Context Aggregation: The engine collects the symbolicated stack trace, enclosing code blocks, recent git commit diffs, telemetry span watermarks, and preceding breadcrumbs.
- Failure Classification: The error is classified by category (e.g., race condition, missing null check, schema mismatch, unhandled API rejection).
- Patch Generation: An actionable unified diff patch is generated against the offending repository branch.
Example AI Summary
AI Diagnostic Report
Root Cause Summary:
The function
calculateDiscount in src/pricing/discounts.ts threw a TypeError: Cannot read properties of undefined (reading 'percentage') because tierConfig was fetched without checking for newly added customer tier 'enterprise_custom'.Suggested Fix:Linking Your Code Repository
To enable repository-aware AI analysis:- Navigate to Project Settings > Integrations > GitHub / GitLab.
- Grant repository read permissions.
- Traceback will automatically link crash lines to exact repository commits and branches.