Define stable caller labels
Attach the caller at a trusted boundary
If trusted middleware has already identified the request source, attach it before the HTTPAPI mux runs:Restrict the endpoint
- authorization verifies that the request has an acceptable session kind;
- caller availability decides whether that trusted source may use this contract; and
- domain authorization decides whether the session may act on the specific resource.
Project downward, never sideways
A worker may sometimes need the exact public representation returned by the API. Declare that direction explicitly:caller.ErrProjectionElevation and leaves the context unchanged.