Close the remaining places where an extension point was hardcoded, and
expose a stable public import surface for every app.
- files: register_storage_backend(...) / STORAGE_BACKENDS[name]["CLASS"];
unknown backends now fail loudly instead of silently using local
- files: PipelineStepRegistry + @pipeline_step; PIPELINE_EXECUTOR setting
- billing: INVOICE_PDF_BUILDER setting
- security: TWO_FACTOR_SERVICE / TWO_FACTOR_RECOVERY_SERVICE settings
- all app packages expose lazy public exports (PEP 562); infrasynth.shared
re-exports its primitives eagerly
- README documents the per-module extension-point table
- tests/test_extensibility.py pins each hook plus the public surface
Make access gating a first-class, pip-consumable extension point so a
consuming app can gate any of its own views behind 2FA / ALTCHA /
entitlement / feature flag / permission, or gate nothing, without editing
the kit.
- infrasynth.gates: Gate, GateResult, GatePermission, @gated and built-ins
TwoFactorGate, AltchaGate, EntitlementGate, FeatureGate, PermissionGate;
denials raise the correct namespaced error/status (per-endpoint, opt-in,
default is no gating)
- mint a `2fa` JWT claim only after verification (preserved across workspace
selection) so TwoFactorGate is meaningful for API/multi-workspace clients
- GatePermission added to DEFAULT_PERMISSION_CLASSES; HybridPermission
evaluates declared gates so kit permissions gate automatically
- document the extension surface and stable import paths in README