feat(seer): add explorer-mode autofix schemas + API methods#963
Draft
JoshFerge wants to merge 1 commit into
Draft
feat(seer): add explorer-mode autofix schemas + API methods#963JoshFerge wants to merge 1 commit into
JoshFerge wants to merge 1 commit into
Conversation
Additive only. Introduces the Zod schemas, types, and SentryApiService
methods that model Seer's explorer-mode autofix endpoint:
- `AutofixExplorerStatusSchema` (processing/completed/error/awaiting_user_input)
- `AutofixExplorerStepSchema` (root_cause/solution/code_changes)
- `AutofixExplorerBlockSchema` with typed messages, metadata.step markers,
and inline artifacts/file_patches
- `AutofixExplorerArtifactSchema`, `…FilePatchSchema`,
`…RepoPRStateSchema`, `…CodingAgentStateSchema`
- `AutofixExplorerRunStateSchema` (the top-level GET response)
- `getAutofixExplorerState` / `startAutofixExplorer` on `SentryApiService`,
both hitting `?mode=explorer`; POST takes
`{step, run_id?, user_context?, insert_index?}`
- Realistic explorer payload in `autofix-state-explorer.json` for fixtures
and tests
Legacy `AutofixRunStateSchema`, `getAutofixState`, and `startAutofix` are
unchanged — consumers stay on them until the follow-up PR swaps them out.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Agent transcript: https://claudescope.sentry.dev/share/BavqXcygdtvUIoYVD3Az-HczhjKqeB2zTtw8VJ1Al-s
This was referenced May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Additive only — introduces the Zod schemas, types, and `SentryApiService` methods we'll need to model Seer's explorer-mode autofix endpoint, without touching any consumer code. The legacy `AutofixRunStateSchema`, `getAutofixState`, and `startAutofix` are untouched; nothing in the codebase calls the new methods yet.
The follow-up PR (PR-3 in the stack) is the one that actually rewrites `analyze_issue_with_seer` and `formatSeerSummary` to consume these new schemas and then deletes the legacy plumbing.
What's in here
Why passthrough
Upstream the explorer endpoint is still marked experimental and the source in `group_ai_autofix.py` / `useExplorerAutofix.tsx` is the working source of truth. `.passthrough()` on the block and artifact schemas means additive upstream fields don't break parsing in production.
Test plan
Stack
🤖 Generated with Claude Code
Agent transcript: https://claudescope.sentry.dev/share/UrueuTcE0n9OQzUhuYzDuVk3hp_0wmjTKFPs6Rv-atI