* fix(storage): backfill storage status and usage automatically on upgrade
Instances upgraded from v2.7.x needed two operator-run scripts nobody was
told about: a storage the admin had switched off became writable again, and
existing workspaces showed zero in every storage category.
A new migration converts legacy storage statuses and fills the usage
breakdown for workspaces that have none. It is idempotent and a no-op on
fresh or already-backfilled databases, and runs on D1, Node SQLite and Turso.
Remove the now redundant storage backfill scripts, plus the API key and
OAuth scope scripts: legacy API keys are upgraded on first use and no
released version has stale OAuth rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(shared): cover API key permission normalization directly
The removed backfill script tests were the only coverage for the malformed-input branches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: edith <edith@agents.realmroot.dev>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>