Skip to content

feat: update copy for AI Governance licensing change - #28075

Open
johnstcn wants to merge 1 commit into
mainfrom
cj/aigov-license-backend-strings
Open

feat: update copy for AI Governance licensing change#28075
johnstcn wants to merge 1 commit into
mainfrom
cj/aigov-license-backend-strings

Conversation

@johnstcn

Copy link
Copy Markdown
Member

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:

  • codersdk AI Governance warning constants: dropped "add-on" from the seat warning text
  • enterprise/coderd/license: updated the AI Gateway soft-warning message to reference the Premium license instead of an add-on, and updated related comments
  • Regenerated site/src/api/typesGenerated.ts from the changed SDK constants
  • Updated backend tests and the frontend test/story assertions derived from the changed strings

The licensing mechanism itself is unchanged; only user-facing copy and comments were touched.

Generated by Coder Agents.

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.
@johnstcn
johnstcn marked this pull request as ready for review August 12, 2026 15:33
@johnstcn
johnstcn requested review from ibetitsmike and ssncferreira and a lite review from Copilot August 12, 2026 15:33
@johnstcn

Copy link
Copy Markdown
Member Author

AIGOV-598

@coder-tasks

coder-tasks Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Documentation Check

This 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 docs/ai-coder/ai-governance.md and docs/ai-coder/index.md already state AI Governance is "included with a Premium license", confirming the intended direction.

Updates Needed

  • docs/reference/glossary.md - The ### AI Governance Add-On entry describes it as "A separate per-user license for Premium customers, purchased on top of a Premium subscription". Reframe to reflect that AI Governance is included with Premium (and note the former "add-on" name if worth preserving). Also update the four dependent lines that still gate on the add-on: Agent Firewall ("requires the AI Governance Add-On"), AI Gateway ("requires the AI Governance Add-On"), AI Gateway Proxy ("requires the AI Governance Add-On"), and Agent Workspace Build ("the AI Governance Add-On expands the allowance").
  • docs/ai-coder/ai-gateway/standalone.md - The NOTE callout ("AI Gateway requires the [AI Governance Add-On]... deployments without the add-on will not be able to access AI Gateway") and the "Before you begin" prerequisite ("A Coder license with the [AI Governance Add-On]") still describe the add-on model. Update to reference the Premium license.
  • docs/install/airgap.md - The AI Governance Usage Count row references "the [AI Governance Add On]". Align with the Premium-included wording.
  • docs/manifest.json - The Standalone Deployment entry uses "state": ["ai governance add-on"]. Update this state tag to match the new licensing model (e.g. "premium", consistent with sibling AI Gateway pages).

Automated review via Coder Agents

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.

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 codersdk and 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.

Comment on lines +332 to +335
// 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.
Comment thread codersdk/licenses.go
Comment on lines +18 to +19
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)."

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.

Do we still have the concept of seats? 🤔 I thought this was related to the add-on, but I might be wrong.

Comment on lines +332 to +335
// 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.

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.

Is this comment still valid? 👀 IIUC, AI Gateway is now part of the premium license

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.

Same for the TODO comments below

AccountType: "salesforce",
AccountID: "test",
FeatureSet: codersdk.FeatureSetPremium,
Addons: []codersdk.Addon{codersdk.AddonAIGovernance},

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.

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?

@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

AIGOV-598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants