Expand description
ForwardPolicyRegistry — per-hub map from callee namespace to the
ForwardPolicy that the framework consults when dispatching across the
boundary into that callee.
AUTHLANG-3 wires this into the canonical edge-crossing point
(super::plexus::route_to_child). The registry holds
Arc<dyn ForwardPolicy> keyed by the lowercased callee namespace string
(matching the child_routers key convention on
super::plexus::DynamicHub). Without an entry, the framework treats the
lookup as “no opinion declared” and falls back to
plexus_auth_core::IdentityOnly — the safe default per the spike.
AUTHLANG-4 (the #[plexus::activation(forward_policy = ...)] macro) is
the supported declarative path that populates the registry. Imperative
registration is intentionally exposed (via [Self::register]) so
integration tests and hand-rolled wiring can drive the same code path
without going through the macro.
§Vocabulary
Per AUTHZ-0: caller and callee, not parent and child. The
existing ChildRouter API name is preserved as legacy; the spike’s
decision to keep that name is documented in
plans/AUTHLANG/AUTHLANG-S01-output.md.
Structs§
- Forward
Policy Registry - Registry of
ForwardPolicyimplementations keyed by callee namespace.