Wasim SheikhCross-post of Insights #5 — canonical:...
Cross-post of Insights #5 — canonical: https://sheikhwasim.com/insights/golden-trace-eval-anchor/
Most teams drown in failed agent runs and never lock the one that worked.
They collect stack traces, bad tool calls, and angry tickets. They rarely freeze a clean end-to-end success and treat it as sacred. The next prompt tweak, model bump, or tool schema change quietly bends that path. The demo still "looks fine." Customers feel the drift first.
I call the missing control a Golden Trace: one real successful run you refuse to lose — inputs, plans, tool calls, intermediate state, final outcome — frozen as the regression anchor for every later change.
Smoke evals catch the traps. Golden Trace proves the happy path you already earned still holds.
Situation. A platform team shipped an internal "invoice exception agent." It could read a flagged invoice, pull the PO and receipt lines, open a clarifying ticket when amounts diverged, and close the exception when the math matched. One Friday afternoon path worked end to end: correct PO match, one clarifying question, clean close. Leadership celebrated. Nobody saved the run.
What broke. Two weeks later a "harmless" prompt polish and a new retrieval index shipped. The agent still sounded sharp. It started closing exceptions when the PO line was close enough, skipping the clarifying ticket. Finance caught it in a weekly audit. Traces showed answers. They did not show which milestones of the original Friday path had disappeared. There was no frozen success to regress against — only a pile of failure tickets from earlier weeks.
The fix (Golden Trace).
Same model. Same tools. A locked success path the team could no longer accidentally erase.
A failure log answers: What went wrong that time?
A Golden Trace answers: Does the path that already worked still work on this exact change?
Those are different questions. Most LLM ops programs only fund the first.
Smoke evals (the trap pack) guard the bad paths. Golden Trace guards the good one you already paid for in debugging time. Without both, you either ship polite bricks or silent regressions that still pass a vibe check.
Build it like a control, not a screenshot in Slack.
Do not synthesize a perfect run in a notebook. Capture a production-like success:
If you cannot replay it, it is not a Golden Trace. It is a story.
A full token dump is too brittle. Extract the milestones that define success:
Milestones are the contract. The raw trace is the evidence.
Store the golden artifact next to the code:
If it is not in git, the next refactor will "simplify" it away.
Run Golden Trace checks when you change:
Red means no ship. "Staging still looks fine" is how the invoice agent learned "close enough."
When the real success criteria change — new policy, new required human gate, new tool — update the Golden Trace on purpose. Do not let an outdated golden become a museum piece that blocks good ships, and do not silently drift the milestones to match a worse path.
A Golden Trace is a living contract with the last path you were proud of.
Architecture without a locked success path is just hope with better diagrams.
Ask one question before the next agent ship:
Do we have one versioned successful run — with named milestones — that CI fails if this change drifts off it?
If the answer is no, you are still shipping on demo confidence and failure archaeology.
I'm Wasim Sheikh — AI Architect. I build systems teams trust and organizations depend on: not demos, not proofs of concept — production.
Follow for practical AI architecture that ships.
Connect on LinkedIn: Wasim Sheikh · Site: sheikhwasim.com · Notes: Practical AI Notes · X: @anciwasim