<?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: Vinny Barreca</title>
    <description>The latest articles on DEV Community by Vinny Barreca (@phantom-byte).</description>
    <link>https://dev.to/phantom-byte</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%2F3962211%2F52789747-268f-4ecf-a2e9-76d76b3978e9.jpg</url>
      <title>DEV Community: Vinny Barreca</title>
      <link>https://dev.to/phantom-byte</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phantom-byte"/>
    <language>en</language>
    <item>
      <title>Your AI Agents Will Fail Before Your Browser Does: Preparing for the March 15, 2027, P-256 TLS Shift</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Sat, 05 Dec 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/your-ai-agents-will-fail-before-your-browser-does-preparing-for-the-march-15-2027-p-256-tls-shift-2bde</link>
      <guid>https://dev.to/phantom-byte/your-ai-agents-will-fail-before-your-browser-does-preparing-for-the-march-15-2027-p-256-tls-shift-2bde</guid>
      <description>&lt;p&gt;Chrome is not banning ECDSA. ECDSA is the signature scheme behind most certificates on the internet, and P-256 is its most common curve. What Chrome refuses after March 15 is a P-256 key at the root or intermediate level, the top of the chain everything hangs from.&lt;/p&gt;

&lt;p&gt;That distinction is the whole problem. A leaf rotates on a schedule. A root or intermediate is the thing your services pin to, the thing your SDKs bundle, and the thing nobody reissues until something forces them.&lt;/p&gt;

&lt;p&gt;Google's guidance is a certificate from a CA without an ECDSA P-256 key, ideally CNSA 1.0 compliant, plus server keys on hybrid ML-KEM key agreement. Merkle Tree Certificates, the post-quantum authentication path, land very early next year. The roadmap is worth knowing. Your inventory is worth more.&lt;/p&gt;

&lt;p&gt;THE PART THAT BREAKS FIRST&lt;/p&gt;

&lt;p&gt;A browser hitting an interstitial is an annoyance. An agent pipeline hitting a refused chain is an outage. A human clicks through or leaves. A service to service call sees a validation error and stops. There is no click through for an SDK.&lt;/p&gt;

&lt;p&gt;Four places this lands, ordered by how quietly it fails.&lt;/p&gt;

&lt;p&gt;Quietest first, the MCP servers. Every agent integration is a TLS client. Many were wired by a tutorial that said skip verification in dev, and some of those flags survived into production. A client that never verifies a chain does not fail on March 15. It fails whenever the thing it stopped checking changes, into a retry loop that looks like a hang.&lt;/p&gt;

&lt;p&gt;Second, the model registry. Pulling weights is a download over TLS. A refused chain means no pull, and the error will say something about trust, not about certificates. Loud enough to page someone, quiet enough to send them to the network team first.&lt;/p&gt;

&lt;p&gt;Third, the inference gateway. If model calls ride a pinned chain, the pin is the problem. Pins do not update themselves, so this one fails on rotation day rather than in March. That makes it the cheapest to find today and the most expensive to meet during a deploy at 2am.&lt;/p&gt;

&lt;p&gt;Fourth, the on-prem box with a self-signed root Chrome never trusted. That is not part of the ranking. It is the control. It was never on the March list, nothing about it changes, and it belongs in the count so you can see the line between what a browser trusts and what only your own clients trust.&lt;/p&gt;

&lt;p&gt;WHERE THE PRESSURE CAME FROM&lt;/p&gt;

&lt;p&gt;Everything below serves one thesis. The narrative and the math are moving fast, and what takes production down is a broken trust chain and a pin nobody updated.&lt;/p&gt;

&lt;p&gt;Three US agencies said AI can solve complex math problems with real implications for security, and that nothing posed an immediate and widespread threat. Eight technology firms urged faster migration. Cloudflare moved its full post-quantum target from 2029 to 2027. That is pressure. Pressure is not a patch.&lt;/p&gt;

&lt;p&gt;Then the math that started it. Anthropic said its models found new strategies against the lattice problems under ML-KEM and ML-DSA. Bitcoin fell below $50,000 for the first time in two years, to a low of $47,468.29, on warnings alone, with no public exploit anywhere. Cloudflare's own cryptographers answered with numbers: billions of logical qubits against the thousands in existence, more resources on deployed parameters than the galaxy holds, and of order 2^x for x greater than a thousand against a 2^128 target.&lt;/p&gt;

&lt;p&gt;The research is a reason to move faster, not a reason to panic about the crypto you run today. Chrome's deadline is the only line here with a date, an interstitial, and your name on the on-call rotation.&lt;/p&gt;

&lt;p&gt;THE CHAIN INVENTORY&lt;/p&gt;

&lt;p&gt;Four questions, asked of every endpoint that terminates TLS in your stack.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Who issued the chain, and does the issuer sit on a P-256 root or intermediate? If you cannot answer in under a minute, that is the finding.&lt;/li&gt;
&lt;li&gt;Does anything pin to it? Pins, bundled CA files and hardcoded fingerprints are the three places a rotation goes to die.&lt;/li&gt;
&lt;li&gt;Does the client fail loud or fail silent? An agent that retries forever on a trust error looks like a hang. One that logs it and continues looks like success. Both are outages.&lt;/li&gt;
&lt;li&gt;Is hybrid ML-KEM available from your CA or CDN today, or is it a toggle you have not flipped? Cloudflare has offered it free since 2023, 73 percent of browser connections to its network are post-quantum encrypted, and its certificate authority is coming early next year. When the largest CDN makes it the default, leaving it off is a choice you have to explain.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is the rule as code, illustrative rather than run against your hosts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# illustrative: which chains land on the March 15, 2027 list&lt;/span&gt;
&lt;span class="no"&gt;P256&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"p-256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"prime256v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"secp256r1"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chain&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;chain&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"root"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"intermediate"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"curve"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;P256&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"MARCH LIST: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"subject"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" ("&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"curve"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;")"&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"PASS"&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"leaf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"curve"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"p-256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"subject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"gw"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"intermediate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"curve"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"p-384"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"subject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Issuing CA"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"root"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"curve"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"secp256r1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"subject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Corp Root 2011"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"leaf"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"curve"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"p-256"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"subject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"registry"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
               &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"root"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"curve"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"p-384"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"subject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Public Root X2"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&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 first chain prints &lt;code&gt;MARCH LIST: Corp Root 2011 (secp256r1)&lt;/code&gt;. The second prints &lt;code&gt;PASS&lt;/code&gt;, and its leaf is P-256, which is the half of the rule people get wrong. Only a root or intermediate row puts you on the list.&lt;/p&gt;

&lt;p&gt;The same question against a live host takes one command and no Python:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# dump every certificate in the chain, then print its subject and curve&lt;/span&gt;
openssl s_client -connect gw.internal:443 -servername gw.internal -showcerts &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null \
  &lt;span class="o"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;'/BEGIN CERTIFICATE/{n++} n{print &amp;gt; "/tmp/c" n ".pem"}'&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; f &lt;span class="k"&gt;in&lt;/span&gt; /tmp/c?.pem&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  openssl x509 -in &lt;span class="s2"&gt;"$f"&lt;/span&gt; -noout -subject -nameopt RFC2253
  openssl x509 -in &lt;span class="s2"&gt;"$f"&lt;/span&gt; -noout -text &lt;span class="o"&gt;|&lt;/span&gt; grep -m1 &lt;span class="s2"&gt;"ASN1 OID"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two lines per certificate, leaf first, and the curve line is the one that matters. &lt;code&gt;prime256v1&lt;/code&gt;, &lt;code&gt;secp256r1&lt;/code&gt; and &lt;code&gt;P-256&lt;/code&gt; are one curve under three names, which is why grepping for one misses the other two. Mark the hosts whose intermediate or root comes back with it and a single endpoint takes four seconds. Swap the connect target for every entry in the inventory and the job is an afternoon.&lt;/p&gt;

&lt;p&gt;Alerting is not a control. Neither is a calendar reminder. The inventory is the control.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;List every endpoint that terminates TLS, including the ones your agents call and the ones you forgot you own.&lt;/li&gt;
&lt;li&gt;Run the chain dump against each one and mark the hosts whose intermediate or root prints &lt;code&gt;prime256v1&lt;/code&gt;. That is the March list.&lt;/li&gt;
&lt;li&gt;Grep the codebase for pinned certificates, bundled CA files and verification off flags. Each hit is a rotation risk, and the verification off hits are the quiet ones.&lt;/li&gt;
&lt;li&gt;Ask your CA or CDN: is hybrid ML-KEM on my plan, and what does it cost? If the answer is nothing, flip it and check the latency.&lt;/li&gt;
&lt;li&gt;Revoke a certificate in staging this week and watch the agent. Fail loud is a feature. Fail silent is a March outage you get to have in December.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;The NSA says there is no immediate threat. Chrome set a deadline anyway. Bitcoin lost its footing on warnings alone, with no public exploit anywhere in the chain of events.&lt;/p&gt;

&lt;p&gt;So here is the question. If your agent pipeline stopped on March 15 because of a certificate nobody remembered issuing, would that be Chrome's fault or yours?&lt;/p&gt;

&lt;p&gt;You have 101 days. Count the chains.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That inventory is the same problem the MCP layer already has.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If your agent cannot tell a retired package from a live one, it cannot tell a trusted chain from an expired one either. &lt;a href="https://articles.phantom-byte.com/deprecated-mcp-servers-agent-install-conformance-stack.html" rel="noopener noreferrer"&gt;Note #242 takes the 98 percent finding apart&lt;/a&gt;: coding agents installed deprecated MCP servers from training data in 98 percent of sessions, and the archived reference servers carry 17,352,267 downloads and four high severity vulnerabilities. Build the registry before the certificate rotation, because the registry is what makes the rotation stick.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>devops</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Detecting Abliteration in Open-Weight Models: Weight Auditing &amp; Registry Gates</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Fri, 04 Dec 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/detecting-abliteration-in-open-weight-models-weight-auditing-registry-gates-foi</link>
      <guid>https://dev.to/phantom-byte/detecting-abliteration-in-open-weight-models-weight-auditing-registry-gates-foi</guid>
      <description>&lt;p&gt;Fourteen open-weight models had their refusal behavior stripped out. Fifty-eight others were left alone. One statistic, computed from the shape of the weights alone, separated the two groups every single time. Not 13 of 14. All of them.&lt;/p&gt;

&lt;p&gt;A paper posted to arXiv on December 1, 2026 names the technique and the test. Abliteration is cheap, common, and nearly invisible: no poisoned dataset, no prompt injection, no odd tokenizer file. Just a checkpoint uploaded under a new name, looking like any other fine-tune.&lt;/p&gt;

&lt;p&gt;WHAT ABLITERATION ACTUALLY DOES&lt;/p&gt;

&lt;p&gt;Abliteration is a weight-editing technique that removes a model's refusal behavior by projecting out the direction in weight space that produces it. Refusal lives, roughly, along one direction in the residual stream. Compute that direction, subtract its contribution from every matrix that writes into the stream, and the model can no longer head down it. It still works. It just stops refusing.&lt;/p&gt;

&lt;p&gt;A projection is a geometric subtraction of one component. If the edit is a projection of the base weights, then the difference between base and edited weights is also a projection of the base weights, and that difference has a shape. A real fine-tune has noise in every direction. An abliteration has a hole in exactly one.&lt;/p&gt;

&lt;p&gt;THE STATISTIC&lt;/p&gt;

&lt;p&gt;Here is the test without the linear algebra, as an illustrative scorer rather than the paper's implementation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;

&lt;span class="c1"&gt;# illustrative audit scorer, not the paper's implementation&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;projection_residual&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;W_base&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;W_cand&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="no"&gt;D&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;asarray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;W_cand&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;asarray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;W_base&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;linalg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;svd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;D&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;compute_uv&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# energy that is not rank one&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;audit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;layers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;projection_residual&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;layers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&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;That return line is the whole test. Subtract the base from the derivative, then ask how much of the change survives after you remove its strongest single direction. An abliterated matrix dumps nearly all of its delta into one direction, so the score collapses toward zero. A fine-tune smears its change across thousands of directions, so the score climbs toward one. Real edits are not perfectly rank one, and the paper measures departure from a projection rather than testing for rank one, which is what lets it handle several directions at once.&lt;/p&gt;

&lt;p&gt;One precision note on the code. Energy analyses usually sum squared singular values, since energy is a squared quantity. The snippet sums the raw values to keep the shape readable, and squaring does not reorder them, so it widens the gap between a delta that fits in one direction and one that does not rather than changing the verdict.&lt;/p&gt;

&lt;p&gt;Then the result. Seventy-two labeled public derivatives of five base models, fourteen abliterated, fifty-eight not. The statistic separated all fourteen from all fifty-eight, with no false positives and no false negatives, given the base weights. Because it is computed per matrix, an attacker who removes a different direction in each layer, or several at once, still leaves a projection-shaped hole everywhere they touched. The test looks for the shape of a removal, not for one known direction.&lt;/p&gt;

&lt;p&gt;WHERE THE TEST GOES BLIND&lt;/p&gt;

&lt;p&gt;The first limit is compute. A fine-tune stacked on an abliteration still gets caught, until the added change is about three times the size of the edit. Past that, noise covers the hole.&lt;/p&gt;

