feat: update copy for AI Governance licensing change - #28075
Conversation
AI Governance is no longer a separately purchased add-on and is now included with Premium. Update the backend user-facing warning strings, comments, and derived test/frontend assertions accordingly. Also rename remaining AI Bridge references to AI Gateway in the touched lines.
|
AIGOV-598 |
Documentation CheckThis PR updates user-facing copy to reflect that AI Governance is now included with Premium (no longer a separately purchased add-on), and renames "AI Bridge" to "AI Gateway" in the touched strings. Several docs still describe AI Governance as a separate add-on, so they are now inconsistent with the shipped copy. Note that Updates Needed
Automated review via Coder Agents |
There was a problem hiding this comment.
Pull request overview
Updates user-facing copy across backend and frontend tests/stories to reflect the AI Governance licensing model change (no longer positioned as a separately purchased add-on) and updates “AI Bridge” wording to “AI Gateway” in touched backend lines.
Changes:
- Updated AI Governance seat-warning strings in
codersdkand regenerated corresponding frontend generated types. - Updated enterprise license soft-warning copy/comments and adjusted enterprise tests to match.
- Updated frontend test and Storybook assertions that validate the warning copy.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| site/src/modules/dashboard/LicenseBanner/LicenseBannerView.stories.tsx | Updates Storybook assertions for AI Governance seat warning copy. |
| site/src/modules/dashboard/DashboardLayout.test.tsx | Updates dashboard test assertions to match updated AI Governance seat warning copy. |
| site/src/api/typesGenerated.ts | Regenerated generated API constants to reflect updated SDK warning strings. |
| enterprise/coderd/license/license.go | Updates AI Gateway soft-warning copy/comments tied to licensing/entitlement messaging. |
| enterprise/coderd/license/license_test.go | Updates enterprise license tests to match the updated soft-warning message and terminology. |
| codersdk/licenses.go | Updates exported AI Governance warning string constants used by backend/frontend. |
Suppressed comments (3)
enterprise/coderd/license/license.go:839
- The AI Gateway soft-warning comment says this warning is for cases already entitled via the Premium FeatureSet, but the last line says it will require Premium in future versions. That is contradictory and makes the rationale unclear. Consider rewriting the comment to explain the actual transitional state (Premium entitlement present, but missing an explicit/legacy AI Governance grant), so future readers understand when and why the warning should fire.
// TODO: Remove this soft warning block once AI Gateway is enforced as a Premium feature.
// AI Gateway soft warning: Show warning when AI Gateway is enabled and
// entitled via Premium FeatureSet but not via an explicit AI Governance
// license. This is a transitional warning as AI Gateway moves to GA and
// will require a Premium license in future versions.
enterprise/coderd/license/license.go:843
- This soft warning only triggers when the AI Gateway feature is already entitled (currently via Premium FeatureSet), so the message "AI Governance requires a Premium license" is misleading and likely to confuse (it suggests the user lacks Premium when they do not). The message should instead explain that their Premium license needs to be updated to include AI Governance for AI Gateway.
"AI Governance requires a Premium license. Please reach out to your account team or sales@coder.com to learn more.")
enterprise/coderd/license/license.go:472
- This block is tracking whether the license includes the AI Governance add-on claim, not an "AI Gateway add-on license". Aligning the comment with the actual check (claims.Addons contains AddonAIGovernance) makes the intent clearer and consistent with the surrounding logic.
// TODO: Remove this tracking once AI Gateway is enforced as an add-on license.
// Track explicit AI Gateway entitlement (add-on license). This is checked
// at the license level since AI Gateway may come from the FeatureSet
// (Premium) rather than being explicitly listed in claims.Features.
// Only having the AI Governance addon should suppress the soft warning.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| // TODO: Remove this tracking once AI Gateway is enforced as an add-on license. | ||
| // Track if AI Gateway was explicitly granted via license Features (add-on) | ||
| // vs inherited from FeatureSet (Premium). Only explicit grants should | ||
| // suppress the soft warning for AI Bridge GA. | ||
| // suppress the soft warning for AI Gateway GA. |
| LicenseAIGovernance90PercentWarningText = "You have used %d%% of your AI Governance seats." | ||
| LicenseAIGovernanceOverLimitWarningText = "Your organization is using %d of %d AI Governance seats (%d over the limit)." |
There was a problem hiding this comment.
Do we still have the concept of seats? 🤔 I thought this was related to the add-on, but I might be wrong.
| // TODO: Remove this tracking once AI Gateway is enforced as an add-on license. | ||
| // Track if AI Gateway was explicitly granted via license Features (add-on) | ||
| // vs inherited from FeatureSet (Premium). Only explicit grants should | ||
| // suppress the soft warning for AI Bridge GA. | ||
| // suppress the soft warning for AI Gateway GA. |
There was a problem hiding this comment.
Is this comment still valid? 👀 IIUC, AI Gateway is now part of the premium license
There was a problem hiding this comment.
Same for the TODO comments below
| AccountType: "salesforce", | ||
| AccountID: "test", | ||
| FeatureSet: codersdk.FeatureSetPremium, | ||
| Addons: []codersdk.Addon{codersdk.AddonAIGovernance}, |
There was a problem hiding this comment.
I'm confused 😕 I thought the idea here was that to use AI Gateway a deployment only needs a Premium License, and no Add-on, so do we still need this codersdk.AddonAIGovernance add-on?
AI Governance is no longer a separately purchased add-on and is now included with the Premium feature set. This PR updates the backend user-facing strings that still referenced the old "add-on" model, and renames AI Bridge to AI Gateway in the touched lines.
Changes:
codersdkAI Governance warning constants: dropped "add-on" from the seat warning textenterprise/coderd/license: updated the AI Gateway soft-warning message to reference the Premium license instead of an add-on, and updated related commentssite/src/api/typesGenerated.tsfrom the changed SDK constantsThe licensing mechanism itself is unchanged; only user-facing copy and comments were touched.
Generated by Coder Agents.