Tenant Model Policy¶
Tenant model policy is the admin-tier rule plane that decides which AI models an organization can invoke — above picker and routing.
The four layers¶
Tenant model policy sits between the model invocation request and the model itself. Map any harness against four stacked decision points before you treat per-tenant rules as the right surface:
graph TD
A[Developer picker<br>Intent] --> B[Harness routing<br>Auto-select or pinned]
B --> C[Org rules<br>Allow / deny per tenant]
C --> D[Tenant catalogue<br>What the vendor exposes]
The picker reflects what a user wants. The harness routing layer decides what to call. The org rules decide what is permitted. The tenant catalog defines what exists at all for the contract. When routing logic and policy logic share a code path, the strict-priority guarantee disappears — and that guarantee is the whole mechanism (see Microsoft: Authorization and Governance for AI Agents).
The three implementations¶
| Surface | How rules attach | Default stance | Override depth |
|---|---|---|---|
| GitHub Copilot model rules | Enterprise owner targets organizations; each model is Enabled (auto-on for all orgs) or Optional (orgs opt in) (GitHub Changelog 2026-05-26) |
An Enabled rule auto-applies to all orgs without per-org action |
Enterprise overrides organization (GitHub Docs: Copilot policies) |
Claude Code availableModels |
Managed/policy settings file; arrays merge across user/project/managed surfaces (Claude Code: Model configuration) | Default-allow by prefix match; opt-in default-deny via enforceAvailableModels and availableModelsMatch: "exact" (see Pin direction) |
Managed settings take highest priority |
| Cursor Enterprise admin controls | Enterprise admins "whitelist or blocklist repos, models, and MCP servers" (Cursor Enterprise); Business tier exposes no equivalent surface, per Cursor Forum | Default-allow except where admin restricts | No documented per-team override; teams reach for gateway workarounds |
On 2026-08-26 GitHub made global model policy generally available, a default-availability policy for organizations and enterprises (GitHub Changelog 2026-08-26).
Keep model policy distinct from feature defaults. On 2026-10-22 GitHub started a rollout, through October 26, that enforces a separate default for eligible unconfigured Copilot features in enterprises and organizations. Explicit feature choices remain unchanged, and later default changes do not reset already configured features (GitHub Changelog 2026-10-22).
The three diverge on a critical detail: Claude Code documents that "With availableModels: [], named model selections are blocked and enforceAvailableModels has no effect." The Default option stays usable, so an availableModels allow-list on its own is not a deny-list. To pin model identity, admins must combine availableModels, enforceAvailableModels, model, and ANTHROPIC_DEFAULT_*_MODEL (Claude Code: Model configuration).
Pin direction¶
The recipe below fits a calibrated workload (a reviewer rubric, a judge harness, an eval baseline) where a silent model swap invalidates the calibration. A fleet with no such calibration gets more from prefix matching plus deniedModels. New capability keeps arriving without anyone adding it to a list, and deniedModels blocks only the release that turns out to be a problem.
Prefix matching inherits the next release¶
By default, an availableModels entry matches by prefix. An entry such as claude-opus-5 also permits later releases that extend it, such as Opus 5.5, as soon as Claude Code supports them (Claude Code: Settings reference). A tenant list written against one release inherits every later release in that family with no review step, so nobody has to approve Opus 5.5 for it to reach the fleet.
The default-deny recipe¶
Claude Code 2.1.283, released September 25, 2026, adds availableModelsMatch and deniedModels (Claude Code: Changelog). Set availableModelsMatch: "exact" so each availableModels entry permits only the version it names, and list full model IDs rather than family aliases. Add requiredMinimumVersion: "2.1.283" so an older client cannot start and silently fall back to prefix matching:
{
"availableModels": ["claude-opus-5", "claude-sonnet-5"],
"availableModelsMatch": "exact",
"requiredMinimumVersion": "2.1.283"
}
Both keys read from managed settings only; Claude Code ignores them with a warning anywhere else (Claude Code: Model configuration). Deliver the policy through server-managed settings for Anthropic-hosted cloud sessions — a device-deployed file never reaches them. For Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry sessions, deliver it through a managed settings file on the runner image instead, since those providers don't receive server-managed settings either (Claude Code: Model configuration).
deniedModels for the lighter touch¶
To hold back one bad release without going full default-deny, keep prefix matching and name the release in deniedModels:
{
"availableModels": ["opus", "sonnet"],
"deniedModels": ["claude-opus-5-5"]
}
A blocked model disappears from the /model picker and is rejected by name everywhere the allowlist applies (Claude Code: Model configuration). It leaves every unnamed release on the default-allow path.
Provider restriction is a separate key¶
The allowedProviders managed setting limits which API providers a machine may use (Claude Code: Changelog). The list covers the Anthropic API, a custom endpoint, Bedrock, Mantle, Vertex AI, Foundry, Claude Platform on AWS, and a Cloud gateway. A model allowlist does not constrain the provider, so a residency rule that names a cloud rather than a model needs this key too.
Traps in the recipe¶
- A family alias defeats
"exact". An allowlist of["opus", "sonnet"]still admits the next Opus and Sonnet release: "a family alias such as\"opus\"still permits the whole family" (Claude Code: Settings reference). Default-deny needs full model IDs, not family names. - A hook or background request that names a blocked model runs on the session's model rather than failing (Claude Code: Model configuration) — an agent hook tuned for a small model can run on a larger one with no error, and the hook author gets no warning.
- A blocked Default steps down through a fixed order: the newest permitted version of the same family, then the newest permitted model of each cheaper family in turn (Sonnet, then Haiku), then the first allowlist entry that names a permitted model (Claude Code: Model configuration).
- When none of those options is permitted, a session on Default refuses to start, with an error that names the key to fix (Claude Code: Model configuration).
What the pin does not cover¶
A pin fixes model identity. It does not fix the harness version, the effort default, or the system prompt running on top of that identity, and Anthropic's own incident reports show all three moving behavior on their own. Anthropic changed Claude Code's default reasoning effort from high to medium on March 4, 2026, and an April 16 system-prompt change "hurt coding quality" for Sonnet 4.6, Opus 4.6, and Opus 4.7 alike before it was reverted four days later (Anthropic: An update on recent Claude Code quality reports). A serving-side routing bug misrouted Sonnet 4 requests between August 5 and August 31, 2026, peaking at 16% of requests in the worst hour, with no model ID change involved (Anthropic: A postmortem of three recent issues). Pin the Claude Code version alongside the model for a reviewer or eval workload, and keep the deprecation calendar in view: a pin still expires on the vendor's schedule (Anthropic: Model deprecations). See Model Deprecation Lifecycle and Perceived Model Degradation for the operational and diagnostic complements.
Why it works¶
The policy decision and the model invocation sit at distinct layers. So the rule engine can reject or substitute by tenant identity before the call reaches a model. Microsoft's runtime governance framing names the mechanism: "evaluate policies in deterministic order with tenant isolation and residency checks as hard deny first, preventing approval workflows from bypassing foundational security boundaries" (Microsoft: Authorization and Governance for AI Agents). The pattern holds because lower-priority surfaces — picker, env var, CLI flag — never see the request once the strict-priority managed setting denies it.
The mechanism collapses the moment policy becomes advisory. A picker that hides a denied model but leaves it reachable via --model flag is back to four uncorrelated decision points, not a policy plane.
When this backfires¶
- Default enablement can admit newly available models without a per-model decision. Eligible models in "Delegate to default policy" track that policy dynamically; explicit choices are preserved. Open-weight models and models outside GitHub's data-retention agreement are excluded from default enablement (GitHub Changelog 2026-08-26). If each new model needs review, disable the default and enable individual models deliberately.
- Silent fallback hides denials: when the picker substitutes a default model without surfacing the denial reason, denial telemetry drops to zero and the developer reads the rejection as "the tool just feels worse." Silent fallback is independently an anti-pattern that distorts metrics and trust.
- Picker drift after deprecations: an
availableModelslist that was correct on day one becomes a deny-list of retired model IDs over months. Without a lifecycle tied to model-deprecation calendars, the policy ages into silent denial of every selection. Pair with Model Deprecation Lifecycle. - Missing override depth: a security-research team needs a long-context Opus run that the cost-ceiling rule denies. Without a per-project or team-lead exception path, the request goes off-platform and the audit boundary collapses — the exact failure mode reported on the Cursor forum.
- Carve-outs that defeat the rule: Claude Code's documented Default-option exception means a casually-applied
availableModelssetting does not deny anything for that tier (Claude Code: Model configuration). Admins reading the docs without the recipe —availableModelsplusmodelplusANTHROPIC_DEFAULT_*_MODEL— ship policy theatre.
Example¶
An organization that requires a deliberate decision for each new model can disable default model availability and explicitly enable reviewed models. This schematic contrasts the two states documented in the August 26 changelog:
Before:
Default model availability: Enabled
Eligible new model: Delegate to default policy -> available
After:
Default model availability: Disabled
Eligible new model: Delegate to default policy -> unavailable
Reviewed model: explicitly Enabled -> available
The Claude Code equivalent in managed settings, pinning a Sonnet 4.5 build to a regulated tenant:
{
"model": "claude-sonnet-4-5",
"availableModels": ["claude-sonnet-4-5", "haiku"],
"enforceAvailableModels": true,
"env": {
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-5"
}
}
Without enforceAvailableModels, a user who selects Default in the picker lands on the account's runtime default rather than the pinned Sonnet 4.5 build. Without the env block, enforceAvailableModels alone still lets Default resolve to Haiku instead of this exact Sonnet version (Claude Code: Model configuration).
Key Takeaways¶
- Tenant model policy is the layer above harness routing and below the vendor catalog — failure modes come from collapsing it into either neighbour.
- Distinguish model defaults from feature defaults: delegated models track later default changes, while the October feature rollout preserves already configured choices. Require an explicit per-model decision where your policy needs one.
- Allow-lists in isolation are not deny-lists. Claude Code's
availableModelsrequiresenforceAvailableModels,model, andANTHROPIC_DEFAULT_*_MODELcompanions to pin model identity. availableModelsMatch: "exact"plus full model IDs turns model rollout into opt-in, but only on Claude Code v2.1.283+, only in managed settings, and only for model identity — not the harness version, effort default, or serving path that Anthropic's own postmortems show moving behavior on their own. Scope it to calibrated workloads; a general fleet does better on prefix matching plusdeniedModels.- Explicit denial signals matter more than the deny itself: silent fallback erases the audit trail and pushes developers off-platform.
- Tie rule lifecycle to the model-deprecation calendar — without it, policy ages into accidental total denial.
For the related approach, see Model Policy Reconciliation: A Copilot Model Allow List as Code.
Related¶
- Administrative Effort Ceilings for Reasoning Budget — the same admin tier applied to reasoning depth rather than model choice.
- Agent Governance Policies — the broader three-tier policy hierarchy (enterprise → organization → user) Copilot enforces.
- Auto Model Selection — harness-side routing within the catalog an org rule has filtered.
- Gateway Model Routing — the infrastructure-layer alternative when the harness exposes no native admin surface.
- Cost-Aware Agent Design — within-budget tier routing that runs once policy has constrained the catalog.
- Model Deprecation Lifecycle — the operational wrapper that prevents rule drift after model retirements.
- Model-ID-as-Dependency: Migration Protocol for Deprecation Churn — the codebase-side complement to pinning a model ID in tenant policy.
- Perceived Model Degradation — distinguishes the real behavioral drift a pin cannot stop from a reported regression that never happened.