Repository navigation
[docs] auth: Correct AI-credit promotion accounting in config spec - #11854
Merged
lpcox merged 1 commit intoNov 20, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The change affects budget-related promotion, tier-selection, fallback, and audit semantics, and although unit tests support it, consequential end-to-end docs-to-runtime validation is unavailable.
No open issues 🎉
What changed in this PR
This documentation-only pull request updates the AWF configuration specification to reflect shipped Copilot AI-credit promotion accounting behavior.
Changes:
- Documents promotion timing, eligible provider-priced components, exclusions, and accounting provenance.
- Clarifies that invalid, expired, future, or removed promotions do not reduce accounting.
- Notes that the related architecture ADR still contains the previous informational-only rule and should be updated for consistency.
| File | Description |
|---|---|
| docs/awf-config-spec.md | Corrects §10.3.1 to document validated Copilot promotion discounts, their timing and exclusions, and associated accounting metadata. |
Review effort: Lite (adaptive)
Contributor
Author
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
Contributor
Author
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 75ebdcc |
lpcox
deleted the
docs/auth-doctor-promo-accounting-20261120-d5b645d55162377b
branch
November 20, 2026 16:07
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
reviewQueue.firstTimecandidates (deferred: 0). The other 93 stay pending.docs/awf-config-spec.md§10.3.1 still said provider promotions are "informational only" and "never reduce accounting". That is no longer true onmainsince Apply time-bound provider promotions to AI-credit accounting #11771.billing.promodiscounts now apply to provider-priced AI-credit components.docs/api-proxy-sidecar.mdalready documents this correctly. No pending behavior is presented as shipped.Documentation Changes
docs/awf-config-spec.md(§10.3.1): replaced the stale sentence with the shipped rule. The discount applies after tier selection, only while the promotion is active (start inclusive, expiry exclusive). Operator overrides, configured catalogs or defaults, and fallback components are not discounted. Expired, future, malformed, or removed promotions do not reduce accounting. Logs, token-usage records, and reflection distinguish advertised promotions from applied discounts.Canonical Registry Changes
None. This is a documentation-accuracy fix, not a new diagnosis failure.
npm run diagnostics:validatepasses (38 findings) andnpm run diagnostics:freshnessreports nothing overdue.Validation
main:containers/api-proxy/guards/ai-credits-guard.js(discountedComponents,pricingPromotion,provider_promotionsource) andcontainers/api-proxy/runtime-model-catalog.js(normalizePromotion,getRuntimePromotion, start-inclusive and expiry-exclusive checks).containers/api-proxy/guards/ai-credits-promotions.test.js(discounts, no operator or configured-price discounting, withdrawn promotions, fallback components, expiry resumption).api-proxy-sidecar.mdresolves.Authorizationheaders, or credential-bearing URLs.Review coverage and backlog
covered, 3no-impact, 1proposed(Apply time-bound provider promotions to AI-credit accounting #11771, this PR), 2needs-evidenceorno-impact(Default agent TMPDIR to private sandbox storage #11833 isneeds-evidence).main.[docs] auth:PR exists.Sources