<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rodrigo Martinez Pinto on Medium]]></title>
        <description><![CDATA[Stories by Rodrigo Martinez Pinto on Medium]]></description>
        <link>https://medium.com/@rodrigomartinezpinto?source=rss-967c1029c05d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ko3gnll_4EW6g13RE4icbA.jpeg</url>
            <title>Stories by Rodrigo Martinez Pinto on Medium</title>
            <link>https://medium.com/@rodrigomartinezpinto?source=rss-967c1029c05d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:32:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rodrigomartinezpinto/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[5 Rules for Authenticating AI Agents (Most Teams Are Still Breaking Rule #1)]]></title>
            <link>https://levelup.gitconnected.com/5-rules-for-authenticating-ai-agents-most-teams-are-still-breaking-rule-1-56adebbd15e2?source=rss-967c1029c05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/56adebbd15e2</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Rodrigo Martinez Pinto]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 05:52:45 GMT</pubDate>
            <atom:updated>2026-08-31T14:12:08.765Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ezY1J-kSGZeO133yBNmp8w.jpeg" /></figure><p>If you’re deploying AI agents that touch anything real, and specifically if those agents can act on behalf of users or invoke internal systems, the authentication design you shipped in the first version of your agent framework is almost certainly wrong.</p><p>I know that sounds harsh. It is also, in my reading of the code and the vendor documentation I’ve been looking at over the last several months, empirically true for the vast majority of production deployments right now. The authentication patterns most teams inherited from web app development don’t survive contact with the agent workload shape. Some of them fail in obvious ways. Some fail in ways that only show up during an incident, which is much worse.</p><p>Here are the five rules that separate teams building agent systems that will hold up from teams that are quietly accumulating incident debt. Rule #1 is the one most teams still break, so let’s start there.</p><h3>Rule #1: Authenticate Every Action, Not Every Session</h3><p>The most common authentication pattern in agent frameworks today looks like this. The user starts a conversation. The agent gets a session token that represents the user’s authorization for the whole conversation. Every tool call, every downstream API request, every action the agent takes during that conversation reuses the same token. Session-scoped auth. Familiar. Wrong.</p><p>Here’s why it doesn’t hold up for agents. In a traditional web app, a session represents a person clicking through pages, and every click is roughly the same kind of action. An agent session, by contrast, is a series of increasingly consequential actions selected by a model whose behavior can shift dramatically based on the input. The user’s intent at minute one of the conversation is often nothing like what the agent ends up doing at minute forty. Reusing the same authorization across all of that is like giving someone a signed blank check because they told you at the door what they planned to buy.</p><p>The correct pattern is per-action authentication. Before each tool call, before each downstream request, the agent presents a fresh credential scoped to that specific action. The credential is minted just in time, tied to the action’s parameters, and disposed of immediately after. This is expensive in terms of round trips, and it is the price of running agents safely in production.</p><p>The technical primitives for doing this exist. OAuth 2.0 Token Exchange, defined in RFC 8693, lets a client swap a broadly-scoped token for a narrowly-scoped one before each downstream call. Combined with short-lived access tokens (measured in minutes, ideally seconds for high-risk actions), it becomes structurally impossible for a compromised session to authorize actions the user did not explicitly agree to.</p><p>If your agents run on session tokens today, this is the pattern to fix first, and it’s fine if it takes you a quarter to migrate. The important thing is having a plan. If you don’t have a plan, you’re operating on borrowed time.</p><h3>Rule #2: Bind Every Credential Cryptographically to the Request</h3><p>Once you’re doing per-action authentication, the next question is how the receiving system verifies that the credential presented actually belongs to the agent making the request. This matters more for agents than for humans because agent workloads can be prompt-injected into leaking their own credentials, and stolen tokens travel much faster than stolen passwords ever did.</p><p>The default for the last twenty years has been the bearer token. Whoever holds the token is trusted. If the token is stolen, the thief has full authority. Which was tolerable when the token holder was a browser session and the theft required specific effort. It’s much less tolerable when the token holder is an agent whose full input history is potentially visible to whoever crafts the right prompt.</p><p>The fix is cryptographic binding. The token doesn’t stand alone. It’s bound to a specific client through a proof-of-possession mechanism. Two approaches are production-ready today.</p><p>The first is mutual TLS (mTLS). The agent presents a client certificate along with its request. The certificate is provisioned per-workload and cannot be easily exfiltrated. Even if the agent leaks its bearer token, the token is useless without the corresponding certificate.</p><p>The second is OAuth 2.0 DPoP, defined in RFC 9449. The agent signs a proof-of-possession JWT with a key bound to its workload identity. The server verifies the signature before honoring the token. Same effect, different plumbing, and often easier to deploy in modern cloud environments than full mTLS.</p><p>Whichever you choose, the invariant that matters is that a stolen credential without the corresponding key is dead on arrival. Prompt injection stops being a full credential compromise. It becomes, at worst, a temporary interference with one workload’s ability to authenticate for the next several minutes.</p><h3>Rule #3: Preserve the User’s Identity Through the Agent</h3><p>Agents almost never act purely on their own behalf. They act on behalf of a user, or a team, or a scheduled trigger that has some notion of identity attached to it. Downstream systems need to know two things about every request: who the immediate caller is (the agent), and who the ultimate initiator is (the human or the trigger that started the chain).</p><p>Most agent frameworks today collapse these two. The agent authenticates as itself, and the downstream system sees only the agent’s identity. The human on whose behalf the agent is acting disappears from the audit trail somewhere around the third hop. Which is exactly the problem you don’t want when a regulator, a compliance auditor, or a plaintiff’s lawyer asks “who authorized this action?”</p><p>The pattern that works is on-behalf-of (OBO) authentication with acting-party claims. OAuth 2.0 Token Exchange supports this natively through the act claim in the token payload, which lets the agent present a token that says &quot;I am agent X, currently acting on behalf of user Y.&quot; The downstream system can verify both identities independently, and the audit log preserves both.</p><p>Microsoft’s OAuth 2.0 On-Behalf-Of flow documents one implementation of this in enterprise identity contexts. Google Cloud’s service account impersonation supports similar semantics. The specifics vary by provider. The invariant that matters is that every action anywhere in your system can be traced back to the human or event that initiated it, not just to the agent that executed it.</p><p>Without this pattern, your accountability model quietly collapses into “the agent did it,” which is not an accountability model. It’s an evasion.</p><h3>Rule #4: Distinguish the Model From the Agent</h3><p>This one is subtle enough that most teams miss it entirely, and it matters more than it looks.</p><p>When your agent calls a language model (OpenAI’s API, Anthropic’s, a self-hosted vLLM instance), that call has an identity. When your agent calls a downstream tool or service, that call has an identity too. Most teams use the same credential for both, which conflates two different subjects into one.</p><p>This causes problems both in principle and in practice. In principle: the model provider is a vendor that computes on your inputs and returns outputs. The agent is your workload that decides what to do with those outputs. Those are different subjects with different trust relationships, and merging them makes both weaker. In practice: when something goes wrong, you cannot distinguish “the model returned a bad response” from “the agent misinterpreted a good response” from “someone impersonated the agent to a downstream tool,” because all three appear identically in your logs.</p><p>The pattern is separate credentials for separate purposes. The agent has its own workload identity, provisioned through your identity provider. That identity is what invokes downstream tools and internal APIs. Access to the model provider is through a different credential, held only by the specific component of the agent that makes model calls, and never exposed to the tool-invocation path.</p><p>This adds one more credential to manage. It also makes the audit trail cleanly separable, and it means a compromise of the model access credential does not automatically compromise the agent’s authority to invoke downstream tools. The two failure modes are distinct, which is exactly what you want when you’re trying to reason about incident scope.</p><h3>Rule #5: Fail Closed, Loudly, and Never Fall Back</h3><p>The final rule is a discipline more than a technical pattern, and it’s the one that breaks first when teams are under pressure to ship.</p><p>When authentication fails, the agent must stop. Not degrade. Not fall back to a lower privilege level. Not retry silently. Stop, log the failure conspicuously, and require explicit human intervention before continuing. This is what “fail closed” means in a security context, and it is the difference between an agent that catches its own errors and an agent that quietly proceeds under conditions its designers never intended.</p><p>The failure mode this prevents is the one that eats teams alive during incident response. A credential expires. The auth check returns unauthorized. Somewhere in the retry logic, someone wrote a fallback that uses a cached credential, or a default identity, or (worst case) drops the check entirely on the theory that “we already know this is a legitimate call.” Six months later, that fallback path becomes the vector for an incident nobody predicted, and reconstructing what happened requires reading through every line of the auth code.</p><p>The correct discipline is to treat authentication failures as first-class events. Every failure gets logged with full context. Every failure surfaces to an alerting channel. Every failure prevents the action from proceeding. And critically, there is no code path anywhere in your agent framework that turns an auth failure into a permissive outcome. If the check says no, the action does not happen.</p><p>This sounds obvious. It is not what most agent frameworks do today. The default retry behavior in many popular libraries includes silent fallbacks that made sense for API clients and are actively dangerous for agents. Audit your dependencies. If any of them have a “fallback to unauthenticated” path, you either replace them or wrap them to explicitly disable that behavior.</p><h3>The Objections Worth Answering</h3><p><strong>“This adds a lot of round trips.”</strong> Yes. Per-action authentication with cryptographic binding is more expensive than session-scoped bearer tokens. The overhead is measurable and worth it. If your agent’s user experience cannot tolerate a hundred milliseconds of auth overhead per action, either the agent is doing too many actions per user request or the auth infrastructure isn’t optimized for this workload. Both are fixable. Neither justifies weakening authentication.</p><p><strong>“Our vendor doesn’t support DPoP or OBO.”</strong> Increasingly rare. Every major identity provider has added or is adding support for these patterns specifically because of agent use cases. If your vendor genuinely doesn’t support them, that’s a signal about the vendor. Push them to add support, or evaluate alternatives.</p><p><strong>“Our agents only run internally, this is overkill.”</strong> Internal agents run under credentials that reach production data. Prompt injection works on internal agents. Adjacent system compromise reaches internal agents. The five rules apply equally regardless of whether the agent has an external endpoint.</p><p><strong>“We’ll add this after we have product-market fit.”</strong> The teams that say this most often are the teams doing an emergency auth retrofit six months later, when adding authentication discipline to a system already in production requires touching every deployment. The cost of doing it now is small. The cost of doing it under pressure is large.</p><h3>What This Buys You</h3><p>Getting these five rules right does not guarantee your agents will never misbehave. Nothing does. What it guarantees is that when they do misbehave, the blast radius is bounded, the audit trail is complete, and the response process is a matter of reviewing evidence rather than reconstructing what might have happened.</p><p>Rule #1 is where most teams need to start, because it’s the one that everyone gets wrong first and it’s the one that makes the other four rules meaningful. If your agent is still running on a single session-scoped token, every other rule you implement is decoration on top of a broken foundation. Fix that first. The rest follows.</p><p>The specs are mature. The tooling exists. The patterns are borrowed from twenty years of distributed systems security, applied to a new class of workload. What’s been missing is the industry’s willingness to treat agent authentication with the same rigor it applies to human authentication.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56adebbd15e2" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/5-rules-for-authenticating-ai-agents-most-teams-are-still-breaking-rule-1-56adebbd15e2">5 Rules for Authenticating AI Agents (Most Teams Are Still Breaking Rule #1)</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[68% of Companies Are Running AI They Didn’t Choose. Yes, Really.]]></title>
            <link>https://research.cloudsealed.com/68-of-companies-are-running-ai-they-didnt-choose-yes-really-880600f80b42?source=rss-967c1029c05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/880600f80b42</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Rodrigo Martinez Pinto]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 20:34:17 GMT</pubDate>
            <atom:updated>2026-08-24T21:13:45.155Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nlOk2u8dH7W3G7WjENoODg.jpeg" /></figure><p>Every once in a while a research report drops a number so specific and so telling that it just parks itself in your head for weeks. Wiz did that to me back in April with their <a href="https://www.wiz.io/reports/state-of-ai-in-the-cloud-2026">State of AI in the Cloud 2026 report</a>, and I’ve been meaning to write about it ever since.</p><p>The line is buried on page whatever, under a heading about self-hosted models. <strong>68% of organizations running self-hosted AI ingest those models through third-party software.</strong></p><p>That’s a mouthful, so let me translate. Two out of three companies with AI models running on their own infrastructure didn’t actually decide to run those models. Some vendor product they bought (a knowledge tool, a code assistant, a support router, whatever) quietly shipped a model inside, and the security team never signed off on it because nobody knew there was anything to sign off on.</p><p>If you’ve ever done a security review of a container and moved on because it passed the scan, this is your problem too. And it’s not really a “gotcha” or a scare stat. It’s just what happens when a new kind of software gets embedded everywhere faster than the tooling that watches it. Which has happened before, several times, and we survived. It’s just that the shape of this one is a little different, and worth taking seriously.</p><p>I want to walk you through what’s actually going on, why it feels weirder than a regular supply chain problem, and what a small, sensible response looks like. No panic, promise.</p><h3>The scenario nobody planned</h3><p>Picture this. Your engineering team buys a vendor product. Something plain and useful. An internal knowledge platform, say. It ships as a helm chart. The platform team applies it, health checks come back green, everyone moves on.</p><p>Inside that chart, though, someone else made a lot of decisions for you. There’s probably an embedding model downloaded from Hugging Face at build time. Maybe a local LLM runtime like llama.cpp or vLLM listening on an internal port. A vector database sitting alongside as a sidecar. A retrieval pipeline that scrapes some SharePoint site on a cron. And, increasingly, an MCP server exposing a small set of tools to whichever agent happens to talk to it.</p><p>None of that was in the RFP. Nobody on your side reviewed the model weights or the retrieval scope. It’s just running.</p><p>The Wiz numbers around this are honestly a little wild once you sit with them. 90% of environments had self-hosted AI software of some kind. 80% had MCP servers. 80% had AI coding extensions in IDEs. Whatever your mental picture of “how much AI we have in our environment” is right now, cross-check it against those numbers. It’s almost certainly an undercount.</p><p>The 68% is telling you the majority of that AI is stuff that arrived as a passenger, not as a feature you deliberately turned on. That’s the security surface people are still learning to think about.</p><h3>Why this feels different from log4j</h3><p>We’ve been doing supply chain security for years now. Log4Shell taught the entire industry in 2021, SBOMs became a federal contract requirement, and every serious CI pipeline has dependency scanning bolted on somewhere. Most engineers know how to reason about “we depend on X, X had a bug, we patch.”</p><p>Inherited AI breaks that mental model in three specific ways, and once you see them the response starts to make sense.</p><p>The artifact is opaque. When you inherit a vulnerable log4j, you can read the code and understand the failure. When you inherit an LLM through a bundled product, the artifact is a pile of weights. You cannot read it, you cannot reason about it statically. You can only observe how it behaves under some inputs, and hope you cover the ones an attacker would try.</p><p>The attack surface includes text and data, not just code. Prompt injection. Indirect prompt injection through retrieved documents. Jailbreaks that emerge from unusual phrasings. Behaviors that drift as new data flows through the retrieval side. This is a fluid attack surface, and it doesn’t sit still long enough for a static scan to be useful.</p><p>Your existing tools mostly don’t see this yet. SBOMs catalog libraries and containers. Most don’t catalog model weights, tool schemas, or MCP surfaces. Your SAST is looking for injection patterns in code, not in prompts. Your DLP watches structured data flows, not embedding leakage. So the whole thing lives in a blind spot of tools you already trust and pay for.</p><p>Put those three together and you get a class of risk that is pervasive, invisible to current tooling, and unpredictable in behavior. That’s what the 68% is really pointing at. Not carelessness. Structural blind spot.</p><h3>What can actually go wrong</h3><p>Let me be a bit concrete about impact, because “AI supply chain risk” bounces off decision-makers unless you can name a failure mode.</p><p>The one that keeps me up is data exposure through embedded retrieval. If a bundled product indexes some internal corpus and answers questions using it, a well-crafted prompt to that product can quietly pull data across trust boundaries the original vendor never intended. Wiz’s own commentary mentions <a href="https://www.wiz.io/blog/state-of-ai-in-cloud-2026-recap">roughly one in five organizations using AI-powered vibe coding platforms had applications with systemic security issues</a>. Same shape of problem, different angle.</p><p>Then there’s lateral movement through MCP servers. If a product exposes MCP tools that let agents invoke internal APIs, and any of those tools are overprivileged (most first versions are), you’ve quietly built a lateral movement path that traditional network segmentation can’t see. The MCP server thinks it’s legitimate. Your firewall agrees. Nobody’s wrong, and yet.</p><p>There’s the compliance surprise. If your compliance team certified “AI is used only in these three approved systems” and the reality is AI is running in forty unapproved places via bundled dependencies, the next audit is going to be a bad afternoon. The gap between AI as tracked and AI as deployed is exactly the sort of thing that shows up as a finding.</p><p>And finally there’s model provenance. When a bundled model gets loaded from an upstream registry at build time and cached in your image, and that upstream registry gets tampered with (which has already happened to Hugging Face and PyPI more than once), you now have a model in your environment whose provenance is fuzzy. If it’s been tuned to misbehave under specific conditions, you may not notice for months.</p><p>None of these are hypothetical. All of them have publicly reported precedents. What the 68% number contributes is scale. It’s saying: this exposure is not a rare edge case, it’s the majority condition.</p><h3>What a reasonable response looks like</h3><p>Here’s the part I find genuinely comforting about this moment. The response is not heroic. It’s a handful of unglamorous work streams that a small team can run over a quarter, they compound nicely, and by the end you’re doing better than the vast majority of the industry. Let me walk through them the way I’d actually recommend to a friend.</p><p><strong>Run a real AI discovery scan on your own environment.</strong> Not through your existing SBOM tooling, because it’ll miss most of this. You want to check cloud provider APIs for GPU instances and known AI services, scan container registries for model file extensions (.gguf, .safetensors, unusual .bin files in AI-looking paths), look for known runtime processes (llama.cpp, vllm, ollama, text-generation-inference), and probe internal networks for MCP server signatures. Every team that does this exercise for the first time is a little surprised by the output. That surprise is the point.</p><p><strong>Build an AI-BOM alongside your regular SBOM.</strong> For every inherited AI component, record the model name and version, the source registry, the license, the runtime, whatever tool surface it exposes, and the data flows it touches. This is boring inventory work. It is also the single most valuable artifact you can produce for the next audit cycle. Treat it as a real asset register, not a spreadsheet somebody promises to update.</p><p><strong>Separate chosen AI from inherited AI in your governance.</strong> Chosen AI, the stuff your team deliberately deployed, probably already has some governance around it. Inherited AI needs its own workflow. Vendor questionnaires that ask specifically about embedded models. Contract clauses that require notification when embedded AI changes. A periodic scan that catches new inherited components as they arrive. Different origin, different controls.</p><p><strong>Sandbox inherited AI by default.</strong> Any product you bring in that turns out to have embedded AI should run under the strictest network segmentation you’re willing to accept for something that produces unpredictable outputs. No blanket outbound. No credentials to production data without an explicit grant. No MCP invocation of internal APIs without a review. Principle of least privilege, applied to a new kind of subject.</p><p><strong>Monitor what the AI does, not just how it’s configured.</strong> Traditional security tools check that things are set up correctly. This risk requires runtime observation: which queries the AI answers with which retrieved data, which tools it invokes, which patterns of prompts it accepts. Building even a lightweight version of this now sets you up nicely for when it stops being optional.</p><p><strong>Update your vendor questionnaire.</strong> Every product bought between now and end of year should be answering explicit questions about embedded AI. What models. From what source. With what runtime. Exposing what tools. Updated on what cadence. Most vendors don’t have great answers yet, and that’s actually fine. Ask anyway. Your questionnaire trains the vendor market as much as it protects you.</p><p>That’s six focused work streams. None of them require heroism. Do them over a quarter and you’re comfortably ahead of the 68% baseline the report suggests is the default.</p><h3>A few honest pushbacks</h3><p>Before I wrap up, let me steelman a few objections I keep hearing.</p><p>“We already have a vendor security review.” Almost certainly true. Almost certainly your questionnaire doesn’t ask about embedded AI in enough detail. Pull it up and check. If “does this product contain or invoke language models” is not on the list, your process is scoped for a slightly earlier world.</p><p>“Compliance hasn’t flagged this.” They will. When AI incidents start showing up in Verizon DBIR breakdowns (they already are), and when sector-specific enforcement lands (early cases are rolling in), compliance teams get pushed to ask what you have. Teams with an AI-BOM already built answer calmly. Teams without one scramble.</p><p>“This sounds expensive.” The discovery is cheap. The AI-BOM starts as a spreadsheet. The sandboxing applies existing practices. The vendor questionnaire is one paragraph. Doing this now is very cheap. Doing it after an incident is not.</p><p>“68% is a Wiz marketing number.” Reasonable caution. Wiz has skin in the AI security narrative. That said, the finding is consistent with what other cloud security shops are publishing (the <a href="https://www.wiz.io/blog/verizon-dbir-2026-ai-cloud-security">Verizon DBIR AI section</a>, <a href="https://unit42.paloaltonetworks.com/">Unit 42 briefings</a>) and with anecdotes from every security team that has actually run the discovery exercise. Direction of the finding is well supported. Exact number varies by methodology.</p><h3>The bigger picture</h3><p>Zoom out and this fits a very old shape. Log4Shell in 2021. Public S3 buckets in 2016. Heartbleed in 2014. Every few years, something quietly proliferates through the tech stack, tooling lags adoption, and one day a single well-crafted proof of concept or one high-profile breach forces every organization to run a discovery exercise it should have run a year earlier.</p><p>For AI, that moment hasn’t happened yet. When it does (and it’s a when, not an if), the teams that already have their AI-BOM, their inherited-AI sandbox, and some behavior monitoring are going to look prescient. Not because they were smarter. Because they treated a specific report from a credible vendor as an invitation to do a quiet quarter of work while there was still time.</p><p>The 68% number is a gift, honestly. It’s the number to bring to your CTO, your CFO, or your board. It’s the number that unlocks a calm, deliberate discovery this quarter instead of a chaotic one after the fact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=880600f80b42" width="1" height="1" alt=""><hr><p><a href="https://research.cloudsealed.com/68-of-companies-are-running-ai-they-didnt-choose-yes-really-880600f80b42">68% of Companies Are Running AI They Didn’t Choose. Yes, Really.</a> was originally published in <a href="https://research.cloudsealed.com/">CloudSealed Engineering Research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[There’s a 20% AI Tax Coming. Nobody’s Told Your CFO Yet.]]></title>
            <link>https://levelup.gitconnected.com/theres-a-20-ai-tax-coming-nobody-s-told-your-cfo-yet-dc6db257abef?source=rss-967c1029c05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc6db257abef</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Rodrigo Martinez Pinto]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 23:58:47 GMT</pubDate>
            <atom:updated>2026-08-21T16:21:02.848Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jStk8Ta3Y3evMTwGmoJbrw.jpeg" /></figure><p>This week, buried in a story most engineering teams skimmed and most finance teams missed entirely, OpenAI told The Register that its expanded safety monitoring adds roughly 20% compute overhead to its tool-enabled training and inference on frontier-scale models. It applies to all tool-enabled training and evaluations at GPT-5.6 Sol level and above, and to all Astra inference, not just the highest-risk runs.</p><p>The company was careful to add that the cost “reflects internal research and will not be passed on to customers.” OpenAI is eating it. For now.</p><p>If you build on top of hosted models, or if you run any serious agent workload in production, that sentence should stop you cold. Not because 20% is a shocking number in isolation. It isn’t. But because “we’re absorbing this cost” is exactly the kind of statement that only survives contact with reality until the first quarterly earnings review that asks why gross margin dropped four points. Which is coming.</p><p>I want to walk through what this actually means, why the 20% is almost certainly going to end up on your invoice, and what smart teams are quietly doing right now to prepare.</p><h3>What the 20% actually pays for</h3><p>Before we get to the money, let’s be specific about what OpenAI is buying with that overhead. Their expanded monitoring stack, announced in the wake of a Hugging Face breach and internal safety concerns about their Astra model, does roughly this:</p><ul><li>Reads the model’s step-by-step chain-of-thought reasoning <strong>before</strong> the model acts, in real time</li><li>Runs classifiers over internal model states looking for suspicious activity</li><li>Escalates flagged activity to automated investigators</li><li>Those investigators can alert human safety teams within 30 minutes</li></ul><p>That is not a lightweight sidecar. That is a real, additional compute path running alongside every serious inference. Twenty percent is what it costs to actually watch a frontier model do its work.</p><p>The important thing about this number is that it is a floor, not a ceiling. As models get more agentic, as tool use expands, as compliance frameworks start demanding explainability and audit trails, the monitoring cost will only grow. OpenAI is publishing the number now because they have to, and because internally it is probably already trending up.</p><h3>Why “we’re not passing it on yet” won’t last</h3><p>Every AI vendor is currently in a phase where inference capacity is scarce, subsidized, and competitive. Prices per token have been dropping for two years straight, and nobody wants to be the first to announce a price increase, especially one framed as “safety overhead.” The reputational cost of “we’re charging you for watching our own model” is high enough that everyone will hold the line for as long as possible.</p><p>But hold the line for how long? Five reasons “as long as possible” is shorter than most people think:</p><p><strong>1. Investor pressure on gross margin.</strong> OpenAI is not a nonprofit. Anthropic, Google, and Amazon are not nonprofits. The moment quarterly gross margin gets squeezed by absorbed monitoring cost, the finance team’s job is to figure out how to move that cost out. Enterprise customers on annual contracts are the easiest place to move it, because switching cost is high.</p><p><strong>2. Regulatory pressure will make monitoring non-optional.</strong> The <a href="https://artificialintelligenceact.eu/">EU AI Act</a>, specific US executive orders on AI safety, and emerging sector-specific rules (finance, healthcare) are all pushing toward mandatory logging, monitoring, and audit trails for high-risk AI systems. When monitoring stops being an optional safety investment and becomes a compliance requirement, the cost stops being a differentiator and starts being a floor everyone has to meet.</p><p><strong>3. Vendors will discover the “safety tier” as a product.</strong> Expect within twelve months to see hosted AI offerings with explicit tiers: “standard” (basic monitoring, cheaper) and “enterprise safety” (full chain-of-thought monitoring, audit exports, compliance ready, 20–30% price premium). The premium is the honest version of what OpenAI is currently absorbing.</p><p><strong>4. The overhead will grow before it shrinks.</strong> Each new agentic capability (tool use, multi-step planning, multi-agent orchestration) adds new surfaces that need monitoring. The optimistic story is that better monitoring architectures will bring the overhead down over time. The realistic story is that new capabilities will outpace efficiency gains for at least the next two years, and the total monitoring cost will grow, not shrink.</p><p><strong>5. Self-hosted teams will hit the same wall.</strong> If you’re running open-source models on your own infrastructure to avoid the API cost, guess what: you either build the monitoring yourself (expensive engineering time), buy a third-party monitoring stack (real dollars), or ship without it (regulatory and legal risk that will catch up to you). There is no escape hatch where “just run llama on my own GPUs” makes this problem disappear.</p><h3>The FinOps blind spot</h3><p>Here is where the interesting part starts, because this cost falls into a specific organizational gap that most companies have not filled.</p><p><strong>FinOps teams</strong> are set up to optimize cloud spend. They know how to look at EC2 bills, at S3 egress, at Snowflake credits, at Datadog volume. They are not, in most organizations, tracking AI inference cost with the same rigor, and they are almost never modeling the future overhead of security and compliance on that inference.</p><p><strong>AI security teams</strong>, where they exist at all, are focused on model vulnerabilities, prompt injection, data leakage, and adversarial robustness. They are not, in most organizations, in the same room as the people who forecast quarterly cloud spend.</p><p><strong>Finance leaders</strong> see AI as a line item that has been getting cheaper. They are budgeting on that trend continuing. They are not modeling what happens when the trend reverses because monitoring cost gets unbundled.</p><p>The 20% overhead sits at the exact intersection of these three groups, and it is currently being tracked by none of them at most companies. Which means that when it does start showing up on invoices, it is going to hit as a surprise, and surprises in cloud bills are what get people fired.</p><h3>What smart teams are doing right now</h3><p>The teams that will be advantaged by this shift, based on what’s already visible in public discussions and vendor conversations, are doing four things now.</p><p><strong>Building an internal AI cost dashboard that includes safety and compliance as a projected line item.</strong> Not tracked yet, projected. Even a rough model that says “assume monitoring overhead scales from 0% today to 20% by end of next fiscal year” changes budget conversations completely. The absence of this line item is the primary reason CFOs will be blindsided.</p><p><strong>Auditing their inference workloads for elasticity.</strong> Which workloads can tolerate a 20–30% cost increase? Which cannot? For the ones that cannot, either the pricing model needs to change (pass the cost to end users), the workload needs to move to a lower-cost tier (smaller models, fewer calls), or the workload needs to be re-scoped. Doing this analysis before the cost lands is the difference between an orderly response and a fire drill.</p><p><strong>Establishing baseline monitoring in-house, even if it duplicates vendor monitoring.</strong> The teams that will be positioned best are the ones that have their own logging, their own eval traces, their own drift detection. When the vendor monitoring becomes a paid tier, these teams have leverage: they can push back on price with “we already do most of this ourselves.” Teams that fully depend on vendor monitoring will have no leverage at all.</p><p><strong>Pushing for line-item transparency in AI vendor contracts.</strong> Every enterprise AI contract signed in the next twelve months should have explicit language on what is bundled and what will be unbundled. “Monitoring is included at current levels” is very different from “monitoring is included, subject to change with 90 days notice.” The teams reading contracts carefully now are protecting their next three years of budget.</p><h3>The broader pattern this fits into</h3><p>Zoom out and this is not just an AI story. It’s the same pattern that hit cloud in the mid-2010s, when observability, security, and compliance costs started running 15–30% on top of raw infrastructure. Teams that had budgeted only for compute were stunned. Teams that had modeled it in were fine.</p><p>Every abstraction layer eventually develops its own tax. Cloud added observability tax. Kubernetes added platform tax. Microservices added service mesh tax. AI is now developing its safety and monitoring tax, and it is going to look structurally similar to the cloud one: initially absorbed by vendors during the growth phase, then unbundled and monetized during the maturity phase, then normalized as “just part of the cost of running this stuff.”</p><p>The teams that survived the cloud transition without margin shock were the ones who modeled the full stack cost from year one, not the ones who assumed raw compute prices would keep falling. The AI transition is going to reward the same behavior.</p><h3>Objections and responses</h3><p><strong>“But OpenAI said they won’t pass it on.”</strong> Correct. And in 2019 AWS said they weren’t going to charge for cross-AZ data transfer between certain zones. Vendor statements about what they won’t charge for are true until the finance team runs the numbers again. Plan for what they will do, not what they’ve said.</p><p><strong>“20% is not a real cost. It’s temporary until architectures improve.”</strong> Possibly. But between now and “improved architectures”, you’ll have signed contracts, made budget commitments, and hired against assumptions. The cost of planning for 20% and getting 5% is much smaller than the cost of planning for 0% and getting 20%.</p><p><strong>“This is just for frontier models. I use smaller models, this doesn’t affect me.”</strong> For now. Two years ago, the compute cost per token on GPT-4 was frontier-tier expensive. Today it’s commodity-tier cheap. Whatever architectural cost is on frontier models today is going to be on your commodity models in 18–24 months, because the same monitoring requirements will apply. Waiting until it hits your tier means responding under pressure.</p><p><strong>“My compliance team hasn’t asked about this.”</strong> They will. When your first AI-related incident lands (data leak, harmful output, regulatory inquiry, whichever comes first) the first question will be “what monitoring did we have in place.” At that point the answer better not be “we thought our vendor was handling it.”</p><h3>The window closes fast</h3><p>The teams that will look prescient in eighteen months are the ones that treated a 20% overhead disclosure buried in a Register article as an early warning, modeled it into their budget, and started building the muscle to respond. The teams that will look surprised are the ones that read it and thought “OpenAI’s problem, not mine.”</p><p>It is your problem. It’s going to hit your invoice. It’s going to hit your gross margin if you’re a company selling AI-powered features. It’s going to hit your operating budget if you’re an enterprise consuming AI capabilities.</p><p>The pattern is repeating: vendor absorbs a cost during the growth phase to protect adoption, then unbundles it when growth stabilizes, and by the time the industry stops talking about “the surprise increase” it’s baseline overhead nobody thinks about anymore.</p><p>The advantage belongs to the teams that read the tea leaves early. This week, OpenAI just handed you one. Your CFO probably doesn’t know yet. Consider whether you’d rather be the person who tells them now, with a plan, or the person who explains it later, without one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc6db257abef" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/theres-a-20-ai-tax-coming-nobody-s-told-your-cfo-yet-dc6db257abef">There’s a 20% AI Tax Coming. Nobody’s Told Your CFO Yet.</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Next Product Shouldn’t Be an App]]></title>
            <link>https://levelup.gitconnected.com/why-your-next-product-shouldnt-be-an-app-18b119db0deb?source=rss-967c1029c05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/18b119db0deb</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Rodrigo Martinez Pinto]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 16:14:12 GMT</pubDate>
            <atom:updated>2026-08-19T16:14:12.689Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*547xYYmDW1zarrYGuC_l3w.png" /></figure><p>I want to make an argument that’s going to sound wrong at first: if you’re planning your next product right now, in 2026, and the plan starts with “we’re building an app,” you’re planning for the last decade instead of the next one.</p><p>Not because apps are bad. Apps are still where most consumer revenue lives, and that’s not changing tomorrow. But the underlying model of what software <em>is</em>, at the primitive level, is shifting for the first time in nineteen years, and the builders who notice early are the ones who will be defining the next platform generation while everyone else is still shipping polished iOS destinations to an audience that’s already elsewhere.</p><p>Let me show you what I mean by walking through what happens when you actually try to build something serious on top of the new primitives.</p><h3>The moment the plan falls apart</h3><p>Say you’re building an AI-powered assistant for a specific domain. Sales, legal, healthcare, whatever. You start the way any competent product team would start in 2024: a mobile app, a web dashboard, a nice chat interface, some tool integrations behind it.</p><p>You ship v1. Users love the capability but hate having to open your app to use it. So you add a Slack integration. Then an email integration. Then a webhook. Then a Chrome extension. Then a scheduled trigger. Then a voice interface. Then an MCP server so other agents can compose your capability into their own workflows.</p><p>Six months later, look at what you’ve built. The mobile app has become the least-used surface. The dashboard is a settings panel. The actual “product” is a capability that lives everywhere and gets invoked from anywhere. Your users don’t think of it as your app anymore. They think of it as a thing that happens on their behalf when they need it.</p><p>Congratulations. You’ve stopped building an app and started building something else. And you got there defensively, retrofitting, when you could have just planned for that shape from day one.</p><p>Every serious team building AI-native software is discovering this the hard way. The ones who plan for it from the start are shipping in half the time.</p><h3>Why this is happening now and not in 2018</h3><p>The reason “the app is dead” pieces have been wrong for a decade is that until recently there was no real alternative. Voice assistants tried and failed to break out of app-shaped intents. Progressive Web Apps got contained. Zapier and IFTTT tried to make composability a consumer feature and stayed niche.</p><p>Two things changed the substrate.</p><p><a href="https://openai.com/index/function-calling-and-other-api-updates/"><strong>OpenAI’s function calling, released June 13, 2023</strong></a>, made language models structurally invokable from other software. Not conversational. Structural. That’s the difference.</p><p><a href="https://www.anthropic.com/news/model-context-protocol"><strong>Anthropic’s Model Context Protocol, introduced November 25, 2024</strong></a>, defined an open standard for any tool or data source to be exposed to any language model. <a href="https://blog.modelcontextprotocol.io/posts/2025-11-25-first-mcp-anniversary/">In its first year, MCP became the closest thing the industry has to a universal composition layer</a> between agents and services.</p><p>These two primitives, together, are what makes this specific shift real when the previous decade of “post-app” predictions were premature. Everything downstream (agents that plan, agents that hand off to other agents, ambient interfaces that show up wherever you are) depends on models being invokable and services being exposable as tools. Both of those problems are now solved and in production.</p><p>Palantir’s recent <a href="https://x.com/PalantirTech/status/2045574398573453312">Technological Republic manifesto</a> called this moment “the tyranny of the apps.” I think that framing overshoots slightly, but the underlying observation is right: the app model has been an invisible constraint on what software could be, and that constraint is finally cracking.</p><h3>Four product shapes that are eating app territory right now</h3><p>If the shift is real, then a product plan in 2026 needs to consider shapes of software that would have been impractical two years ago. Four of them are actively growing and taking share from traditional apps.</p><p><strong>Software that lives in your users’ context.</strong> Products that show up in email, chat, terminal, editor, car, wearables. Invoked by natural language or by triggers set up once. The user never launches your product; it arrives when they need it. Every category dominated by a mobile app right now has a plausible flanking competitor with no app at all.</p><p><strong>Composable primitives instead of destinations.</strong> Instead of “the X app,” you ship “the X capability” as an MCP server or a function-callable service. Any agent in the ecosystem can invoke it on behalf of any user. Your brand becomes invisible unless something goes wrong. That’s a bug in the app store attention economy and a feature in the agent economy. Distribution flips from “get the user to install and open you” to “get invoked by every agent your target user talks to.”</p><p><strong>Personal software at near-zero marginal cost.</strong> The single most underpriced opportunity in 2026. Software built for one person, or one family, or one small team, that would never have been economical as a standalone product because the target market was too narrow. Agents plus natural language make this trivial. Nobody is going to install your “meal planner for households with two toddlers and a specific set of dietary constraints” app. But an agent that quietly builds that capability for one family, using primitives you provided, absolutely will exist. That’s a category ten times bigger than the app store and has no incumbents.</p><p><strong>Ambient interfaces across every surface.</strong> Voice, gesture, glasses, cars, kitchen surfaces, workspace environments. The rectangle in the user’s hand is no longer the destination; it’s one endpoint among many. The teams designing for “how does this capability show up across a smartwatch, a voice call, a windshield, and a chat thread simultaneously” are building for the world that’s arriving.</p><p>Each of these is a distinct product category. Each has real examples in production. Each one benefits enormously from being first to define the shape.</p><h3>What to do differently starting Monday</h3><p>If any of this is right, here’s what should change in your product plan this week.</p><p><strong>Ship your capability as an invokable interface before you polish your UI.</strong> Publish an API, a function schema, or an MCP server. Make it discoverable. Make it easy for a capable user with an agent to invoke you in five minutes. The teams doing this right now are getting silently composed into every serious AI product in the ecosystem. The teams focused on their mobile launch aren’t.</p><p><strong>Assume your software will be used inside software you didn’t write.</strong> Stable interfaces, explicit contracts, defensive error handling, humane observability. This is the shift from “we own the entire experience” to “we’re a primitive in someone else’s workflow.” Teams that internalize this will outcompete teams that don’t. This is the biggest strategic shift since SaaS displaced boxed software.</p><p><strong>Design for zero-launch usage.</strong> The ideal path to using your product should not involve the user opening an app. It should involve the user saying “handle this” from wherever they already are. If your product experience requires the user to remember your name and initiate contact, you’re building for the world that’s plateauing.</p><p><strong>Rethink retention.</strong> Daily active users of a destination is a leftover metric from the app economy. In the post-app world, “the user didn’t need to open us today because our capability got invoked automatically” is a win, not a loss. Optimize for utility per invocation, not attention captured per day. This changes what you build, how you price, and what you measure.</p><p><strong>Take personal software seriously as a category.</strong> The tooling to make one-off software for a single household or a single team is arriving. The market for it is enormous and has no incumbents. If you’re not thinking about how to be part of the platform that enables that market, you’re missing the largest addressable-market shift in twenty years.</p><p><strong>Ignore the pressure to have a mobile app for its own sake.</strong> Investors, boards, and press still ask “do you have an iOS app” as a proxy for legitimacy. That proxy is aging out. Building the app to satisfy the question, when it isn’t the shape your product actually wants, is a real cost. Explain the alternative. The good investors already understand.</p><h3>Objections worth answering</h3><p><strong>“But apps still make record revenue in 2026.”</strong> True. And they’ll continue to for years. This isn’t a prediction of app extinction. It’s a prediction that new value creation, and specifically the fastest-growing companies of the next five years, will look nothing like the app companies of the last decade. Mainframes still make money. That doesn’t mean building a mainframe company today is a good idea.</p><p><strong>“Users like apps. They’ll resist composable, invisible software.”</strong> The subset of users who consciously want composability is small. The subset who benefit from it happening on their behalf is enormous. An agent that quietly coordinates three services to book a trip doesn’t require the user to understand composability. It requires the primitives to be composable. The user experiences it as “it just worked.”</p><p><strong>“This is AI hype cycle again.”</strong> Fair concern. The claim doesn’t depend on agents being intelligent or reliable. It depends on models being invokable and services being exposable as tools. Both are commodity primitives now, at scale, in production. Whether the resulting agents impress you is separate from whether the software model is shifting. It is.</p><h3>The advantage is time-limited</h3><p>The interesting thing about paradigm shifts is that they don’t announce themselves with press releases. There was no ceremony when the web replaced desktop distribution. There was no launch event when mobile made the app store the default surface. In both cases, the teams that saw the shape of the new shape early got the equivalent of a decade of tailwind. The teams that kept building for the old shape spent that decade explaining why they were still relevant.</p><p>This is another one of those moments. The primitives are shipping. The early builders are quietly making their bets. The incumbents are trying to squeeze the new capability into the old shape, and they’re going to lose that fight, not because they aren’t smart but because the underlying technology is too compositional to stay in a rectangle.</p><p>The window for early builders is open right now. In two years, “post-app software” will be a conference track and a hundred startups will be pitching investors on it. In four years, it will be the default. The advantage belongs to the teams that start building for the new shape before the language for it exists.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18b119db0deb" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/why-your-next-product-shouldnt-be-an-app-18b119db0deb">Why Your Next Product Shouldn’t Be an App</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predictive Scaling with ML.NET to Prevent Cloud Overprovisioning]]></title>
            <link>https://research.cloudsealed.com/predictive-scaling-with-ml-net-to-prevent-cloud-overprovisioning-9d1ba011665f?source=rss-967c1029c05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d1ba011665f</guid>
            <dc:creator><![CDATA[Rodrigo Martinez Pinto]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 05:15:38 GMT</pubDate>
            <atom:updated>2026-03-24T16:36:08.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/64/0*daHJ22V6hYUqLDQ5" /></figure><p>Comparison between Reactive Auto-Scaling (Red) and ML.NET Predictive Forecasting (Green). The predictive model anticipates the traffic surge, allowing for proactive resource provisioning before the system reaches a critical state.</p><p><strong>The Hidden Cost of Reactive Infrastructure</strong> Most cloud architectures today operate on a “tax of fear” where resources are over-provisioned by 30% to 50% simply to survive traffic spikes. This happens because traditional auto-scaling is fundamentally reactive. It waits for a CPU or RAM threshold to be breached before initiating the provisioning process. In high-throughput environments, by the time a new node is healthy and receiving traffic, the latency spike has already impacted the user experience. This gap between detection and action is where engineering budgets are wasted on idle compute instances.</p><p><strong>The Failure of Surface Level Monitoring</strong> Standard cloud dashboards focus on lagging indicators. In high-concurrency .NET environments, metrics like CPU average often fail to signal a bottleneck until it is too late. A system can be struggling internally while the CPU still appears to be within normal limits.</p><p>The true leading indicators of an imminent latency crisis are low-level runtime frictions. Ignoring signals like thread context switching or memory management pauses is the primary reason scaling strategies remain expensive and slow.</p><p><strong>Decoding Imminent Latency with Telemetry</strong> To shift from reactive to proactive, the infrastructure must monitor the internal nervous system of the application. In our engineering models, we identified four specific low-level metrics that serve as precursors to failure.</p><pre>using Microsoft.ML.Data;</pre><pre>namespace CloudSealed.ML.Engine.Models<br>{<br> public class TelemetryData<br> {<br> [LoadColumn(0)] public float ThreadContextSwitches { get; set; }<br> [LoadColumn(1)] public float Gen2GcCollections { get; set; }<br> [LoadColumn(2)] public float IopsThrottleRate { get; set; }<br> [LoadColumn(3)] public float NetworkQueueLength { get; set; }<br> [LoadColumn(4)] public float Latency { get; set; } <br> }<br>}</pre><p>High rates of context switching indicate that the CPU is spending more time managing threads than executing business logic. When combined with a Generation 2 Garbage Collection cycle, system latency grows exponentially.</p><p><strong>Building a Predictive Brain with ML.NET</strong> The solution to infrastructure waste lies in predictive observability. By integrating ML.NET directly into the telemetry pipeline, it is possible to model the non-linear relationships between these low-level signals and end-user latency.</p><p>Using regression algorithms like FastTree (Gradient Boosted Decision Trees), the system can analyze telemetry to forecast a breach before it manifests.</p><pre>public void TrainModel(string dataPath)<br>{<br> var dataView = _mlContext.Data.LoadFromTextFile&lt;TelemetryData&gt;(dataPath, hasHeader: true, separatorChar: &#39;,&#39;);</pre><pre> var pipeline = _mlContext.Transforms.Concatenate(&quot;Features&quot;,<br> nameof(TelemetryData.ThreadContextSwitches),<br> nameof(TelemetryData.Gen2GcCollections),<br> nameof(TelemetryData.IopsThrottleRate),<br> nameof(TelemetryData.NetworkQueueLength))<br> .Append(_mlContext.Regression.Trainers.FastTree(labelColumnName: nameof(TelemetryData.Latency), featureColumnName: &quot;Features&quot;));</pre><pre> _trainedModel = pipeline.Fit(dataView);<br>}</pre><p><strong>Ensuring Determinism for Mission Critical Systems</strong> A critical requirement for enterprise infrastructure is auditability. AI models cannot operate as black boxes when financial resources are at stake. By enforcing a deterministic context with a fixed seed during the MLContext initialization ( new MLContext(seed: 42)), we guarantee that every diagnostic report and training session can be reproduced with absolute precision. This satisfies both engineering reliability and compliance requirements.</p><p>Real-time audit log of the predictive heuristics engine. The system identifies a traffic surge at T+2s and forecasts an SLA breach (212ms) before it occurs, triggering a proactive scale-out command via CLI to prevent performance degradation.</p><p><strong>Real Time Inference and Proactive Scaling</strong> Implementing this predictive layer allows the infrastructure to understand its own breaking point. When the model evaluates a sudden spike in network queue lengths and thread locks, it predicts the resulting latency. If the forecast crosses an unacceptable threshold, it triggers a scale-out event heuristically.</p><pre>var prediction = engine.Predict(trafficSpike);</pre><pre>Console.WriteLine($&quot;[FORECAST] Predicted Latency {Math.Round(prediction.PredictedLatency, 2)} ms&quot;);</pre><pre>if (prediction.PredictedLatency &gt; 200)<br>{<br> Console.WriteLine(&quot;[CRITICAL] SLA Breach Imminent (200ms threshold crossed).&quot;);<br> Console.WriteLine(&quot;[ACTION] Triggering Node Scale-Out &amp; Process Offloading Heuristics.&quot;);<br>}</pre><p>This ensures that extra compute capacity is fully provisioned and warm before the peak traffic actually hits the cluster, allowing for a much tighter and highly efficient baseline.</p><p><strong>Technical Precision Over Resource Waste</strong> Moving toward a self-regulating environment requires a conceptual shift from static monitoring to predictive modeling. By leveraging high-fidelity telemetry and deterministic ML.NET contexts, engineering teams can finally align their cloud spend with actual demand. This transition protects both the system’s resilience and the organization’s budget without relying on traditional over-provisioning.</p><p>The complete engine architecture, CLI tools, and unit tests are open-source and available for review.</p><p><strong>GitHub Repository</strong> <a href="https://github.com/cloudsealed/Predictive-ML-Core.git">https://github.com/cloudsealed/Predictive-ML-Core.git</a></p><p><em>Originally published at </em><a href="https://medium.com/@rodrigomartinezpinto/predictive-scaling-ml-net-cloud-overprovisioning-c447597ea124"><em>https://medium.com</em></a><em> on March 23, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d1ba011665f" width="1" height="1" alt=""><hr><p><a href="https://research.cloudsealed.com/predictive-scaling-with-ml-net-to-prevent-cloud-overprovisioning-9d1ba011665f">Predictive Scaling with ML.NET to Prevent Cloud Overprovisioning</a> was originally published in <a href="https://research.cloudsealed.com/">CloudSealed Engineering Research</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predictive Scaling with ML.NET to Prevent Cloud Overprovisioning]]></title>
            <link>https://levelup.gitconnected.com/predictive-scaling-ml-net-cloud-overprovisioning-c447597ea124?source=rss-967c1029c05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c447597ea124</guid>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[finops]]></category>
            <dc:creator><![CDATA[Rodrigo Martinez Pinto]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 05:15:24 GMT</pubDate>
            <atom:updated>2026-03-26T13:47:05.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4ur-YhfiC2Ho_pEXSrLRtw.jpeg" /><figcaption>Comparison between Reactive Auto-Scaling (Red) and ML.NET Predictive Forecasting (Green). The predictive model anticipates the traffic surge, allowing for proactive resource provisioning before the system reaches a critical state.</figcaption></figure><p><strong>The Hidden Cost of Reactive Infrastructure</strong> Most cloud architectures today operate on a “tax of fear” where resources are over-provisioned by 30% to 50% simply to survive traffic spikes. This happens because traditional auto-scaling is fundamentally reactive. It waits for a CPU or RAM threshold to be breached before initiating the provisioning process. In high-throughput environments, by the time a new node is healthy and receiving traffic, the latency spike has already impacted the user experience. This gap between detection and action is where engineering budgets are wasted on idle compute instances.</p><p><strong>The Failure of Surface Level Monitoring</strong> Standard cloud dashboards focus on lagging indicators. In high-concurrency .NET environments, metrics like CPU average often fail to signal a bottleneck until it is too late. A system can be struggling internally while the CPU still appears to be within normal limits.</p><p>The true leading indicators of an imminent latency crisis are low-level runtime frictions. Ignoring signals like thread context switching or memory management pauses is the primary reason scaling strategies remain expensive and slow.</p><p><strong>Decoding Imminent Latency with Telemetry</strong> To shift from reactive to proactive, the infrastructure must monitor the internal nervous system of the application. In our engineering models, we identified four specific low-level metrics that serve as precursors to failure.</p><pre>using Microsoft.ML.Data;<br><br>namespace CloudSealed.ML.Engine.Models<br>{<br>    public class TelemetryData<br>    {<br>        [LoadColumn(0)] public float ThreadContextSwitches { get; set; }<br>        [LoadColumn(1)] public float Gen2GcCollections { get; set; }<br>        [LoadColumn(2)] public float IopsThrottleRate { get; set; }<br>        [LoadColumn(3)] public float NetworkQueueLength { get; set; }<br>        [LoadColumn(4)] public float Latency { get; set; } <br>    }<br>}</pre><p>High rates of context switching indicate that the CPU is spending more time managing threads than executing business logic. When combined with a Generation 2 Garbage Collection cycle, system latency grows exponentially.</p><p><strong>Building a Predictive Brain with ML.NET</strong> The solution to infrastructure waste lies in predictive observability. By integrating ML.NET directly into the telemetry pipeline, it is possible to model the non-linear relationships between these low-level signals and end-user latency.</p><p>Using regression algorithms like FastTree (Gradient Boosted Decision Trees), the system can analyze telemetry to forecast a breach before it manifests.</p><pre>public void TrainModel(string dataPath)<br>{<br>    var dataView = _mlContext.Data.LoadFromTextFile&lt;TelemetryData&gt;(dataPath, hasHeader: true, separatorChar: &#39;,&#39;);<br><br>    var pipeline = _mlContext.Transforms.Concatenate(&quot;Features&quot;,<br>        nameof(TelemetryData.ThreadContextSwitches),<br>        nameof(TelemetryData.Gen2GcCollections),<br>        nameof(TelemetryData.IopsThrottleRate),<br>        nameof(TelemetryData.NetworkQueueLength))<br>        .Append(_mlContext.Regression.Trainers.FastTree(labelColumnName: nameof(TelemetryData.Latency), featureColumnName: &quot;Features&quot;));<br><br>    _trainedModel = pipeline.Fit(dataView);<br>}</pre><p><strong>Ensuring Determinism for Mission Critical Systems</strong> A critical requirement for enterprise infrastructure is auditability. AI models cannot operate as black boxes when financial resources are at stake. By enforcing a deterministic context with a fixed seed during the MLContext initialization (new MLContext(seed: 42)), we guarantee that every diagnostic report and training session can be reproduced with absolute precision. This satisfies both engineering reliability and compliance requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*y89CL8BYxuGriTXLtV9Rtw.png" /><figcaption>Real-time audit log of the predictive heuristics engine. The system identifies a traffic surge at T+2s and forecasts an SLA breach (212ms) before it occurs, triggering a proactive scale-out command via CLI to prevent performance degradation.</figcaption></figure><p><strong>Real Time Inference and Proactive Scaling</strong> Implementing this predictive layer allows the infrastructure to understand its own breaking point. When the model evaluates a sudden spike in network queue lengths and thread locks, it predicts the resulting latency. If the forecast crosses an unacceptable threshold, it triggers a scale-out event heuristically.</p><pre>var prediction = engine.Predict(trafficSpike);<br><br>Console.WriteLine($&quot;[FORECAST] Predicted Latency {Math.Round(prediction.PredictedLatency, 2)} ms&quot;);<br><br>if (prediction.PredictedLatency &gt; 200)<br>{<br>    Console.WriteLine(&quot;[CRITICAL] SLA Breach Imminent (200ms threshold crossed).&quot;);<br>    Console.WriteLine(&quot;[ACTION] Triggering Node Scale-Out &amp; Process Offloading Heuristics.&quot;);<br>}</pre><p>This ensures that extra compute capacity is fully provisioned and warm before the peak traffic actually hits the cluster, allowing for a much tighter and highly efficient baseline.</p><p><strong>Technical Precision Over Resource Waste</strong> Moving toward a self-regulating environment requires a conceptual shift from static monitoring to predictive modeling. By leveraging high-fidelity telemetry and deterministic ML.NET contexts, engineering teams can finally align their cloud spend with actual demand. This transition protects both the system’s resilience and the organization’s budget without relying on traditional over-provisioning.</p><p>The complete engine architecture, CLI tools, and unit tests are open-source and available for review.</p><p><strong>GitHub Repository</strong> <a href="https://github.com/cloudsealed/Predictive-ML-Core.git">https://github.com/cloudsealed/Predictive-ML-Core.git</a></p><p><strong>Rodrigo Martinez Pinto </strong>is a Senior Software Engineer, specializing in High-Frequency Trading (HFT) systems and high-performance cloud architecture optimization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c447597ea124" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/predictive-scaling-ml-net-cloud-overprovisioning-c447597ea124">Predictive Scaling with ML.NET to Prevent Cloud Overprovisioning</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving the Latency Mismatch Between AI and High Frequency Trading]]></title>
            <link>https://levelup.gitconnected.com/solving-the-latency-mismatch-between-ai-and-high-frequency-trading-20650def33e6?source=rss-967c1029c05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/20650def33e6</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[high-frequency-trading]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <dc:creator><![CDATA[Rodrigo Martinez Pinto]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 01:26:40 GMT</pubDate>
            <atom:updated>2026-03-26T13:47:21.227Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFWZcOrCaVMFu8aI_o19kg.jpeg" /></figure><p>Everybody wants to slap a Large Language Model (LLM) or a deep neural network into their trading stack. The pitch is always the same: let the AI read real-time financial news, analyze macroeconomic sentiment, and execute trades automatically.</p><p>It sounds great in a pitch deck. In practice, it’s an architectural nightmare.</p><p>If you are building a High-Frequency Trading (HFT) system, your execution engine operates in the sub-microsecond realm. You are pinning threads to specific CPU cores, bypassing the OS kernel, and counting cache misses. On the other hand, running inference on a machine learning model — let alone querying an external LLM API — takes tens or hundreds of milliseconds. Sometimes seconds.</p><p>If you block your hot path to wait for a neural network to tell you if a news headline is bullish or bearish, you are dead. By the time the HTTP request returns, the arbitrage window has closed, the market has moved, and your algorithm is trading on stale data.</p><p>You cannot put AI in the hot path. Physics simply won’t allow it. But you still need the intelligence. Here is how you bridge the gap using out-of-band asynchronous processing and zero-copy memory mapping.</p><h3>The Latency Mismatch: Brain vs. Trigger Finger</h3><p>To understand the solution, you have to separate the system into two distinct personas: the Risk Manager (the AI) and the Sniper (the C++ execution engine).</p><p>The Sniper is dumb but unbelievably fast. It monitors order flow imbalance, tracks tick-by-tick micro-volatility, and manages local order queues. It reacts in microseconds.</p><p>The Risk Manager is smart but slow. It ingests JSON feeds of macroeconomic events, runs natural language processing on breaking news, and generates probability scores.</p><p>The architectural challenge is getting the Risk Manager to update the Sniper without ever forcing the Sniper to pause and listen. Standard Inter-Process Communication (IPC) mechanisms like TCP sockets, gRPC, or even named pipes are too heavy. They involve system calls, buffer copying, and OS-level locking.</p><h3>Out-of-Band Intelligence via Shared RAM</h3><p>The only acceptable way to pass data into a sub-microsecond loop without blocking it is through Memory-Mapped Files. We allocate a contiguous block of RAM that both the AI inference process and the C++ trading engine can read and write to simultaneously.</p><p>We define a tightly packed C++ struct to represent the shared state. No pointers, no dynamic sizing, just raw bytes.</p><p>C++</p><pre>#pragma pack(push, 1)<br>struct GlobalAssetState {<br>    // --- High-Frequency Market Data ---<br>    char symbol[16];<br>    double last_price;<br>    double current_imbalance;<br>    long long cumulative_delta;<br>    <br>    // --- Asynchronous AI &amp; ML Data ---<br>    double ml_prediction_score;<br>    double volatility_forecast;<br>    int sentiment_flag;          // 1 = Bullish, -1 = Bearish, 0 = Neutral<br>    bool emergency_force_stop;   // The AI&#39;s panic button<br>    <br>    long long last_ai_update_us;<br>};<br>#pragma pack(pop)</pre><p>Notice the strict 1-byte alignment (#pragma pack). This is critical. The AI model might be running in a completely different runtime (Python using PyTorch, or a Go service handling LLM API calls). By strictly aligning the memory, the Python process can map the exact same physical RAM block and overwrite the ml_prediction_score using standard byte offsets.</p><h3>How the Decoupling Actually Works</h3><h3>The Slow Path (AI / ML Process)</h3><p>Your machine learning service runs entirely out-of-band on a separate CPU core (or even a separate co-processor/GPU). It pulls the latest Non-Farm Payrolls data, runs it through an inference graph, and determines that the market is about to experience severe toxic flow.</p><p>It calculates a new prediction score, sets the emergency_force_stop flag to true, and writes these bytes directly to the memory-mapped file. It doesn&#39;t send a message. It doesn&#39;t wait for an acknowledgment. It just mutates the RAM.</p><h3>The Hot Path (Execution Node)</h3><p>Meanwhile, your algorithmic node (written in C#, MQL, or C++) is locked in a spin-wait loop, processing millions of order book updates. Because the memory block is mapped directly into its virtual address space, checking the AI’s opinion takes exactly one CPU cycle.</p><p>C#</p><pre>// Inside the C# / Execution Node hot loop<br>public unsafe void OnTick(double currentPrice, double imbalance) <br>{<br>    // O(1) memory read. Zero OS overhead.<br>    if (sharedState-&gt;emergency_force_stop) {<br>        CancelAllOrders();<br>        return; <br>    }<br>    if (sharedState-&gt;ml_prediction_score &gt; 0.85 &amp;&amp; imbalance &gt; THRESHOLD) {<br>        ExecuteAggressiveBuy();<br>    }<br>}<br></pre><p>There is no parsing. No deserialization. No network overhead. The execution engine is completely oblivious to how hard the AI worked to generate that 0.85 score. It just reads a floating-point number from L1 cache and fires.</p><h3>The Reality of Autonomous Trading Systems</h3><p>Attempting to make a trading algorithm “smart” by cramming complex mathematics into the execution loop is a rookie mistake. It destroys determinism.</p><p>By pushing the intelligence out-of-band, you achieve the holy grail of algorithmic trading: a system that executes with the raw, mechanical speed of hardware, but is continuously guided by the sophisticated, macro-level context of a machine learning model.</p><p>The AI dictates the rules of engagement. The C++ engine pulls the trigger. Neither waits for the other.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20650def33e6" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/solving-the-latency-mismatch-between-ai-and-high-frequency-trading-20650def33e6">Solving the Latency Mismatch Between AI and High Frequency Trading</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>