docs(gotcha 27): the Copilot check refuses on an account entitlement - #403
Merged
Conversation
The paragraph asking which setting silences `dynamic/agents/github-advanced-security` answered UNKNOWN and sent the last three sessions looking through repository config. The refusal comes from the account: `/copilot_internal/user` reports `free_limited_copilot` with an AI credit entitlement of exactly 0 and `credits_used: 0`, so the budget is unspent rather than exhausted. Agentic autofix went to public preview 2026-07-10, needs a Copilot license with the cloud agent, draws down those credits, and asks for `claude-opus-4.6`, which sits on Pro+ alone since the June 2026 billing change. `400 The requested model is not supported` is literally true here, on every push, indefinitely. Records the one lever nobody has pulled (opting the repo out of the Copilot cloud agent, which has no REST endpoint), retires the "wait for GitHub to fix their model routing" reading, and corrects the running count to thirteen.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
aadhar-sh | 888b883 | Aug 15 2026, 12:40 PM |
Both CLAUDE.md and infra.json said the only credential that can read `code-scanning/default-setup` is a classic PAT with `repo`. The gh CLI's own OAuth token reads it fine: measured 2026-08-15, unauthenticated curl answers 401 and `gh api` answers 200 on a `gho_` token scoped `admin:public_key, gist, read:org, repo`. The CI conclusion is unchanged, since `repo` is the disqualifying scope either way, so what moves is the workstation bar: no PAT needs minting. The sharper half is that being logged in buys nothing on its own. `check-infra.mjs` reads `process.env.GITHUB_TOKEN` and never shells out to gh, so a workstation with a good `gh auth login` still reports the tier as an unverifiable 401, exactly as CI does. The advisory said "on a workstation with `gh` logged in", which is the misleading half, so it now names the variable and carries the working recipe. Measured minutes apart on one machine: the bare run printed the note, and `GITHUB_TOKEN=$(gh auth token) pnpm run infra:check` asserted the tier and caught a real `state` drift. Also records what actually silenced the Copilot check (gotcha 27): disabling CodeQL default setup removes it, measured on #403, at the cost of all code scanning until an advanced setup replaces it.
Contributor
Wire-size diff vs merge base
Brotli q11, the quality the edge serves. Every number here is deterministic: Client assetsNo change. 20 files, 73.98 KiB Brotli total. PagesNo change. 48 files, 496.95 KiB Brotli total. Worker bundleNo change. 273.06 KiB gzip. Dictionary deltas (
|
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.
Gotcha 27 has been growing for a week around a question it could not answer: which setting silences
dynamic/agents/github-advanced-security. It answered UNKNOWN, so the last three sessions each went hunting through repository config and came back with a fingerprint instead of a cause.The refusal comes from the account rather than the repo:
{"sku": "free_limited_copilot", "premium": {"entitlement": 0, "has_quota": false, "credits_used": 0}}Entitlement is exactly 0 and
credits_usedis 0, so the budget is unspent rather than exhausted and waiting refills nothing. Agentic autofix went to public preview on 2026-07-10, requires a Copilot license with the cloud agent, draws down AI credits, and asks forclaude-opus-4.6, which sits on Pro+ alone since the June 2026 billing change.400 The requested model is not supportedis literally true of this account, on every push, indefinitely.That explains the 2026-08-12 measurement in one line, since a feature toggle cannot grant an entitlement, and it retires the "until GitHub fixes their model routing" reading: there is no outage to end, and the recovery signal the gotcha tells you to grep for will never arrive on this plan.
Also recorded:
user/copilot/coding_agent,repos/:owner/:repo/copilot/coding_agentanduser/settings/copilotall 404), and lives atgithub.com/settings/copilot.Docs only.
pnpm run lintexits 0 and no served byte moves.