Static checks (ast, so imports inside functions and relative imports count): nothing outside scrobbler.federation imports it except create_app; federation.protocol imports no framework or scrobbler code; the rest of federation uses only the core's public surface (events, extensions, worker, services, api.decorators, schemas). The checker is itself tested against deliberate violations and permitted imports. Runtime checks: with federation off no federation views, event receivers or worker tasks exist; enabling it needs a bare domain and an https base URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW