<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: bilal-feroz</title>
    <description>The latest articles on DEV Community by bilal-feroz (@bilalferoz).</description>
    <link>https://dev.to/bilalferoz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4035809%2F757f6a51-dc3b-4e0a-bae3-f91634070b24.jpg</url>
      <title>DEV Community: bilal-feroz</title>
      <link>https://dev.to/bilalferoz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bilalferoz"/>
    <language>en</language>
    <item>
      <title>The Dashboard Said My AI Team Finished. One Agent Never Even Started.</title>
      <dc:creator>bilal-feroz</dc:creator>
      <pubDate>Sat, 18 Jul 2026 20:48:20 +0000</pubDate>
      <link>https://dev.to/bilalferoz/the-dashboard-said-my-ai-team-finished-one-agent-never-even-started-1e0l</link>
      <guid>https://dev.to/bilalferoz/the-dashboard-said-my-ai-team-finished-one-agent-never-even-started-1e0l</guid>
      <description>&lt;h2&gt;
  
  
  How SigNoz exposed a silent handoff failure inside a multi-agent AI workflow
&lt;/h2&gt;

&lt;p&gt;My AI workflow reported that the task was complete.&lt;/p&gt;

&lt;p&gt;The API returned &lt;code&gt;200 OK&lt;/code&gt;. The user interface showed every agent as completed. A final document was generated and delivered successfully.&lt;/p&gt;

&lt;p&gt;There was only one problem.&lt;/p&gt;

&lt;p&gt;The research agent had never returned any research.&lt;/p&gt;

&lt;p&gt;The workflow silently caught a timeout, passed an empty response to the writing agent, and continued as though nothing had happened. The final output looked confident and polished, but it was based on incomplete context.&lt;/p&gt;

&lt;p&gt;This was not a normal application crash. There was no obvious error page, failed request, or red status indicator.&lt;/p&gt;

&lt;p&gt;From the outside, everything looked healthy.&lt;/p&gt;

&lt;p&gt;SigNoz helped me see what had actually happened inside the workflow.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Multi-Agent Workflow
&lt;/h2&gt;

&lt;p&gt;The application uses several AI agents to complete one project:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Lead Agent&lt;/strong&gt; — understands the request and creates a plan&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Research Agent&lt;/strong&gt; — collects relevant context and information&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writing Agent&lt;/strong&gt; — produces the first draft&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review Agent&lt;/strong&gt; — checks quality and accuracy&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delivery Agent&lt;/strong&gt; — prepares and exports the final result&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The expected workflow is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User Request
    ↓
Lead Agent
    ↓
Research Agent
    ↓
Writing Agent
    ↓
Review Agent
    ↓
Delivery Agent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each agent depends on the result of the previous agent.&lt;/p&gt;

&lt;p&gt;If the research agent fails, the writing agent should not continue as though valid research was available. However, my initial implementation used fallback logic that allowed the workflow to continue.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;researchContext&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;runResearchAgent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;task&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Research agent failed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;researchContext&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[];&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This prevented the entire request from crashing, but it created a more dangerous problem.&lt;/p&gt;

&lt;p&gt;The system returned a technically successful response even though an essential part of the workflow had failed.&lt;/p&gt;




&lt;h2&gt;
  
  
  Adding Observability with OpenTelemetry and SigNoz
&lt;/h2&gt;

&lt;p&gt;I instrumented the workflow using OpenTelemetry and sent the telemetry data to SigNoz.&lt;/p&gt;

&lt;p&gt;I created one parent span for the complete project run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;project.run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each agent execution became a child span:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;lead.plan
researcher.search
writer.draft
reviewer.validate
delivery.export
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also attached attributes that describe what happened during each step.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;span&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAttributes&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;agent.name&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;researcher&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;task.id&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;taskId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;handoff.from&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;lead&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;handoff.to&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;researcher&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;retry.count&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;retryCount&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;documents.returned&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;fallback.used&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;fallbackUsed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the writing and review agents, I tracked additional values:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;span&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAttributes&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;tokens.input&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;inputTokens&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;tokens.output&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;outputTokens&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;review.score&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;reviewScore&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;output.approved&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;outputApproved&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These attributes allowed me to investigate more than basic application uptime.&lt;/p&gt;

&lt;p&gt;I could now see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which agent was running&lt;/li&gt;
&lt;li&gt;How long each agent took&lt;/li&gt;
&lt;li&gt;Whether a handoff succeeded&lt;/li&gt;
&lt;li&gt;Whether fallback data was used&lt;/li&gt;
&lt;li&gt;How many documents were returned&lt;/li&gt;
&lt;li&gt;How many retries occurred&lt;/li&gt;
&lt;li&gt;How many tokens each agent consumed&lt;/li&gt;
&lt;li&gt;Whether the final output passed review&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Creating the Failure
&lt;/h2&gt;

&lt;p&gt;To test the workflow, I deliberately introduced a timeout into the research service.&lt;/p&gt;

&lt;p&gt;The research agent was configured to stop waiting after &lt;code&gt;[TIMEOUT VALUE]&lt;/code&gt; seconds.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;researchContext&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;race&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
  &lt;span class="nf"&gt;runResearchAgent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;task&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
  &lt;span class="nf"&gt;timeoutAfter&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nx"&gt;TIMEOUT&lt;/span&gt; &lt;span class="nx"&gt;VALUE&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt;
&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The research service did not respond within the allowed time.&lt;/p&gt;

&lt;p&gt;The application caught the exception and continued with an empty research context.&lt;/p&gt;

&lt;p&gt;The final API response still looked successful:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"completed"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"httpStatus"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"documentGenerated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;However, the trace attributes told a different story:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;workflow.status: completed
researcher.documents.returned: 0
researcher.retry.count: [REAL RETRY COUNT]
fallback.used: true
review.score: [REAL REVIEW SCORE]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The workflow was technically completed but functionally degraded.&lt;/p&gt;




&lt;h2&gt;
  
  
  What the Trace Revealed
&lt;/h2&gt;

&lt;p&gt;Inside SigNoz, the complete workflow appeared as one distributed trace.&lt;/p&gt;

&lt;p&gt;The trace waterfall made the problem immediately visible.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;project.run             [REAL TOTAL TIME]
├── lead.plan           [REAL TIME]
├── researcher.search   [REAL TIME] — timeout
├── writer.draft        [REAL TIME] — fallback context used
├── reviewer.validate   [REAL TIME] — low review score
└── delivery.export     [REAL TIME]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The research span consumed most of the workflow time before timing out.&lt;/p&gt;

&lt;p&gt;The writing agent then started with no research documents, but the span itself was still marked as successful because the fallback logic prevented an exception from propagating.&lt;/p&gt;

&lt;p&gt;This showed me an important limitation in my original monitoring logic:&lt;/p&gt;

&lt;p&gt;A successful span did not necessarily mean that the agent completed its intended responsibility.&lt;/p&gt;

&lt;p&gt;The system needed to track semantic success, not only technical success.&lt;/p&gt;




&lt;h2&gt;
  
  
  Correlating the Trace with Logs
&lt;/h2&gt;

&lt;p&gt;The trace showed me where the delay occurred. The correlated logs explained why the workflow continued.&lt;/p&gt;

&lt;p&gt;The research span contained a log similar to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Research provider timed out after [REAL TIMEOUT] seconds.
Continuing with empty research context.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another log from the writing agent showed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Writing agent started with 0 research documents.
Fallback context enabled.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Without trace and log correlation, these messages would have been difficult to connect.&lt;/p&gt;

&lt;p&gt;A timeout log by itself does not explain which user request was affected. A completed API request does not explain that an upstream agent failed.&lt;/p&gt;

&lt;p&gt;SigNoz connected the logs to the exact trace, task, and agent span.&lt;/p&gt;




&lt;h2&gt;
  
  
  Building a Useful Dashboard
&lt;/h2&gt;

&lt;p&gt;I created a dashboard focused on AI-agent workflow health rather than only infrastructure health.&lt;/p&gt;

&lt;p&gt;The dashboard included:&lt;/p&gt;

&lt;h3&gt;
  
  
  Agent Run Duration
&lt;/h3&gt;

&lt;p&gt;This panel shows how long each agent takes to complete its work.&lt;/p&gt;

&lt;p&gt;It makes unusually slow agents and timeout patterns easier to identify.&lt;/p&gt;

&lt;h3&gt;
  
  
  Failed or Degraded Handoffs
&lt;/h3&gt;

&lt;p&gt;This tracks handoffs where:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;handoff.status != "success"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fallback.used = true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Token Usage by Agent
&lt;/h3&gt;

&lt;p&gt;This shows whether one agent is consuming an unusually large portion of the workflow’s token budget.&lt;/p&gt;

&lt;h3&gt;
  
  
  Completed Runs Using Fallback Data
&lt;/h3&gt;

&lt;p&gt;This was the most important panel.&lt;/p&gt;

&lt;p&gt;A workflow should not be considered fully successful when it completed using missing or fallback context.&lt;/p&gt;




&lt;h2&gt;
  
  
  Creating an Alert for Silent Failures
&lt;/h2&gt;

&lt;p&gt;Traditional alerts often focus on conditions such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HTTP status &amp;gt;= 500
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That would not detect this problem because the API returned &lt;code&gt;200 OK&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Instead, I created an alert for workflows that completed while using fallback data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;workflow.status = "completed"
AND fallback.used = true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I named the alert:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Successful run with degraded agent handoff
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This alert captures a category of failure that normal uptime monitoring misses.&lt;/p&gt;

&lt;p&gt;The infrastructure can be available, the API can return successfully, and the user can receive an output while the workflow is still logically incorrect.&lt;/p&gt;




&lt;h2&gt;
  
  
  Fixing the Workflow
&lt;/h2&gt;

&lt;p&gt;The original logic treated missing research as an acceptable fallback.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;researchFailed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;researchContext&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[];&lt;/span&gt;
  &lt;span class="nf"&gt;continueWorkflow&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I changed it so that an essential agent failure marks the complete workflow as degraded.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;researchFailed&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;researchDocuments&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;span&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setAttributes&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;workflow.status&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;degraded&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;handoff.status&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;failed&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;fallback.used&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;

  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Research agent failed. Drafting stopped to prevent unsupported output.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
  &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The revised behavior is now:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Research agent fails
        ↓
Workflow marked as degraded
        ↓
Writing agent does not start
        ↓
User receives a clear retry message
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I ran the same test again.&lt;/p&gt;

&lt;p&gt;This time, SigNoz showed that the workflow stopped at the research span instead of producing an unsupported final document.&lt;/p&gt;

&lt;p&gt;The application no longer confused technical completion with valid completion.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;Before adding observability, I could see whether the application returned a response.&lt;/p&gt;

&lt;p&gt;After adding SigNoz, I could see whether each agent actually fulfilled its responsibility.&lt;/p&gt;

&lt;p&gt;That distinction matters in AI systems.&lt;/p&gt;

&lt;p&gt;A normal application often fails through an exception, unavailable service, or unsuccessful HTTP request.&lt;/p&gt;

&lt;p&gt;An AI workflow can fail more quietly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An agent returns empty context&lt;/li&gt;
&lt;li&gt;A retry produces duplicate work&lt;/li&gt;
&lt;li&gt;A fallback hides an upstream failure&lt;/li&gt;
&lt;li&gt;A reviewer approves an incomplete response&lt;/li&gt;
&lt;li&gt;The workflow completes while violating its own assumptions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The most dangerous AI failures are not always crashes.&lt;/p&gt;

&lt;p&gt;Sometimes every technical component appears healthy while the final result is still wrong.&lt;/p&gt;

&lt;p&gt;SigNoz helped me observe the complete chain of decisions, handoffs, retries, logs, and outputs behind one AI-generated result.&lt;/p&gt;

&lt;p&gt;The dashboard originally told me that my AI team had completed the task.&lt;/p&gt;

&lt;p&gt;The trace showed me the truth: one of the most important agents had never completed its work.&lt;/p&gt;

</description>
      <category>signoz</category>
      <category>opentelemetry</category>
      <category>observability</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
