Skip to content

Fix weekly upstream sync agentic workflow prompt#50

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/debug-weekly-upstream-sync-failure
Draft

Fix weekly upstream sync agentic workflow prompt#50
Copilot wants to merge 2 commits intomainfrom
copilot/debug-weekly-upstream-sync-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

Resolves #41


Before the change?

  • The weekly-upstream-sync.md prompt was written as documentation ("This document describes the workflow..."), not as agent instructions. The agent misinterpreted it, invoked the agentic-merge-upstream skill, attempted to actually merge upstream changes, failed to push from the AWF sandbox (no git credentials), and never called any safe-output tools — causing the workflow to fail with no output.

After the change?

  • Prompt rewritten as clear imperative instructions: clone upstream, compare commits against .lastmerge, use safe-output tools (create_issue, close_issue, assign_to_agent, noop) to report results.
  • Explicit constraints added: do not invoke skills, do not edit files, do not push code.
  • Concrete bash commands provided for each detection step.
  • Frontmatter unchanged — no lock file recompilation needed (prompt content is runtime-imported via {{#runtime-import}}).

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • mvn spotless:apply has been run to format the code
  • mvn clean verify passes locally

Does this introduce a breaking change?

  • Yes
  • No

Rewrite the prompt from documentation-style to clear imperative
instructions. The agent previously misinterpreted the documentation
as instructions to perform the merge itself (invoking the
agentic-merge-upstream skill), then failed because it couldn't
push code from the sandbox.

The new prompt:
- Gives explicit step-by-step instructions
- Provides bash commands for upstream change detection
- Directs the agent to use safe-output tools (create_issue,
  close_issue, assign_to_agent, noop)
- Explicitly prohibits invoking skills, editing files, or pushing code

Only the markdown content changed; frontmatter is unchanged so no
lock file recompilation is needed.

Agent-Logs-Url: https://github.com/github/copilot-sdk-java/sessions/945e9454-9363-45bc-b281-0fe3d6c87019

Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix weekly upstream sync agentic workflow failure Fix weekly upstream sync agentic workflow prompt Apr 3, 2026
Copilot AI requested a review from brunoborges April 3, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Weekly Upstream Sync Agentic Workflow failed

2 participants