Skip to content

feat(autofix): ask handoff agents for informative PR descriptions - #122085

Open
sehr-m wants to merge 1 commit into
masterfrom
sehrmoosabhoy/aiml-3306-guide-external-agents-to-create-informative-prs
Open

feat(autofix): ask handoff agents for informative PR descriptions#122085
sehr-m wants to merge 1 commit into
masterfrom
sehrmoosabhoy/aiml-3306-guide-external-agents-to-create-informative-prs

Conversation

@sehr-m

@sehr-m sehr-m commented Aug 14, 2026

Copy link
Copy Markdown
Member

Root cause

When Seer hands an issue off to an external coding agent (Cursor, Claude Code, GitHub Copilot), generate_autofix_handoff_prompt packs 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 Analysis and ## Proposed Solution sections it refers to.

trigger_coding_agent_handoff is the only production caller of launch_coding_agents, so this single change covers all three providers.

Testing

  • Added an assertion to the existing test_basic_prompt_without_artifacts; all 8 TestGenerateAutofixHandoffPrompt tests pass.
  • Rendered the prompt end to end with realistic artifacts to confirm placement and formatting.

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

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
@linear-code

linear-code Bot commented Aug 14, 2026

Copy link
Copy Markdown

AIML-3306

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 14, 2026
@sehr-m
sehr-m marked this pull request as ready for review August 14, 2026 19:46
@sehr-m
sehr-m requested a review from a team as a code owner August 14, 2026 19:46
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.

2 participants