- scrobbler.federation with init_app() as its only entry point, called from create_app(); does nothing unless FEDERATION_ENABLED - FederationConfig validates FEDERATION_DOMAIN (bare host) and FEDERATION_BASE_URL (https) when enabled, with clear errors - federation/protocol/ package for pure, framework-free protocol code - Package README with the boundary rules, configuration and migration workflow; .env.example lists the settings (off) - Alembic: existing history labelled `core`; new empty `federation` branch root (depends on the core users table). Everything upgrades `heads` (entrypoint, CI, tests); tests check both branches apply and that federation can be removed without touching core Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
8 lines
392 B
Python
8 lines
392 B
Python
"""Pure ActivityPub protocol code: vocabulary builders, addressing, WebFinger and
|
|
NodeInfo documents, HTTP signature schemes.
|
|
|
|
Rule: nothing in this package imports Flask, SQLAlchemy, Werkzeug or any other part of
|
|
Scrobbler; only the standard library and `cryptography`. Spec changes land here and are
|
|
tested with spec test vectors alone. (Enforced by tests/test_federation_boundary.py.)
|
|
"""
|