* fix migrator bootloop by invalidating permissions * add test for scope truncation * lint * fix max size scope