Files
magnus919_agent-skills/agent-evals-and-observability/references/trajectory-review.md

2.5 KiB

Trace and Trajectory Review

Review trajectories when correctness, safety, cost, or recovery depends on how the agent acted. Use the trace-review template to inspect:

  • tool selection, argument validity, ordering, and permission checks;
  • state transitions, retries, recovery, stopping, escalation, and loop controls;
  • grounding: retrieval, tool-result use, citations, and unsupported claims;
  • planned and observed side effects, including compensating or rollback actions;
  • correlation between final outcome, latency, resources, errors, and environment state.

Specify permitted alternatives rather than forcing a single path when more than one safe trajectory can satisfy the contract. Grade environment-visible effects for idempotency and recovery. Capture the smallest trace fields needed for the claim; redact before review and record inaccessible evidence as a gap.

Minimal Run And Step Contract

Keep a backend-neutral internal record even when exporting to a tracing system:

  • run/case/experiment identifiers and parent-child correlation;
  • dataset, agent/workflow, prompt/policy, model/provider, tool, grader, code, fixture, and deployment versions;
  • environment and permission boundary;
  • step type, start/end or sequence, outcome/error category, retry/attempt relation, and stop reason;
  • selected tool and bounded/redacted arguments/result summary;
  • state transition and planned/committed/rolled-back side effects;
  • grounding/evidence identifiers that can be resolved under access control; and
  • final outcome plus linked grader results.

Do not manufacture a conversation ID from content, expose chain-of-thought, or copy raw inputs merely to make a trace look complete. Record when sampling or access removed evidence.

Review Protocol

  1. Reconstruct the intended task and trajectory contracts without looking at the final score.
  2. Follow the state and permission boundary through each step; compare tool arguments and observed effects to the contract.
  3. Locate the first divergence, not only the last visible error. Distinguish model choice, orchestration, tool, data, environment, policy, and telemetry failures.
  4. Test whether recovery avoided duplicate or unreconciled effects and whether stopping/escalation happened at the right boundary.
  5. Compare final-answer quality with path quality. A correct answer from an unauthorized or fragile path still fails the trajectory contract.
  6. Record evidence gaps, alternative valid paths, root-cause hypotheses, and the case/fixture changes needed before rerun.