Skip to content

Update safe-output health failure messaging to AI Credits#37265

Draft
Copilot wants to merge 5 commits into
mainfrom
copilot/fix-safe-output-health-monitor
Draft

Update safe-output health failure messaging to AI Credits#37265
Copilot wants to merge 5 commits into
mainfrom
copilot/fix-safe-output-health-monitor

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 6, 2026

Safe Output Health Monitor issues were still explaining proxy budget failures in deprecated effective-token terms. This updates the legacy failure path to use the AI Credits narrative and point to current documentation.

  • Failure narrative

    • Reword the legacy effective_tokens_rate_limit_error template to explain the condition as a legacy ET signal while directing users to AI Credits as the primary cost model.
    • Replace “Effective Token Budget Exhausted” messaging with migration guidance toward max-ai-credits.
  • Doc links

    • Swap deprecated ET-oriented links for current AI Credits references:
      • AI Credits specification
      • Cost management guide
  • Renderer wiring

    • Update handle_agent_failure.cjs template variables to pass the new AI Credits and cost-management links into the rendered issue/comment body.
  • Focused coverage

    • Update the existing handle_agent_failure tests to assert the new wording, links, and max-ai-credits guidance.
**⚠️ AI Credits Budget Guidance**: The run hit a legacy effective-token rate-limit signal from the API proxy. gh-aw now uses AI Credits (AIC) as the primary cost metric, so migrate per-run budgeting to `max-ai-credits`.

- Learn about [AI Credits](...)
- `max-effective-tokens` is deprecated; use `max-ai-credits` in workflow frontmatter.
- To budget and optimize this workflow, follow the [cost management guidance](...).

Copilot AI linked an issue Jun 6, 2026 that may be closed by this pull request
Copilot AI and others added 3 commits June 6, 2026 05:58
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Safe Output Health Monitor failure due to token budget exhaustion Update safe-output health failure messaging to AI Credits Jun 6, 2026
Copilot AI requested a review from pelikhan June 6, 2026 06:05
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] Safe Output Health Monitor failed

3 participants