You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lock scopes so a shipped scope cannot be removed #14207
Goal: Make removing a shipped scope fail CI, so a repeat of #14167 (which dropped assistant.read and broke the ChatGPT OAuth2 app until #14200 restored it) can't happen again. Scopes are a public contract: keys, functions, sites and OAuth2/MCP clients store them, so they should only ever be deprecated.
app/config/scopes/lock.json (new): the list of every shipped project, organization and account scope.
tests/unit/General/ScopesTest.php (new, unit suite): fails when a locked scope is missing from its catalog, or when a catalog has a scope the lock doesn't list. compute.php is left out since it lists ephemeral-key grants, not a catalog clients pick from.
AGENTS.md: the Scopes rule now says scopes are never removed, to retire one with 'deprecated' => true, and points to the lock and test.
Remaining steps: none beyond the linked PR; it's the full change.
Update 2026-10-07: Cloud companion appwrite-labs/cloud#6365 adds the same guard to Cloud's resolved catalogs (app/config/scopes/lock.json covering oauth2, organization and project scopes, tests/unit/Config/ScopesTest.php, and an AGENTS.md exception). Done also needs that PR merged.
Activity