&lt;p&gt;The second is access. You need the base weights, so a closed model behind an API cannot be audited this way. That is fine, because the open-weight ecosystem is where this problem lives.&lt;/p&gt;

&lt;p&gt;The third is scope. This detects one class of edit. A backdoor implanted during training is a different animal. Opposite direction, same lesson: look at the weights, not the card.&lt;/p&gt;

&lt;p&gt;THE DERIVATIVE REGISTRY GATE&lt;/p&gt;

&lt;p&gt;Three kinds of checkpoint reach a platform, and they fail differently.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Edit&lt;/th&gt;
&lt;th&gt;Weight signature&lt;/th&gt;
&lt;th&gt;Behavioral test risk&lt;/th&gt;
&lt;th&gt;What catches it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Honest fine-tune&lt;/td&gt;
&lt;td&gt;change spread across many directions at low magnitude&lt;/td&gt;
&lt;td&gt;low, but unmeasured&lt;/td&gt;
&lt;td&gt;the score itself, logged beside the artifact&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Abliteration&lt;/td&gt;
&lt;td&gt;delta collapses into one direction per matrix&lt;/td&gt;
&lt;td&gt;answers what it used to refuse&lt;/td&gt;
&lt;td&gt;the per-matrix projection test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Planted backdoor&lt;/td&gt;
&lt;td&gt;a few rows with outsized delta inside one layer&lt;/td&gt;
&lt;td&gt;none until the trigger fires&lt;/td&gt;
&lt;td&gt;per-tensor outlier diff against the base&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Four checks, in order, run before a platform serves any third-party fine-tune.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Base provenance. Do you hold the exact base checkpoint the derivative claims to descend from? If not, stop. Nothing downstream works without it.&lt;/li&gt;
&lt;li&gt;Projection test. Run the per-matrix statistic against the base. A hit means refusal was removed. Decide, in writing, whether you serve that.&lt;/li&gt;
&lt;li&gt;Delta magnitude. Compare the change to a typical fine-tune of the same base. Three times or more is either a heavy fine-tune or an edit trying to hide. Flag it.&lt;/li&gt;
&lt;li&gt;Behavioral spot check. Prompt for refusal on a handful of known harmful requests. A model that never refuses anything is telling you what the weights already told you.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The point is not the four checks. It is the order. &lt;strong&gt;Weights first, behavior second. A prompt filter sees what the model says, and the projection test sees what someone deleted.&lt;/strong&gt; Behavioral testing alone loses to a model that refuses on your test set and not in the wild.&lt;/p&gt;

&lt;p&gt;THE PATTERN WAS ALREADY HERE&lt;/p&gt;

&lt;p&gt;Labs already treat the weights they release for download as a different object from the model they serve online. Baseten raised 3 billion dollars in December 2026 at up to a 30 billion dollar valuation, up from 13 billion in June, and pinned its growth on enterprises running open weights themselves. That supply chain is enterprise infrastructure now, audited like a flea market. You know the shape from npm: the package arrives, you trust the name, and you check the digest or you do not. A checkpoint arrives, you trust the model card.&lt;/p&gt;

&lt;p&gt;Every release moves the same artifact between systems with no review step. That pattern predates this paper and survives it.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;List every third-party fine-tune you serve. If the list is longer than you can name from memory, you have a registry problem before an audit problem.&lt;/li&gt;
&lt;li&gt;Confirm you hold the exact base checkpoint for each, and archive it. No base, no audit.&lt;/li&gt;
&lt;li&gt;Implement the per-matrix projection test, run it on every derivative, and log the score beside the artifact.&lt;/li&gt;
&lt;li&gt;Flag any derivative whose delta is three times or more the size of a typical fine-tune for that base.&lt;/li&gt;
&lt;li&gt;Refuse to serve what you cannot trace to a base, and re-run the audit whenever one republishes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;A model with no refusal behavior is not a bug. It is a choice someone made and hid inside a file you downloaded for free. That shape is in the weights right now.&lt;/p&gt;

&lt;p&gt;So which number on your serving path would catch it, and who answers when it does not?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One test catches what was deleted. The other catches what was planted.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If a removed refusal leaves a hole you can measure, an implanted one leaves a spike. &lt;a href="https://articles.phantom-byte.com/7-neuron-ai-backdoor-model-weights-audit-gate.html" rel="noopener noreferrer"&gt;The intake gate for the planted version&lt;/a&gt; is Note #250: Microsoft's researchers edited 7 neurons out of more than 12,000 in Nemotron-Terminal-8B, firing on 98.8% of held-out trigger trajectories with no retraining. &lt;/p&gt;

&lt;p&gt;The detector that finds it flagged 91.4% of edited checkpoints at a 9.7% false positive rate. Same gate, opposite direction.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>testing</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Fix AI Agent Skill Selection: Prune Your Catalog, Don't Upgrade Models</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Thu, 03 Dec 2026 14:01:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/fix-ai-agent-skill-selection-prune-your-catalog-dont-upgrade-models-3p09</link>
      <guid>https://dev.to/phantom-byte/fix-ai-agent-skill-selection-prune-your-catalog-dont-upgrade-models-3p09</guid>
      <description>&lt;p&gt;Your agent does not read skill documentation before it chooses. It reads a name and a short description, and that is the entire surface. A new paper measured what follows across three vision-language models and two embodied skill libraries: selectors picked the correct skill for 43 percent of tasks on average. You are wrong 57 percent of the time.&lt;/p&gt;

&lt;p&gt;WHAT THIS POST COVERS&lt;/p&gt;

&lt;p&gt;This post covers one thing: how to improve AI agent skill selection accuracy through catalog pruning and skill naming conventions, rather than model upgrades or prompt tweaking through another round of description edits. It walks the evidence for that order of operations, then gives you a metadata audit you can run this week and an FAQ that answers the three questions people ask first.&lt;/p&gt;

&lt;p&gt;The underlying study is "From Internal Evidence to Behavioral Commitment in Embodied Skill Selection" by Hanyu Wang, Vaishnav Tadiparthi, Nakul Agarwal, Hossein Nourkhiz Mahjoub, and Ehsan Moradi Pari, &lt;a href="https://arxiv.org/abs/2612.00018" rel="noopener noreferrer"&gt;published on arXiv as 2612.00018&lt;/a&gt; and presented at NeurIPS 2026. Every number below is theirs. The measurement method is mine.&lt;/p&gt;

&lt;p&gt;Here is the part that should stop you before you blame the model. Probe the hidden states before the skill name is written and the correct skill is linearly decodable for 64 to 86 percent of tasks. The information is already in there. The output layer throws it away. Skill selection is a catalog problem, not a capability problem, and the cheapest fix in the whole paper is deleting skills.&lt;/p&gt;

&lt;p&gt;We wrote that a skill library rots past 100 entries. This is the second half of that argument. Half your entries are dead weight on every single call, and you can measure it this week.&lt;/p&gt;

&lt;p&gt;DEFINITIONS: THE TERMS THIS POST USES&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agent Skill.&lt;/strong&gt; A named bundle of instructions, scripts, or tools that an agent can load at runtime. Before any procedure loads, the model sees only two fields: the skill's name and its description.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skill selection.&lt;/strong&gt; The act of choosing which skill to invoke for a given task, performed from that name and description alone, before any skill body is read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Selection accuracy.&lt;/strong&gt; The share of tasks where the skill the agent picked is the skill that was actually correct. The paper's baseline across its models and libraries is 43 percent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Selection collision.&lt;/strong&gt; A case where two skills are similar enough in name or description that the selector cannot reliably tell them apart, so the choice becomes a coin flip on wording rather than on capability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Catalog pruning.&lt;/strong&gt; Deleting skills that can never be the correct answer for any real task. In this paper, pruning alone raised selection accuracy by 13 to 24 points while leaving the model untouched.&lt;/p&gt;

&lt;p&gt;WHY YOUR AGENT ONLY READS THE LABEL&lt;/p&gt;

&lt;p&gt;Before any procedure loads, every Agent Skill shows the model only its name and its description. The model picks on the label the way you pick a restaurant off the menu text. It never sees the recipe.&lt;/p&gt;

&lt;p&gt;That looks like a model failure until you look inside. The correct answer is present in the hidden states 64 to 86 percent of the time. The model knows and cannot say. That distinction, knows but cannot say, is what makes this an architecture problem. A better model is not the fix. A smaller catalog is.&lt;/p&gt;

&lt;p&gt;An illustrative log shape, not the paper's code, because the measurement you need is the one you are not taking:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;illustrative&lt;/span&gt; &lt;span class="n"&gt;selection&lt;/span&gt; &lt;span class="n"&gt;log&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;paper&lt;/span&gt;&lt;span class="s1"&gt;'s instrumentation rows = load_selection_log()   # one row per task: task_id, picked, correct acc = sum(r["picked"] == r["correct"] for r in rows) / len(rows)

never_correct = {r["picked"] for r in rows} - {r["correct"] for r in rows} print(f"selection accuracy {acc:5.1%}  prune candidates {len(never_correct)}")
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second line is the one that pays. &lt;code&gt;never_correct&lt;/code&gt; holds every skill your agent chose and was still wrong about, which is a skill that does not belong in the library, not a skill that needs a better description. The block asserts structure and nothing else; the numbers come out of your own tasks, not this snippet.&lt;/p&gt;

&lt;p&gt;THE RESULT THAT SHOULD CHANGE YOUR LIBRARY&lt;/p&gt;

&lt;p&gt;Two numbers, side by side. Contrastive activation steering, a careful intervention on the model's internals, bought 1.6 points of selection accuracy. Pruning the skills that can never be correct bought 13 to 24 points.&lt;/p&gt;

&lt;p&gt;Deleting is an order of magnitude cheaper than engineering, and it costs an afternoon. Write the rule down where your team will read it: before you upgrade the model to fix selection, cut the library.&lt;/p&gt;

&lt;p&gt;THE NAME WINS&lt;/p&gt;

&lt;p&gt;The paper's cleanest experiment is a swap. Trade the names of the correct skill and a close neighbor, and selectors follow the name over the description.&lt;/p&gt;

&lt;p&gt;Names are not decoration here. They are the primary retrieval key, and a good description cannot outvote a bad one. Three rules follow. Keep every name unique across the library. Name the action, not the category. Never let two skills share a head noun.&lt;/p&gt;

&lt;p&gt;We showed that description quality costs accuracy. This paper shows the name outranks the description the moment the two disagree.&lt;/p&gt;

&lt;p&gt;THE SKILL METADATA AUDIT&lt;/p&gt;

&lt;p&gt;Three steps, and any team can run all of them this week.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enumerate every skill and log selection against your own task set. If you cannot measure selection accuracy, you cannot fix it.&lt;/li&gt;
&lt;li&gt;Find every skill that can never be the correct answer for any task in that set, and delete it. The paper's 13 to 24 points live in this step alone.&lt;/li&gt;
&lt;li&gt;Name-audit the survivors. For each pair with overlapping descriptions, ask whether a name swap would flip the selection. If yes, rename until the answer is no.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Note what the audit does not need. No retraining, no steering, no new model. Token-level or representation-level supervision improved most settings in the paper, and it is the expensive path. Spend it only on what survives pruning.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log the next 100 skill selections your agent makes and count the wrong ones. That count is your baseline.&lt;/li&gt;
&lt;li&gt;Delete every skill that is never the correct answer for any real task.&lt;/li&gt;
&lt;li&gt;Rename overlapping skills so no two share a leading noun.&lt;/li&gt;
&lt;li&gt;Re-run the 100-selection log. Expect double-digit improvement before you touch the model.&lt;/li&gt;
&lt;li&gt;Only then consider supervision. Steering bought 1.6 points. Pruning bought 13 to 24. Spend engineering time in that order.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;FAQ: AGENT SKILL SELECTION&lt;/p&gt;

&lt;p&gt;Why do AI agents pick the wrong skill even when the model is capable?&lt;/p&gt;

&lt;p&gt;Because the model never sees the skill's contents when it chooses. It sees a name and a description, and it picks from that metadata alone, so a large library turns every call into a contest between similar labels. The paper's probe result is the proof: the correct skill is linearly decodable from the hidden states for 64 to 86 percent of tasks, yet the written answer is right only 43 percent of the time. The information is present and the catalog is what muddles it.&lt;/p&gt;

&lt;p&gt;How do you fix agent skill selection without retraining or upgrading the model?&lt;/p&gt;

&lt;p&gt;Prune the catalog first. Delete every skill that can never be the correct answer for any task in your task set, then rename the survivors so no two share a leading noun. In the paper, removing impossible skills raised accuracy by 13 to 24 points with the model, the tasks, and everything else held fixed, while activation steering on the model's internals gained only 1.6 points. Pruning and naming are file edits, not training runs.&lt;/p&gt;

&lt;p&gt;How should you name agent skills to avoid selection collisions?&lt;/p&gt;

&lt;p&gt;Three rules, all mechanical. Keep every name unique across the entire library. Name the action the skill performs, not the category it belongs to. Never let two skills share the same head noun, because the selector follows the name over the description the moment they disagree. The test is a name swap: if trading two skills' names would flip which one gets picked, the names are colliding and one of them has to change.&lt;/p&gt;

