Skip to content

[deep-report] Add a soft pre-cap AI-credits guard to heavy aggregator workflows #38645

Description

@github-actions

Description

The AI-credits cluster is expanding (Day 4, grew from 4 → 6+ workflows) per the Agent Performance Report (#38626) and Daily Workflow Audit (#38444). Heavy aggregators reliably brush the ~1000 daily AIC cap and abort with CAPIError 429 Maximum AI credits exceeded (1003/1000) after retries (e.g. Daily Ambient Context Optimizer, Package Specification Extractor #38576 at 1,023.9 AIC). The audit recommendation rec-ai-credits-soft-cap-guard is still not shipped, and #38624 only raises the cap for one workflow rather than addressing the root cause.

Scope

Before the heaviest aggregation turns, check remaining AI credits and degrade gracefully to partial output + noop/report_incomplete instead of hard-aborting with a 429. Start with the repeat offenders: Daily Ambient Context Optimizer and Package Specification Extractor.

Expected Impact

  • Converts hard 429 failures (red runs + [aw] ... failed issue noise) into clean partial completions.
  • Especially important for Failure Investigator (6h) [aw] [aw] Failure Investigator (6h) failed #38559 — a credits-exhausted meta-monitor is a ~6h detection blind spot.

Suggested Agent

New Agent or copilot-swe-agent (engine/driver-level change).

Estimated Effort

Medium (1–4 hours).

Data Source

DeepReport run 2026-06-11; Daily Workflow Audit #38444 (rec-ai-credits-soft-cap-guard), Agent Performance Report #38626.

Generated by 🔬 DeepReport - Intelligence Gathering Agent · 221.4 AIC · ⌖ 11.9 AIC · ⊞ 10.6K ·

  • expires on Jun 13, 2026, 8:08 AM UTC-08:00

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions