Skip to content

Prevent Agent Performance Analyzer repo-memory push failures by raising patch-size cap - #48012

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-fixrepo-memory-pruning
Jul 25, 2026
Merged

Prevent Agent Performance Analyzer repo-memory push failures by raising patch-size cap#48012
pelikhan merged 2 commits into
mainfrom
copilot/aw-fixrepo-memory-pruning

Conversation

Copilot AI commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Agent Performance Analyzer - Meta-Orchestrator was treating a recoverable repo-memory size condition as a run failure path: push_repo_memory rejected the write at the 10KB cap, then the agent stalled and was watchdog-terminated. This change removes that failure trigger by aligning the workflow’s repo-memory patch budget with observed memory shape.

  • Root cause addressed

    • The workflow used default repo-memory.max-patch-size (10KB) while writing shared meta-orchestrator memory (metrics + *-latest.md), which routinely exceeds that limit.
  • Workflow config update

    • Added an explicit repo-memory patch-size override in:
      • .github/workflows/agent-performance-analyzer.md
    • Recompiled generated workflow:
      • .github/workflows/agent-performance-analyzer.lock.yml
  • Behavioral impact

    • push_repo_memory now has sufficient budget (50KB) for expected writes, avoiding the size-rejection → idle-loop → watchdog SIGTERM path for this workflow.
tools:
  repo-memory:
    branch-name: memory/meta-orchestrators
    file-glob: ["*.json", "*.md"]
    max-file-size: 102400
    max-patch-size: 51200

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix repo-memory pruning path for push_repo_memory Prevent Agent Performance Analyzer repo-memory push failures by raising patch-size cap Jul 25, 2026
Copilot AI requested a review from pelikhan July 25, 2026 14:01
@pelikhan
pelikhan marked this pull request as ready for review July 25, 2026 14:02
Copilot AI review requested due to automatic review settings July 25, 2026 14:02
@pelikhan
pelikhan merged commit 928eef2 into main Jul 25, 2026
@pelikhan
pelikhan deleted the copilot/aw-fixrepo-memory-pruning branch July 25, 2026 14:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Raises the Agent Performance Analyzer’s repo-memory budget to prevent expected memory writes from failing.

Changes:

  • Increases max-patch-size from 10KB to 50KB.
  • Regenerates the compiled workflow with the updated constraint.
Show a summary per file
File Description
.github/workflows/agent-performance-analyzer.md Configures the 50KB repo-memory limit.
.github/workflows/agent-performance-analyzer.lock.yml Applies the limit throughout generated runtime configuration.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Medium

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants