Inference authorization
Inference authorization
Authorization binds the exact request body to its booking and owner. For reusable bookings, the signed statement is fossa-infer-v2:PROGRAM:MARKET:BOOKING:GENERATION:PROVIDER:BODY_SHA256. Generation-zero requests use fossa-infer-v1:BOOKING:PROVIDER:BODY_SHA256.
Authorization::sign creates the statement and wallet signature. RequestVerifier::verify checks request headers and body; its result’s verify_booking checks the supplied booking and current time. Supply trusted state for the expected deployment.
Headers carry booking, user, generation, body hash, and signature. Parsing headers alone does not authenticate a request. request(endpoint, body) builds a request but does not send it.
The provider must enforce the booked model, exact checkpoint, modalities, and token limits and persist one-time admission before inference. The verifier does not maintain replay state or independently measure usage.