Skip to content

Lock scopes so a shipped scope cannot be removed #14207

Closed

Description

@ChiragAgg5k

Tracks PR #14206.

Plan

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.

What changes (#14206)

  • 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.

Done when

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

  1. self-assigned this
    on Oct 7, 2026
  2. added
    product / functions
    product / sites
    sdk / cli
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / functionsproduct / sitessdk / cli

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions