Skip to content

[aw-failures] Metrics Collector push_repo_memory hard-fails on 131KB patch vs 10KB cap #49931

Description

@github-actions

Problem

Fix the push_repo_memory patch-size cap breach in Metrics Collector — the run wrote a 131 KB memory patch against a 10 KB configured limit (12 KB with overhead), a 13x overshoot that hard-failed the job.

Affected workflow: Metrics Collector (.github/workflows/metrics-collector.lock.yml, job push_repo_memory)
Run analyzed: 30782232562 (2026-08-03T03:36Z, failed)
Comparator run: 30730908285 (2026-08-02T03:36Z, succeeded)

Evidence

Probable root cause

The daily metrics write ballooned far past its historical size — likely a larger-than-usual metrics/daily/YYYY-MM-DD.json payload (possibly from an added metrics field, a backfill, or a fetch-loop pulling more source data — consistent with the 272% API-usage spike) that blew through the 10 KB patch cap before the existing 30-day pruning (metrics-collector.md:211) had a chance to offset it.

Proposed remediation

  1. Raise max_patch_size for Metrics Collector's push_repo_memory config (metrics-collector.lock.yml:646, and the corresponding .md source) from 10 KB to a value sized to the actual daily payload plus headroom (mirror the Prevent Agent Performance Analyzer repo-memory push failures by raising patch-size cap #48012/fix(daily-code-metrics): raise max-file-size to 256KB and enforce 90-day history.jsonl pruning #43870 pattern of cap increases) — e.g. 32-64 KB.
  2. Separately, audit why run 30782232562 emitted a payload ~13x the norm: diff metrics/daily/2026-08-03.json size against the prior week's files to confirm whether this is a one-off spike or a durable growth trend before just raising the cap.
  3. If the growth is durable, add active pruning/summarization of metrics/daily/*.json (not just the 30-day delete) so the cap doesn't need repeated bumps.

Success criteria

  • Metrics Collector's push_repo_memory step completes without a patch-size gate failure on the next 3 consecutive scheduled runs.
  • max_patch_size change is reflected in both .github/workflows/metrics-collector.md and its compiled .lock.yml.
  • No regression in the 30-day metrics/daily/ pruning behavior.

Parent: #49835 · Analyzed runs: 30782232562 (failed), 30730908285 (comparator, success)
Related to #49835

Generated by 🔍 [aw] Failure Investigator (6h) · agent · 101.6 AIC · ⌖ 35.8 AIC · ⊞ 5.3K ·

  • expires on Aug 10, 2026, 12:13 AM UTC-08:00

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions