MRO Audit Trail Model Calls | Moring
Model calls are the reasoning layer of an MRO agent audit trail. Each call record should carry the prompt version, the model identity, the retrieved manual context it saw, the response, token counts and the correlation ID. Without model-call records, a trail can show what an agent did but never why it chose that work card draft or that part list.
Short answer
Model calls are the reasoning layer of an MRO agent audit trail. Each call record should carry the prompt version, the model identity, the retrieved manual context it saw, the response, token counts and the correlation ID. Without model-call records, a trail can show what an agent did but never why it chose that work card draft or that part list.
How it works
An agent's tool calls show what it did; its model calls show why. In a maintenance operation, that distinction decides whether a disputed work card draft or part recommendation can be explained. The model call is where the agent weighed the manual revision against defect history and produced its plan, so the audit trail that omits it leaves the reasoning step unreconstructable. Standard server logs capture the API request and little else, which is exactly the gap audit-trail guidance describes.
A complete model-call record has identifiable parts. The prompt as sent, including the system prompt version, because governance instructions injected into context change behavior between versions. The retrieved context: which manual and service bulletin revisions, which defect history entries, and which procedure sections were injected into the context window. The model identity and version, since the same prompt across two model versions can produce different plans. The response, the token counts, and the latency. And throughout, the correlation ID and agent identity that tie the call to the job and the instance.
Recording the context payload is the part most implementations skip and most investigations need. When an agent drafted a work card citing an outdated procedure, the question is whether the manual system served the wrong revision or the agent retrieved the right one and ignored it. Only the context record answers that. Audit guidance describes the context window payload as essential to understanding why an agent behaved as it did, and MRO documentation work makes the question concrete because manual revisions carry real operational weight.
Model-call records also feed the operational side of the trail. Token counts and call rates make cost per maintenance job visible, and anomalies in call volume, a loop retrying a failed call, or an agent making far more calls than comparable jobs, are leading indicators of misbehavior. Control-plane guidance treats this telemetry as part of governance rather than an engineering nicety, since observable agents are governable agents.
Volume and sensitivity shape the implementation. Recording full prompts and responses for every call grows quickly, so tiering applies here as elsewhere: recent records searchable, older records in write-once storage. Redact technician personal data on ingestion where it appears in free-text requests. Keep the integrity guarantees intact across tiers, since a model-call record that can be quietly edited cannot settle the question it exists to answer.
The EU AI Act's logging expectations for high-risk systems assume the system's operation can be traced over its lifetime, and for agents the model call is the core of that trace. The practical standard for an MRO operation: for any closed job, a reviewer can list every model call, see what context each one received, and read the plan that came back. Where that holds, disputes about why an agent recommended a procedure or a part resolve by reading the record rather than reconstructing from memory.
Frequently asked questions
What fields should each model-call record contain?
The prompt as sent with its system prompt version, the retrieved context including manual and service bulletin revisions and defect history entries, the model identity and version, the response, token counts, latency, and the agent identity plus correlation ID. The context payload is the field most often skipped and most needed in disputes, because it shows whether the agent saw the correct manual revision. Together these fields let a reviewer read the reasoning step of any closed maintenance job.
Why does the retrieved context matter so much in maintenance disputes?
Because the common failure is citing the wrong revision of a procedure. When a drafted work card references an outdated step, the decisive question is whether the publications system served the wrong revision or the agent retrieved the correct one and disregarded it. The context record in the model-call entry answers this directly. Without it, the trail shows that a call happened but not what the agent actually considered, leaving the dispute unresolved between the documentation system and the agent.
How do model-call records help with cost and anomaly detection?
Token counts and call rates attached to the correlation ID make cost per maintenance job computable and comparable. They also surface anomalies early: an agent retrying a failed call in a loop, or making far more calls than comparable jobs, is a leading indicator of misbehavior before any system write occurs. Routing these signals into monitoring converts the model-call log from an archive into an active sensor over agent behavior in the maintenance workflow.
How do you manage the volume of full prompt and response logging?
Tier it. Keep recent records in searchable storage for investigations and move older ones to write-once object storage, which costs substantially less, while the integrity guarantees travel with the records across tiers. Redact personal data from free-text technician requests on ingestion. Selective capture is also legitimate: record full payloads at decision boundaries and summarize routine calls, provided the completeness needed to reconstruct a disputed job is preserved where it matters.