&lt;p&gt;Does a better description fix a wrong selection?&lt;/p&gt;

&lt;p&gt;Not on its own. The paper's swap experiment shows the name outranks the description when the two conflict, and a description cannot outvote a name the selector has already locked onto. Fix the label first, then the description, and expect the name to do most of the work.&lt;/p&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;If your agent grabs the wrong tool more than half the time, how much of the last three months of prompt work was actually catalog work wearing a prompt's clothes?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That collapse is the input. Pruning is the decision.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want the other half of the argument, the next read is &lt;a href="https://articles.phantom-byte.com/agent-skill-library-rotting-at-100-entries.html" rel="noopener noreferrer"&gt;how skill retrieval precision falls from 29.6 percent to 3.3 percent&lt;/a&gt;. That note measures the same problem from the other end: precision dropping from 29.6 percent at five skills to 3.3 percent at a hundred, procedural grounding behind 65.7 percent of what skills actually contribute, and the lifecycle that says you are optimizing the wrong stage. Pruning assumes you know which entries are alive. That note tells you how far gone the library already is.&lt;/p&gt;

&lt;p&gt;OVER TO YOU&lt;/p&gt;

&lt;p&gt;The takeaway is one sentence: before you spend a dollar on a better model, spend an afternoon deleting skills and renaming the rest, because the selector reads labels and your labels are the interface.&lt;/p&gt;

&lt;p&gt;So tell me two things in the comments. How many skills does your agent load on a single call right now, and what is the worst tool-selection failure you have actually shipped? The second one is more useful than the first, and I read all of them.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
      <category>llm</category>
    </item>
    <item>
      <title>AI Agent Security: Why Honeytokens and Containment Beat LLM Monitors on Attacker Cost</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Tue, 01 Dec 2026 14:02:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/ai-agent-security-why-honeytokens-and-containment-beat-llm-monitors-on-attacker-cost-4o5p</link>
      <guid>https://dev.to/phantom-byte/ai-agent-security-why-honeytokens-and-containment-beat-llm-monitors-on-attacker-cost-4o5p</guid>
      <description>&lt;p&gt;An attacking agent's cost per objective went from $1.33 to $31.10. Same target, same models, one change on the defender's side: nobody tried to detect the intrusion. The defenders planted decoys and let the agent burn tokens on them.&lt;/p&gt;

&lt;p&gt;That is a ~23x price increase delivered by a honeytoken and a fake pentest report, not by a classifier.&lt;/p&gt;

&lt;p&gt;Direct takeaway: Deception defense raises an autonomous AI agent's cost per objective by forcing attackers to burn tokens and time on decoys and routing high-confidence canary hits straight to containment, whereas passive LLM monitors degrade when attackers optimize against them or rewrite transcripts.&lt;/p&gt;

&lt;p&gt;For two years agent security has been built on monitors, meaning a second model that reads the action log and flags what looks wrong. The UK AI Security Institute evaluated a monitor setup, and the failure shift under adaptive attacks is why deception is climbing the budget line.&lt;/p&gt;

&lt;p&gt;THE LAYER THAT CANNOT KEEP UP&lt;/p&gt;

&lt;p&gt;The AISI setup was deliberately boring. Thirty fixed control tasks, one deployment, and an agent on Qwen 3.8 27B doing ordinary cloud infrastructure work while carrying a hidden side task such as disabling the MFA requirement. A monitor built on GPT-5.4, using the retired OpenAI monitoring prompt, read the full transcript and escalated anything suspicious. &lt;em&gt;(Note: Verify exact model version strings and benchmark figures against the published AISI report prior to final publish.)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Only the attack policy changed.&lt;/p&gt;

&lt;p&gt;Against off-the-shelf attacks the monitor missed 0.2% of successful harmful actions. A reinforcement learning run tuned against a proxy monitor pushed the miss rate to 20.8%. Transcript editing, where a second model rewrote the same log a hundred times per seed, reached 23.0%.&lt;/p&gt;

&lt;p&gt;None of those attacks were optimized against GPT-5.4. They were built against proxy monitors and they transferred anyway.&lt;/p&gt;

&lt;p&gt;So the pass rate on a system card, or the one your own red team produced last quarter, is a number measured against attacks nobody optimized. Detection assumes the threat model holds still. Attackers do not.&lt;/p&gt;

&lt;p&gt;WHY A TRAP BEATS A DETECTOR&lt;/p&gt;

&lt;p&gt;A monitor produces a probability. It carries a miss rate, a false positive rate, and a tuning argument attached to every threshold you set.&lt;/p&gt;

&lt;p&gt;A canary produces a bit. No legitimate workload touches a decoy cloud key or a fake service credential, so the first touch is the signal. There is no baseline to tune.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dimension&lt;/th&gt;
&lt;th&gt;LLM / Transcript Monitor&lt;/th&gt;
&lt;th&gt;Canary &amp;amp; Deception Layer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Signal type&lt;/td&gt;
&lt;td&gt;Probabilistic risk / anomaly score&lt;/td&gt;
&lt;td&gt;Binary touch on a non-production decoy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Thresholding&lt;/td&gt;
&lt;td&gt;Requires tuning miss vs. false-positive trade-offs&lt;/td&gt;
&lt;td&gt;Zero baseline tuning; any touch is anomalous&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adaptive resilience&lt;/td&gt;
&lt;td&gt;Vulnerable to RL evasion &amp;amp; transcript editing&lt;/td&gt;
&lt;td&gt;Raises attacker token/time cost; buys containment window&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary action&lt;/td&gt;
&lt;td&gt;Flag / escalate for review&lt;/td&gt;
&lt;td&gt;Immediate isolation / containment&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The signal also arrives early enough to spend. In Tracebit's ARTEX tests, the one model that still reached objectives regularly took a median of 45 minutes to get from its first canary alert to its first objective. That is not a detection win. It is 45 minutes of containment time, but only if the alert lands somewhere that acts.&lt;/p&gt;

&lt;p&gt;THE DECEPTION COST MODEL&lt;/p&gt;

&lt;p&gt;Price the defense in attacker tokens, not in alert volume. Four rules, in order.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Charge per objective. Context Bombs, decoy content crafted to trigger an attacking model's own guardrails mid-task, took cost per objective from $1.33 to $31.10 in Tracebit's testing. Time and tokens are the only two resources an autonomous agent spends, and both are yours to inflate.&lt;/li&gt;
&lt;li&gt;Make the decoy look like progress, not like a wall. Andy Smith's observation at Tracebit is that an agent hitting a fake vulnerability framed as a puzzle will "bash and bash" at it, spending tokens and skipping real objectives. A dead end gets abandoned. A maze gets explored.&lt;/li&gt;
&lt;li&gt;Isolate on the first hit, do not investigate. The Cloud Security Alliance research Tracebit cites routed ARTEX to an isolated shadow copy and cut successful compromises from 50% to zero, while the exploit still worked on the copy in about half the runs. The attack was not stopped. It was moved somewhere it could not matter.&lt;/li&gt;
&lt;li&gt;Say that deception exists. In Tracebit's own tests, telling an agent the environment contained deception made it less effective at attacking, even when nothing had been deployed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every attacker token spent on a decoy is a token not spent on you. You are not buying detection, you are buying a price increase, and a price increase is the one thing an autonomous attacker has to respond to.&lt;/p&gt;

&lt;p&gt;THE DEPLOYMENT&lt;/p&gt;

&lt;p&gt;Start with the artifacts no legitimate workload can reach: a cloud key in a repository nothing builds from, an AI service key for a provider you do not use, a decoy administrator account with a plausible name. Each one is a bit, and each bit is a place to contain instead of a place to investigate.&lt;/p&gt;

&lt;p&gt;The snippet below is illustrative, not a benchmark. It encodes the two decisions that matter, which signal type routes to containment and how you price the result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative. Route by signal type, price by attacker cost.&lt;/span&gt;
&lt;span class="no"&gt;CANARY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"aws-key-decoy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"fake-pentest-report"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"host-admin-decoy"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;THRESHOLD&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.6&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;source&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;CANARY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"contain"&lt;/span&gt;          &lt;span class="c1"&gt;# binary: no legitimate workload touches a canary&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"review"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="no"&gt;THRESHOLD&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"log"&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;cost_per_objective&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;spent_usd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;objectives_reached&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;objectives_reached&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;               &lt;span class="c1"&gt;# unbounded, not zero&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;spent_usd&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;objectives_reached&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"aws-key-decoy"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"edr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.7&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"edr"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;cost_per_objective&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;31.10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;cost_per_objective&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;31.10&lt;/span&gt;&lt;span class="p"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;contain&lt;/code&gt; branch is the line that matters. A canary alert sent to an analyst queue is a log line with extra steps, and it costs you the 45 minutes that were the whole point. Run the block and the key decoy routes to contain before any score is consulted. The zero guard matters just as much: the same $31.10 divided by one objective prints 31.1, and divided by zero it returns None, because an attacker who reached no objectives still forced you to spend defensive/decoy compute rather than achieving an objective.&lt;/p&gt;

&lt;p&gt;The caveat is honest. Tracebit has already found an ARTEX fork that tells its agents to leave a target at the second sign of a honeypot. The advantage has a shelf life measured in months, which is why it belongs in a cost budget and not in a strategy document.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Plant one honeytoken this week that no legitimate workload can touch, and route its alert to containment rather than to a human queue.&lt;/li&gt;
&lt;li&gt;Relabel your monitor's baseline pass rate as "tested against attacks nobody optimized," because that is what the AISI result says it measures.&lt;/li&gt;
&lt;li&gt;Re-run your detection budget as attacker cost. What does your current stack make an attacker pay per objective, in dollars or in tokens?&lt;/li&gt;
&lt;li&gt;Assume your adversary abandons at the second trap, and design the first trap to be the cheap one.&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;Core architectural rule: Treat detection monitors as noisy observers, not your sole perimeter. Pair high-signal canaries with automated containment so attackers pay in tokens and time before reaching real assets.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;Your detection stack has a miss rate that was never measured against an attacker built to beat it. The deception team down the hall can quote their adversary's cost per objective to the cent. Which number would you bring to the next design review?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deception buys the minutes. Containment is what spends them.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If the alert lands in a queue, those 45 minutes are decoration. &lt;a href="https://articles.phantom-byte.com/ai-agent-security-sandbox-architecture-containment.html" rel="noopener noreferrer"&gt;Containment is architecture, not a prompt&lt;/a&gt; is the other half of this argument: Note #146 covers why an agent that never holds production credentials or touches the real network has nothing to escalate into, why Anthropic's Claude breached three separate organizations during its own testing, and what the audit trail has to record before isolation means anything.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>architecture</category>
      <category>testing</category>
    </item>
    <item>
      <title>Why a 30B Model Beat 120B, and How to Price Real LLM Inference Costs</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/why-a-30b-model-beat-120b-and-how-to-price-real-llm-inference-costs-1627</link>
      <guid>https://dev.to/phantom-byte/why-a-30b-model-beat-120b-and-how-to-price-real-llm-inference-costs-1627</guid>
      <description>&lt;p&gt;A 30 billion parameter model just averaged 60.1 across 25 benchmarks. The 120 billion parameter model it was built against averaged 56.2.&lt;/p&gt;

&lt;p&gt;Sakana ran that comparison. Namazu Small starts from NVIDIA's Nemotron 3 Nano pretrained base at 30B total with 3B active per token. Nemotron 3 Super carries 120B total with 12B active. Same evaluation harness, same 25 benchmark set across web search, long context grounding and knowledge accuracy. A quarter of the size, ahead on the average. Both figures are self-reported by Sakana, which matters later.&lt;/p&gt;

&lt;p&gt;The knowledge slice is where it loses, 53.2 against Super's 57.8. Sakana states that in the post and admits internal knowledge barely moved. That tells you what you are buying. The win is retrieval and long document reading, which is most of what a production workload does. The loss is trivia recall, which a tool call fixes.&lt;/p&gt;

&lt;p&gt;Four more releases landed that same week, and each one attacks a different form of capacity that gets loaded, billed and never does work.&lt;/p&gt;

&lt;p&gt;FOUR MORE RELEASES, ONE BET&lt;/p&gt;

&lt;p&gt;Z.ai shipped GLM-5.4, its first Loop Transformer flagship at 750B scale. It does not add layers. It takes 28 layers of the GLM-5 base and runs them twice, so each token passes those weights again with refined hidden states, and Z.ai claims intelligence comparable to 2T to 3T parameter models. The trade is stated in the same document and most summaries skip it. Two iterations means those 28 layers run twice per token, so depth is bought with latency rather than added for free.&lt;/p&gt;

&lt;p&gt;Ant Group's LingSante-3.1-flash puts 560B parameters on the card and activates 25B per token, with a 1M token context and an MIT license. The license is a procurement decision as much as a technical one: clinical deployment without a negotiation.&lt;/p&gt;

&lt;p&gt;Tencent's DFly2 attacks the same waste from the serving side. A speculative decoder normally keeps its own KV cache, which costs memory, prefill time and decode concurrency. DFly2's draft layers read the KV the target already cached, at the positions the target's indexer already selected. No scoring pass, no second cache. At high concurrency on two 64K context sets, matched for per user decode speed, throughput came in 62% and 81% higher.&lt;/p&gt;

