Skip to content

Enable explicit AI credit budget guard for Daily Compiler Quality workflow#37566

Merged
pelikhan merged 2 commits into
mainfrom
copilot/implement-token-budget-guard
Jun 7, 2026
Merged

Enable explicit AI credit budget guard for Daily Compiler Quality workflow#37566
pelikhan merged 2 commits into
mainfrom
copilot/implement-token-budget-guard

Conversation

Copilot AI commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Production monitoring workflows have been intermittently exhausting token/credit budgets, and this escalation asks to ensure budget guards are actually enabled in affected heavy workflows. This change removes ambiguity for Daily Compiler Quality by making its per-run AI credit cap explicit in workflow frontmatter.

  • Problem focus

    • Daily aggregation/monitoring runs are failing under budget exhaustion patterns.
    • max_ai_credits needed to be explicitly turned on for impacted workflow configuration.
  • What changed

    • Workflow frontmatter
      • Added an explicit per-run budget to daily-compiler-quality.md:
        • max-ai-credits: 1000
    • Compiled workflow sync
      • Regenerated the corresponding lock metadata so compiled config reflects the updated frontmatter.
  • Why this matters

    • Ensures the workflow consistently carries an explicit AI credit guardrail rather than relying on implicit/default resolution paths.
    • Aligns the workflow with the requested “make sure it is turned on” requirement.
on:
  schedule: daily
  workflow_dispatch: null
max-ai-credits: 1000
max-daily-ai-credits: 100M

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement token guard to prevent token exhaustion Enable explicit AI credit budget guard for Daily Compiler Quality workflow Jun 7, 2026
Copilot AI requested a review from pelikhan June 7, 2026 13:53
@pelikhan pelikhan marked this pull request as ready for review June 7, 2026 13:56
Copilot AI review requested due to automatic review settings June 7, 2026 13:56
@pelikhan pelikhan merged commit c6c5d03 into main Jun 7, 2026
@pelikhan pelikhan deleted the copilot/implement-token-budget-guard branch June 7, 2026 13:56

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

This PR makes the Daily Compiler Quality workflow’s per-run AI credit cap explicit in its workflow frontmatter, ensuring the AWF budget guardrail is unambiguous and consistently applied, and then syncs the compiled lock metadata to match.

Changes:

  • Added an explicit max-ai-credits: 1000 per-run budget to .github/workflows/daily-compiler-quality.md.
  • Regenerated .github/workflows/daily-compiler-quality.lock.yml so the frontmatter_hash reflects the updated frontmatter.
Show a summary per file
File Description
.github/workflows/daily-compiler-quality.md Adds an explicit per-run AI credit budget guardrail in workflow frontmatter.
.github/workflows/daily-compiler-quality.lock.yml Updates compiled metadata hash to reflect the frontmatter change.

Copilot's findings

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

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.

[P1 Escalation] Token guard #37145 unimplemented — Day 5, active token exhaustion cluster blocking monitoring

3 participants