Requests, roles and credentials 00:00:01 Invoice seventeen crosses a boundary Invoice seventeen sits in a browser tab. Its owner wants a summary, and an assistant in the same room wants one too. The words of their prompts could be identical. The server still has to decide whose document can travel. A model A P I sits behind an application boundary. The host owns identity, trusted instructions, data access and credentials. The provider accepts the serialized request and returns a completion state with content or proposed actions. These layers can succeed or fail independently. Give the operation one request identifier. Follow its user identity, the selected invoice revision and the final completion state separately. each answers a different debugging question when the summary comes back empty. 00:00:49 Open the request envelope The browser sends a business request to the application. It does not need the provider credential or authority to fetch any invoice by number. The server authenticates the caller, loads the authorized record and constructs instructions and evidence in separate fields. A successful response can still be truncated or unusable. Check the completion state and output contract before exposing a final summary. 00:01:16 Track the response contract A model request carries a model identifier, instructions or messages, generation controls and sometimes tool definitions. Validate the contract before sending it. Distinguish a transport success from a usable result by examining completion status and the returned content, including truncation, refusal and proposed tool calls. Return three fixtures to a caller: a complete answer, an incomplete completion and a tool proposal. Only one is ready to display as a final answer. Message roles signal where text came from and what authority it has within the chosen A P I. Keep application policy separate from user input and retrieved evidence. Writing a policy sentence in a user-entered text field does not turn it into a trusted instruction or grant permission to perform an action. A retrieved catalog entry asks to change the delivery address. Keep it in the evidence field and check that the host grants no such capability. Pin the model and preprocessing where available, keep a representative fixture and record the resolved version. On a provider change, compare tool arguments, stop handling, latency and token usage before promoting the new route. Two engines both return a structured invoice, but one changes a missing tax field from null to zero. Verify the accounting semantics before treating them as interchangeable. Keep the original task ID through the request so a timeout or partial completion can be investigated. A valid session authorizes a specific user action, not arbitrary access to another customer’s evidence or credentials. 00:03:00 A successful request with no usable result The provider returned H T T P 200 with an incomplete output. What should the application record? Transport and application outcomes are measured separately. The response must satisfy the completion contract before it becomes a usable result. A valid credential establishes an application connection. An authorized record and a completed, checked response are what allow a customer to receive this particular summary.