Skip to main content

require_service_self_binding

Function require_service_self_binding 

Source
pub fn require_service_self_binding(
    roster: &Arc<dyn DeploymentRosterSource>,
    service_name: &str,
    proof: &MoqlAdmissionProof,
) -> Result<()>
Expand description

Spawn-time self-binding (#1652): the live roster must resolve the process’s OWN admission proof to exactly this service. Refusal propagates and the service never spawns — the fail-closed shape of the former empty-tenant-map refusal, now “the checkpoint store must bind my DID to my name”. The store is guaranteed present at spawn (the accepted-state source refuses to open without it), so failure here is a provisioning mismatch, not a degraded mode to run in.