feat(autofix): ask handoff agents for informative PR descriptions - #122085
Open
sehr-m wants to merge 1 commit into
Open
feat(autofix): ask handoff agents for informative PR descriptions#122085sehr-m wants to merge 1 commit into
sehr-m wants to merge 1 commit into
Conversation
The coding agent handoff prompt already includes the root cause and solution artifacts, but said nothing about what the agent should write in the PR it opens. Add an instruction to briefly explain the root cause and solution at a high level in the PR description. Fixes AIML-3306
sehr-m
marked this pull request as ready for review
August 14, 2026 19:46
azulus
approved these changes
Aug 14, 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.
Root cause
When Seer hands an issue off to an external coding agent (Cursor, Claude Code, GitHub Copilot),
generate_autofix_handoff_promptpacks the root cause and solution artifacts into the prompt — but never tells the agent what to put in the PR it opens. Agents were left to write PR descriptions from the diff alone, so the analysis Seer had already done didn't make it into the PR.Solution
Add one instruction to the handoff prompt asking the agent to briefly explain the root cause and solution at a high level in the PR description, capped at a few sentences. It sits directly above the
## Root Cause Analysisand## Proposed Solutionsections it refers to.trigger_coding_agent_handoffis the only production caller oflaunch_coding_agents, so this single change covers all three providers.Testing
test_basic_prompt_without_artifacts; all 8TestGenerateAutofixHandoffPrompttests pass.Wording deliberately uses lowercase "root cause"/"solution" and avoids the word "Fixes" so it doesn't trip the existing negative assertions in the suite.
running this locally with ngrok and will test when live.
Fixes AIML-3306