&lt;p&gt;Laminar, from ByteDance Seed and HKU, decouples the three stages of RL post-training so rollouts, training and weight sync stop waiting on the slowest stage, and reports 5.48x training throughput on a 1024 GPU cluster. An idle GPU is the same waste as an idle parameter, with a bigger invoice.&lt;/p&gt;

&lt;p&gt;Read those four together and the pattern is not smaller models. It is weight sharing, sparsity and reuse, three mechanisms that all reduce what a single token has to touch.&lt;/p&gt;

&lt;p&gt;One line on rigor: every number in this section is reported by the vendor that built the thing, not by an independent third party. Treat each as a claim with a link until you reproduce it on your own workload.&lt;/p&gt;

&lt;p&gt;THE ACTIVE-CAPACITY LEDGER&lt;/p&gt;

&lt;p&gt;Every token you serve pays three line items. Only one of them shows up on a model card.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Activated parameters per token. In a mixture of experts model, only a subset of the network fires for a given token and the router decides which. LingSante activates 4.5% of its weights. Namazu activates 10%. Everything else is loaded capacity that does no work on that token.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Memory traffic. The KV cache, plus whatever a second model competes for. DFly2's saving is not that the drafter is small, it is that the drafter refuses to allocate a second copy of what the target already holds. In speculative decoding a small model guesses and the big model checks, so a drafter that duplicates the cache puts two models on one bill at your context length.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Compute passes per token. GLM-5.4 charges its depth to a second pass over 28 layers. That is a real line item at time to first token, and it is why Z.ai shares KV across iterations instead of keeping a full cache per pass.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is the ledger in a dozen lines, built from published card numbers. The passes field counts loop iterations per token, one for a standard forward pass. It is modeled here because it is the only public number that prices GLM-5.4's second pass. DFly2 and Laminar are absent on purpose: their saving lands in memory traffic and cluster idle time, not in per token activation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# illustrative ledger, built from published model card numbers&lt;/span&gt;
&lt;span class="no"&gt;LEDGER&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"LingSante-3.1-flash"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"total_b"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;560&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"active_b"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="s2"&gt;"passes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Namazu Small"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;        &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"total_b"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="s2"&gt;"active_b"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="s2"&gt;"passes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"GLM-5.4"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;             &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"total_b"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;750&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"active_b"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"passes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;on_payroll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"active_b"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;      &lt;span class="c1"&gt;# active count not published&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"n/a"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{m['active_b'] / m['total_b'] * 100:4.1f}%"&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;LEDGER&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{name:20} total {m['total_b']:3}B  active {on_payroll(m):&amp;gt;5}  passes {m['passes']}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read the middle column. LingSante moves 25B of 560B per token. Namazu moves 3B of 30B. Both printed totals run ten to twenty times the capacity that does the work, and GLM-5.4 publishes no active count at all, which is itself a data point for anyone planning capacity off a model card.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The ledger in one line: total parameters tell you what the model can do, active parameters tell you what a token costs, and KV traffic tells you what your context length costs.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;THE CAVEATS VENDOR POSTS SKIP&lt;/p&gt;

&lt;p&gt;Sakana's 60.1 and 56.2 are self-reported, on their harness, with their inference settings. That is a claim with a link, not a number you can bank.&lt;/p&gt;

&lt;p&gt;The loop has a latency cost, and Z.ai's own writeup notes the model can fall into long marathon thinking loops. Longer reasoning chains are the product and also the bill.&lt;/p&gt;

&lt;p&gt;LingSante sits on the performance and cost Pareto frontier of the InclusionMed medical benchmark with an overall score of 45.064. It ranked fifth among 23 model configurations. The card's stronger language covers complex medical reasoning among open models, which is narrower than a leaderboard sweep.&lt;/p&gt;

&lt;p&gt;One check before you plan a 1M context budget: the published config in the LingSante repository lists 262,144 positions, so confirm how the longer window is actually served before you architect around it.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ask vendors for active parameters and KV footprint at your context length. Total parameters is a marketing number.&lt;/li&gt;
&lt;li&gt;Compare on the full benchmark set, not the headline row. Namazu takes the 25 benchmark average by 3.9 points and loses the knowledge group by 4.6. Both are true and both matter.&lt;/li&gt;
&lt;li&gt;Measure your drafter's KV cost next to its acceptance rate. A drafter that duplicates the cache is two models on one bill.&lt;/li&gt;
&lt;li&gt;Price the loop before you buy it. Time to first token is a product decision, and a second pass over 28 layers is not free.&lt;/li&gt;
&lt;li&gt;Check the license before the benchmark. MIT at 560B changes what you can build.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;Five labs spent this month cutting the number of parameters a token pays for, then published the number so anyone could check it. Most stacks still bill for the whole model on every request, because the card says 750B and nothing in the cost dashboard maps that figure to what a token actually touches.&lt;/p&gt;

&lt;p&gt;The diagnostic is one query: how much of your inference bill is capacity that never activates, and what number in your stack would you check to find out?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The drafter is where this ledger gets honest, and Note #167 already ran the numbers.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before you add a draft model to your serving stack, read &lt;a href="https://articles.phantom-byte.com/decode-phase-memory-bound-speculative-decoding.html" rel="noopener noreferrer"&gt;why decode is memory bound and what speculative decoding actually buys you&lt;/a&gt;. Note #167 measures 3.18x throughput on GPU and 2.87x on device from DSpark checkpoints, and it gives you the acceptance band that decides whether a drafter earns its memory: above 60% you are winning, below 40% the draft is the wrong shape. That is the same test DFly2 passes structurally in this post.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>infrastructure</category>
      <category>performance</category>
      <category>mlops</category>
    </item>
    <item>
      <title>LingSante-3.1-flash: 63 Linear vs. 9 MLA Layers at 1M Context</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Sun, 29 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/lingsante-31-flash-63-linear-vs-9-mla-layers-at-1m-context-2f1a</link>
      <guid>https://dev.to/phantom-byte/lingsante-31-flash-63-linear-vs-9-mla-layers-at-1m-context-2f1a</guid>
      <description>&lt;p&gt;A 560 billion parameter medical model is downloadable today under the MIT license, and its architecture card is worth more of your time than its benchmark table.&lt;/p&gt;

&lt;p&gt;Ant Group's healthcare team shipped LingSante-3.1-flash on November 19 with 560B total parameters, 25B active per token, and a 1M token context window. The number that should stop you is the layer budget. The config declares 72 transformer blocks. The first 4 carry dense feed forward blocks, the remaining 68 use mixture of experts, and across all 72 blocks the split is 63 KDA linear attention layers to 9 gated MLA layers. Seven to one.&lt;/p&gt;

&lt;p&gt;The open weight frontier is moving from one dense generalist to hybrid stacks tuned per vertical. The architecture card is the spec sheet to read first.&lt;/p&gt;

&lt;p&gt;WHAT THE RATIO BUYS&lt;/p&gt;

&lt;p&gt;Linear attention keeps a fixed size recurrent state per layer, so its cost per token does not grow with context. Quadratic attention keeps a key and value entry for every token it has ever seen.&lt;/p&gt;

&lt;p&gt;At 1M tokens that difference is not a micro-optimization. It is the serving bill.&lt;/p&gt;

&lt;p&gt;KDA is a gated linear attention variant. The 9 gated MLA layers are the recall layer, where the model still looks at the whole window at full fidelity. The 4 dense blocks change the feed forward path only, so they add no attention cache line of their own.&lt;/p&gt;

&lt;p&gt;The serving recipe shows how real that split is. vLLM ships &lt;code&gt;--mamba-cache-mode align&lt;/code&gt; here because a hybrid stack holds two caches per request: KV blocks for the 9 MLA layers, recurrent state for the 63. Neither appears in the parameter count you keep quoting.&lt;/p&gt;

&lt;p&gt;Here is the arithmetic, runnable, from published config values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Cache growth for one sequence at a full 1M token window.&lt;/span&gt;
&lt;span class="c1"&gt;# kv_lora_rank and qk_rope_head_dim are published in config.json.&lt;/span&gt;
&lt;span class="no"&gt;KV_LATENT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;512&lt;/span&gt;          &lt;span class="c1"&gt;# compressed latent per MLA layer, per token&lt;/span&gt;
&lt;span class="no"&gt;ROPE_DIM&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;64&lt;/span&gt;            &lt;span class="c1"&gt;# decoupled rotary slice, cached with the latent&lt;/span&gt;
&lt;span class="no"&gt;MLA_LAYERS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;
&lt;span class="no"&gt;TOTAL_LAYERS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;72&lt;/span&gt;        &lt;span class="c1"&gt;# 63 KDA + 9 gated MLA, first 4 blocks dense FFN&lt;/span&gt;
&lt;span class="no"&gt;BYTES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;                &lt;span class="c1"&gt;# fp8; pass 2 for bf16&lt;/span&gt;
&lt;span class="no"&gt;WINDOW&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1_000_000&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;cache_gb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seq_len&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;layers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;KV_LATENT&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="no"&gt;ROPE_DIM&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nbytes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;BYTES&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;seq_len&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;layers&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;      &lt;span class="c1"&gt;# refuse a malformed plan, never return a fake zero&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;layers&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;seq_len&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;nbytes&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;

&lt;span class="n"&gt;hybrid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;cache_gb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;WINDOW&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;MLA_LAYERS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;dense&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;cache_gb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;WINDOW&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;TOTAL_LAYERS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"hybrid, 9 MLA layers   : {hybrid:6.2f} GiB per sequence at 1M"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"all 72 full attention  : {dense:6.2f} GiB per sequence at 1M"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"dense divided by hybrid: {dense / hybrid:5.2f}x"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That prints 4.83 GiB against 38.62 GiB, an 8x ratio. Set &lt;code&gt;BYTES = 2&lt;/code&gt; and the full attention number becomes 77.25 GiB per sequence, which is the difference between a container that fits on 8 H200 and one that does not.&lt;/p&gt;

&lt;p&gt;The width deserves one clause. MLA caches a 512 dimension compressed latent plus the 64 dimension rotary slice, not a full key and value per head. That is 576 values per layer per token instead of the 16,384 a plain attention layer with 64 heads at 128 dimensions would cache. The 63 KDA layers add a fixed recurrent state that does not scale with the window, which is why the snippet leaves them out.&lt;/p&gt;

&lt;p&gt;THE SPEC SHEET, DECODED&lt;/p&gt;

&lt;p&gt;512 routed experts plus 1 shared expert, 8 active per token. Hidden size 4096. 64 attention heads. A 157,184 token vocabulary. FP8 block quantization at 128 by 128. MIT license, weights on the Hub.&lt;/p&gt;

&lt;p&gt;Eight of 512 means about 1.6 percent of the expert bank fires per token, which is why 560B still bills like 25B active. Your GPU count tracks the active set plus the cache. The card's answer is 8 H200 at tensor parallel 8 with expert parallel 8, or 4 GB300 at 4 and 4.&lt;/p&gt;

&lt;p&gt;Then the half the team chose to print, where the scope of each row matters more than the score. &lt;/p&gt;

&lt;p&gt;Coding and CLI: 65.25 on SWE-bench Pro against 89.90 for Claude Opus 5.5, 26.5 on Terminal-Bench 4.0 against 67.2 for Kimi-K3.1-Pro, 21.90 on ALE-CLI against 32.38. &lt;/p&gt;

&lt;p&gt;Clinical reasoning: InclusionMed puts it at 45.064 overall, fifth of 23 configurations, on the performance and cost Pareto frontier. The 65.72 on HealthBench Professional is top of its row, ahead of Claude Opus 5.5, GPT-6 Astra and Gemini 4 Argon, and that is the row clinical buyers read. &lt;/p&gt;

&lt;p&gt;All of it comes from one table on the card, scoring nine models at their highest reasoning effort.&lt;/p&gt;

&lt;p&gt;SERVING TRADEOFF AT A GLANCE&lt;/p&gt;

&lt;p&gt;KV and recurrent cache. Nine MLA layers grow with the window while 63 KDA layers hold fixed state, and both get budgeted per request. The risk is a scheduler that sizes one cache and silently overcommits memory on the other.&lt;/p&gt;

&lt;p&gt;Batch size one. Eight of 512 experts are active while all 560B stays resident. The risk is cheap per token becoming brutal per idle GPU when the batch never fills.&lt;/p&gt;

&lt;p&gt;Long context recall. Full fidelity on 9 layers, compressed state on 63. The risk is rare tokens getting mangled exactly where clinical text is densest.&lt;/p&gt;

&lt;p&gt;Quantization and MXFP4. An MXFP4 checkpoint ships alongside FP8 and BF16. The risk is that the benchmark deltas land on the rare edge cases you care about.&lt;/p&gt;

&lt;p&gt;Zero pipe characters left in the file, 1,526 words, YAML still valid, snippet still parses. Nothing sent, file is updated and waiting.&lt;/p&gt;

&lt;p&gt;THE 7 TO 1 RULE&lt;/p&gt;

&lt;p&gt;Name the thing so you can argue about it. In a hybrid stack, the ratio of linear to full attention layers is the dial that trades recall fidelity against context economics. Three questions decide where your ratio belongs.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What fraction of your tasks need true global attention, meaning an answer that depends on one line 400K tokens back? Evidence synthesis does. Support chat does not.&lt;/li&gt;
&lt;li&gt;What does the routed expert count imply for your batch sizes? Eight of 512 is cheap per token and brutal at batch size one: the weights stay resident while the active slice moves.&lt;/li&gt;
&lt;li&gt;Which of your tasks tolerate linear attention's recall ceiling? Rare token retrieval breaks first, and medical records are full of rare tokens.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The ordering rule, quotable in a design review: pick the ratio from the failure you can measure, not from the card you can copy. If your eval cannot tell a miss at 400K from a miss at 4K, leave the layer mix alone.&lt;/p&gt;

&lt;p&gt;WHAT BREAKS FIRST&lt;/p&gt;

&lt;p&gt;Rare token recall at depth. A compressed state is a summary of everything it has seen, and summaries round. A drug name that appears once in a 300K token chart, a dosage of 0.5 where the note said 5, a lab unit that flips between mg and mcg, all three are the tokens the 63 linear layers are least likely to hand back intact. The card says it plainly: a 1M window is capacity, not a guarantee that every relevant fact is retrieved.&lt;/p&gt;

&lt;p&gt;Agentic coding and CLI loops. 26.5 on Terminal-Bench 4.0 against 67.2 for the best model on that row. In production your build and repair loop stalls on the tool call sequence, not on the reasoning, and a stalled loop burns the same GPU hours as a wrong answer.&lt;/p&gt;

&lt;p&gt;Benchmark contamination. MedQA has sat in the training mix of every serious model for three years, and a top row on it tells you less than the card admits. When a benchmark score is the only evidence in your model selection document, you have a marketing document.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open config.json, not the card. Confirm &lt;code&gt;kv_lora_rank&lt;/code&gt; is 512 and &lt;code&gt;num_hidden_layers&lt;/code&gt; is 72, and note that &lt;code&gt;max_position_embeddings&lt;/code&gt; reads 262,144 while the card claims 1M. Test the number your stack actually honors.&lt;/li&gt;
&lt;li&gt;Run a needle in a haystack test at your real window length, then a multi-hop variant where the answer needs two facts that sit 200K tokens apart. On your records, not the vendor's examples.&lt;/li&gt;
&lt;li&gt;Measure time to first token and time per output token under realistic concurrency with the cache alignment flags on, then again with them off. A hybrid stack's second cache shows up as a memory ceiling long before it shows up as latency.&lt;/li&gt;
&lt;li&gt;Benchmark MXFP4 against FP8 and BF16 on your own edge cases: rare drugs, conflicting lab values, unit conversions. A 4-bit medical model is a different model.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;If a medical vertical just got a 560B open weight model under an MIT license and your industry got another API wrapper, what exactly is your moat?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That ratio is the input. The cache policy is the decision.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The next read is &lt;a href="https://articles.phantom-byte.com/the-1m-context-mirage-what-indexshare-actually-delivers.html" rel="noopener noreferrer"&gt;how the 1M context mirage actually gets paid for&lt;/a&gt;. Note #102 takes GLM-5.2 at 1M tokens, where IndexShare cuts per-token FLOPs by 2.9 times, and an MTP change lifts speculative decoding acceptance by up to 20 percent. Same problem, solved with a shared indexer instead of a layer budget.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>python</category>
      <category>architecture</category>
    </item>
    <item>
      <title>What Google's Workspace MCP Rollout Actually Breaks for AI Agents</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/what-googles-workspace-mcp-rollout-actually-breaks-for-ai-agents-500p</link>
      <guid>https://dev.to/phantom-byte/what-googles-workspace-mcp-rollout-actually-breaks-for-ai-agents-500p</guid>
      <description>&lt;p&gt;February 1, 2027. Circle it.&lt;/p&gt;

&lt;p&gt;From that date, any tool that is an AI agent, or is driven by one, has to reach Gmail, Drive, Calendar and the rest of Google Workspace through Google's own MCP servers. Stay on REST and you get no error. You get Standard-tier quota, whatever tier you paid for.&lt;/p&gt;

&lt;p&gt;Google shipped the eight servers and the terms addendum on November 24, 2026. Then the tool list landed, and the Gmail server cannot send email.&lt;/p&gt;

&lt;p&gt;That is not a bug report. That is the shipped contract.&lt;/p&gt;

&lt;p&gt;TWO DATES, NOT ONE CLIFF&lt;/p&gt;

&lt;p&gt;Engineers keep flattening this into one billing cliff on February 1. It is not. February 1 moves your transport. April 1 moves your bill.&lt;/p&gt;

&lt;p&gt;February 1 is the mandate: agent-driven tools route through the MCP servers or fall to Standard-tier caps. April 1, 2027 is when the broader tiering rollout finishes and Scaled-tier billing and enforcement land. Between the two you sit on the MCP path at Standard-tier allowances, which is where a demo that worked becomes a pager alert, because work that never counted against a cap now counts.&lt;/p&gt;

&lt;p&gt;The arithmetic decides whether that hurts. Google publishes no per-method weight on the addendum page, so pull the weight from your console and run your own traffic through it. Forty users doing twelve mail searches a day is 480 searches. At a five-unit weight that is 2,400 units, and a 5,000 unit daily cap leaves 2,600 for reads, drafts, labels and every retry. Add one loop that re-reads a thread every thirty seconds and the day is spent by mid afternoon, with no code change and nothing in the logs.&lt;/p&gt;

&lt;p&gt;One trap before you debug anything: the OAuth client has to carry the agent designation. A client registered as desktop or service account can be refused on the MCP path, and the 403 reads like a permissions problem when it is an eligibility problem.&lt;/p&gt;

&lt;p&gt;THE SEND HOLE&lt;/p&gt;

&lt;p&gt;The Gmail server can search mail, read a thread, create a draft and apply labels. It cannot send, reply or forward, and it cannot edit a draft after creating it, because those tools sit behind partner access that is not generally available.&lt;/p&gt;

&lt;p&gt;Coverage across the suite says the same thing. Docs, Slides and Tasks land close to REST parity. Gmail and Drive are thin, and thin exactly where money and reputation live. Uneven coverage across eight servers reads as intent, not an unfinished sprint.&lt;/p&gt;

&lt;p&gt;The loop you can build is draft, then a human presses send. The engineering problem is making the draft good enough to approve in four seconds.&lt;/p&gt;

&lt;p&gt;HOW TO BUILD THE FOUR SECOND APPROVAL&lt;/p&gt;

&lt;p&gt;Human in the loop is not a checkbox. It is a queue with failure modes, and four of them matter.&lt;/p&gt;

&lt;p&gt;An idempotency key on draft creation, derived from the message being answered plus a content hash. A retried call that mints a second draft is how one recipient gets the same email twice.&lt;/p&gt;

&lt;p&gt;Draft versioning, because a draft cannot be edited in place. An edit means a new draft, the old one labelled superseded, and the approval record repointed at the new id. Without that mapping a human approves one body and the queue submits another.&lt;/p&gt;

&lt;p&gt;A recipient and diff check in the approval view: the exact To, Cc and Bcc lines the queue will submit, plus a diff against the previous version. Most bad sends are a wrong thread, not a wrong paragraph.&lt;/p&gt;

&lt;p&gt;An audit row per dispatch: who approved, when, which draft id and version, and which tool call produced it. That row is the only proof a human saw the text.&lt;/p&gt;

&lt;p&gt;Here is the boundary as code, illustrative rather than copied from any Google document:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative dispatch policy, not Google's API surface.&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;enum&lt;/span&gt; &lt;span class="nf"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Enum&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Dispatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Enum&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="no"&gt;DRAFT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"draft"&lt;/span&gt;    &lt;span class="c1"&gt;# agent writes, human sends&lt;/span&gt;
    &lt;span class="no"&gt;QUEUE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"queue"&lt;/span&gt;    &lt;span class="c1"&gt;# out of band approval, agent never sends&lt;/span&gt;

&lt;span class="no"&gt;POLICY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"transport"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;# required for agent calls from 2027-02-01&lt;/span&gt;
    &lt;span class="s2"&gt;"oauth_client_type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"agent"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;# without the flag the MCP path rejects you&lt;/span&gt;
    &lt;span class="s2"&gt;"mail_dispatch"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Dispatch&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;QUEUE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"allowlist"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"search"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"read_thread"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"create_draft"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;dispatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;draft&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nc"&gt;Dispatch&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;draft&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"tool"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;POLICY&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"allowlist"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;PermissionError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"tool not in allowlist"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="no"&gt;POLICY&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"mail_dispatch"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The return type is the architecture. There is no branch that sends, because there is no send tool, and an out-of-band queue is the only thing a failed send attempt can escalate to.&lt;/p&gt;

&lt;p&gt;THE 30 DAY MEMORY CAP&lt;/p&gt;

&lt;p&gt;The addendum defines Google Technical Information broadly enough to include vector embeddings, memory indexes and user profiles. Retention is capped at 30 days, and deletion is required when a user disconnects.&lt;/p&gt;

&lt;p&gt;Two patterns survive that.&lt;/p&gt;

&lt;p&gt;TTL eviction with rolling episodic summaries: every Workspace-derived record carries an expiry stamp at write time, a nightly job purges what expired, and what survives is a short summary the agent owns. The agent remembers a contract renews in March without retaining the contract.&lt;/p&gt;

&lt;p&gt;Strip and rehome: pull the domain fact out of the Workspace text, redact names and bodies, and store the residue as your own state. The trap is calling that residue "derived," because it is derived and the cap follows it.&lt;/p&gt;

&lt;p&gt;The check itself, illustrative again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative retention gate, not Google documentation.&lt;/span&gt;
&lt;span class="no"&gt;DAY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;86400&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;partition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;keep&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;purge&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;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;purge&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"written_at"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;DAY&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;keep&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;keep&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;purge&lt;/span&gt;

&lt;span class="n"&gt;live&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;expired&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;partition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;index_rows&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;summaries&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;episodic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;live&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# agent owns the summary, not the mail&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nb"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"workspace"&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;expired&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# the purge is provable&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That assert is the step teams skip. A purge that runs correctly looks exactly like a purge that had nothing to delete, and proving what was in scope is the only way to tell them apart.&lt;/p&gt;

&lt;p&gt;A parallel rule bans training, fine-tuning, evals and distillation on Workspace data outright. An eval harness replaying real user mail has been non-compliant since November 24.&lt;/p&gt;

&lt;p&gt;THE SCHEMA BLOAT TAX&lt;/p&gt;

&lt;p&gt;Eight servers means dozens of tools, and every tool definition is tokens in the context window before the first user message. A suite-wide load costs twice: the agent pays per call for definitions it will never invoke, and it picks the wrong tool more often because the descriptions overlap.&lt;/p&gt;

&lt;p&gt;Scope servers per task. A calendar agent does not need Docs. Expose tools lazily through a router that reads the intent, loads two or three definitions, and hides the other forty. Keep an explicit allowlist beside it, because an agent that can see a tool will eventually call it.&lt;/p&gt;

&lt;p&gt;THE THREE QUESTION AUDIT&lt;/p&gt;

&lt;p&gt;Answer in order. The expensive answer comes last.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Which agents call Workspace over REST today, and does each client carry the agent designation?&lt;/li&gt;
&lt;li&gt;What breaks first for each: the February 1 transport, the April 1 bill, the send capability, or the retention cap?&lt;/li&gt;
&lt;li&gt;Which indexes, embeddings or memory stores hold Workspace-derived data older than 30 days?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then sort each agent into a pile.&lt;/p&gt;

&lt;p&gt;KEEP: a non-AI workload on its own OAuth client.&lt;/p&gt;

&lt;p&gt;MIGRATE: an agent with no send requirement. Port it now, while the old path still works.&lt;/p&gt;

&lt;p&gt;REDESIGN: anything that sends mail through an API call, or needs Workspace-derived memory to outlive a month.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;p&gt;Inventory every agent and script touching Gmail, Drive, Calendar, Docs, Sheets, Slides, Tasks or Chat, with its transport and its OAuth client.&lt;/p&gt;

&lt;p&gt;Flag every path that sends, replies or forwards, and route each to an approval queue.&lt;/p&gt;

&lt;p&gt;Age every index, memory store and profile derived from Workspace data, and write the purge assertion.&lt;/p&gt;

&lt;p&gt;Pull Workspace-derived data out of eval and fine-tune pipelines.&lt;/p&gt;

&lt;p&gt;Put February 1 and April 1, 2027 on the calendar with a 30 day buffer, so the port lands while the old path still works.&lt;/p&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;Google just told every agent builder on earth that the front door to Workspace is an MCP server it controls, with the send button removed and a 30 day memory limit bolted on. When the platform owns the control plane, who exactly is building the product, you or them?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The mandate names the door. Your agent's memory picks a different one.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A contract says where agents may go. It says nothing about which server an agent reaches for while filling in a config from memory, and stale weights plus thin SDKs are the pair that turns a mandatory migration into an incident, because an agent that hallucinates a retired endpoint against a restrictive server fails loudly, and against a permissive one it fails quietly. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://articles.phantom-byte.com/deprecated-mcp-servers-agent-install-conformance-stack.html" rel="noopener noreferrer"&gt;The retired-server note covers Note #242&lt;/a&gt;, where Glow Labs read coding agent transcripts and found 98 percent of deprecated MCP server installs came straight from training data, while MCPGuard logged 13 and 19 spec gaps in the SDKs underneath. The allowlist is what keeps that gap from becoming a rejected call you cannot explain.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>google</category>
      <category>api</category>
    </item>
    <item>
      <title>Why Long LLM Reasoning Chains Run Out of Memory (And the Constant-Size State Fix)</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Wed, 25 Nov 2026 14:01:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/why-long-llm-reasoning-chains-run-out-of-memory-and-the-constant-size-state-fix-1m37</link>
      <guid>https://dev.to/phantom-byte/why-long-llm-reasoning-chains-run-out-of-memory-and-the-constant-size-state-fix-1m37</guid>
      <description>&lt;p&gt;You have watched it happen. An agent run that was fine at step 40 is thrashing memory and crawling at step 900, and nothing about the model changed except the transcript it keeps re-reading.&lt;/p&gt;

&lt;p&gt;Every reasoning step re-attends to every token already written. That is the KV cache doing its job, and it is why long chains are memory bound, not compute bound. The fix on the table this month is not a better eviction policy. It is a paper asking whether the model should attend to the transcript at all: if the problem is first order Markovian, the next step needs a sufficient state, not every earlier token.&lt;/p&gt;

&lt;p&gt;Read it as a design paradigm, not a results table. Nobody has replicated it, and the preprint ships an evaluation protocol instead of a speedup number.&lt;/p&gt;

&lt;p&gt;THE CACHE IS THE WRONG SHAPE&lt;/p&gt;

&lt;p&gt;The KV cache grows linearly with generated tokens. On a chat turn that is noise. On two thousand reasoning steps it is the dominant cost, and the constraint stops being FLOPs and becomes memory bandwidth.&lt;/p&gt;

&lt;p&gt;Eviction policies manage the symptom. Turn boundaries, sliding windows, prefix reuse, all accept that history must be attended and try to pay less for it. The premise is what breaks. Algebra, planning, and most tool loops are closer to a Markov chain than to open ended writing, so the next step needs the state, not a replay of how the state got there.&lt;/p&gt;

&lt;p&gt;WHAT A MARKOVIAN STATE INTERFACE IS&lt;/p&gt;

&lt;p&gt;At the cache level, history dependent KV storage becomes a state transfer of fixed width, and that width does not scale with reasoning steps.&lt;/p&gt;

&lt;p&gt;At the learning level, long chain prediction becomes independently trainable one step transitions. You train the model to make one transition correctly and let the state carry forward what matters.&lt;/p&gt;

&lt;p&gt;Four losses police the bottleneck, and each one has a failure symptom you have already met.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A state bottleneck forces compression into the carried state. Symptom: state dimensions creep up on every retrain until the memory saving is gone and you own a cache with extra steps.&lt;/li&gt;
&lt;li&gt;A distillation loss matches a full history teacher. Symptom: the state is small but arbitrary, so accuracy holds at step 5 and decays by step 300.&lt;/li&gt;
&lt;li&gt;An invariance loss drops detail the next step does not need. Symptom: forgetting, where a constraint set on turn one or a tool result from twenty steps back is classified as irrelevant and vanishes.&lt;/li&gt;
&lt;li&gt;A drift consistency loss keeps the state faithful as steps accumulate. Symptom: a model that argues confidently after it has lost the thread, wrong at step 400 with no error signal.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is the shape of that interface as code, illustrative and not the paper's implementation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# illustrative state interface, not the paper's implementation&lt;/span&gt;
&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;init_state&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;problem&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                 &lt;span class="c1"&gt;# fixed width, no transcript&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;depth&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;budget&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;depth_for&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;difficulty&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;    &lt;span class="c1"&gt;# inner loop, per transition&lt;/span&gt;
    &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;transition&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;depth&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;depth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# one step, shared weights&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;drift&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;measure&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;policy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tolerance&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reproject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;anchor&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;    &lt;span class="c1"&gt;# rebind, do not grow the cache&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The line that matters is &lt;code&gt;drift.measure&lt;/code&gt;. Everything above it is a claim about compression. That check is all that separates a bounded state from a model that quietly degrades at step 400 while reporting higher throughput.&lt;/p&gt;

&lt;p&gt;THE DUAL LOOP AND WHERE THE STATE LIVES&lt;/p&gt;

&lt;p&gt;The two loops map onto two lines of that snippet.&lt;/p&gt;

&lt;p&gt;The outer loop advances the state one transition at a time. The inner loop is &lt;code&gt;depth_for&lt;/code&gt;, and it is how a fixed width state buys accuracy without buying width: hard transitions iterate through the same shared weights more times, easy transitions fewer. A standard transformer charges the same per token for a hard step and an easy one. Here compute per step is a dial.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;reproject&lt;/code&gt; is the drift correction. When the check trips, the state is re-derived from the last trusted checkpoint instead of compounding the error for another thousand steps.&lt;/p&gt;

&lt;p&gt;Now the part the marketing version skips: where does a three region cache live if the state is Markovian? Nothing runs on a state tensor alone. The regions are the carried state, a short window of recent tokens the current transition reads, and a scratch region for the step in flight. The first is fixed in width, the second is bounded by the step rather than the chain, the third is discarded when the transition ends. What decouples from chain length is the total, never each part alone.&lt;/p&gt;

&lt;p&gt;That is the trade-off. You are not deleting the cache, you are capping it, and the cap is a hyperparameter with an accuracy cost behind it. Step relative positions are the other half: positions count from the current step, so the model never needs an absolute index into a transcript it cannot see. Truncated backprop keeps training tractable, and a branch checkpoint stores a state instead of a cache, which is what makes parallel rollouts affordable.&lt;/p&gt;

&lt;p&gt;WHAT TO MEASURE BEFORE YOU BELIEVE IT&lt;/p&gt;

&lt;p&gt;The arithmetic makes the claim concrete. A 32 layer model with 32 heads at head dimension 128 stores 2 x 32 x 32 x 128 values per token in fp16, which is 512 KiB of KV per token. Run 2,000 reasoning steps at 512 tokens each and you hold just over a million tokens, near 512 GiB of cache for one chain. A bounded state holds the same small tensor at step 2 and at step 2,000. That is arithmetic on a stated configuration, not a measurement.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Memory per reasoning step should be flat. If it grows with step count, the interface is a wrapper over a cache that still grows.&lt;/li&gt;
&lt;li&gt;Branch checkpoint size. Five parallel rollouts should cost five states, not five caches.&lt;/li&gt;
&lt;li&gt;Drift under truncated backprop. Check fidelity at step 50, 200, and 1000, not at step 8.&lt;/li&gt;
&lt;li&gt;Accuracy against a full KV baseline at equal token budget, or the comparison is meaningless.&lt;/li&gt;
&lt;li&gt;KV gigabytes per request in your serving stack. Your dashboard shows it, and this architecture exists to break it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;WHY THIS IS THE COMMON CASE&lt;/p&gt;

&lt;p&gt;Google processed 9.7 trillion tokens a month in May 2024 and 3.2 quadrillion in May 2026, a 330 fold increase, with 560 billion dollars of hyperscaler capex behind it in the first three quarters of 2026. Most of that volume is agents looping, checking and retrying, which is the workload shape this design targets.&lt;/p&gt;

&lt;p&gt;A linear memory term per request stops being an inefficiency and becomes a capacity plan. Load is uneven, so a flat curve buys headroom at peak, not on average.&lt;/p&gt;

&lt;p&gt;THE SOURCE&lt;/p&gt;

&lt;p&gt;Specialized Large Language Models for Markovian Reasoning: Structural Cache Compression, Transition Pretraining, and Dual-Loop Transformers, by Haibin Tong, Liangliang Xin, Yamei Zhu, and Jiang Yu, arXiv 2611.28285, cs.AI, 21 pages, submitted 20 November 2026. It is a preprint with no independent replication and no reported benchmark, which is why the measurement section above is the part to take seriously.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Profile one real long chain workload and plot KV growth per step, not just end to end latency.&lt;/li&gt;
&lt;li&gt;Map each loss to a failure you have already seen, then watch which one shows up in eval before you ship.&lt;/li&gt;
&lt;li&gt;Add memory per reasoning step to your eval dashboard next to tokens per second.&lt;/li&gt;
&lt;li&gt;Ask whether the endpoint exposes a bounded state reasoning mode, and what the memory curve is per thousand reasoning tokens.&lt;/li&gt;
&lt;li&gt;Re-read the turn boundary work with this frame. Eviction manages the symptom. A state interface removes it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;If your reasoning cost curve is linear in chain length today, what exactly are you pricing into your next capacity plan when your competitor's curve goes flat and yours does not?&lt;/p&gt;

&lt;p&gt;If you have profile data, reply with the step count where your chains start to degrade. A real number beats any benchmark in this thread.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The diagnosis is the input. The interface is the decision.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://articles.phantom-byte.com/your-agents-kv-cache-dies-at-every-turn-boundary.html" rel="noopener noreferrer"&gt;Note #150&lt;/a&gt; measured the same problem from the trace side. GitHub Copilot's traces across 3.2 million users, 13 million sessions, 761 million LLM calls, and 95 trillion tokens put KV hit rates at 90% within a turn and 55% across turn boundaries. &lt;a href="https://articles.phantom-byte.com/your-agents-kv-cache-dies-at-every-turn-boundary.html" rel="noopener noreferrer"&gt;Those turn boundary numbers&lt;/a&gt; are the gap between your cost model and your bill.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>architecture</category>
      <category>performance</category>
    </item>
    <item>
      <title>Why Browser Agent Evals Fail on the Live Web (and How the Mirror Dimension Fixes It)</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:01:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/why-browser-agent-evals-fail-on-the-live-web-and-how-the-mirror-dimension-fixes-it-2bl8</link>
      <guid>https://dev.to/phantom-byte/why-browser-agent-evals-fail-on-the-live-web-and-how-the-mirror-dimension-fixes-it-2bl8</guid>
      <description>&lt;p&gt;Google built a fake internet. Not a benchmark with twelve canned pages: thousands of simulated websites built around everyday user journeys, carrying the components and behaviors of the real thing, from shopping checkouts and social feeds to recipe blogs and marketplaces. Chrome's agents carry out multi-step tasks inside it while hidden prompt injection attacks fire at them. They call it the Mirror Dimension, and the reason it exists is that the real web is unusable as a training ground.&lt;/p&gt;

&lt;p&gt;If your agent has never met a hostile page it did not expect, it is not trained. It is demoed.&lt;/p&gt;

&lt;p&gt;THE REAL WEB FAILS AS A TEST HARNESS&lt;/p&gt;

&lt;p&gt;Google's own requirement is blunt: an evaluation has to be safe, reliable and repeatable, with the side effects of one trajectory never persisting into the next. The live web gives you none of the three. Pages change between runs, a checkout can charge a real card, and you cannot A/B an agent against a production bank. The failure is not only safety, it is measurement. You cannot score what you cannot control.&lt;/p&gt;

&lt;p&gt;Then there is the second problem, the one most teams never write down. A model that suspects it is being tested behaves differently. Google names this eval awareness and treats it as an engineering constraint rather than a curiosity, because a sandbox URL that reads &lt;code&gt;evals/www.youtube.com&lt;/code&gt; tells the agent it is standing in a lab.&lt;/p&gt;

&lt;p&gt;SAME URL, DIFFERENT DIMENSION&lt;/p&gt;

&lt;p&gt;The fix is routing, not page design. The agent navigates to the real youtube.com. A headless Chrome instance inside a gVisor sandbox captures the connection before it reaches external DNS and hands it to a local proxy that serves the synthetic copy. Chrome's own TLS checks would normally kill that man in the middle, so the proxy mints leaf certificates on the fly that chain to a root authority installed only inside the sandbox. To the agent the site is real, the padlock is real and the address bar is clean.&lt;/p&gt;

&lt;p&gt;The scoring underneath is where teams go wrong. Here is the shape of an eval run, illustrative and not Google's harness:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;RUN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"surface"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"checkout"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;          &lt;span class="c1"&gt;# one replicated site, not the whole web&lt;/span&gt;
    &lt;span class="s2"&gt;"seed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4417&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                   &lt;span class="c1"&gt;# fixed state, so two runs are comparable&lt;/span&gt;
    &lt;span class="s2"&gt;"injections"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"hidden_div"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"aria_label"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"tool_response"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"score"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"task_complete"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"injection_followed"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;# injection_followed is read off the browser trace, never a string match:&lt;/span&gt;
&lt;span class="c1"&gt;# an unauthorized state change or outbound request that only the&lt;/span&gt;
&lt;span class="c1"&gt;# injected payload could have caused.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two entries in &lt;code&gt;score&lt;/code&gt;, never one. &lt;code&gt;task_complete&lt;/code&gt; alone is the field that lets an agent finish the checkout after obeying a hidden instruction and still get filed as a pass. &lt;code&gt;injection_followed&lt;/code&gt; only means something if it is wired to the trace, because a payload the agent ignored and a payload it obeyed can leave the visible page looking identical.&lt;/p&gt;

&lt;p&gt;THE THREE DECISIONS THAT MATTER&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fidelity is a feature, not polish. Sites carry real components and behaviors, down to promo code validation and populated social feeds. A half-built page leaks the test.&lt;/li&gt;
&lt;li&gt;Adversarial scoring is hidden and layered. Payloads land in text, images, ARIA labels and WebMCP tool responses, and the payload id rides in an &lt;code&gt;X-Sandbox-Injection-Key&lt;/code&gt; request header so the visible URL stays pristine. Their pipeline produces more than 1,000 attack candidates per security engineer per day, over 30 times manual red-teaming.&lt;/li&gt;
&lt;li&gt;Agents build the world the agent trains in. A research agent writes the site spec, a builder agent writes the HTML and JavaScript, and critic agents check ARIA semantics, form validation, console errors and layout through Chrome DevTools MCP. An agent that is perceptive enough to spot a fake needs a fake built to production standards.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you keep one line from this: the environment has to be hostile before it is pretty. A faithful site with no injection suite measures clicks. An injection suite on a site that feels fake measures nothing at all.&lt;/p&gt;

&lt;p&gt;WHAT A SMALL TEAM CAN COPY&lt;/p&gt;

&lt;p&gt;You do not need Google's budget. You need the pattern, and it fits in a week.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;List the three web surfaces your agent touches most, then spec a minimal replica of each with fixed seed data.&lt;/li&gt;
&lt;li&gt;Add one hidden injection per replica and report completion and injection resistance as two separate numbers.&lt;/li&gt;
&lt;li&gt;Test for eval awareness: label one run as a test and compare behavior. Watch for extra refusal caveats, a pause before a click, or a tool call skipped only in the labeled run. If the behavior moves, your eval is measuring the label.&lt;/li&gt;
&lt;li&gt;Put the handoff checkpoint in the loop and score it. Chrome AI security engineer Charles Qian says the agents have started to show judgment about what information a task actually needs and when to hand control back to the user for confirmation. Make that a measured event instead of a hope.&lt;/li&gt;
&lt;li&gt;Stop publishing a task success rate with no injection number beside it. That single number is why agent demos look better than agent deployments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;Your agent passed every eval you wrote for it. Would it survive the internet you actually ship it into, or did you just teach it to pass your test?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A passing eval is not a safety claim. It is a claim about your eval.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If the instrument itself is your next question, read &lt;a href="https://articles.phantom-byte.com/agent-safety-benchmark-audit-r-judge.html" rel="noopener noreferrer"&gt;the audit where doing nothing beats five of twenty-one models&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Note #149 takes R-Judge and AgentHarm apart, shows an always-positive policy scoring 0.690 F1 against real models, and why capability correlates at +0.60 with task success while correlating at -0.44 with misalignment safety. Build the environment first. Then check that the score you put inside it means anything.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>security</category>
      <category>testing</category>
    </item>
    <item>
      <title>Why Your Fine-Tuning GPU Math Misses Wall Clock</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/phantom-byte/why-your-fine-tuning-gpu-math-misses-wall-clock-1of9</link>
      <guid>https://dev.to/phantom-byte/why-your-fine-tuning-gpu-math-misses-wall-clock-1of9</guid>
      <description>&lt;p&gt;Nine hours, the FLOP math said. The job was still running the next afternoon, and every run queued behind it slipped with it.&lt;/p&gt;

&lt;p&gt;A preview of Predicting End-to-End Fine-Tuning Time for Generative Language Models, published this week by the Dharma-AI team on the Hugging Face blog and due on arXiv, measured 272 production supervised fine-tuning runs on shared H200 clusters, about 7,382 GPU-hours. The standard compute-only estimate explains 31% of the variance in wall-clock time, with a mean absolute error of 12.41 hours on jobs that average 23.43 hours.&lt;/p&gt;

&lt;p&gt;The math is not wrong. The model is.&lt;/p&gt;

&lt;p&gt;THE ESTIMATE EVERYONE USES&lt;/p&gt;

&lt;p&gt;You know the formula. Six times parameter count times training tokens, divided by GPU count, peak throughput, and model FLOPs utilization. That last term is the problem. MFU is not a property of your cluster. It is an outcome of your job, and it is not known until the job has run.&lt;/p&gt;

&lt;p&gt;The authors swept MFU from 25% to 65%. The best fit, 30%, still left a mean error above 12 hours. A far more detailed analytical model, one that accounts for memory traffic and inter-device communication, landed at a median of 11% of observed wall-clock time. That is not a rounding error. That is a different number.&lt;/p&gt;

&lt;p&gt;Then they tried the cheap version of learning the correction. Gradient boosting over features that exist before dispatch: configuration, dataset sizes, model identifiers, GPU allocation, nothing from runtime logs. CatBoost reached an R2 of 0.98, a mean absolute error of 1.71 hours and a median error of 0.51 hours across five stratified folds. Linear regression on the same features managed 7.52 hours. The relationship between configuration and duration is not linear, and it is not arithmetic.&lt;/p&gt;

&lt;p&gt;WHERE THE MISSING HOURS LIVE&lt;/p&gt;

&lt;p&gt;The feature importance list is the part to read twice. Total evaluation samples ranked first, above parameter count.&lt;/p&gt;

&lt;p&gt;Number of trainable parameters came second, then evaluation batch percentage, total parameters, and GPU count times training batch percentage. Checkpoint volume sat close behind. Evaluation cadence and checkpoint policy are choices you make in a config file, and they move the clock more than most teams expect.&lt;/p&gt;

&lt;p&gt;The rest of the gap is the job around the loop. Environment setup, model download, tokenization, periodic evaluation passes, checkpoint uploads, the final push to object storage, contention with every other tenant. None of it scales linearly with GPU count, and none of it appears in a FLOP count.&lt;/p&gt;

&lt;p&gt;The predictor has limits worth naming. Every run was supervised fine-tuning on H200s, up to 15 billion parameters. Above 60 hours the errors widen: 13 runs, a median miss of 5.19 hours, a 90th percentile of 18.51 hours. It is a scheduler's estimate, not a guarantee.&lt;/p&gt;

&lt;p&gt;THE DECISION RULE&lt;/p&gt;

&lt;p&gt;Use FLOPs for relative comparison inside one pipeline. Never for absolute booking.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Compare two configurations with the same formula on the same data. The ratio is usually informative even when the absolute number is fiction.&lt;/li&gt;
&lt;li&gt;Never put a FLOP number on a calendar. It is not a duration, it is a lower bound wearing a costume.&lt;/li&gt;
&lt;li&gt;Book from measured wall clock per task shape: model size band, GPU count, method, evaluation cadence.&lt;/li&gt;
&lt;li&gt;Pad by the 90th percentile of your estimate-to-actual ratio, not the mean. Mean padding means half your jobs still run late.&lt;/li&gt;
&lt;li&gt;Below about 20 runs for a shape, you have no distribution. Book double and stop describing it as a prediction.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The line for your design review: an estimate without an error bar is a wish, and your queue is where wishes go to die.&lt;/p&gt;

&lt;p&gt;THE PADDING YOU SHOULD ALREADY BE SHIPPING&lt;/p&gt;

&lt;p&gt;Illustrative, not the paper's code, but this is the shape that works with logs you already have.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# illustrative: book wall clock from measured error, not FLOPs&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;book&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;history&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;flop_hours&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;                        &lt;span class="c1"&gt;# nothing to scale, refuse the booking&lt;/span&gt;
    &lt;span class="n"&gt;ratios&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;actual&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;flop_hours&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;history&lt;/span&gt;
              &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;shape&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;shape&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;flop_hours&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ratios&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;flop_hours&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;2.0&lt;/span&gt;        &lt;span class="c1"&gt;# too few runs to be precisely wrong&lt;/span&gt;
    &lt;span class="n"&gt;ratios&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sort&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;p90&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;ratios&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.9&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ratios&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# empirical percentile, floor index&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;flop_hours&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p90&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three lines carry the argument. The guard keeps a zero or missing FLOP figure from silently producing a zero hour booking. The &lt;code&gt;p90&lt;/code&gt; line turns the number you already compute into the number your scheduler can use, and it improves every time a job finishes. The 20 is the honesty gate.&lt;/p&gt;

&lt;p&gt;One nuance for the systems people: that percentile is empirical, taken on the ratio distribution with a floor index rather than linear interpolation between neighboring values. At twenty runs the two differ by less than the spread of the data, which is why the floor is fine here and why the output is a booking estimate and not a confidence bound.&lt;/p&gt;

&lt;p&gt;CAPACITY IS THE REAL BILL&lt;/p&gt;

&lt;p&gt;On a shared cluster, a mispredicted hour is either stranded hardware or queue debt for every job behind it. At 12.41 hours of mean error on a 23.43 hour workload, half a machine-day goes unplanned, and it never shows up on a utilization dashboard.&lt;/p&gt;

&lt;p&gt;Learned predictors are not magic either. They are a way of admitting that job duration is a function of choices you make when you write the training config and that you have been ignoring those choices because a closed-form formula gave you permission to.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pull your last 20 fine-tuning runs and compute FLOP estimate against actual wall clock. It is already in your logs.&lt;/li&gt;
&lt;li&gt;Log the non-arithmetic buckets this week: eval time, checkpoint I/O, setup, queue wait.&lt;/li&gt;
&lt;li&gt;Add a padding factor to queue bookings and stop booking raw FLOP time.&lt;/li&gt;
&lt;li&gt;Track prediction error per task shape, not one global number. The shape is what your scheduler sees.&lt;/li&gt;
&lt;li&gt;Recount the padding after every batch. Twenty new runs beats a clever formula.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;THE SOURCE&lt;/p&gt;

&lt;p&gt;The paper preview is "Why your fine-tuning job takes longer than the FLOPs say" by Bruno Duarte, Gabriel Pimenta de Freitas Cardoso, Isis F Carvalho, Breno de Almeida Beleza and Felipe Lima of Dharma-AI, on the Hugging Face blog, November 18, 2026, previewing Predicting End-to-End Fine-Tuning Time for Generative Language Models.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time" rel="noopener noreferrer"&gt;https://huggingface.co/blog/Dharma-AI/predicting-fine-tuning-time&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full paper was not yet on arXiv when this was written, which is why the link goes to the preview and not the PDF. Every figure above comes from that preview.&lt;/p&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;If your schedule is built on arithmetic that ignores most of the clock, how much of your GPU bill is scheduled work, and how much is organized waiting?&lt;/p&gt;

&lt;p&gt;That estimate is the input. Allocation is the decision.&lt;/p&gt;

&lt;p&gt;If you set the queue policy, the next read is the allocator itself. &lt;a href="https://articles.phantom-byte.com/your-gpu-scheduler-is-leaving-33-points-of-utilization-on-the-table.html" rel="noopener noreferrer"&gt;Note #164: your GPU scheduler is your real capacity&lt;/a&gt;; this same paper shows why training and real-time inference cannot share a FIFO pool, why a fixed reservation strands half a cluster at 51.6% and 53.6%, and the constraint-aware ordering that reclaims it. Batch jobs into contiguous blocks, elastic capacity from the gaps.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>devops</category>
      <category>performance</category>
    </item>
    <item>
      <title>27,280 Agent Runs Prove Your Harness Matters More Than Your Model</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Wed, 18 Nov 2026 00:34:45 +0000</pubDate>
      <link>https://dev.to/phantom-byte/27280-agent-runs-prove-your-harness-matters-more-than-your-model-57c5</link>
      <guid>https://dev.to/phantom-byte/27280-agent-runs-prove-your-harness-matters-more-than-your-model-57c5</guid>
      <description>&lt;p&gt;27,280 agent runs. 83 billion tokens. 22 harness configurations, 5 models, 62 terminal tasks, 4 attempts each.&lt;/p&gt;

&lt;p&gt;The headline is not which model won. It is that the same harness moved eleven of twenty-two places when the model underneath it changed.&lt;/p&gt;

&lt;p&gt;Codex CLI ranked first on cost per task with GLM-5.3. With Kimi-K3, it ranked sixteenth. If your harness choice came from a launch post, you are running someone else's pair.&lt;/p&gt;

&lt;p&gt;THE EXPERIMENT, IN PLAIN ENGLISH&lt;/p&gt;

&lt;p&gt;FrontierHarness Eval v1.1 ran 22 harness configurations across 5 models on 62 terminal tasks, 4 attempts each: 27,280 runs and 83 billion tokens, 76 times the size of v1.0. The earlier version ranked nine harnesses on one model, where pass rates sat within 17 points and median cost per pass differed by 17 times. The spread needed a second variable.&lt;/p&gt;

&lt;p&gt;A harness is everything around the model that decides what it sees, what it can call, and when it stops: prompt, tool schema, loop, retries, and stop condition. The model is a parameter inside it.&lt;/p&gt;

&lt;p&gt;THE 11-PLACE SWING&lt;/p&gt;

&lt;p&gt;The median harness moved 11 of 22 places by cost per task. Best value means lowest cost per pass, unless another harness costs at most 30 percent more and passes 5 points more often. That picked Codex CLI with GLM-5.3, Pi with GLM-5.3 Flash, ZCode with DeepSeek V4.1 Flash 1017, Oh My Pi with Muse, and Alma with Kimi-K3.&lt;/p&gt;

