Skip to content

fix(seer): Restore automated Explorer handoffs#115559

Draft
JoshFerge wants to merge 3 commits into
masterfrom
jferg-codex/explorer-automation-stopping-point
Draft

fix(seer): Restore automated Explorer handoffs#115559
JoshFerge wants to merge 3 commits into
masterfrom
jferg-codex/explorer-automation-stopping-point

Conversation

@JoshFerge
Copy link
Copy Markdown
Member

@JoshFerge JoshFerge commented May 14, 2026

Why

Explorer-backed automated Autofix relies on AutofixOnCompletionHook in Sentry to continue after each Seer step. That hook needs stopping_point metadata to distinguish automated runs from manual runs; without it, non-seat-based Explorer automation can finish root cause and return without continuing or handing off.

The production shape also shows many projects with external automation_handoff configured while their stored automated stopping point is root_cause. That combination is valid for the old handoff setup: Seer should stop its own work at root cause and hand the issue to the configured coding agent. The hook previously checked "we reached root cause" before checking handoff config, so those projects were treated as terminal and never launched the agent.

Together this explains why downstream Autofix steps can stay healthy globally while coding-agent handoffs are low: unconfigured projects keep continuing through Seer, but configured root-cause handoff projects exit before handoff.

Summary

  • compute automation stopping-point metadata for automated runs that route through Explorer
  • preserve legacy non-Explorer launches by leaving their stopping point unset
  • trigger configured root-cause handoff before treating root cause as terminal
  • add regression coverage for missing stopping-point metadata and root-cause handoff

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 14, 2026
@JoshFerge
Copy link
Copy Markdown
Member Author

bugbot run

@JoshFerge
Copy link
Copy Markdown
Member Author

@sentry review

Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 36665a3. Configure here.

@JoshFerge JoshFerge force-pushed the jferg-codex/explorer-automation-stopping-point branch from 36665a3 to b56393c Compare May 14, 2026 18:28
@JoshFerge JoshFerge changed the title fix(seer): set stopping point for explorer automation fix(seer): Restore automated Explorer handoffs May 14, 2026
JoshFerge and others added 3 commits May 14, 2026 16:13
Add focused AutofixOnCompletionHook coverage for the Explorer automation branch that either triggers an external coding-agent handoff or continues to solution based on project handoff configuration. Also lock down that a configured handoff is skipped when stopping_point metadata is missing, which documents the bug fixed by the stopping-point change.

Co-Authored-By: Codex <noreply@openai.com>
Projects can have external automation handoff configured while their automated stopping point is root_cause. The completion hook treated root cause as terminal before consulting handoff config, so those runs never launched the configured coding agent.

Check handoff first and cover that state in tests.

Co-Authored-By: Codex <noreply@openai.com>
@JoshFerge JoshFerge force-pushed the jferg-codex/explorer-automation-stopping-point branch from 2c5f358 to fa7c4a5 Compare May 14, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant