Skip to content

[docs] auth: docs: document AI-credit accounting for Copilot auto dynamic selector - #7620

Merged
lpcox merged 1 commit into
mainfrom
docs/auth-ai-credits-dynamic-selector-20260822-07311d207e2afbbb
Aug 22, 2026
Merged

[docs] auth: docs: document AI-credit accounting for Copilot auto dynamic selector#7620
lpcox merged 1 commit into
mainfrom
docs/auth-ai-credits-dynamic-selector-20260822-07311d207e2afbbb

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Documentation Changes

  • docs/awf-config-spec.md (§10.7.3 Unknown Model Rejection): Added a "Recognized dynamic selectors" note stating that Copilot auto (copilot:auto) is exempt from unknown_model_ai_credits rejection, is priced via a conservative fallback ceiling instead, and lists the pricing_source/accounting_policy/pricing_tier/fallback_pricing_used/dynamic_selector fields set on its token-usage records. Clarifies this exception is scoped to the recognized Copilot auto selector only; other unresolved models keep the existing reject/fallback behavior.

Validation

  • Verified containers/api-proxy/guards/ai-credits-guard.js implements getDynamicSelectorDescriptor/isRecognizedDynamicSelector scoped to provider === 'copilot' && model === 'auto', and DYNAMIC_SELECTOR_FALLBACK_PRICING/DYNAMIC_SELECTOR_FALLBACK_PRICING_SOURCE constants matching the documented field names.
  • Confirmed test coverage exists in containers/api-proxy/guards/ai-credits-guard.test.js and containers/api-proxy/token-budget-log.test.js for this behavior.
  • Ran npx markdownlint-cli2 docs/awf-config-spec.md — 0 issues.
  • Reviewed the diff for token/key/JWT values and credential-bearing URLs — none present; only field/constant names.
  • Confirmed no open PR with [docs] auth: in the title covers this finding.

Sources

Generated by Auth Doctor Updater · auto · 61.4 AIC · ⊞ 12K ·

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels Aug 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit 0d4cda4

@lpcox
lpcox merged commit efe0f6a into main Aug 22, 2026
15 of 17 checks passed
@lpcox
lpcox deleted the docs/auth-ai-credits-dynamic-selector-20260822-07311d207e2afbbb branch August 22, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant