pub fn encode_service_jwt_hybrid_via_authority(
claims: &Claims,
fallback_ed: &SigningKey,
) -> Result<String>Expand description
Encode a service WIT with the mandatory hybrid suite for the dispatch plane.
When a composite signing authority is configured, mints with its active
OAuth pair through the authority barrier (rotation-aware, mirroring
PolicyService’s token signing seam) — a mint-snapshot failure or a missing
active pair is an error, never a silent downgrade to another key: the
callers’ fallback_ed is the rotating active_jwt_signing_key() slot, so
a derived pair minted behind a configured authority would carry a
composite kid nothing resolves while bypassing the staleness barrier.
Only when NO authority has been initialized (fresh install, before
rotation bootstrap) does it fall back to the self-contained CA JWT pair
(derive_mesh_mldsa_key(fallback_ed), fallback_ed), whose composite kid
the dispatch key sources resolve offline from the ca-mldsa-pubkey
credential. A classical WIT is never minted: the dispatch plane’s Hybrid
policy would reject it unconditionally.