chore(api): remove typed-grants boot migrations (#1134)#1135
Merged
chronoai-shining merged 1 commit intoJun 16, 2026
Conversation
Production has been deployed with v0.13.0 and the typed-grants backfill + read_write→write rename have run, so the one-shot boot migrations are dead weight (a permanent startup scan + cognitive debt). Delete `grants.migration.ts` + its test and drop the two `await` calls + import from `bootstrap.ts`. The cheap runtime fallbacks stay: `effectiveGrants` still derives read grants from the legacy lists if `grants` is ever absent, and `coerceStoredGrants` still maps a stored legacy `read_write` → `write`. Those are defense-in-depth, not boot-time migration. The deeper legacy- field / scopeFilter purge is a separate breaking change tracked for later. Closes #1134
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.
Removes the one-shot typed-grants boot migrations now that production has been deployed with v0.13.0 and the migrations have run.
grants.migration.ts+grants.migration.test.ts.awaitcalls + import frombootstrap.ts.Kept (intentionally): the runtime fallbacks —
effectiveGrants(derives read grants from legacy lists ifgrantsis absent) andcoerceStoredGrants(maps a stored legacyread_write→write). They're cheap defense-in-depth, not boot-time migration.The deeper legacy-field /
scopeFilterpurge is a separate breaking change (the legacy lists are still read by the API/SDK/frontend) — deliberately not bundled here.Empty changeset (internal removal, no user-facing/API change).
Closes #1134
🤖 Generated with Claude Code