AI agent monitoring starts with a run log that lets someone reconstruct the work, from the incoming request to the final result in your business system. Use repeatable tests, called evals, to catch changes in the agent’s behavior, and send an alert to the person who can act before the error reaches more work.

A run log should tell the branch what happened

Vecto Crew builds automation that leaves a run log the client team can open. Consider an illustrative equipment rental branch. When a floor scrubber comes back, an agent reads the return notes and opens an internal inspection task if the notes describe damage. Staff still assess the equipment and decide whether it can go back out. At closing time, the branch manager needs to tell which returns the agent checked and which are still waiting for someone.

Give every return a run ID and link it to the rental record. Record the event that started the run, the branch, its start and finish times and who or what started it. Capture the workflow, prompt and model versions in use. This lets an engineer look for failed runs that began after a version change. A long job can have several attempts. Use the same run ID for all of them, with a distinct attempt number, so an operator can follow one return across a timeout or restart.

A trace is the timed record of steps within the run. The Google Cloud guide to agent observability describes using traces to locate failures in calls to other systems, repeated execution, or slow steps. For the rental branch, give each lookup and attempted write its own entry. Include what was called, how long it took and the outcome. Keep the reference to the rule used, the task ID the rental system returned and the approval or handoff record when a person had to intervene. Record model usage for each call so repeated calls show up on the same run. Give the run a final status that corresponds to the business event, such as inspection task confirmed or waiting for branch review.

A stalled write and a failed write need different statuses. A missing confirmation can leave the task’s outcome unknown while the rental system has already saved it. Before a retry, look for a matching inspection task in the rental system using the return’s reference. If the app cannot determine what was saved, give a person the incomplete run and the rental reference. Use the agent-versus-workflow guide to decide which rules to enforce in software, such as allowing only one inspection task per return.

Keep the routine log readable by branch staff. An ID and a short reason such as “return notes mention damage to the housing” may give the operator enough to find the case. Keep customer details and credentials out of the log. If an engineer needs to see original notes, link to the record in the rental system where existing permissions apply. Check what your tracing tool captures by default, especially raw model inputs and tool responses. Give any retained diagnostic text a reason to be there, a restricted audience and a deletion date.

A seismograph needle traces small mint spikes on a paper drum under violet light.

Give the agent returns the branch knows how to handle

An eval gives the agent a case with an expected result and checks what happened. Set up the inspection workflow against a test copy of the rental system. A trial passes when that system contains the expected task for the correct rental and branch. Check its count and assignment too. For a routine return, verify that the task count stayed at zero. A case that needs a person should end up in that person’s queue with enough information to make a decision.

Anthropic’s eval guide suggests starting with 20 to 50 simple tasks based on real failures. For the illustrative branch, start with 24 cases. Use past returns the branch lead can verify, removing customer details. Set aside a few slots for cases that staff can construct deliberately, including a lost save confirmation. Give each case the return record, any task already on file and the expected state of the system at the end. Ask the branch lead to sign off on that result before an engineer runs the test.

  • A returned floor scrubber has a cracked housing. The system should open one inspection task for the correct asset.
  • An employee corrects a return note before the agent reads it. The crack was on a packaging crate. Check that the agent skips the inspection task when the current note and branch policy support that decision.
  • Two returns arrive for the same model of floor scrubber. When the note omits the asset number and both records are plausible, the agent should send the case to the branch queue.
  • The inspection task is saved, but the test system withholds the confirmation. Reprocessing the event should leave one inspection task linked to that return.

Hold back several cases that nobody uses to adjust the prompt. If a release improves on the exact wording engineers saw while making the change, replay the held-back cases to check that the improvement carries over to notes written in other words.

For changes to the prompt, model, inspection policy or rental system connection, have the engineer run the same dated test set against the current and proposed versions in the test system. Review both sets of results before release. Repeat cases where a second answer would carry a different consequence. Have the ops lead review a sample of live returns each week at first, including routine completions, and add newly confirmed failure types to the test set. Keep a dated record of the test version and its results so an engineer can compare like with like. If the agent starts opening tasks for the wrong assets, block the release even if the aggregate pass rate looks good. Use the pilot-to-production checklist to confirm who can pause the workflow and how staff will handle the queue if a release fails. The guide to human review covers how to give the branch lead a usable decision at that point.

Page the person with the pause switch

Choose alert thresholds from the time the branch has to recover. Say the branch handles short-term rentals and prepares the next morning’s equipment before close. An unreviewed return can leave the morning team with a machine it cannot send out. A duplicate task needs cleanup. An unauthorized change to which equipment is available deserves immediate attention. Give these separate alerts so a routine cleanup message cannot bury a change that affects dispatch.

The operations lead should receive an alert when the branch needs to switch to manual inspection or correct equipment availability. Send connection errors to the engineer or vendor on call, with the run IDs and the affected branch. If the branch needs a decision while that person investigates, assign an ops backup with permission to pause the workflow. The Google site reliability engineering chapter on monitoring describes keeping human alerts for conditions that warrant a response. For a small team, that can mean a single shared incident notification with a named owner and a backup, instead of separate pages from every failing step.

Put the affected branch, oldest unresolved return and a link to the working queue in the message. Test whether it reaches someone with the system open and permissions to intervene.

Example thresholds for one rental branch. Set the deadlines around the branch’s actual dispatch schedule.
SignalExample thresholdWho gets itFirst action
Unauthorized availability changeOne confirmed change attributed to the agent.Duty operations lead, with IT copied.Pause the agent’s writes and check the affected asset before the next dispatch.
Inspection handoff waitingOldest handoff open for 30 minutes during staffed hours.Branch supervisor.Open the waiting returns queue and assign the oldest case.
Connection to rental system failingThree distinct returns hit write errors in 15 minutes.Engineer on call.Check the connection and reconcile pending writes before retrying.
Wrong asset in a reviewed taskOne confirmed case, including cases found in a weekly sample.Operations lead and workflow owner.Correct the task, check similar recent cases and add the failure to the eval set.

A return the branch can reconcile

In the example below, the task was saved on the first attempt. The next attempt checked the system and found it. The supervisor has a task number to open and the engineer has an event to inspect. Keep recovered timeouts in the daily log so the engineer can identify a growing connection problem before it fills the branch queue.

Example run log condensed for branch review. All identifiers and values are fictional.
FieldRecorded value
Trigger and runReturn R-3091 received at 3:12 p.m. local time, East branch, run 74F2.
VersionsInspection flow v7, prompt v3, model snapshot A, return policy v12.
DecisionOpen an inspection task for the floor scrubber. Return notes mention housing damage.
Attempt 1Create request timed out after 8 seconds. Save outcome unknown.
Attempt 2Searched by return reference and found existing task I-188. Creation skipped.
Final statusInspection task confirmed at 3:13 p.m. Task assigned to the East branch inspection queue.

Sources

  1. Google Cloud, observability for AI agent developers. Updated Nov. 25, 2026.
  2. Anthropic, Demystifying evals for AI agents. Jan. 9, 2026.
  3. Google, Monitoring Distributed Systems, in Site Reliability Engineering. 2016 (web edition 2017).