Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

4.0 KB
Raw Blame
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["2642"],{37172(e,t,n){n.r(t),n.d(t,{assets:()=>g,contentTitle:()=>o,default:()=>d,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var a=n(38190),r=n(74848),i=n(28453);let s={slug:"agent-observability-first-wrong-step",title:"Your agent returned 200 OK. It may still have failed",description:"What to record in an AI agent run to find its first wrong step, and what Mercury records today. Based on OpenTelemetry's GenAI agent spans and a code review.",authors:["tashiriskhan"],tags:["engineering","runtime"],image:"./cover.jpg",keywords:["ai agent observability","trace ai agent","debug ai agent","opentelemetry genai agent spans","agent tool call tracing","ai agent first wrong step"],draft:!1},o,g={image:n(95617).A,authorsImageUrls:[void 0]},l=[];function c(e){let t={p:"p",...(0,i.R)(),...e.components};return(0,r.jsx)(t.p,{children:"An agent can finish a run with a fluent, confident answer and still have done the wrong thing. It may have picked the wrong tool, pulled a stale fact into context, or called the same tool five times with the same arguments. Uptime and error logs won't show any of that. This post looks at what a run needs to record so that you can find the first step where it went wrong, and what Mercury records today."})}function d(e={}){let{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},95617(e,t,n){n.d(t,{A:()=>a});let a=n.p+"assets/images/cover-c2e93124d66c296e2d00df4555aca896.jpg"},28453(e,t,n){n.d(t,{R:()=>s,x:()=>o});var a=n(96540);let r={},i=a.createContext(r);function s(e){let t=a.useContext(i);return a.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),a.createElement(i.Provider,{value:t},e.children)}},38190(e){e.exports=JSON.parse('{"permalink":"/blog/agent-observability-first-wrong-step","editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/blog/2026-10-31-agent-observability-first-wrong-step/index.md","source":"@site/blog/2026-10-31-agent-observability-first-wrong-step/index.md","title":"Your agent returned 200 OK. It may still have failed","description":"What to record in an AI agent run to find its first wrong step, and what Mercury records today. Based on OpenTelemetry\'s GenAI agent spans and a code review.","date":"2026-10-31T00:00:00.000Z","tags":[{"inline":false,"label":"Engineering","permalink":"/blog/tags/engineering","description":"How Mercury is built, what broke, and what we changed so it does not break again."},{"inline":false,"label":"Runtime","permalink":"/blog/tags/runtime","description":"The daemon, the attach client and everything that keeps Mercury running."}],"readingTime":7.39,"hasTruncateMarker":true,"authors":[{"name":"Tashir Khan","title":"Contributor, Mercury","description":"Writes about agent permissions, security and running Mercury safely.","url":"https://github.com/tashiriskhan","page":{"permalink":"/blog/authors/tashiriskhan"},"socials":{"github":"https://github.com/tashiriskhan"},"imageURL":"https://github.com/tashiriskhan.png","key":"tashiriskhan"}],"frontMatter":{"slug":"agent-observability-first-wrong-step","title":"Your agent returned 200 OK. It may still have failed","description":"What to record in an AI agent run to find its first wrong step, and what Mercury records today. Based on OpenTelemetry\'s GenAI agent spans and a code review.","authors":["tashiriskhan"],"tags":["engineering","runtime"],"image":"./cover.jpg","keywords":["ai agent observability","trace ai agent","debug ai agent","opentelemetry genai agent spans","agent tool call tracing","ai agent first wrong step"],"draft":false},"unlisted":false,"prevItem":{"title":"A tour of Mercury Desktop: one app, every Mercury you run","permalink":"/blog/mercury-desktop-tour"},"nextItem":{"title":"Running an agent overnight: what breaks first","permalink":"/blog/running-an-agent-overnight"}}')}}]);