[docs] auth: docs: document AI-credit accounting for Copilot auto dynamic selector - #7620
Merged
lpcox merged 1 commit intoAug 22, 2026
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
lpcox
deleted the
docs/auth-ai-credits-dynamic-selector-20260822-07311d207e2afbbb
branch
August 22, 2026 17:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
containers/api-proxy/guards/ai-credits-guard.js,containers/api-proxy/guards/common-guard-checks.js,containers/api-proxy/token-budget-log.js,containers/api-proxy/token-tracker-shared.js,src/services/api-proxy-env-config.ts,src/services/api-proxy-credential-env.ts,src/services/agent-environment/excluded-vars.ts,src/services/agent-environment/env-passthrough.ts.docs/environment.md,docs/auth-matrix.md, anddocs/authentication-architecture.mdis accurate and current — no changes needed.autodynamic selector #7604 ("API proxy: first-class AI-credit accounting for Copilotautodynamic selector") added a dedicated accounting path incontainers/api-proxy/guards/ai-credits-guard.js— the Copilotautomodel (copilot:auto) is exempted fromunknown_model_ai_creditsrejection and instead priced with a conservative fallback ceiling, recorded viapricing_source/accounting_policy: dynamic_selector_fallback.docs/awf-config-spec.md§10.7.3 ("Unknown Model Rejection") documented the general reject/fallback behavior but never mentioned this recognized-selector exception, so a reader would wrongly expectautorequests to be rejected or requiredefaultAiCreditsPricing.apiProxy.targets.openai.baseUrlEnv) is already fully documented indocs/awf-config-spec.md§9.7,docs/api-proxy-sidecar.md, and referenced correctly — no changes needed.X-Interaction-Id/Copilot-Integration-Idheaders) and [docs] auth: docs: document GITHUB_RUN_ID/GITHUB_RUN_ATTEMPT forwarding to api-proxy sidecar #7570 (documentingGITHUB_RUN_ID/GITHUB_RUN_ATTEMPTforwarding) are merged and already reflected indocs/auth-matrix.mdanddocs/api-proxy-sidecar.md— no changes needed.docs/auth-matrix.mdalready covers the/auto,/models/session, and/models/session/intentversion-injection behavior accurately — no changes needed.[docs] auth:in the title — none open, so this is not a duplicate.Documentation Changes
docs/awf-config-spec.md(§10.7.3 Unknown Model Rejection): Added a "Recognized dynamic selectors" note stating that Copilotauto(copilot:auto) is exempt fromunknown_model_ai_creditsrejection, is priced via a conservative fallback ceiling instead, and lists thepricing_source/accounting_policy/pricing_tier/fallback_pricing_used/dynamic_selectorfields set on its token-usage records. Clarifies this exception is scoped to the recognized Copilotautoselector only; other unresolved models keep the existing reject/fallback behavior.Validation
containers/api-proxy/guards/ai-credits-guard.jsimplementsgetDynamicSelectorDescriptor/isRecognizedDynamicSelectorscoped toprovider === 'copilot' && model === 'auto', andDYNAMIC_SELECTOR_FALLBACK_PRICING/DYNAMIC_SELECTOR_FALLBACK_PRICING_SOURCEconstants matching the documented field names.containers/api-proxy/guards/ai-credits-guard.test.jsandcontainers/api-proxy/token-budget-log.test.jsfor this behavior.npx markdownlint-cli2 docs/awf-config-spec.md— 0 issues.[docs] auth:in the title covers this finding.Sources
autodynamic selector #7604containers/api-proxy/guards/ai-credits-guard.js,containers/api-proxy/guards/ai-credits-guard.test.js(repository source of truth)