Repository navigation
Don't break the API or the database: the hard rules, and a pointer to them everywhere - #2061
Merged
Merged
Conversation
… them everywhere an agent starts docs/api-and-migrations.md is a short list of hard rules: anything a released app uses keeps working for 12 months, only add, deprecate with a sunset at least 365 days out, every database change an expand or a later contract, forward only with a backup first, release-policy.json's database.to and database.from, and what a managed upgrade refuses. It links to api-versioning.md and api/README.md for the detail. Root AGENTS.md and CLAUDE.md, mobile/AGENTS.md and CLAUDE.md, CONTRIBUTING.md, the PR template, api/README.md, the docs index and the openbot-data-access skill each point to it.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 23, 2026 16:37
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.
What this changes
OpenBot is live, so changes to its API and its database have to keep working for released apps and servers. This adds one short page of hard rules,
docs/api-and-migrations.md, and points to it from every place a contributor or a coding agent starts.x-extensible-enum. Replace beside the old, deprecate with anx-sunsetat least 365 days out, and remove only after the sunset once nothing has used it for 12 months. It gives the exact commands CI runs, so a change can be checked before it is pushed.release-policy.json'sdatabase.to,database.fromandfromVersions, and what the management agent refuses.AGENTS.mdandCLAUDE.md, a newmobile/AGENTS.mdandmobile/CLAUDE.md,CONTRIBUTING.md, a checkbox in the PR template,api/README.md, the docs index,docs/api-versioning.mdand theopenbot-data-accessskill.The page states only rules the code and CI already hold, and links to
api-versioning.mdandapi/README.mdfor the detail. Docs only: nothing a deployment runs changes.Changelog
Proof
Read every link target and anchor on the page against
main. Checked each rule against what enforces it: theAPI specjob inci.yml,scripts/support-window.ts,api/openapi-extensible-enums.test.ts,shared/tests/api-deprecations.test.ts,planUpgradeinshared/release-manifest.ts, the management agent's backup step, andscripts/release-manifest.ts's database checks.