Triage bot: improve RCA with upstream evidence gathering
The triage bot's RCA comments tend to restate the reporter's own diagnosis rather than gathering independent upstream evidence. For schema or API contract issues, the bot should verify the actual mismatch by querying Sentry directly, rather than taking the reporter's analysis at face value.
Current behavior
- Bot confirms the reporter's diagnosis without independent verification (#1064 is a clear example: the bot echoed the ZodError/enum analysis the reporter already provided, added no new evidence)
- For Sentry API issues, the bot doesn't query upstream to observe the actual response shape or confirm when the contract changed
- Evidence trail is opaque — comments don't distinguish what the bot checked vs. what it inferred from the issue body, making it hard for maintainers to trust or act on
Gap
- For schema/contract mismatches, the highest-value analysis would: call the relevant Sentry API endpoint and capture the actual response shape, cross-reference the MCP schema to confirm the exact field(s) that diverge, and surface that as grounded evidence with explicit "I called X and saw Y" framing
- Without that, the bot comment is redundant with the issue body and doesn't accelerate resolution
Suggested improvements
- When an issue references a Sentry API response or schema field, have the bot make the relevant API call and include the observed response shape in its analysis
- Require the bot to explicitly label what it verified vs. what it inferred (e.g., "Confirmed by calling
GET /organizations/{org}/issues/{id}/autofix/— response showsstatus: completed") - For schema mismatch issues, cross-reference Sentry source or API docs to confirm the current contract and when it diverged from the local expectation
Reference: #1064 (bot comment at https://github.com/getsentry/sentry-mcp/issues/1064#issuecomment-4649699516 restates the reporter's diagnosis without new evidence)
Action taken on behalf of immutable dcramer.
Triage bot here.
I checked the current triage hook and this looks actionable. The diagnosis stage is granted gh, git, and pnpm, and the issue-triage skill asks for repo inspection/targeted validation but does not specifically require Sentry API calls or verified-vs-inferred evidence labels for schema/API contract reports.
I also checked #1064's bot comment; it references schema/tool-path checks but does not cite an observed upstream response. Labeling this as an enhancement for maintainer review.