Skip to content

[aw] Update legacy ET rate-limit guidance to AI Credits-first format#37400

Merged
pelikhan merged 5 commits into
mainfrom
copilot/aw-daily-team-evolution-insights-fix
Jun 6, 2026
Merged

[aw] Update legacy ET rate-limit guidance to AI Credits-first format#37400
pelikhan merged 5 commits into
mainfrom
copilot/aw-daily-team-evolution-insights-fix

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 6, 2026

Daily Team Evolution Insights failure reports still surfaced legacy effective-token details and nonstandard warning formatting, despite AI Credits being the active budgeting model. This update aligns the generated guidance with current max-ai-credits policy and removes redundant/noisy ET-era output.

  • Warning presentation (GitHub-native syntax)

    • Switched the guidance header from custom emoji styling to GitHub alert syntax ([!WARNING]) in the ET rate-limit template.
  • AI Credits-first remediation content

    • Kept migration guidance centered on max-ai-credits.
    • Added computed Suggested max-ai-credits output derived from legacy max-effective-tokens when convertible.
  • Removed legacy/duplicate details from generated issue body

    • Dropped:
      • Effective tokens used: ...
      • Run: ... line (already present in issue metadata)
      • ET computation disclosure block (including ET formula/weights line)
  • Renderer and contract cleanup

    • Simplified buildEffectiveTokensRateLimitErrorContext inputs to only what is now used.
    • Updated template placeholder contract and corresponding error text.
    • Updated focused tests to assert alert syntax, AI credits suggestion behavior, and absence of removed ET/run content.
// before
{usage_line}{budget_line}{run_line}
{et_table_section}

// after
{budget_line}

Copilot AI linked an issue Jun 6, 2026 that may be closed by this pull request
Copilot AI and others added 4 commits June 6, 2026 21:10
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>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix daily team evolution insights workflow failure [aw] Update legacy ET rate-limit guidance to AI Credits-first format Jun 6, 2026
Copilot AI requested a review from pelikhan June 6, 2026 21:13

const etTableSection = buildETComputationTable(effectiveTokens, readTokenUsageMarkdown());
const EFFECTIVE_TOKENS_PER_AI_CREDIT = 10000;
const legacyBudgetET = Number.parseInt(maxEffectiveTokens || "", 10);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot remove all legacy ET messaging

@pelikhan pelikhan marked this pull request as ready for review June 6, 2026 21:23
Copilot AI review requested due to automatic review settings June 6, 2026 21:23
@pelikhan pelikhan merged commit cd96187 into main Jun 6, 2026
1 check failed
@pelikhan pelikhan deleted the copilot/aw-daily-team-evolution-insights-fix branch June 6, 2026 21:24
Copilot stopped work on behalf of pelikhan due to an error June 6, 2026 21:24
Copilot AI requested a review from pelikhan June 6, 2026 21:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the legacy effective-token (ET) rate-limit failure guidance so it matches the current AI Credits budgeting model and produces cleaner GitHub-issue-friendly output.

Changes:

  • Switched the ET rate-limit guidance header to GitHub alert syntax (> [!WARNING]) and simplified the template contract to only {budget_line}.
  • Updated buildEffectiveTokensRateLimitErrorContext to generate AI Credits-first remediation, including a computed “Suggested max-ai-credits” derived from legacy max-effective-tokens when convertible.
  • Refreshed focused tests to assert the new alert formatting, suggestion behavior, and removal of legacy ET/run/computation content.
Show a summary per file
File Description
actions/setup/md/effective_tokens_rate_limit_error.md Converts the guidance header to GitHub alert syntax and removes legacy/duplicative ET-era placeholders/content.
actions/setup/js/handle_agent_failure.cjs Simplifies ET rate-limit context generation to AI Credits-first output and updates template placeholder contract.
actions/setup/js/handle_agent_failure.test.cjs Updates template fixture + assertions to match new alert formatting and AI Credits suggestion behavior.

Copilot's findings

Tip

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

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

throw new Error(
`failed to render template at ${templatePath}: ${getErrorMessage(error)}; ` + "verify template syntax and required placeholders: " + "ai_credits_spec_link, cost_management_link, usage_line, budget_line, run_line, et_table_section"
);
throw new Error(`failed to render template at ${templatePath}: ${getErrorMessage(error)}; ` + "verify template syntax and required placeholders: " + "{ai_credits_spec_link}, {cost_management_link}, {budget_line}");
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] Daily Team Evolution Insights failed

3 participants