Skip to content

[WIP] [aw] Debug News Evening Analysis workflow failure#1101

Closed
pethers with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-debug-news-evening-analysis
Closed

[WIP] [aw] Debug News Evening Analysis workflow failure#1101
pethers with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-debug-news-evening-analysis

Conversation

Copilot AI commented Mar 13, 2026

Copy link
Copy Markdown
Contributor
  • Investigate failed workflow run #23017036455
  • Identify root cause: agent enters data-gathering loop, making 6+ duplicate rounds of the same MCP queries (get_sync_status ×3, get_calendar_events ×20+, etc.), exhausting context/time without ever generating articles or calling safe output
  • Fix workflow .md file to prevent duplicate data gathering loops
  • Add explicit time-check bash commands between every phase
  • Reduce data query result limits (50→15, 100→20) to prevent context overflow
  • Add explicit "DATA PHASE COMPLETE" marker after data gathering
  • Simplify article generation to EN/SV only (translations handled by news-translate workflow)
  • Inline Swedish CONTENT_LABELS values to prevent large file reads
  • Recompile lock file with gh aw compile (v0.58.0)
  • Code review completed
Original prompt

This section details on the original issue you should resolve

<issue_title>[aw] News Evening Analysis failed</issue_title>
<issue_description>### Workflow Failure

Workflow: News Evening Analysis
Branch: main
Run: https://github.com/Hack23/riksdagsmonitor/actions/runs/23017036455

Action Required

Option 1: Debug using any coding agent

Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):

Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md

The failed workflow run is at https://github.com/Hack23/riksdagsmonitor/actions/runs/23017036455

Option 2: Assign this issue to Copilot

Assign this issue to Copilot using the agentic-workflows sub-agent to automatically debug and fix the workflow failure.

Option 3: Manually invoke the agent

Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.

[!TIP]
To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:

safe-outputs:
  report-failure-as-issue: false

Generated from News Evening Analysis

  • expires on Mar 19, 2026, 6:34 PM UTC

Comments on the Issue (you are @copilot in this section)

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Root cause: Agent entered a data-gathering loop making 6+ duplicate rounds
of the same MCP queries, exhausting context/time without generating articles
or calling safe output.

Fixes:
- Add anti-loop rules: each MCP tool called AT MOST ONCE per run
- Add forward-only phase progression rule
- Add explicit time-check bash commands between phases
- Reduce MCP query limits to prevent context overflow
- Add DATA PHASE COMPLETE marker after data gathering
- Simplify to EN/SV only (translations by news-translate workflow)
- Inline Swedish CONTENT_LABELS to prevent large file reads
- Recompile lock file with gh aw compile

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
@pethers pethers closed this Mar 13, 2026
@pethers
pethers deleted the copilot/aw-debug-news-evening-analysis branch March 13, 2026 06:17
Copilot stopped work on behalf of pethers due to an error March 13, 2026 06:17
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] News Evening Analysis failed

2 participants