Can you see why a run did what it did — per-step traces, failure taxonomy, and replaying yesterday's bad run today.
Free & open · no signup · read-only — it ends by asking · nothing leaves your machine
You are working inside this repo. Mission: determine whether a bad agent run can be understood after the fact — and rebuilt into a test — or whether every incident is archaeology.
Read-only pass. Your only write is the report file.
Phase 2 sweeps the codebase through every one of these, citing file and line for each finding.
for any step, can you see exactly what the model saw when it chose? Inputs-at-that-moment captured, or only outputs?
one run_id threading everything, or grep-and-pray across systems
failures bucketed by cause (bad retrieval, tool error, refusal, timeout, hallucination) or one undifferentiated "error"
can a captured trace be re-run with fixed inputs to reproduce or verify a fix? Even approximately?
user content and secrets sitting in traces; retention aligned with 21's rules or contradicting them
recorded where you can query them, or reconstructed by hand
simulate it: a user reports a wrong answer; time the path from report to root cause with today's tooling
One structured report at the repo root — or in reports/, if you keep one — the same shape every time, ready for a teammate — or the optional Studio — to act on.
TRACES.md already exists from a previous run, read it first and lead with what changed since.Every Goal Prompt follows the same four steps, so results are consistent and repeatable — no matter which one you run.
Per run and per step.
Step completeness — for any step, can you see exactly what the model saw when it chose? Inputs-at-that-moment captured…
Rank gaps by how much they lengthen the report-to-root-cause path.
Create TRACES.md at repo root.
Copy it and paste it into your agent inside the repo you want checked.
Install the goal plugin once — two commands — then just type /goal:trace-replay-audit.
/plugin marketplace add GhostlyGawd/goal-prompts/plugin install goal@goal-promptsOr install only this Goal Prompt as /goal-trace-replay-audit:
curl -fsSL https://goal-prompts.vercel.app/install | BRIEF=37 shLet an agent fetch it mid-conversation, or pull the raw Goal Prompt by URL.
https://goal-prompts.vercel.app/raw/37.mdNothing hidden — this is the whole Goal Prompt, verbatim. Read it in a minute, edit it, or copy it as-is.
# Goal: Trace & Replay Audit You are working inside this repo. Mission: determine whether a bad agent run can be understood after the fact — and rebuilt into a test — or whether every incident is archaeology. Read-only pass. Your only write is the report file. ## Phase 1 — What's recorded today - Per run and per step: are prompts, tool calls, tool results, model outputs, tokens, latency, and errors captured? Where, and for how long? - How would you find the trace for "user X's bad run yesterday afternoon" — walk the actual lookup path. - Do IDs correlate: user → run → steps → cost, or are these separate log puddles? ## Phase 2 — Audit through 7 lenses 1. **Step completeness** — for any step, can you see exactly what the model saw when it chose? Inputs-at-that-moment captured, or only outputs? 2. **Correlation** — one run_id threading everything, or grep-and-pray across systems 3. **Failure taxonomy** — failures bucketed by cause (bad retrieval, tool error, refusal, timeout, hallucination) or one undifferentiated "error" 4. **Replay capability** — can a captured trace be re-run with fixed inputs to reproduce or verify a fix? Even approximately? 5. **Redaction** — user content and secrets sitting in traces; retention aligned with 21's rules or contradicting them 6. **Cost and latency per step** — recorded where you can query them, or reconstructed by hand 7. **Triage workflow** — simulate it: a user reports a wrong answer; time the path from report to root cause with today's tooling ## Phase 3 — Curate - Rank gaps by how much they lengthen the report-to-root-cause path - Traces feed evals (34) and feedback loops (45) — note the wiring wins ## Phase 4 — Report Create `TRACES.md` at repo root: 1. **Trace anatomy** — captured today vs needed, field by field 2. **The triage walkthrough** — the simulated incident, timed, with every dead end 3. **Instrumentation plan** — field · where to emit · effort 4. **Replay design** — the smallest mechanism that turns a bad trace into a fixture 5. **Redaction fixes** Start the report with today's date. If `TRACES.md` already exists from a previous run, read it first and lead with what changed since. ## Rules - If you can't see what the model saw, you can't explain what it did - Every production failure should be one command away from becoming a test - No agent runs to trace in this repo? Say so in a one-paragraph null report and stop — a null result is a valid finding. - If a `reports/` directory exists at the repo root, write the report there instead of the root. - Before asking, present the top findings as a ranked list in plain words - Report only — end by asking which gaps to close
reports/ directory exists at the repo root, write the report there instead of the root.Every system prompt in the repo: contradictions, dead instructions, bloat, and injection surface — with a consolidation plan.
Your tools are an API whose consumer is a model — audit names, descriptions, error contracts, and guards on destructive actions.
How runs end — iteration caps, stop conditions, stuck-state detection, and the true cost of one pathological run.
Reconstruct what actually enters the model's window each step — stale payloads, token hogs, retrieval junk, and buried instructions.
Runs inside these playbooks — curated sequences you can launch with one paste: