<?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: Mayank</title>
    <description>The latest articles on DEV Community by Mayank (@032_mayank_d7cf900fa03d4b).</description>
    <link>https://dev.to/032_mayank_d7cf900fa03d4b</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%2F4235081%2F15c20d34-0682-4bb0-be77-8059cf76a930.png</url>
      <title>DEV Community: Mayank</title>
      <link>https://dev.to/032_mayank_d7cf900fa03d4b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/032_mayank_d7cf900fa03d4b"/>
    <language>en</language>
    <item>
      <title>CrossTrace – crash-test your AI agent's model and MCP calls in CI</title>
      <dc:creator>Mayank</dc:creator>
      <pubDate>Tue, 17 Nov 2026 18:40:01 +0000</pubDate>
      <link>https://dev.to/032_mayank_d7cf900fa03d4b/crosstrace-crash-test-your-ai-agents-model-and-mcp-calls-in-ci-3oce</link>
      <guid>https://dev.to/032_mayank_d7cf900fa03d4b/crosstrace-crash-test-your-ai-agents-model-and-mcp-calls-in-ci-3oce</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR.&lt;/strong&gt; After &lt;a href="https://dev.to/032_mayank_d7cf900fa03d4b/i-tested-whether-ebpf-helps-diagnose-slow-ai-agents-i-wrote-my-predictions-first-and-got-many-f8h"&gt;my earlier post&lt;/a&gt; I ran CrossTrace, the open-source tool that breaks a model call in your agent and&lt;br&gt;
watches what happens, on the OpenAI Agents SDK, pydantic-ai and CrewAI. Two of them (pydantic-ai and CrewAI) handled a failure in a way my tool had&lt;br&gt;
labelled as a bug: they re-prompted the model, refused a broken tool call, or summarised and carried on. Those aren't bugs, so I fixed the&lt;br&gt;
tool, not the frameworks. (The Agents SDK simply raised an error, which the tool had judged right.) The fix changed how it decides pass or fail, and the changes are below. There are also real findings (cut answers&lt;br&gt;
printed as complete, hangs, a tool call that ran twice), and it can now fault MCP tool calls, where the damage is a customer refunded&lt;br&gt;
twice. &lt;a href="https://github.com/mac146/crosstrace" rel="noopener noreferrer"&gt;https://github.com/mac146/crosstrace&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What the tool does, in one paragraph
&lt;/h2&gt;

&lt;p&gt;A local proxy sits between your agent and the model API (the agent only reads &lt;code&gt;OPENAI_BASE_URL&lt;/code&gt;). CrossTrace records one healthy run,&lt;br&gt;
replays it offline, and breaks one model call per trial at the byte level: a stream cut mid-tool-call, a stall, a 500, an empty reply.&lt;br&gt;
Then it watches the agent's next move. No LLM judge.&lt;/p&gt;
&lt;h2&gt;
  
  
  Where it went wrong
&lt;/h2&gt;

&lt;p&gt;My first version decided what the agent &lt;em&gt;meant&lt;/em&gt; by looking at the first request it sent after the fault. If it didn't retry the same&lt;br&gt;
call, and it carried on with something else, I called it &lt;code&gt;SILENT&lt;/code&gt;: "the agent hid the failure". That fails your build.&lt;/p&gt;

&lt;p&gt;Then I ran real frameworks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;pydantic-ai&lt;/strong&gt; got a tool call cut in half. It refused to run it and told the model its arguments were invalid. That's the right
behaviour. I labelled it SILENT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CrewAI&lt;/strong&gt; got a context-length error. It summarised the conversation and continued. I labelled it SILENT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A re-prompt&lt;/strong&gt; ("your last reply was empty, try again") looks exactly like an agent carrying on as if nothing happened, because both are
"the failed reply plus one more user message".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I patched each one as it showed up, and each new agent needed another patch. That's when I stopped and asked what was common to all of them.&lt;/p&gt;
&lt;h2&gt;
  
  
  The root problem
&lt;/h2&gt;

&lt;p&gt;The replay is a closed world: it can only answer the healthy conversation. Any request that is &lt;em&gt;legitimately different&lt;/em&gt; gets an error,&lt;br&gt;
the run dies there, and the verdict is a guess from the shape of one request.&lt;/p&gt;

&lt;p&gt;Looking back at what I'd patched, the facts I measured on the wire never needed a patch: a hang, a retry storm, a retry that ignored&lt;br&gt;
&lt;code&gt;Retry-After&lt;/code&gt;, a surfaced error. Everything that &lt;strong&gt;inferred intent from a request's shape&lt;/strong&gt; needed one, every time.&lt;/p&gt;

