mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-18 23:16:38 +03:00
2.5 KiB
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
- Reconstruct the intended task and trajectory contracts without looking at the final score.
- Follow the state and permission boundary through each step; compare tool arguments and observed effects to the contract.
- Locate the first divergence, not only the last visible error. Distinguish model choice, orchestration, tool, data, environment, policy, and telemetry failures.
- Test whether recovery avoided duplicate or unreconciled effects and whether stopping/escalation happened at the right boundary.
- Compare final-answer quality with path quality. A correct answer from an unauthorized or fragile path still fails the trajectory contract.
- Record evidence gaps, alternative valid paths, root-cause hypotheses, and the case/fixture changes needed before rerun.