Skip to content

[docs] auth: Correct AI-credit promotion accounting in config spec - #11854

Merged
lpcox merged 1 commit into
mainfrom
docs/auth-doctor-promo-accounting-20261120-d5b645d55162377b
Nov 20, 2026
Merged

lpcox merged 1 commit into
mainfrom
docs/auth-doctor-promo-accounting-20261120-d5b645d55162377b

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

  • Scan window: since 2026-11-13; reviewed 12 of 105 reviewQueue.firstTime candidates (deferred: 0). The other 93 stay pending.
  • Corrected path: docs/awf-config-spec.md §10.3.1 still said provider promotions are "informational only" and "never reduce accounting". That is no longer true on main since Apply time-bound provider promotions to AI-credit accounting #11771.
  • Current main: validated Copilot billing.promo discounts now apply to provider-priced AI-credit components. docs/api-proxy-sidecar.md already 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:validate passes (38 findings) and npm run diagnostics:freshness reports nothing overdue.

Validation

  • Implementation checked on main: containers/api-proxy/guards/ai-credits-guard.js (discountedComponents, pricingPromotion, provider_promotion source) and containers/api-proxy/runtime-model-catalog.js (normalizePromotion, getRuntimePromotion, start-inclusive and expiry-exclusive checks).
  • Tests checked: containers/api-proxy/guards/ai-credits-promotions.test.js (discounts, no operator or configured-price discounting, withdrawn promotions, fallback components, expiry resumption).
  • Markdown: prose-only edit; the relative link to api-proxy-sidecar.md resolves.
  • Credential-leakage review: the diff contains no keys, tokens, JWTs, Authorization headers, or credential-bearing URLs.
  • Not changed: no provider behavior claim was altered. I did not fetch official provider documentation because no provider auth claim changed.

Review coverage and backlog

Sources

Generated by Auth Doctor Updater · copilot · routed: sonnet55 high · ~62 AIC · ⊞ 9.7K · ◷

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 Nov 20, 2026
Copilot AI adaptive review requested due to automatic review settings November 20, 2026 03:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 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)

@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11854 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 75ebdcc

@lpcox
lpcox merged commit 0ff9f87 into main Nov 20, 2026
33 of 34 checks passed
@lpcox
lpcox deleted the docs/auth-doctor-promo-accounting-20261120-d5b645d55162377b branch November 20, 2026 16:07
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.

2 participants