Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Agent evals and observability/Trajectory-review
Reference · Agent evals and observability

Trajectory-review

Part of Agent evals and observability. Install the skill and your agent reads this page when it needs the depth.

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:

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.

Obligations, omissions, and completion evidence

Derive required actions only from the authorized task contract, including its conditions, deadlines, and explicitly accepted handoffs. Do not invent an obligation to notify, mutate, or continue merely because an action could be helpful. Record each required obligation, owner, due time/timezone or elapsed bound, triggering condition, and expected completion evidence before grading. Compare that roster with authoritative environment state and timestamps, not just the steps that happen to appear in the trace.

Test omissions: a required notification never sent, a deadline missed, a required verification skipped, or pending work dropped after fallback. A clean no-tool trace is not success when an authorized required action was missed. For required external actions, require a receipt/operation ID and observed postcondition; for text-only or read-only tasks, use contract-appropriate artifact and source evidence for completion claims; lack of telemetry is an evidence gap, not proof of either completion or abandonment.

Correct abstention or escalation can satisfy the trajectory's boundary rule without completing the original business action. Record those outcomes separately. An authorized fallback or escalation needs a destination, accountable owner, acknowledgement deadline, pending obligation, and terminal disposition or bounded follow-up. Acknowledgement is evidence of handoff, not proof that the original action finished. Silent abandonment or an unacknowledged/unowned handoff cannot be scored as completion. Never reward unsafe proceeding to meet a deadline. Pair missed-action fixtures with correctly completed, correctly escalated, and unrequested-action controls; check deadlines with a controlled clock.

Minimal Run And Step Contract

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

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.

Optional intervention events

Intervention data is opt-in and question-scoped. A case retains the required human_interventions nonnegative integer as its aggregate count; unknown is not zero. The optional intervention_detail object has coverage (complete, partial, or not_collected) and events. If absent, event detail was not collected. If present, event objects allow only id, actor, kinds, target, boundary_reference, changes, outcome, and evidence_reference. Actors are human, orchestrator, or system; only human events contribute to the scalar. Each input event counts once even if it has multiple unique kind codes.

Use bounded codes for event IDs, kinds, and outcomes (up to 64 characters, [A-Za-z0-9][A-Za-z0-9_.:-]*) and bounded opaque, single-line references (up to 256 characters, no spaces). The target identifies run_id and task_id, with optional workstream_id. The changes map records goal, constraints, and authority as booleans or null when unknown. complete coverage requires the scalar to equal the number of human events; partial coverage lists no more human events than the scalar; not_collected requires an empty event list. Store a shared event once at the owning/common parent task and link to it rather than duplicating it across child cases; (run_id, event.id) is unique.

The code vocabulary is extensible; illustrative kinds include information_decision, authorization_gate, and resume_recovery. These are examples, not a required taxonomy. Opaque-looking references and short codes can still encode sensitive information, and schema validation cannot certify their privacy. Review actual values under the applicable privacy policy. If the task asks only for answer correctness and does not require intervention attribution, do not collect typed intervention detail.

Do not capture raw human messages, prompts, hidden reasoning, or free-text justifications by default. Typed change flags and opaque evidence references do not grant authority or establish causation. Do not infer success or productivity from a lower intervention count alone.

Review Protocol

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

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.