Requested, resolved, and served are different things
A single model name in a log line hides what actually happened to a request. The name a caller sends can be an alias, the system can route it elsewhere, and the provider can report something else again. Keeping these as three separate fields makes it possible to tell them apart later.
| Label | Description |
|---|---|
| Requested | The model name or alias the calling application sent. |
| Resolved | The target chosen after alias expansion, routing, or fallback. |
| Served | The identifier the provider returned with the response, if any. |
| Recorded | An immutable log entry that links all three to the request. |
The first three describe the request as it moves through your system. The fourth is the durable record that ties them together, and it is what you retain as audit evidence.
Where to capture the record in the request path
Capture the record at the gateway or application layer, where the request, the routing decision, and the provider response are all visible in one place.
- RequestedThe caller sends a model name or alias.
- ResolvedAlias expansion, routing, or fallback selects the target.
- ServedThe provider returns an identifier with the response, if any.
- RecordedA log entry links all three to the request.
What to capture at each point
- The requested value as the caller sent it, before any alias expansion.
- The resolved target, after alias expansion, routing, or fallback has been applied.
- The served identifier returned by the provider with the response, if the provider returns one.
Designing the record to survive scrutiny
Store the three model values together with the parameters, the routing decisions, and a timestamp in an append-only log. Each entry should link all three values to the request it describes, so that a reviewer can reconstruct which model answered without relying on memory or inference.
Fields to include in each entry
- The requested model name or alias.
- The resolved target after alias expansion, routing, or fallback.
- The served model identifier reported by the provider, if any.
- The request parameters.
- The routing decisions that led to the resolved target.
- A timestamp.
- A link to the request the entry describes.
Why append-only
An immutable entry is what turns a debug message into audit evidence. Because entries are only added and never edited, the log shows what was recorded at the time of the request.
Limits of provider-reported identifiers and links to governance
The served identifier is whatever the provider reports with the response, and a response may carry none at all. Treat it as evidence with limits rather than proof. Record it alongside the requested and resolved values instead of replacing them, so the log shows what your system asked for and decided as well as what the provider reported.