&lt;p&gt;So two changes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A verdict fails the build only if it rests on something measured.&lt;/strong&gt; Where all I can see is a different-looking request, the result is
&lt;code&gt;DIVERGED&lt;/code&gt; or &lt;code&gt;REPROMPTED&lt;/code&gt;, shown for review with the facts: what the framework sent, what the error was, what the model was told.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The run continues past the fault.&lt;/strong&gt; After the fault, requests that match nothing recorded get the next healthy reply, so the agent
reaches its real end. Then the verdict comes from how it &lt;em&gt;ends&lt;/em&gt;: it finishes, it stops with an error, or it never stops (capped at 8
different requests, then &lt;code&gt;RETRY_STORM&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The limit I put in the README: continuation shows that an agent stops, and how. It doesn't show that its re-prompt would work with a real&lt;br&gt;
model. So I added &lt;code&gt;--live&lt;/code&gt;: those requests go to the real provider with your own key (the agent never sees it, capped at 6 calls per&lt;br&gt;
trial). On two frameworks, the recovery works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pydantic-ai refused the cut tool call, the real model answered the re-prompt, and the run finished after 3 more requests.&lt;/li&gt;
&lt;li&gt;CrewAI summarised after the context-length error, and finished after 4 more requests answered by the real model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I ran only one or two trials per case, and a real model isn't deterministic, so treat those as demonstrations rather than a guarantee.&lt;/p&gt;
&lt;h2&gt;
  
  
  What the frameworks do (after the labels were fixed)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Framework&lt;/th&gt;
&lt;th&gt;Cut stream or cut tool call&lt;/th&gt;
&lt;th&gt;Stalled response&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;LangGraph&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;ran the tool on the cut arguments&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;hangs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI Agents SDK&lt;/td&gt;
&lt;td&gt;raised an error&lt;/td&gt;
&lt;td&gt;hangs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pydantic-ai&lt;/td&gt;
&lt;td&gt;refused the cut call and told the model; &lt;strong&gt;printed a cut answer as complete&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;hangs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CrewAI&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;printed a cut answer as complete&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;hangs unless you pass a timeout&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each stall fix was run, not assumed (&lt;code&gt;timeout=&lt;/code&gt; on the client, 10 s in my test). Three more things worth knowing: CrewAI retried a&lt;br&gt;
persistent outage 7+ times in about 3 seconds, an empty reply made pydantic-ai re-prompt, and on the Agents SDK, &lt;code&gt;--live&lt;/code&gt; showed the same&lt;br&gt;
thing as the unlive run: it stops with an error and doesn't retry.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tool calls: the failure that costs money
&lt;/h2&gt;

&lt;p&gt;A model call that fails is annoying. A tool call that &lt;strong&gt;succeeded but whose reply was lost&lt;/strong&gt; can be expensive: the email went out, the&lt;br&gt;
card was charged, the response never reached the agent, and a retry does it again.&lt;/p&gt;

&lt;p&gt;CrossTrace can now do this to MCP servers. The server is launched through &lt;code&gt;crosstrace mcp-wrap&lt;/code&gt;, or for a remote server over HTTP you&lt;br&gt;
list its URL in &lt;code&gt;crosstrace.toml&lt;/code&gt;. In a test run it never starts or calls the real server. One tool call is made and counted, its reply is&lt;br&gt;
replaced by a transport error, and every write the agent makes afterwards is counted against the healthy run.&lt;/p&gt;

&lt;p&gt;On the example agent in the repo, a refund tool and a naive retry loop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✗ lost_response   DUPLICATE 1/1
                  refund({"amount":129.99,"customer_id":"42",...}) ran 2 time(s), 1 in the healthy run;
                  the agent recovered and finished, but the write was repeated
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent printed the right answer and exited 0. It also refunded the customer twice. I also ran it against the official Playwright MCP&lt;br&gt;
server with a real Chrome and a local order form: recording placed one real order, replays placed none, and losing the response to the&lt;br&gt;
click made the retrying agent a DUPLICATE. (That agent was scripted, so it tests the tool-call handling, not how well a model drives a&lt;br&gt;
browser.)&lt;/p&gt;

&lt;p&gt;For the claim "it really happens twice" there's &lt;code&gt;--real-tools&lt;/code&gt;: the lost-reply trial runs the real server, and the report quotes what the&lt;br&gt;
server answered to the repeat. I tested that against a remote server over HTTP, and the server refunded twice. It's opt-in because it does&lt;br&gt;
the work for real, so point it at a sandbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it still can't do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It tests &lt;strong&gt;model and MCP calls&lt;/strong&gt;, not an agent's own HTTP calls to other APIs.&lt;/li&gt;
&lt;li&gt;An agent that &lt;strong&gt;checks state&lt;/strong&gt; before retrying ("did the refund go through?") gets the recorded answer in replay, so it shows as
stopping with an error rather than as recovering safely.&lt;/li&gt;
&lt;li&gt;MCP over stdio and streamable HTTP, but not servers that push messages on their own stream.&lt;/li&gt;
&lt;li&gt;A real model's answer to a re-prompt varies, so &lt;code&gt;--live&lt;/code&gt; is a demonstration, not CI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I have no outside users yet.&lt;/strong&gt; Everything above was run on agents I wrote or recorded myself.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install crosstrace
crosstrace init --command &lt;span class="s2"&gt;"python agent.py {input}"&lt;/span&gt;
crosstrace record      &lt;span class="c"&gt;# runs your agent for real, once per input&lt;/span&gt;
crosstrace &lt;span class="nb"&gt;test&lt;/span&gt;        &lt;span class="c"&gt;# replays with faults, offline; exit code 1 if it hides a failure&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A demo agent with a recording is in the repo (&lt;code&gt;examples/broken_agents&lt;/code&gt;), so you can see the whole thing without a key. There's also a&lt;br&gt;
GitHub Action for the report in a PR summary.&lt;/p&gt;

&lt;p&gt;If it can't start your agent, or the replay isn't stable, it says why and, for a value that changes every run, prints the mask to paste.&lt;br&gt;
If you try it on your agent, &lt;strong&gt;I'd really like to know what it found, or where it's wrong.&lt;/strong&gt; Given this post, wrong verdicts are the most&lt;br&gt;
useful thing you could send me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mac146/crosstrace" rel="noopener noreferrer"&gt;https://github.com/mac146/crosstrace&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cicd</category>
      <category>testing</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Mayank</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:23:57 +0000</pubDate>
      <link>https://dev.to/032_mayank_d7cf900fa03d4b/-3mcn</link>
      <guid>https://dev.to/032_mayank_d7cf900fa03d4b/-3mcn</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/032_mayank_d7cf900fa03d4b/i-tested-whether-ebpf-helps-diagnose-slow-ai-agents-i-wrote-my-predictions-first-and-got-many-f8h" class="crayons-story__hidden-navigation-link"&gt;I tested whether eBPF helps diagnose slow AI agents. I wrote my predictions first and got many wrong.&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/032_mayank_d7cf900fa03d4b" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4235081%2F15c20d34-0682-4bb0-be77-8059cf76a930.png" alt="032_mayank_d7cf900fa03d4b profile" class="crayons-avatar__image" width="96" height="96"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/032_mayank_d7cf900fa03d4b" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Mayank
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Mayank
                
                
              
              &lt;div id="story-author-preview-content-5004315" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/032_mayank_d7cf900fa03d4b" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4235081%2F15c20d34-0682-4bb0-be77-8059cf76a930.png" class="crayons-avatar__image" alt="" width="96" height="96"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Mayank&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/032_mayank_d7cf900fa03d4b/i-tested-whether-ebpf-helps-diagnose-slow-ai-agents-i-wrote-my-predictions-first-and-got-many-f8h" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 9&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/032_mayank_d7cf900fa03d4b/i-tested-whether-ebpf-helps-diagnose-slow-ai-agents-i-wrote-my-predictions-first-and-got-many-f8h" id="article-link-5004315"&gt;
          I tested whether eBPF helps diagnose slow AI agents. I wrote my predictions first and got many wrong.
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/observability"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;observability&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opentelemetry"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opentelemetry&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/architecture"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;architecture&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
            &lt;a href="https://dev.to/032_mayank_d7cf900fa03d4b/i-tested-whether-ebpf-helps-diagnose-slow-ai-agents-i-wrote-my-predictions-first-and-got-many-f8h#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            4 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>agents</category>
      <category>ai</category>
      <category>debugging</category>
      <category>performance</category>
    </item>
    <item>
      <title>I tested whether eBPF helps diagnose slow AI agents. I wrote my predictions first and got many wrong.</title>
      <dc:creator>Mayank</dc:creator>
      <pubDate>Mon, 09 Nov 2026 12:16:45 +0000</pubDate>
      <link>https://dev.to/032_mayank_d7cf900fa03d4b/i-tested-whether-ebpf-helps-diagnose-slow-ai-agents-i-wrote-my-predictions-first-and-got-many-f8h</link>
      <guid>https://dev.to/032_mayank_d7cf900fa03d4b/i-tested-whether-ebpf-helps-diagnose-slow-ai-agents-i-wrote-my-predictions-first-and-got-many-f8h</guid>
      <description>&lt;p&gt;A slow AI agent run is a chain of network calls: the model, tools, a database, outside APIs. An application-level trace tells you &lt;em&gt;which&lt;/em&gt; call was slow. It can't tell you &lt;em&gt;why&lt;/em&gt;, because a DNS stall, a slow connection and a slow server all happen inside one HTTP span. System-level eBPF tools see DNS time, connect time, retransmits and round-trip time, but they know nothing about the agent.&lt;/p&gt;

&lt;p&gt;So I tested a simple hypothesis: &lt;strong&gt;joining agent traces with kernel-level evidence diagnoses faults better than agent traces alone.&lt;/strong&gt; I wrote my predictions down and committed them to git before every run, and many were wrong. This post is the short version.&lt;/p&gt;

&lt;p&gt;Code, benchmark, predictions and the full report: &lt;a href="https://github.com/mac146/crosstrace" rel="noopener noreferrer"&gt;https://github.com/mac146/crosstrace&lt;/a&gt; (tag &lt;code&gt;report-v1&lt;/code&gt;)&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;A seeded fault-injection benchmark (slow DNS, network latency, packet loss, a slow API server, a slow database and more)&lt;/li&gt;
&lt;li&gt;An eBPF collector, first in bpftrace, then a compiled C/libbpf version that uses about 2.9x less CPU&lt;/li&gt;
&lt;li&gt;A correlator that aligns kernel events with OpenTelemetry spans (clock alignment, indexed matching)&lt;/li&gt;
&lt;li&gt;Rule-based diagnosers and an evaluation where every stage's predictions, with "I would be wrong if..." conditions, were committed before the runs&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What held up
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Kernel evidence works where the cause is in the network path.&lt;/strong&gt; Top-1 accuracy on DNS delay, latency and packet loss rose from about 30% (spans only) to about 97% on a fresh set of 90 runs, with no false accusations in 240 runs. The caveat is in the report: these are mock services on loopback, and the spans-only baseline can't separate those causes by construction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The join is robust.&lt;/strong&gt; 160/160 runs passed integrity checks against ground-truth ports, and 5,120/5,120 spans got exactly their own connection with up to 512 simultaneous agent threads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On a real model over the internet,&lt;/strong&gt; the rules found injected DNS delays in 10/10 runs and latency in 9/10 (10 runs per group, one network path, so observations rather than estimates).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I had to narrow
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Per-request kernel timing carries the result, not the join itself.&lt;/strong&gt; Host-wide counters plus the run's maximum server wait matched the join on single faults.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I ran the real OpenTelemetry eBPF agent (OBI v1.0.0).&lt;/strong&gt; Its per-request server duration names a slow server as well as my join (100%) but is at chance on network causes. With its per-connection RTT matched exactly to each call by client port, it equals my join (99.5-100% with 9 and 24 concurrent agents in different conditions). Matched by connection order, it falls to 63-69%.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;So the join is not better evidence.&lt;/strong&gt; What my correlator adds is matching a call to its connection without the application declaring its socket. That works for thread-per-call agents. Async agents on one thread need the port declared, and a quick text search of the standard Python HTTP client instrumentations suggests they don't set it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Host-wide counters get worse as you add agents.&lt;/strong&gt; One stray retransmit anywhere in a run gets pooled into every agent's evidence (rescoring without it fixed it: 64/64 instead of 24/64). Per-call evidence doesn't have this problem.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What didn't work (all kept in the report)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;On a real, NAT'd network path, packet loss can't be told from the background retransmits by count: 70% detection at best, and an alternative feature that looked better on the design set failed on fresh data.&lt;/li&gt;
&lt;li&gt;My CPU target was missed (2.9x less, predicted 3.4x), a clock-sampling prediction was wrong, a probe silently missed 0.1% of connections until I found a better hook, and a harness bug briefly made a latency fault look like packet loss.&lt;/li&gt;
&lt;li&gt;The report lists 13 numbered negative or wrong-prediction results.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Limits you should know about
&lt;/h2&gt;

&lt;p&gt;Mock services on loopback, one host, scenarios I designed to discriminate, and one OBI version and configuration that I tuned to make it attach. No packet-loss, HTTP/3 or streaming tests. The collector needs root-equivalent access, so it is for dev machines only. I don't know how often slow agent runs in the real world are network problems. The one dataset I found suggests provider-side causes like rate limits dominate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Two experiments are pre-registered but not run: whether async agents can be matched without a declared port, and whether the results hold with 8 concurrent real agents on a real model and network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A question for you:&lt;/strong&gt; if you run agents in production, how often are slow or failing runs network or infrastructure problems rather than model or tool problems? Your last two or three slow-run incidents, anonymized, would help me more than any benchmark row. Comments or issues on the repo are welcome, and so are corrections if I've misused OBI anywhere.&lt;/p&gt;

&lt;p&gt;Report, code and predictions: &lt;a href="https://github.com/mac146/crosstrace" rel="noopener noreferrer"&gt;https://github.com/mac146/crosstrace&lt;/a&gt;&lt;/p&gt;

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