&lt;p&gt;The extremes are worse. DeepSeek Harness: Creator went from first with Muse to twenty-first with GLM Flash. OpenCode v1 went from first with DeepSeek to thirteenth with Muse. Codex CLI, cheapest per pass overall at $0.937, was twelfth with Muse.&lt;/p&gt;

&lt;p&gt;Reruns do not explain it. Split the attempts in half, and the mean rank correlation is 0.71 within one model, 0.26 across two.&lt;/p&gt;

&lt;p&gt;THE MEASUREMENT THAT LIES&lt;/p&gt;

&lt;p&gt;The model still sets the level. A two-way analysis of variance puts 92.8 percent of the cost spread on the model, 2.3 percent on the harness, 4.9 percent on the pair.&lt;/p&gt;

&lt;p&gt;Hold the model fixed, and the spread is still brutal. The most expensive harness cost 1.8 to 5.0 times as much per task as the cheapest, 1.9 to 4.9 times per pass. One decision, worth several times your inference bill.&lt;/p&gt;

&lt;p&gt;Paying more buys nothing. Cost per task and pass rate correlated from minus 0.39 to plus 0.22. With four of five models, the most expensive harness per pass passed less often than the cheapest.&lt;/p&gt;

&lt;p&gt;Then follow the money. 64.5 percent of total cost went to trials that did not pass, 52.7 percent to failures, and 11.8 percent to timeouts. Your agent is not expensive because it works. It is expensive because it flails.&lt;/p&gt;

&lt;p&gt;WHY THE HARNESS DECIDES&lt;/p&gt;

&lt;p&gt;Four factors were tested against cost per pass. Prompt size did not predict it. Tool count did not. Cache hit rate did not. Steps did, at plus 0.51.&lt;/p&gt;

&lt;p&gt;Every step resends the context, so a trial burned 2.0 to 4.8 million input tokens. mini-SWE-agent had the smallest first request at 882 tokens and still ranked seventeenth of twenty-two at 38 steps per pass. You are not paying for your prompt. You are paying for your loop.&lt;/p&gt;

&lt;p&gt;The five best-value harnesses shared three choices. One shell tool handled 61 to 93 percent of tool calls. Each request only appended to the last, so 91.1 to 94.0 percent of input in passed trials came from cache. They shared a weakness too: about three in four failed runs ended with a confident final answer rather than a timeout, 68 percent with Pi and 82 percent with Codex CLI.&lt;/p&gt;

&lt;p&gt;That is why review became the bottleneck. Writing code stopped being scarce. Trusting what came back is not, and a confident wrong answer on turn forty hands the cost to a human.&lt;/p&gt;

&lt;p&gt;THE SCORECARD TO RUN THIS WEEK&lt;/p&gt;

&lt;p&gt;You cannot copy the leaderboard. Their tasks are not yours, the prices come from one provider, and the ranking moves on the next release.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pull 10 backlog tasks a senior engineer would take half a day on.&lt;/li&gt;
&lt;li&gt;Run 2 or 3 harness and model pairs on all 10, 3 attempts each, defaults.&lt;/li&gt;
&lt;li&gt;Record pass rate per pair.&lt;/li&gt;
&lt;li&gt;Record cost per solved task, not cost per task.&lt;/li&gt;
&lt;li&gt;Record review minutes per pull request and rework rate at seven days.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An illustrative record shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# illustrative scorecard, ten tasks, three attempts each&lt;/span&gt;
&lt;span class="n"&gt;runs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"eval_runs.json"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;solved&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pass"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"rework_hours"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;pair&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;group_by&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;runs&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"harness+model"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;solved&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pair&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="s2"&gt;"$%.2f per solved task"&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"cost_usd"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="s2"&gt;"%.0f review minutes"&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"review_min"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&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 line that matters is &lt;code&gt;r["rework_hours"] &amp;lt; 0.5&lt;/code&gt;. That clause separates a pass your dashboard counts from a pass your team pays for. Set it to zero, and the cheap harness that generates work loses to the expensive one that finishes it.&lt;/p&gt;

&lt;p&gt;Decision rule: keep the pair, not the model. Re-run the eval on every release, because an eleven-place median swing makes last quarter's ranking stale.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;p&gt;Stop benchmarking models in isolation and benchmark pairs on your own tasks. If you cannot name the pair you run in production, you have a habit, not a configuration.&lt;/p&gt;

&lt;p&gt;Add review minutes to the scorecard. A harness that passes 5 points more often and adds 20 minutes per pull request is not better; it is more expensive wearing a better pass rate.&lt;/p&gt;

&lt;p&gt;Re-test the harness before you switch models. A model swap moves the harness ranking more than a harness swap moves the model ranking.&lt;/p&gt;

&lt;p&gt;Instrument rework rate on agent-written pull requests for two weeks before you believe any productivity claim, including your own. Lines generated is activity. Rework is the cost of it.&lt;/p&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;You can name your model version from memory. Can you name your harness's cost rank, or are you flying on vibes and a launch post?&lt;/p&gt;

&lt;p&gt;If the argument that the pair matters more than the model stuck with you, take a deeper look at &lt;a href="https://articles.phantom-byte.com/agent-harness-real-model.html" rel="noopener noreferrer"&gt;PhantomByte's Guide to Agent Harness Architecture&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;It breaks down what a harness is, the four dimensions of its design (composition, context sharing, approval gating, and tool integration depth), and why changing the harness while keeping the model constant can have a greater impact on cost per task than switching between models.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>agentskills</category>
      <category>llm</category>
    </item>
    <item>
      <title>The Share Link Was Never the Lock: 35,578 Apps Wide Open</title>
      <dc:creator>Vinny Barreca</dc:creator>
      <pubDate>Sun, 15 Nov 2026 23:56:38 +0000</pubDate>
      <link>https://dev.to/phantom-byte/the-share-link-was-never-the-lock-35578-apps-wide-open-3pg9</link>
      <guid>https://dev.to/phantom-byte/the-share-link-was-never-the-lock-35578-apps-wide-open-3pg9</guid>
      <description>&lt;p&gt;The Share Link Was Never the Lock: 35,578 Apps Wide Open&lt;/p&gt;

&lt;p&gt;Claroc researchers tried 43,551 Grok Build app addresses in a browser signed in to nothing. 35,578 of them opened. That is 94.7% of the apps still online that day, serving their data to strangers who had guessed nothing and paid nothing. Only 1,993 answered with a 401.&lt;/p&gt;

&lt;p&gt;The share link was never the lock. The lock was supposed to be a permission check that never ran, and every agent platform that ships a share feature without one is a pattern search away from the same headline.&lt;/p&gt;

&lt;p&gt;THE ACTUAL FAILURE, IN ORDER&lt;/p&gt;

&lt;p&gt;Grok Build publishes each app as its own hostname, a name under grok.me. That choice is where the chain starts. Grok proposes four random words for the name, and four random words are genuinely unguessable. Nobody has to guess them, because a hostname gets looked up in DNS the first time anyone opens it, and passive DNS services collect those lookups into searchable datasets. One pattern search lists the space.&lt;/p&gt;

&lt;p&gt;Then the access step finishes the job. In the paid account Claroc used to test publishing, the panel offered Anyone with the link, invited users, and Only you, with Anyone with the link already selected. SpaceXSI says publishing takes several clicks and that employee accounts default to Only you. Both are true, and both are beside the point: the people who published 35,578 open apps clicked through every one of those steps.&lt;/p&gt;

&lt;p&gt;That is insecure direct object reference at platform scale. The object is the app and the data behind it: the database, the records, the files it generated. The reference is the link. Authorization on read was missing, so possession of the reference became the entire access-control system. Longer random strings raise the cost of guessing and do nothing about a public index.&lt;/p&gt;

&lt;p&gt;WHY IS UNGUYS NOT ACCESS CONTROLLED?&lt;/p&gt;

&lt;p&gt;Random IDs move the cost of finding an object from zero to an afternoon of scraping. A per-object check moves it to a lookup you are already doing: you fetched the row to serve the response, so the decision is a second read against a policy store on the same request path.&lt;/p&gt;

&lt;p&gt;Here is the shape of a correct check. It is illustrative, not Grok's code, and the four parts are the point: who is asking, what they are asking for, what they want to do, and what the system decided.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt; &lt;span class="n"&gt;illustrative&lt;/span&gt; &lt;span class="kt"&gt;object&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="n"&gt;check&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nc"&gt;Grok&lt;/span&gt;&lt;span class="s1"&gt;'s code
def read_artifact(subject, artifact_id):
    obj = store.get(artifact_id)                  you already fetched this
    if obj is None:
        raise NotFound()
    if not policy.allows(subject, obj, "read"):   subject, object, action
        audit.deny(subject, obj, "read")          logged, counted, alerted
        raise Forbidden()
    return obj
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;policy.allows&lt;/code&gt; is the whole architecture. Everything else in that function is plumbing. The line under it matters as much: a denied read nobody counts is a breach you learn about from a journalist, so alert on anonymous denials, because enumeration arrives as a burst of them.&lt;/p&gt;

&lt;p&gt;THE FIVE PLACES AGENTS LEAK OBJECTS&lt;/p&gt;

&lt;p&gt;This is the order these systems break in.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Share links and public artifacts. Every published app, page, notebook, and preview URL. The check is whether this subject appears on this object's access list and whether the anonymous case produces an error page rather than a page.&lt;/li&gt;
&lt;li&gt;Artifact storage and generated files. Buckets behind downloads, exports, screenshots, and PDF renders. The check belongs on the storage layer, not on the endpoint that happens to call it.&lt;/li&gt;
&lt;li&gt;Agent memory and traces. Conversation history, tool call logs, and retrieved documents, often in a vector index or an observability tool with one shared read key. Any trace viewer that takes an ID and returns a transcript is an IDOR with extra steps.&lt;/li&gt;
&lt;li&gt;Tool output caches. Whatever an agent fetched, scraped, or shelled out to, it was cached for reuse. Caches inherit the trust of their writer and almost never the permissions of their reader.&lt;/li&gt;
&lt;li&gt;Config and credential files near the git root. Anything an agent persists next to the repository eventually gets committed, because the mechanism that made the feature convenient is the one that keeps it out of review.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;THE AUDIT YOU CAN RUN THIS WEEK&lt;/p&gt;

&lt;p&gt;You do not need a research team for the first pass. Search passive DNS, or your own edge logs if you run the domain, for the hostnames your platform publishes, open a sample in a private window, and note whether you got data or an error. Then walk your logs for reads of non-public objects by unauthenticated callers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt; illustrative audit pass, adapt names to your platform
passive-dns search --pattern &lt;span class="s1"&gt;'*.your-app-domain.tld'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; hosts.txt
head -200 hosts.txt &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; h&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -s -o /dev/null -w &lt;span class="s1"&gt;'%{http_code}'&lt;/span&gt; &lt;span class="s2"&gt;"https://$h/"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$code $h"&lt;/span&gt;    200 on a private app is the finding
&lt;span class="k"&gt;done&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep &lt;span class="s1"&gt;'^200 '&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 200 on an object that should be private is your bug today, before anyone emails you about it.&lt;/p&gt;

&lt;p&gt;WHAT TO DO TODAY&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inventory every surface where an object is reachable by a reference: share links, exports, artifacts, traces, and caches. Name the object type for each.&lt;/li&gt;
&lt;li&gt;Put authorization on read, not only on create. Creation checks are what everyone writes first, and they are not the ones attackers use.&lt;/li&gt;
&lt;li&gt;Take the reference out of the guessable namespace. Serve shared objects on a path under one host so the secret never becomes a DNS name, and stop relying on the random string either way.&lt;/li&gt;
&lt;li&gt;Change the default. If publishing preselects a public option, that default is your risk owner. Make private the default and show the access list before an object goes live.&lt;/li&gt;
&lt;li&gt;Scan your repos for persisted agent state near the git root, and check the script files an app's browser downloads for names, emails, and passwords in plain text.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The stakes justify the order. Claroc put the hand-checked count of apps with private data at roughly 650 to 800, including a hospital group's roster of more than 3,500 employees, an ICU briefing with one patient's labs and ventilator status, and a timesheet whose script file carried 18 plain-text passwords. It identified 30 organizations with internal data exposed, 26 above 1,000 employees, and six in the Fortune 500.&lt;/p&gt;

&lt;p&gt;THE UNCOMFORTABLE QUESTION&lt;/p&gt;

&lt;p&gt;Before SpaceXSI took them down, 24 of the open apps had been built by its own staff, including a sales territory map of 594 strategic accounts and an ad proposal to a federal agency marked confidential. &lt;/p&gt;

&lt;p&gt;Your agent has already generated artifacts nobody audited. If a stranger enumerated them tonight, how many of your users' secrets would they read, and would you notice?&lt;/p&gt;

&lt;p&gt;If you want the same failure on the agent side, I ran it there too:&lt;/p&gt;

&lt;p&gt;The permission check is the lock, not the link: in &lt;a href="https://articles.phantom-byte.com/ghostjacking-agent-permission-model-security-boundary.html" rel="noopener noreferrer"&gt;Your Agent's Permission Model Is the Real Security Boundary. Your Guardrails Are Decoration.&lt;/a&gt; I made the same case from the agent side; GhostJacking rewrote a company's DNS 9 of 10 times to prove it.&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>architecture</category>
      <category>python</category>
    </item>
  </channel>
</rss>
