Skip to content

chore(api): remove typed-grants boot migrations (#1134)#1135

Merged
chronoai-shining merged 1 commit into
developfrom
chore/1134-remove-grants-boot-migrations
Jun 16, 2026
Merged

chore(api): remove typed-grants boot migrations (#1134)#1135
chronoai-shining merged 1 commit into
developfrom
chore/1134-remove-grants-boot-migrations

Conversation

@chronoai-shining

Copy link
Copy Markdown
Collaborator

Removes the one-shot typed-grants boot migrations now that production has been deployed with v0.13.0 and the migrations have run.

  • Deletes grants.migration.ts + grants.migration.test.ts.
  • Drops the two await calls + import from bootstrap.ts.

Kept (intentionally): the runtime fallbacks — effectiveGrants (derives read grants from legacy lists if grants is absent) and coerceStoredGrants (maps a stored legacy read_writewrite). They're cheap defense-in-depth, not boot-time migration.

The deeper legacy-field / scopeFilter purge 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

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
@chronoai-shining chronoai-shining merged commit fab1205 into develop Jun 16, 2026
17 checks passed
@chronoai-shining chronoai-shining deleted the chore/1134-remove-grants-boot-migrations branch June 16, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Misc] Remove the typed-grants boot migrations (prod migrated)

1 participant