<?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 Arun on Medium]]></title>
        <description><![CDATA[Stories by Arun on Medium]]></description>
        <link>https://medium.com/@arun56?source=rss-af1ffc326bd6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BlzIywE5UDFwSR4z_J_Pww.jpeg</url>
            <title>Stories by Arun on Medium</title>
            <link>https://medium.com/@arun56?source=rss-af1ffc326bd6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:08:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arun56/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[Running Customer-Facing AI Agents Inside Your Own VPC: What Changes]]></title>
            <link>https://medium.com/beyond-the-algorithm/running-customer-facing-ai-agents-inside-your-own-vpc-what-changes-3312faf367bf?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3312faf367bf</guid>
            <category><![CDATA[ai-agents-review]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 06:06:01 GMT</pubDate>
            <atom:updated>2026-11-23T06:06:01.513Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9lZDxfR3M894PG1V.png" /><figcaption>Image from Leeway Hertz</figcaption></figure><p><em>What I’ve learned about moving voice and chat agents behind a company’s own network boundary, and what that boundary doesn’t fix.</em></p><p>When I first started talking to enterprises about customer-facing AI agents, the questions were almost all about capability. Can the agent resolve a billing dispute? Can it process a refund? Can it hold a natural conversation on the phone without sounding like a menu?</p><p>Those questions haven’t gone away. But in most conversations I have now, a different one comes up much earlier, usually from the security team rather than the CX team.</p><p><strong>Where does the agent actually run?</strong></p><p>Banks, insurers, healthcare providers and large retailers increasingly want their agents running inside their own cloud environment, in their own Virtual Private Cloud (VPC), instead of sending every customer conversation to a third-party service over the public internet.</p><p>I think that instinct is right. But I’ve also learned that moving an agent into a VPC is not a hosting decision. It changes the security model, the latency profile, the model options, the monitoring setup and, most of all, who is responsible when something breaks.</p><p>Here is what I’ve seen actually change, and what I’d tell any team before they start.</p><h3>First, What “Inside Your VPC” Really Means</h3><p>“We run it in our VPC” can describe very different architectures. I’ve sat in meetings where three people used the phrase and meant three different things. So I now start every project by agreeing which of these four setups we’re talking about:</p><ul><li><strong>Public API.</strong> The application calls a model provider over the internet. Simple to start, but customer data leaves the network on every request.</li><li><strong>Private connection to a managed model.</strong> The model is reached over a private network path, such as <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-interface-endpoints.html">Amazon Bedrock through AWS PrivateLink</a> or <a href="https://learn.microsoft.com/en-us/azure/ai-services/cognitive-services-virtual-networks">Azure AI services with private endpoints</a>. Traffic stays off the public internet, but the model still runs on the provider’s infrastructure.</li><li><strong>Vendor platform deployed in your cloud account.</strong> The agent platform runs in your environment, and the vendor operates it with limited, agreed access.</li><li><strong>Fully self-hosted.</strong> You run open-weight models yourself on inference servers such as <a href="https://github.com/vllm-project/vllm">vLLM</a>, along with the rest of the agent stack.</li></ul><p>Each step down that list gives you more control and more responsibility. In practice, most of the enterprises I work with land on a mix: self-hosted models for the steps that touch sensitive data, and a privately connected managed model for general reasoning.</p><p><strong>Agreeing on which setup you mean is the cheapest decision you’ll make in the whole project.</strong></p><h3>Lesson 1: The Boundary Gets Clearer, but the Data Still Moves</h3><p>The main reason teams move agents into their VPC is to keep customer data inside a boundary they control. That makes sense. Customer conversations are full of exactly what regulators care about: names, account numbers, addresses, health details and payment problems.</p><p>Keeping that data in your own environment makes data residency easier to show, and it makes audit conversations shorter.</p><p>But I used to treat the VPC as the end of the data question. It isn’t.</p><p>Inside the boundary, data still flows into prompts, logs, vector databases, transcripts, analytics tools and backups. Every one of those is a place it can leak from.</p><p>The numbers on this are sobering. <a href="https://newsroom.ibm.com/2025-07-30-ibm-report-13-of-organizations-reported-breaches-of-ai-models-or-applications,-97-of-which-reported-lacking-proper-ai-access-controls">IBM’s Cost of a Data Breach Report 2025</a> put the global average cost of a breach at USD 4.44 million. It found that 13% of organisations reported breaches involving AI models or applications, and that 97% of those lacked proper AI access controls.</p><p>That last figure is the one I quote most often. The problem was rarely the network path. It was who and what could reach the data once it was inside.</p><p><strong>A VPC protects the road. You still have to lock the rooms.</strong></p><h3>Lesson 2: The Agent Is a New Privileged Identity</h3><p>A useful customer-facing agent doesn’t just answer questions. It looks up orders, updates CRM records, issues refunds and opens tickets. To do that, it needs permissions.</p><p>Inside a VPC, the agent sits much closer to your internal systems than it would as an external service. Early on, I underestimated what that meant. Now I treat every agent like a privileged service account, with the same scrutiny:</p><ul><li><strong>Least privilege by default.</strong> Each agent gets the specific actions it needs, not broad access to a database.</li><li><strong>Read and write separately.</strong> Looking up a policy and changing one are different permissions.</li><li><strong>Approval for high-risk actions.</strong> Refunds above a threshold, account closures and anything irreversible wait for a person.</li><li><strong>Scoped to the conversation.</strong> The agent can only fetch records for the customer it’s talking to.</li><li><strong>Every tool call logged.</strong> What was called, with which parameters, and why.</li></ul><p>The <a href="https://genai.owasp.org/llm-top-10/">OWASP Top 10 for LLM Applications (2025)</a> lists “excessive agency” as its own risk category, and I think it’s the one that matters most once an agent is inside your network.</p><p><strong>The real question isn’t “can the agent reach this system?” It’s “should this agent, in this conversation, be allowed to take this action?”</strong></p><h3>Lesson 3: Prompt Injection Still Comes In Through the Front Door</h3><p>This is the misunderstanding I run into most often.</p><p>A VPC protects you from network-level threats. It does nothing about a customer typing something malicious into the chat window, or saying it on a call.</p><p>Prompt injection is ranked first in the OWASP list for a reason. With a customer-facing agent, the attacker doesn’t need to break into anything. They’re already a legitimate user, talking to the agent through the front door, trying to persuade it to reveal data or call a tool it shouldn’t.</p><p>It can also arrive indirectly. Research by <a href="https://arxiv.org/abs/2302.12173">Greshake et al. (2023)</a> showed that instructions hidden in content an LLM retrieves, such as a web page, an email or a document, can hijack an application that was never directly attacked. An agent that reads uploaded documents or knowledge base articles is exposed to exactly this.</p><p>So inside a VPC, I still insist on:</p><ul><li><strong>Input and output filtering</strong> for sensitive data, in both directions.</li><li><strong>Strict tool allowlists</strong> with validated parameters, so the model can’t invent an action.</li><li><strong>Egress controls</strong>, so the agent can’t send data to arbitrary external addresses.</li><li><strong>Clear separation</strong> between system instructions and anything the customer or a retrieved document provides.</li></ul><p><strong>If an agent has too much access, a VPC just means the data leaks from inside your own network.</strong></p><h3>Lesson 4: Latency Usually Improves, and Voice Notices First</h3><p>One benefit I didn’t appreciate at first was speed.</p><p>When the model, the agent logic and the business systems all run in the same cloud region, every lookup avoids a round trip across the internet. For chat, that’s a pleasant improvement. For voice, it can decide whether the agent feels natural at all.</p><p>A study of turn-taking across ten languages by <a href="https://www.pnas.org/doi/10.1073/pnas.0903616106">Stivers et al. (2009) in PNAS</a> found that the typical gap between speakers is about 200 milliseconds. A voice agent has to listen, transcribe, reason, look up data and speak back inside a delay that people judge against that instinct. Every network hop you remove helps.</p><p>The trade-off is that capacity becomes your problem. If your contact centre takes three times its normal call volume on a sale day or after a storm, your own GPUs have to absorb it.</p><p><strong>Plan for peak volume, not average volume. Customers only remember the day it was slow.</strong></p><h3>Lesson 5: Your Model Options Narrow, and That’s Often Fine</h3><p>Running inside a VPC limits you to models you can host yourself or reach through a private connection. For many teams, that means smaller, open-weight models.</p><p>I used to see that as a compromise. I don’t any more.</p><p>Most of what a customer-facing agent does is narrow and repetitive: detecting intent, extracting an order number, choosing the right tool, filling in a form. For those steps, a small model tuned to the task often performs very well, and it’s far cheaper and faster to run on your own hardware. The harder, open-ended reasoning can still go to a larger model through a private endpoint.</p><p>What does change is the operational work. Model versions, GPU capacity, autoscaling and updates become things your team manages, where a public API provider used to handle them for you.</p><p><strong>The model gets smaller. The operations job gets bigger.</strong></p><h3>Lesson 6: Monitoring and Improvement Have to Move In Too</h3><p>A customer-facing agent is never finished at launch. It needs constant attention: which conversations failed, where it handed off to a person, which answers were wrong and which tools errored.</p><p>When the agent runs in your VPC, that monitoring data stays inside too, which is good for privacy. But it means your observability, evaluation and improvement tooling has to run there as well. A tool that only works by shipping transcripts out to someone else’s cloud defeats the point.</p><p>These are the decisions I now make before launch, not after:</p><ul><li>Where transcripts and logs are stored, and for how long.</li><li>How personal data is redacted before anyone reviews a conversation.</li><li>Who is allowed to read real customer conversations, and how that access is logged.</li><li>How fixes are tested and rolled out without exposing production data.</li></ul><p><strong>An agent that can’t be monitored and improved inside your environment doesn’t stay the same. It gets worse.</strong></p><h3>Lesson 7: Responsibility Shifts Toward You</h3><p>With a public API, the provider handles uptime, patching and scaling. Inside your VPC, much of that becomes your team’s job, or a responsibility you share with your vendor.</p><p>Cloud providers have described this split for years. The <a href="https://aws.amazon.com/compliance/shared-responsibility-model/">AWS Shared Responsibility Model</a> is the familiar version: the provider secures the cloud, and you secure what you run in it. An AI agent in your account adds a third party to that picture, and the lines need to be written down.</p><p>Before go-live, I now make sure someone has named an owner for each of these: infrastructure, model updates, security patches, incident response and on-call. We also agree how the vendor gets access when something breaks. That should be a time-limited, logged and approved “break-glass” process, not standing access.</p><p><strong>Most incidents I’ve seen weren’t technical failures. They were moments when nobody was sure whose job it was.</strong></p><h3>What I’d Do Differently If I Started Again</h3><ul><li><strong>Name the deployment setup on day one.</strong> Write down which of the four patterns you’re using, step by step, before anyone designs anything.</li><li><strong>Map every place customer data lands.</strong> Prompts, logs, embeddings, analytics, backups and support tools, not just the model call.</li><li><strong>Treat each agent as a service account.</strong> Least privilege, scoped actions and approvals for anything irreversible.</li><li><strong>Red-team for prompt injection before launch.</strong> Include indirect injection through documents and knowledge base content.</li><li><strong>Lock down egress early.</strong> It’s much harder to retrofit once integrations are live.</li><li><strong>Size GPUs for your worst day.</strong> Then test that day before it happens.</li><li><strong>Bring monitoring and redaction inside.</strong> Decide where improvement happens before you need it.</li><li><strong>Write the ownership table.</strong> Infrastructure, models, security, incidents and vendor access, with a name next to each.</li><li><strong>Anchor it to a framework.</strong> The <a href="https://www.nist.gov/itl/ai-risk-management-framework">NIST AI Risk Management Framework</a> gives risk and audit teams a shared vocabulary.</li></ul><h3>What I Look for in a Platform Now</h3><p>When I evaluate agent platforms for a VPC deployment, the security posture matters as much as the feature list. I look for independent certifications, real isolation between customer environments and clear commitments on how data is used.</p><p>I pay particular attention to <a href="https://www.iso.org/standard/81230.html">ISO/IEC 42001</a>, the international standard for AI management systems published in 2023, because it covers AI-specific governance that general security certifications don’t.</p><p>Whichever vendor you choose, I’d ask the same questions:</p><ul><li>Where does each piece of data live, including logs and transcripts?</li><li>Who can access it, and how is that access approved and recorded?</li><li>Is any of it used for training?</li><li>How are customer environments separated?</li><li>Can monitoring and improvement run inside my environment?</li><li>Which certifications can you show me, and for what scope?</li></ul><h3>What Running in a VPC Means to Me Now</h3><p>Moving customer-facing agents into your own VPC is a sensible choice for many enterprises, especially in regulated industries. You get a clearer data boundary, lower latency and more control over your models.</p><p>But it doesn’t make an agent safe by itself. The risk moves from the network to the agent’s permissions, its inputs and the data it touches. The teams that do this well treat the agent like any other critical system: limited access, constant monitoring and clear ownership.</p><p>A VPC changes where the agent runs.</p><p><strong>Good engineering still decides whether it should be running there at all.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3312faf367bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beyond-the-algorithm/running-customer-facing-ai-agents-inside-your-own-vpc-what-changes-3312faf367bf">Running Customer-Facing AI Agents Inside Your Own VPC: What Changes</a> was originally published in <a href="https://medium.com/beyond-the-algorithm">Beyond The Algorithm</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When a small language model beats a frontier model on enterprise work]]></title>
            <link>https://medium.com/beyond-the-algorithm/when-a-small-language-model-beats-a-frontier-model-on-enterprise-work-d7ccc0106526?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7ccc0106526</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[enterprise]]></category>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[enterprise-ai]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 05:36:01 GMT</pubDate>
            <atom:updated>2026-11-19T05:36:01.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*L3QHvA42JTpHFHtg" /></figure><p>When a team starts an AI project, the default choice is usually the biggest, newest model available. It makes sense: frontier models top the leaderboards, handle almost any prompt you throw at them, and remove the need to think about model selection at all.</p><p>But the longer I look at how AI is used in real enterprise workflows, the more I think that default deserves to be questioned.</p><p>Most enterprise work isn’t open-ended. It’s a ticket that needs to be classified, an invoice that needs fields extracted, a lead that needs to be scored, or a customer request that needs to be routed to the right system. These tasks are narrow, repetitive and high-volume. For that kind of work, a small model that has been trained on the task can match or beat a frontier model on accuracy, and win easily on cost, speed and control.</p><p>This article covers what the research says, where small models win, where they don’t, and how I’d decide between the two.</p><h3>What counts as a “small” model?</h3><p>There’s no strict definition, but a useful working line comes from NVIDIA Research. In their 2025 position paper, <a href="https://arxiv.org/abs/2506.02153">Small Language Models are the Future of Agentic AI</a>, the authors say most models below 10 billion parameters would be considered small language models (SLMs) as of 2025.</p><p>That covers open-weight families like Microsoft’s Phi, Meta’s smaller Llama models, Mistral 7B, Qwen and Gemma. These models can run on a single GPU, and some run on a laptop. Frontier models, by comparison, are far larger and are usually reached only through a provider’s API.</p><h3>The evidence that small models can win</h3><p>This isn’t just a theory. Several well-documented results show smaller models outperforming much larger ones when the task is well defined.</p><h3>A 770M model beating a 540B model</h3><p>In 2023, Google Research published <a href="https://research.google/blog/distilling-step-by-step-outperforming-larger-language-models-with-less-training-data-and-smaller-model-sizes/">Distilling step-by-step</a>. The team used a large model to generate step-by-step reasoning for training examples, then trained a much smaller model on both the answers and the reasoning. On the ANLI benchmark, a 770-million-parameter T5 model outperformed the 540-billion-parameter PaLM, a model more than 700 times larger, while using only 80% of the available training data.</p><h3>310 fine-tuned models against GPT-4</h3><p>In 2024, Predibase published <a href="https://arxiv.org/abs/2405.00732">LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4</a>. The team fine-tuned 10 base models on 31 tasks using LoRA, a lightweight fine-tuning method. On average, the 4-bit fine-tuned models scored 34 points higher than their base models and 10 points higher than GPT-4.</p><p>The report also showed something that matters a lot for cost: 25 fine-tuned Mistral-7B models were served from a single NVIDIA A100 GPU.</p><p>One caveat is worth stating plainly. The evaluation used zero- or single-shot, completion-style prompts with the same training settings for every model, so the results won’t carry over exactly to every workload. The direction of the result is still hard to ignore.</p><h3>A 14B model beating its own teacher</h3><p>Microsoft’s <a href="https://arxiv.org/abs/2412.08905">Phi-4 technical report</a> (December 2024) describes a 14-billion-parameter model trained heavily on synthetic data. The authors report that it exceeds its teacher, GPT-4o, on GPQA (graduate-level STEM questions) and the MATH competition benchmark. To check for contamination, they also tested it on AMC-10 and AMC-12 problems released after its training data was collected.</p><h3>The market is moving the same way</h3><p>In April 2025, <a href="https://www.gartner.com/en/newsroom/press-releases/2025-04-09-gartner-predicts-by-2027-organizations-will-use-small-task-specific-ai-models-three-times-more-than-general-purpose-large-language-models">Gartner predicted</a> that by 2027, organizations will use small, task-specific AI models at least three times more, by usage volume, than general-purpose LLMs. Gartner’s reasoning was that general-purpose models lose accuracy on tasks that need specific business context, while smaller models respond faster and use less compute.</p><h3>Why a smaller model can do better</h3><p>At first this feels counterintuitive. How can a model with a fraction of the parameters give better answers? I think there are four reasons.</p><h3>1. Most enterprise tasks are narrow</h3><p>A frontier model is built to write poetry, debug code, explain tax law and plan a holiday. A support-ticket classifier needs to do one thing well. When the task is narrow, most of a frontier model’s general capability is unused, and you still pay for it on every call.</p><h3>2. Your data beats general knowledge</h3><p>The model that knows your product names, your ticket categories, your refund rules and the way your customers write will usually outperform a model that only knows the internet. Fine-tuning puts that knowledge into the model’s weights instead of into a long prompt that has to be present with every request.</p><h3>3. Consistency matters more than brilliance</h3><p>In an automated workflow, the output usually goes straight into another system. A CRM field needs a valid value, and an API call needs valid JSON. A fine-tuned small model trained on thousands of correct examples tends to produce the expected format reliably. A general model may give a more eloquent answer that breaks the parser downstream.</p><h3>4. Latency changes the user experience</h3><p>For a voice agent, a long pause feels broken. For a chat agent handling thousands of conversations, slow responses mean queues. Smaller models generate tokens faster on the same hardware, and that speed is often the difference between an agent that feels natural and one that feels slow.</p><h3>Where small models usually win</h3><p>Based on the research above and the way enterprise workflows are structured, these are the tasks where I’d test a small model first:</p><ul><li><strong>Classification and routing:</strong> intent detection, ticket categorisation, sentiment, priority scoring</li><li><strong>Information extraction:</strong> pulling fields from invoices, contracts, emails and forms</li><li><strong>Structured outputs and tool calls:</strong> producing valid JSON, filling API parameters, choosing which tool to call</li><li><strong>High-volume repeated tasks:</strong> anything running millions of times a month, where cost per call adds up fast</li><li><strong>Latency-sensitive interactions:</strong> voice agents and real-time chat</li><li><strong>Workloads with strict data rules:</strong> tasks where data can’t leave your environment, because small models are practical to self-host</li></ul><p>The NVIDIA paper makes a related point about agents specifically. Most of what an agent does is a series of repetitive, narrowly scoped sub-tasks, such as parsing a request, calling a tool or formatting a response, not open-ended conversation. The authors estimate that serving a 7B model is 10 to 30 times cheaper in latency, energy and compute than serving a 70B to 175B model. Their figure is an estimate rather than a benchmark, but even a fraction of that gap is significant at enterprise volume.</p><h3>Where frontier models still win</h3><p>I don’t think small models are the answer to everything. Frontier models are still the better choice when:</p><ul><li><strong>The task is open-ended:</strong> research, strategy, complex writing or questions nobody anticipated</li><li><strong>Reasoning spans many steps and domains:</strong> planning that pulls together unfamiliar information</li><li><strong>You have no training data yet:</strong> fine-tuning needs good labelled examples, and a frontier model works from day one</li><li><strong>Volume is low:</strong> if a task runs a few hundred times a month, the engineering effort of fine-tuning rarely pays back</li><li><strong>The long tail matters:</strong> rare, unusual requests that a narrow model has never seen</li></ul><h3>The pattern that works: use both</h3><p>The most practical setup I’ve seen isn’t “small versus frontier”. It’s a system that uses each where it fits. Gartner recommends composite approaches that combine several models and workflow steps, and the NVIDIA paper argues for heterogeneous agent systems that call different models for different jobs.</p><p>In practice, that looks like this:</p><ol><li><strong>Start with a frontier model</strong> to prove the workflow and collect real examples.</li><li><strong>Use those examples to train a small model</strong> on the high-volume, well-defined steps. The frontier model can act as the teacher, generating labels and reasoning, the same idea behind Distilling step-by-step.</li><li><strong>Route by confidence.</strong> The small model handles the routine cases, and anything uncertain or unusual goes to the frontier model or a human.</li><li><strong>Keep evaluating.</strong> Compare both models on the same test set, and retrain when the small model starts to drift.</li></ol><p>This way, the expensive model handles the hard 10 to 20% of cases, and the cheap, fast model handles the predictable majority.</p><h3>How I’d decide for a specific workflow</h3><p>Before choosing a model, I’d answer six questions:</p><ol><li><strong>How narrow is the task?</strong> Can you describe the correct output precisely?</li><li><strong>How much volume is there?</strong> Thousands of calls a day change the cost math completely.</li><li><strong>Do you have labelled examples?</strong> A few thousand good examples is a reasonable starting point for fine-tuning.</li><li><strong>What’s your latency budget?</strong> Voice and real-time chat leave very little room.</li><li><strong>Where must the data stay?</strong> If it can’t leave your environment, self-hosting a small model may be the simplest route.</li><li><strong>Who will maintain it?</strong> A fine-tuned model needs evaluation, retraining and monitoring. If no one owns that, the accuracy gains won’t last.</li></ol><p>Most importantly, build an evaluation set from your own data before you compare anything. Public benchmarks tell you what a model can do in general. Only your own test set tells you what it will do on your work.</p><h3>The bigger lesson</h3><p>Model choice is starting to look a lot like any other engineering decision. You wouldn’t run a simple lookup on your most expensive server, and you probably shouldn’t run a simple classification on your most expensive model either.</p><p>Frontier models are remarkable, and they’ll keep getting better. But for the narrow, repetitive, high-volume tasks that make up most enterprise work, a well-trained small model is often more accurate, faster, cheaper and easier to control.</p><p>The question to ask isn’t “which model is the most capable?” It’s “which model is right for this specific step?”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7ccc0106526" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beyond-the-algorithm/when-a-small-language-model-beats-a-frontier-model-on-enterprise-work-d7ccc0106526">When a small language model beats a frontier model on enterprise work</a> was originally published in <a href="https://medium.com/beyond-the-algorithm">Beyond The Algorithm</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Customer-Facing AI Agents Inside Your Own VPC: What Changes]]></title>
            <link>https://medium.com/@arun56/running-customer-facing-ai-agents-inside-your-own-vpc-what-changes-61c7bfaf47e7?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/61c7bfaf47e7</guid>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai-agent-security]]></category>
            <category><![CDATA[ai-agent-development]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 09:34:23 GMT</pubDate>
            <atom:updated>2026-11-13T09:34:23.685Z</atom:updated>
            <content:encoded><![CDATA[<p>A year or two ago, most conversations about customer-facing AI agents were about capability. Can the agent resolve a billing question? Can it handle a refund? Can it hold a natural conversation on the phone?</p><p>Now, in most enterprise conversations I see, a different question comes up much earlier: <strong>where does the agent actually run?</strong></p><p>Banks, insurers, healthcare providers and large retailers increasingly want their AI agents running inside their own cloud environment, in their own Virtual Private Cloud (VPC), rather than sending every customer conversation to a third-party service over the public internet.</p><p>That’s a reasonable instinct. But moving an agent inside your VPC isn’t just a hosting decision. It changes your security model, your latency, your model options, your monitoring and who is responsible when something breaks. Here’s what I think actually changes.</p><h3>First, what “inside your VPC” really means</h3><p>“We run it in our VPC” can mean very different things, and it’s worth being precise before making any decisions. There are roughly four setups:</p><ol><li><strong>Public API:</strong> your application calls a model provider over the internet. Simple, but customer data leaves your network on every request.</li><li><strong>Private connection to a managed model:</strong> you use a cloud provider’s model service through a private network path, such as <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/vpc-interface-endpoints.html">Amazon Bedrock with AWS PrivateLink</a> or <a href="https://learn.microsoft.com/en-us/azure/ai-services/cognitive-services-virtual-networks">Azure AI services with private endpoints</a>. Traffic stays off the public internet, but the model still runs on the provider’s infrastructure.</li><li><strong>Vendor platform deployed in your cloud account:</strong> the agent platform runs in your environment, and the vendor manages it with limited, agreed access.</li><li><strong>Fully self-hosted:</strong> you run open-weight models yourself, using inference servers such as <a href="https://github.com/vllm-project/vllm">vLLM</a>, along with the rest of the agent stack.</li></ol><p>Each step down that list gives you more control and more responsibility. Most enterprises end up with a mix: a self-hosted model for sensitive steps, and a privately connected managed model for more general reasoning.</p><h3>1. The data boundary gets clearer, but it doesn’t disappear</h3><p>The main reason teams move agents into their VPC is to keep customer data inside a boundary they control. Customer conversations contain exactly the information regulators care about: names, account numbers, addresses, health details and payment issues.</p><p>Keeping that data inside your environment makes it easier to meet data residency requirements under regulations like the EU’s GDPR and India’s Digital Personal Data Protection Act, 2023, and to answer the questions auditors will ask.</p><p>The cost of getting this wrong is real. <a href="https://newsroom.ibm.com/2025-07-30-ibm-report-13-of-organizations-reported-breaches-of-ai-models-or-applications,-97-of-which-reported-lacking-proper-ai-access-controls">IBM’s Cost of a Data Breach Report 2025</a> puts the global average cost of a breach at USD 4.44 million. It also found that 13% of organizations reported breaches involving AI models or applications, and that 97% of those organizations lacked proper AI access controls.</p><p>That last number is the important one. A VPC protects the network path, but the data still moves inside it, into prompts, logs, vector databases, analytics tools and transcripts. If those aren’t controlled, the boundary is weaker than it looks.</p><h3>2. The agent becomes a new identity to manage</h3><p>A customer-facing agent doesn’t just answer questions. To be useful, it needs to look up orders, update CRM records, issue refunds and create tickets. In other words, it needs permissions.</p><p>Inside your VPC, the agent sits much closer to your internal systems, so I’d treat it like any other privileged service account:</p><ul><li>Give each agent the minimum permissions it needs, not broad access to a database</li><li>Separate read actions from write actions, and require approval for high-risk ones like refunds above a threshold</li><li>Scope every action to the customer in the current conversation, so the agent can’t fetch someone else’s records</li><li>Log every tool call with who, what and why</li></ul><p>The question isn’t only “can the agent reach this system?” It’s “should this agent, in this conversation, be allowed to take this action?”</p><h3>3. Prompt injection still gets through the front door</h3><p>This is the part I think is most often misunderstood. A VPC protects you from network-level threats. It doesn’t protect you from a customer typing something malicious into the chat window.</p><p>Prompt injection is ranked as the top risk in the <a href="https://genai.owasp.org/llmrisk/llm01-prompt-injection/">OWASP Top 10 for LLM Applications 2025</a>. In a customer-facing agent, the attacker doesn’t need to break into your network. They’re already a user of the agent, and they can try to talk it into revealing data or calling tools it shouldn’t.</p><p>So inside a VPC you still need:</p><ul><li>Input and output filtering for sensitive data</li><li>Strict allowlists for which tools an agent can call, with validated parameters</li><li>Egress controls, so the agent can’t send data to arbitrary external URLs</li><li>Clear separation between system instructions and anything the customer provides</li></ul><p>If the agent has too much access, a VPC just means the data leaks from inside your own network.</p><h3>4. Latency usually improves, and that matters most for voice</h3><p>One benefit that’s easy to overlook is speed. When the model, the agent logic and your business systems all run in the same cloud region, every lookup avoids a round trip across the internet.</p><p>For chat, this is a nice improvement. For voice, it’s critical. Research on human conversation published in <a href="https://www.pnas.org/doi/10.1073/pnas.0903616106">PNAS (Stivers et al., 2009)</a> found that across ten languages, the typical gap between speakers taking turns is only about 200 milliseconds. A voice agent has to listen, transcribe, reason, look up data and speak back within a delay that feels natural, so every network hop you remove helps.</p><p>The trade-off is that you now own the capacity planning. If your contact centre gets three times its normal call volume on a sale day, your GPUs have to handle it.</p><h3>5. Your model options change</h3><p>Running inside your VPC narrows your model choices to what you can host yourself or reach through a private connection. For many teams, that pushes them toward smaller, open-weight models.</p><p>That’s often less of a compromise than it sounds. For the narrow, repetitive steps that make up most customer interactions, such as intent detection, data extraction and tool calling, fine-tuned small models can perform very well, and they’re far cheaper and faster to run on your own hardware. The harder, open-ended reasoning steps can still go to a larger model through a private endpoint.</p><p>What does change is the operational work. You’ll need to manage model versions, GPU capacity, autoscaling and updates, which are things a public API provider normally handles for you.</p><h3>6. Monitoring and improvement have to come with you</h3><p>An agent in production needs constant monitoring: which conversations failed, where it escalated to a human, which answers were wrong and which tools errored.</p><p>When everything runs in your VPC, that monitoring data stays inside too, which is good for privacy. But it means your observability, evaluation and improvement tooling has to run there as well. I’d decide early:</p><ul><li>Where transcripts and logs are stored, and for how long</li><li>How personal data is redacted before anyone reviews conversations</li><li>Who is allowed to read real customer conversations</li><li>How fixes are tested and rolled out without exposing production data</li></ul><p>An agent that can’t be monitored and improved inside your environment will get worse over time, not better.</p><h3>7. Responsibility shifts to you</h3><p>With a public API, the provider handles uptime, patching and scaling. Inside your VPC, much of that becomes your team’s job, or a responsibility shared with your vendor.</p><p>Before going live, it’s worth writing down who owns each piece: infrastructure, model updates, security patches, incident response and on-call. You’ll also need to agree how the vendor gets access when something breaks, usually through a time-limited, logged, approved “break-glass” process rather than standing access.</p><h3>What I’d check when choosing a platform</h3><p>If you’re evaluating agent platforms for a VPC deployment, the security posture matters as much as the features. I’d look for independent certifications, isolation between customer environments and clear rules on how your data is used.</p><p>As one example of what that looks like, <a href="https://www.nuplay.ai/">NuPlay AI</a>, which builds AI agents for customer support, sales and other enterprise workflows, states that it holds ISO 27001, ISO 42001 and SOC 2 Type II certifications, isolates each customer environment and never uses customer data for training. ISO 42001 is worth paying attention to in particular, because it’s the international standard for AI management systems, published in 2023, and it covers AI-specific governance that general security certifications don’t.</p><p>Whichever vendor you choose, ask the same questions: where does the data live, who can access it, is it used for training, how are environments separated, and which certifications can they show you?</p><h3>A checklist before you go live</h3><ol><li>Decide which of the four deployment setups you’re actually using, step by step</li><li>Map every place customer data goes: prompts, logs, embeddings, analytics and backups</li><li>Give each agent least-privilege access, with approvals for high-risk actions</li><li>Test for prompt injection and data leakage before launch, not after</li><li>Lock down egress so agents can only reach approved destinations</li><li>Plan GPU capacity for peak volume, not average volume</li><li>Set up monitoring, redaction and evaluation inside the environment</li><li>Write down who owns infrastructure, models, security and incidents</li><li>Align with a recognised framework, such as the <a href="https://www.nist.gov/itl/ai-risk-management-framework">NIST AI Risk Management Framework</a></li></ol><h3>The bigger lesson</h3><p>Running customer-facing agents inside your own VPC is a sensible move for many enterprises, especially in regulated industries. It gives you a clearer data boundary, lower latency and more control over models.</p><p>But it doesn’t make an agent secure by itself. The risks move from the network to the agent’s permissions, its inputs and the data it handles. The teams that do this well treat the agent like any other critical system: limited access, constant monitoring and clear ownership.</p><p>A VPC changes where the agent runs. Good engineering still decides whether it’s safe to run there.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61c7bfaf47e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who Owns the Model? Questions to Ask Before You Pay to Train a Custom One]]></title>
            <link>https://medium.com/beyond-the-algorithm/who-owns-the-model-questions-to-ask-before-you-pay-to-train-a-custom-one-70f1634b1724?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/70f1634b1724</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[enterprise-ai-workflows]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[enterprise-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 07:41:01 GMT</pubDate>
            <atom:updated>2026-11-11T07:41:01.501Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ik7sHyV6K_xsF72H.png" /></figure><p><em>The ownership questions I’d settle before signing, not after the first invoice.</em></p><p>“We’ll train a custom model on your data” is an attractive pitch.</p><p>It suggests something the business can keep: a model shaped by your own processes, your own language and your own edge cases. Something your competitors don’t have.</p><p>But paying for a model to be trained is not the same as owning it.</p><p>In my experience, “who owns the model?” is rarely one question. It’s several questions packed into one word, and the answers can point in different directions. A team can own its training data, have exclusive use of a fine-tuned model, and still be unable to move that model anywhere else.</p><p>That’s why I try to settle ownership before the training starts, not after the first renewal conversation.</p><h3>“Ownership” Is Really Five Different Things</h3><p>When I break the question down, I usually end up with five separate parts:</p><ul><li><strong>The training data.</strong> Who owns it, where it’s stored, how long it’s kept and whether it can be used for anything else.</li><li><strong>The weights.</strong> Who has the trained model file, and whether you can ever take a copy.</li><li><strong>The right to run it.</strong> Where inference is allowed to happen: the vendor’s cloud, your cloud account, on-premises or nowhere outside the vendor’s platform.</li><li><strong>The base model.</strong> Most custom models start from someone else’s foundation model, and that model’s license comes with it.</li><li><strong>The outputs and improvements.</strong> Who owns what the model produces, and whether your data improves anyone else’s model.</li></ul><p>These don’t always travel together. Being clear about each one separately is the whole point.</p><h3>Exclusive Use Is Not the Same as Custody</h3><p>Hosted fine-tuning is the most common route, so it’s a good place to start.</p><p>OpenAI’s <a href="https://openai.com/enterprise-privacy/">enterprise privacy page</a> is fairly direct about this. It says customer fine-tuned models are “for your use alone.” They aren’t served to other customers or used to train other models, and fine-tuning data is kept until the customer deletes it.</p><p>That’s a meaningful commitment, and it answers the exclusivity question well.</p><p>But it’s a different question from custody. A model fine-tuned on a hosted platform is used through that platform. The commitment is that nobody else gets your model. It doesn’t mean the weights leave with you if you change provider.</p><p>For many teams, that’s a perfectly reasonable trade. I just want it to be a decision, not an assumption.</p><p>The question I’d ask:</p><p><em>If we stopped using your platform tomorrow, what would we be able to take with us?</em></p><h3>Open Weights Come With Their Own Rules</h3><p>The opposite route is fine-tuning an open-weight model, so the weights sit in your own environment.</p><p>That solves custody. It doesn’t remove obligations.</p><p>Take the <a href="https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE">Llama 3.1 Community License</a>. If you distribute a model built on Llama, or make it available, you have to display “Built with Llama” and include “Llama” at the beginning of the model’s name. There is also a commercial clause: if your products had more than 700 million monthly active users when that version was released, you need a separate license from Meta.</p><p>Most companies won’t come anywhere near that threshold. The broader point still matters:</p><p><strong>holding the weights doesn’t erase the base model’s license.</strong> Whatever is fine-tuned on top inherits it.</p><p>So for any custom model, I’d want the base model and its license named in writing.</p><h3>Where It Runs Doesn’t Settle Who Owns It</h3><p>The third route is a vendor that builds or adapts a model for you and deploys it close to your data, often in your own cloud account.</p><p>This is where the language gets most confusing, because words like “private,” “dedicated” and “self-hosted” are easily read as ownership.</p><p>NuPlay AI makes this distinction clearly in their review of <a href="https://www.nuplay.ai/knowledge-hub/enterprise-small-language-model-vendors-who-builds-owns-and-self-hosts-the-model-layer">enterprise small language model vendors</a>. They treat deployment location, model IP ownership, possession of weights and data-control terms as separate things. A deployment inside a customer’s VPC doesn’t by itself mean the customer owns the weights, and API access isn’t the same as possessing a model.</p><p>I find that framing useful because it matches how contracts actually work. A model can run in your environment and still belong to the vendor. That can be a good arrangement. It just isn’t ownership.</p><h3>The Questions I’d Ask Before Paying</h3><p>This is the checklist I’d work through with any vendor, or any internal team, proposing a custom model.</p><p><strong>On training data</strong></p><ul><li>Who owns the data we provide, and does that change once it’s been used for training?</li><li>Where is it stored, for how long, and how do we delete it?</li><li>Will our data or our model’s outputs be used to improve your general models or other customers’ models?</li></ul><p><strong>On the weights</strong></p><ul><li>Who owns the trained weights?</li><li>Can we receive a copy, and in what format?</li><li>If not now, under what conditions: end of contract, vendor insolvency, change of control?</li></ul><p><strong>On the base model</strong></p><ul><li>Which base model is this built on, and which version?</li><li>What does its license require of us, both now and if we distribute the model later?</li><li>What happens if the base model is deprecated or its license changes?</li></ul><p><strong>On deployment</strong></p><ul><li>Where does inference actually run, end to end?</li><li>Does any request still go to an external model provider?</li><li>Who holds the encryption keys, and where are logs stored?</li></ul><p><strong>On exit</strong></p><ul><li>If we leave, what do we take with us: weights, training data, evaluation sets, prompts, configuration?</li><li>How long would it take to reproduce the model’s performance somewhere else?</li><li>Is any of that work documented in a way our team could actually use?</li></ul><p><strong>On improvement</strong></p><ul><li>When the model is retrained, who decides what goes in?</li><li>Do we see the evaluation results before a new version ships?</li><li>Can we roll back to a previous version</li></ul><h3>A Simple Way to Think About It</h3><p>If I had to reduce this to one test, it would be this:</p><p><em>Write down what the business must still have on the day the vendor relationship ends.</em></p><p>For some teams, the answer is the weights. For others, exclusive use and strong data terms are enough. Some teams care mostly about being able to rebuild quickly.</p><p>That last group often forgets the most portable assets of all: <strong>the training data, the labeled examples and the evaluation set.</strong> Weights tie you to a base model and a format. A well-curated dataset and a solid eval suite can be used to train or test the next model, whoever provides it.</p><p>If those stay with you, a lot of the ownership risk goes away.</p><h3>Ownership Is a Design Decision</h3><p>I don’t think every team needs to own its model weights. In many cases, a hosted fine-tune with clear exclusivity and deletion terms is the sensible choice.</p><p>What I’d avoid is finding out what you own <em>after</em> you’ve paid to build it.</p><p>A custom model is a long-term asset or a long-term dependency, and the contract usually decides which. The time to ask is before training starts, while the answers can still change.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70f1634b1724" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beyond-the-algorithm/who-owns-the-model-questions-to-ask-before-you-pay-to-train-a-custom-one-70f1634b1724">Who Owns the Model? Questions to Ask Before You Pay to Train a Custom One</a> was originally published in <a href="https://medium.com/beyond-the-algorithm">Beyond The Algorithm</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What “Self-Improving” AI Agents Really Means, and How to Test the Claim]]></title>
            <link>https://medium.com/@arun56/what-self-improving-ai-agents-really-means-and-how-to-test-the-claim-776375ab1507?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/776375ab1507</guid>
            <category><![CDATA[ai-agents-review]]></category>
            <category><![CDATA[build-ai-agents]]></category>
            <category><![CDATA[aiagentsdevelopment]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 05:45:05 GMT</pubDate>
            <atom:updated>2026-11-02T05:45:05.429Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I separate a real learning loop from a phrase on a product page.</em></p><p>“Self-improving” has become one of the most common phrases in AI agent marketing.</p><p>It sounds like exactly what every team wants. Deploy the agent once, let it learn from production, and watch it get better every week without anyone touching it.</p><p>When I hear the phrase, though, I don’t think about the outcome first. I think about the mechanism.</p><p>Something has to change for an agent to improve. Something has to decide that the change is better. And someone has to be accountable when the change turns out to be wrong.</p><p>If a vendor or an internal team can’t explain those three things clearly, I treat “self-improving” as a description of intent, not of a working system.</p><h3>“Self-Improving” Can Mean Three Very Different Things</h3><p>The first thing I try to establish is <em>what</em> actually improves. In practice, I’ve seen the phrase used for three different mechanisms.</p><p><strong>1. The model’s weights change.</strong></p><p>Production data is collected and used to fine-tune the underlying model. This is what most people imagine when they hear “the agent learns.” It is also the least common in live enterprise systems, because retraining is expensive, slow to validate and hard to roll back.</p><p><strong>2. The agent’s memory or context changes.</strong></p><p>The model stays the same, but the agent stores lessons, examples or reflections and retrieves them in later runs. The improvement lives in what the agent is given, not in the model itself.</p><p><strong>3. The system around the agent changes.</strong></p><p>Prompts, tool definitions, routing rules, retrieval sources, guardrails and test cases get updated based on what happened in production. Often a pipeline proposes the change and a person approves it.</p><p>All three can be legitimate. But they have very different risk profiles, and they need to be tested differently.</p><p>When someone tells me their agent is self-improving, my first question is simple:</p><p><em>Which artifact changes, and where can I see the before and after?</em></p><h3>Improvement Needs a Signal From Outside the Model</h3><p>The second thing I look for is the source of the feedback.</p><p>This matters more than it first appears. The research on self-correction is fairly consistent on one point: models improve reliably when they get a signal from outside themselves, and much less reliably when they only judge their own work.</p><p>The <a href="https://arxiv.org/abs/2303.11366">Reflexion paper (Shinn et al., 2023)</a> is a good example of the first case. Its agents don’t update their weights. Instead, they write short verbal reflections after a failed attempt, store them in memory and use them on the next try. On the HumanEval coding benchmark, the authors report 91% pass@1, compared with 80% for the GPT-4 baseline they cite.</p><p>What makes that work is the feedback. For coding tasks, the agent can run tests. A failing test is an external, objective signal that something went wrong</p><p>Now compare that with <a href="https://arxiv.org/abs/2310.01798"><em>Large Language Models Cannot Self-Correct Reasoning Yet</em> (Huang et al., ICLR 2024)</a>. The authors looked at what they call intrinsic self-correction, where a model reviews and revises its own answer with no external feedback. On reasoning tasks, performance often failed to improve and sometimes got worse after self-correction. Some earlier positive results depended on using the correct answer to decide when to stop correcting, which is information a production system doesn’t have.</p><p>I take a practical lesson from these two papers together:</p><p><em>An agent that “reflects” without an external signal isn’t learning. It’s guessing twice.</em></p><p>So my second question is:</p><p><em>What tells the agent that a run was wrong, and how trustworthy is that signal?</em></p><p>In a real workflow, a good signal might be a failed API validation, a customer reopening a ticket, a human reviewer overriding an output, a payment that didn’t reconcile or an escalation that shouldn’t have happened. A weak signal is the agent rating its own answer as “good.”</p><h3>What a Real Improvement Loop Looks Like</h3><p>When I picture a credible self-improving system, I don’t picture an agent quietly rewriting itself. I picture a loop with clear stages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*Ia2pzhyqso4iPPDTyIbZsw.png" /></figure><p>Some of these stages can be automated. Collection can be automatic. Attribution can be partly automatic. Even proposing a fix can be automated. What I want to see is evidence that every change passed through testing and an approval point before it reached production.</p><p>NuPlay AI describes this well in their piece on <a href="https://www.nuplay.ai/blogs/what-is-a-closed-feedback-loop-for-enterprise-ai-agents">closed feedback loops for enterprise AI agents</a>. They break the loop into signal collection, evaluation, improvement and controlled rollout, and make a point I agree with: if you can’t show who approved a change, what evidence justified it and how you’d reverse it, you have monitoring, not a closed loop.</p><p>That’s a useful line to draw. A lot of “self-improving” claims are really “we log everything and someone looks at it sometimes.”</p><h3>How I Test the Claim</h3><p>If I were evaluating a self-improving agent, whether from a vendor or from my own team, these are the checks I’d run.</p><p><strong>1. Name the thing that changes.</strong></p><p>Weights, memory, prompts, tools, retrieval or routing. If nobody can name it, there’s nothing to test.</p><p><strong>2. Name the signal.</strong></p><p>What specific outcome triggers an improvement? Is it external to the model? Can it be wrong?</p><p><strong>3. Show a before and after on a frozen test set.</strong></p><p>Improvement needs a fixed reference point. If the evaluation set changes every week, any trend line is hard to trust. I want a stable set of tasks the agent is measured against over time.</p><p><strong>4. Show the regression results.</strong></p><p>Fixing one failure can quietly break others. A real loop tests every change against previous cases, not just the case that triggered it.</p><p><strong>5. Show the approval and rollback record.</strong></p><p>Who approved the last five changes? What evidence did they see? How long would it take to revert one?</p><p><strong>6. Separate learning from drift.</strong></p><p>Agent behavior changes for many reasons: new model versions, new data, new user behavior. I want to know which improvements came from the loop and which came from something else changing underneath it.</p><h3>A Simple Pilot Test</h3><p>The most convincing test I know is to deliberately plant a failure.</p><p>During a pilot, I’d pick a realistic case the agent currently gets wrong. That could be an unusual abbreviation, a policy exception or a tool that returns an unexpected error code. Then I’d watch what happens:</p><ul><li>Does the system detect the failure on its own?</li><li>How long does it take for a fix to be proposed?</li><li>Is the fix tested before release?</li><li>Does it generalize to reworded versions of the same case?</li><li>Did anything else get worse?</li></ul><p>This turns a marketing claim into something measurable. Either the loop catches and fixes the problem with evidence, or it doesn’t.</p><h3>Red Flags I Watch For</h3><p>Some phrases make me more cautious:</p><ul><li><strong>“It learns automatically from every conversation.”</strong> From what signal? Approved by whom?</li><li><strong>“No human in the loop needed.”</strong> For a narrow, low-risk task, maybe. For anything touching customers, money or regulated decisions, I’d want to know why not.</li><li><strong>“Accuracy keeps going up.”</strong> Measured against what? A frozen set, or whatever the team chose to test that month?</li><li><strong>“The model critiques its own answers.”</strong> Useful as one step, but on its own it isn’t evidence of improvement.</li></ul><p>None of these makes a product bad. They just tell me where to ask the next question.</p><h3>The Goal Is Measurable, Controlled Improvement</h3><p>I don’t think the goal is an agent that improves itself without anyone watching.</p><p>The goal is an agent whose improvements are visible, tested and reversible.</p><p>When I strip away the language, “self-improving” should mean something specific:</p><p>The system turns real outcomes into candidate changes. It tests those changes against what it already knows. A person can see and approve what ships. And there’s a record of whether things actually got better.</p><p>That’s less magical than the phrase suggests. But it’s much more useful, and it’s something I can actually test.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=776375ab1507" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Invoice Processing and AP Automation With Document Agents]]></title>
            <link>https://medium.com/@arun56/invoice-processing-and-ap-automation-with-document-agents-97159901e9fd?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/97159901e9fd</guid>
            <category><![CDATA[ap-automation-solutions]]></category>
            <category><![CDATA[invoice-processing]]></category>
            <category><![CDATA[ap-automation]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 06:38:42 GMT</pubDate>
            <atom:updated>2026-10-28T06:38:42.656Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I approach automating invoice processing while preserving financial controls.</em></p><p>Accounts payable (AP) involves much more than entering invoice details into an accounting system. Finance teams receive invoices from different suppliers, verify amounts, match purchase orders, check supporting records, obtain approvals, and prepare payments. Each step introduces opportunities for delays, inconsistent data, and avoidable manual work.</p><p>When I approach AP automation with document agents, I focus on the entire process, from invoice intake to approved invoice creation. Data extraction is an important starting point, but I see the greatest operational value in connecting extraction with validation, reconciliation, exception handling, and controlled system execution.</p><p>My goal is to design a workflow that handles routine invoices consistently, identifies discrepancies before they become financial problems, and gives the AP team enough information to resolve exceptions efficiently.</p><h3>I Start With Reliable Invoice Intake</h3><p>Invoices arrive through email, supplier portals, electronic invoicing systems, and other channels. Their formats can vary significantly, even when they contain similar information.</p><p>I would begin with an intake agent that identifies incoming documents, separates invoices from unrelated attachments, and assigns each document to the appropriate processing workflow.</p><p>A document extraction agent could then identify supplier details, invoice numbers, invoice dates, payment terms, tax amounts, line items, and totals. OCR and document intelligence models can help process scanned documents and digital PDFs, while more advanced models can interpret variations in layout and field placement.</p><p>The<a href="https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/prebuilt/invoice?view=doc-intel-3.1.0"> Azure AI Document Intelligence invoice model documentation</a> provides a practical example of extracting invoice fields and line items into structured data.</p><p>I would use the resulting information to prepare a standardized invoice record that downstream systems can validate and process. I would also retain the original invoice so that extracted values can be checked against their source whenever necessary.</p><h3>Why I Separate Extraction From Validation</h3><p>An invoice can be readable and still contain incorrect information.</p><p>A supplier name might match an existing vendor record while the payment details have changed unexpectedly. The invoice total might differ from the purchase order, or the same invoice might already have been submitted through another channel.</p><p>For these reasons, I treat extraction and validation as separate stages.</p><p>I would validate the supplier against the vendor master, check invoice identifiers for potential duplicates, verify that mandatory fields are present, and compare the extracted amounts against the relevant accounting rules.</p><p>Where a purchase order and goods receipt are available, I would also perform the required matching checks before allowing the invoice to proceed.</p><p>I would define these rules according to the organization’s procurement and accounting policies. They need to accommodate legitimate differences in tax treatment, currency, quantities, and permitted price variations.</p><p>For example, a small difference between an invoice and a purchase order might fall within an approved tolerance. A significant discrepancy might require additional approval. The agent should apply the documented rule and explain the result rather than inventing its own tolerance.</p><p>The objective is to ensure that the workflow identifies inconsistencies early and provides enough information for the AP team to resolve them.</p><h3>Connecting Document Agents to AP Workflows</h3><p>Once an invoice has been extracted and validated, I would connect the workflow to the organization’s ERP or accounting platform.</p><p>The agent could prepare an invoice record, populate the relevant fields, attach the original document, and submit the record for the appropriate approval process. The workflow should preserve the relationship between the source invoice and the structured information so that reviewers can verify the data.</p><p>Microsoft’s<a href="https://adoption.microsoft.com/en-us/intelligent-document-processing/"> Power Platform intelligent document processing resources</a> provide a useful reference for connecting document extraction, validation, human review, and data export into business systems.</p><p>I would apply the same end-to-end approach when designing agent-based AP automation. Each integration needs defined permissions, error handling, and a clear processing status.</p><p>For example, if the ERP rejects an invoice because a vendor identifier is invalid, the workflow should capture the failure and route it for correction. It should not repeatedly submit the same invoice or mark the task as complete when the record has not been created successfully.</p><p>I would also account for duplicate processing attempts. If a system times out after receiving a request, the workflow needs to check whether the invoice record was actually created before trying again. This helps prevent duplicate records caused by uncertain integration outcomes.</p><p>I would separate invoice preparation from payment authorization. An agent may prepare an invoice and initiate an approval workflow, but posting transactions and releasing payments must follow the organization’s authorization requirements.</p><h3>Handling Exceptions Without Losing Control</h3><p>I consider exception handling one of the most important components of AP automation.</p><p>Routine invoices may proceed when all required checks pass. Invoices with missing purchase orders, conflicting totals, unrecognized suppliers, or incomplete information need a different path.</p><p>I would design the agent to identify the problem, retrieve the relevant supporting records, summarize the discrepancy, and route the invoice to the appropriate reviewer.</p><p>Consider an invoice whose total differs from the associated purchase order. The agent could identify the difference and show the affected line items. The AP team could then determine whether the difference reflects an authorized change, an additional charge, or an error that requires correction.</p><p>I would not allow the agent to change the underlying financial information simply to make the records match.</p><p>I would also track exception reasons, resolution times, and recurring issues. These patterns can help identify problems with supplier submissions, purchasing procedures, and vendor master data that extend beyond the automation workflow itself.</p><p>Over time, I would use these findings to improve the process. If the same supplier repeatedly submits invoices without purchase order references, for example, the issue might be better addressed through supplier communication or purchasing policy changes than through additional automation rules.</p><h3>Building Fraud Prevention Into the Process</h3><p>Invoice automation needs controls that address financial risk as well as processing efficiency.</p><p>I would introduce checks for duplicate invoices, unexpected supplier changes, unusual payment instructions, and discrepancies between invoices and purchasing records.</p><p>Supplier bank-detail changes deserve particular attention. A fraudulent invoice or compromised email account could contain convincing documents alongside unauthorized payment instructions. I would require verification through an approved channel before accepting changes to supplier payment details.</p><p>I would also distinguish between detecting an anomaly and confirming fraud. An unusual invoice amount or a change in supplier information may justify further investigation, but it does not independently establish fraudulent activity.</p><p>The workflow should capture the relevant evidence and follow the organization’s established investigation procedures. I would avoid allowing a language model’s unsupported judgment to trigger consequential financial actions.</p><p>I would apply role-based access controls and least-privilege permissions. Agents should have access only to the information and functions required for their assigned responsibilities.</p><p>For auditability, I would retain the original invoice, extracted fields, validation results, matching outcomes, approval history, and relevant system actions. This record helps finance teams understand how an invoice moved through the process and investigate discrepancies when they occur.</p><h3>Measuring the Impact of AP Automation</h3><p>I would establish a baseline before deploying document agents so that I can measure whether the new workflow actually improves operations.</p><p>My primary metrics would include:</p><ul><li><strong>Processing time:</strong> How long an invoice takes to move from receipt to the appropriate completed stage.</li><li><strong>Extraction accuracy:</strong> Whether critical fields and line items are captured correctly.</li><li><strong>Straight-through processing rate:</strong> The proportion of invoices that complete the defined workflow without manual intervention.</li><li><strong>Exception rate:</strong> How frequently invoices require additional investigation or correction.</li><li><strong>Approval cycle time:</strong> How long invoices wait for the required approvals.</li><li><strong>Processing cost:</strong> The operational cost associated with handling each invoice.</li></ul><p>I would measure these indicators by supplier category, invoice type, and document format where useful. An overall accuracy score can conceal recurring problems with a particular group of suppliers or a specific document layout.</p><p>I would also monitor performance after deployment. New suppliers, changing invoice formats, and revised accounting rules can affect the workflow. Production monitoring helps me identify these changes and determine whether extraction models, validation rules, or integrations need adjustment.</p><p>I would evaluate quality and efficiency together. A workflow that processes invoices quickly but creates more reconciliation errors may simply move the workload from data entry to exception resolution. Similarly, a high straight-through processing rate is not meaningful if important discrepancies are being overlooked.</p><p>The measures need to reflect whether the workflow is completing the intended business task accurately, securely, and within the required timeframe.</p><h3>How I Would Roll Out Document-Based AP Automation</h3><p>I would begin with a defined invoice category and a manageable group of suppliers. I would map the existing process, identify the most repetitive tasks, document the required validation rules, and establish clear exception paths.</p><p>Next, I would test the workflow against representative invoices, including scanned files, missing fields, duplicate submissions, conflicting totals, and unusual formats. I would compare the results with the existing AP process before allowing the agents to perform consequential actions in production.</p><p>I would initially focus on extraction, validation, and invoice preparation. After confirming that routine invoices are handled reliably and exceptions are routed correctly, I would gradually expand supplier coverage and introduce additional approval workflows.</p><p>I would also review the workflow whenever the underlying accounting rules, supplier processes, or system integrations change. This helps keep the automation aligned with the actual business process rather than relying on assumptions that may no longer be valid.</p><p>For me, effective AP automation depends on the connection between document understanding and financial execution. Document agents can extract information and coordinate repetitive tasks, while validation rules, approval controls, and audit trails preserve the integrity of the process. When these components work together, finance teams can spend less time on routine data entry and more time resolving exceptions, managing financial risk, and improving operational efficiency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97159901e9fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic Lending From KYC to Underwriting]]></title>
            <link>https://medium.com/@arun56/agentic-lending-from-kyc-to-underwriting-c4a7c7b0095d?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4a7c7b0095d</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[agentic-ai-framework]]></category>
            <category><![CDATA[agentic-ai-systems]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 06:41:41 GMT</pubDate>
            <atom:updated>2026-10-23T06:41:41.164Z</atom:updated>
            <content:encoded><![CDATA[<p>Building an AI agent for lending requires a different level of control from automating a simple administrative task. A lending application moves through identity verification, document collection, financial assessment, and underwriting. Each stage depends on accurate information from the previous one, and mistakes can affect both the applicant and the lender.</p><p>When I approach agentic lending, I focus on coordinating these stages through specialized agents, reliable system integrations, and clearly defined decision rules. The objective is to reduce repetitive work, improve information flow, and help lending teams make decisions using consistent evidence without compromising risk management or compliance.</p><p>I do not view agentic lending as giving a single AI system unrestricted control over the entire credit process. I see it as coordinating a collection of specialized capabilities within a workflow that has clear responsibilities, permissions, and escalation points.</p><h3>I Begin With KYC and Application Intake</h3><p>Know Your Customer (KYC) establishes an important foundation for lending. Before proceeding with relevant activities, a lender needs to verify the applicant’s identity and satisfy the applicable regulatory and internal requirements.</p><p>I would use an intake agent to organize application information, identify missing documents, and determine which verification steps are required. A document agent could extract names, addresses, identification numbers, and expiration dates from submitted identity documents.</p><p>The next step is validation. I would compare the extracted information against the application and authorized verification services, flagging discrepancies for resolution.</p><p>For example, an identity document might contain a different address from the application, or a submitted document might have expired. The workflow should identify the issue and follow the lender’s established procedures rather than automatically treating the application as complete.</p><p>I would also account for differences between jurisdictions and lending products. Verification requirements, permissible data sources, and customer due diligence obligations need to be reflected in the workflow configuration.</p><p>The<a href="https://www.fatf-gafi.org/en/publications/Financialinclusionandnpoissues/Digital-identity-guidance.html"> Financial Action Task Force’s guidance on digital identity</a> offers a useful reference for understanding how digital identity systems can support customer identification and verification while requiring appropriate assessment of assurance and risk.</p><h3>Connecting Identity Verification to Financial Assessment</h3><p>Once the required identity checks are complete, I would move the application into financial assessment.</p><p>This stage often involves information spread across bank statements, payslips, tax records, employment documents, and existing credit records. Each source presents its own format and validation requirements. Manually reviewing these records can create delays, particularly when information is incomplete or inconsistent.</p><p>I would assign document agents to extract and normalize the relevant information into a consistent application record. For an individual borrower, this might include income, recurring expenses, existing debt obligations, and employment information. For a business borrower, it could include revenue, operating expenses, liabilities, and cash flow.</p><p>I would then reconcile the information across documents and authorized systems.</p><p>Suppose an applicant declares a monthly income that differs significantly from the deposits appearing in submitted bank statements. The agent should identify the discrepancy, show the relevant evidence, and request additional review where necessary.</p><p>I maintain a clear distinction between extracted information and verified financial evidence. An agent can organize data and identify inconsistencies, but the lender’s policies must determine which sources are authoritative and what evidence is sufficient.</p><p>I would also make the source of each important value visible. When an underwriter reviews an income figure, they should be able to trace it to the supporting document or approved data source rather than relying on an unexplained summary.</p><h3>Turning Financial Information Into Underwriting Support</h3><p>Underwriting requires more than collecting documents. The lender must assess repayment capacity, apply its credit policies, and evaluate the risks associated with the application.</p><p>I would structure this stage around controlled interactions between document agents, financial calculation services, policy engines, and authorized decision-makers.</p><p>The workflow could assemble validated borrower information, calculate approved financial indicators, check eligibility requirements, and prepare an underwriting summary with supporting evidence.</p><p>I prefer using deterministic services for calculations and explicit eligibility rules wherever possible. Language models can help interpret documents, summarize evidence, and coordinate tasks, while controlled analytical models and policy engines provide a more predictable basis for calculations and rule enforcement.</p><p>I would also make sure that the workflow distinguishes between missing information and negative evidence. An applicant who has not submitted a required bank statement has an incomplete application. That alone does not establish an inability to repay a loan.</p><p>Similarly, a financial value that cannot be extracted confidently should not automatically be interpreted as zero. The workflow should identify what remains unresolved and follow the appropriate escalation process instead of filling information gaps with assumptions.</p><p>I would keep the underwriting summary focused on decision-relevant information. It should include verified financial indicators, relevant policy checks, unresolved discrepancies, and supporting evidence. This gives the underwriter a structured view of the application without requiring the agent to make unsupported judgments.</p><h3>Coordinating Agents Without Losing Control</h3><p>Agentic workflows can involve several specialized components. An intake agent collects documents, a verification service checks identity information, a financial analysis agent organizes relevant evidence, and an underwriting support agent prepares the application for review.</p><p>I would define the handoff between each component explicitly. The next agent should receive the information it needs, together with its verification status and any unresolved issues.</p><p>For example, the underwriting support stage should not treat an application as fully verified merely because the document extraction stage has finished. It should check whether the required verification results and financial records are available.</p><p>I would also define what happens when a component fails. If a verification service is unavailable, the workflow should preserve the application state and retry safely or route the case for operational support. If a required record cannot be retrieved, the agent should report the missing evidence instead of assuming that the check passed.</p><p>These boundaries make it easier to identify errors and prevent one agent’s incorrect output from becoming an accepted fact throughout the workflow.</p><h3>Making Decisions Explainable and Auditable</h3><p>I consider explainability essential when AI supports lending decisions.</p><p>The<a href="https://www.consumerfinance.gov/archive/newsroom/cfpb-issues-guidance-on-credit-denials-by-lenders-using-artificial-intelligence/"> Consumer Financial Protection Bureau’s guidance on credit denials involving artificial intelligence</a> explains that creditors must provide specific and accurate reasons for adverse actions when required by applicable law. Using a complex model does not remove that obligation.</p><p>I would therefore maintain a record of the information considered, relevant policy checks, model outputs used, and factors supporting the final decision. If an application is declined, any explanation provided to the applicant must reflect the actual reasons for that outcome.</p><p>I would also evaluate the workflow for inconsistent outcomes and potential unfairness. Testing, model-risk controls, and compliance reviews should be part of deployment, particularly when automated systems influence consequential financial decisions.</p><p>The<a href="https://www.nist.gov/itl/ai-risk-management-framework"> NIST AI Risk Management Framework</a> provides a useful structure for identifying, assessing, and managing AI-related risks throughout a system’s lifecycle.</p><p>For me, auditability also means preserving the distinction between an agent’s recommendation and the decision actually made. If an agent prepares an underwriting summary and an authorized underwriter makes the final decision, the record should clearly represent both actions.</p><h3>Defining Permissions and Human Review</h3><p>I would not give every agent unrestricted access to banking systems, customer records, or credit decision functions.</p><p>A KYC agent might retrieve approved identity verification results. A document agent might extract information and prepare an application record. An underwriting support agent might summarize validated evidence and highlight policy exceptions.</p><p>A separate authorized service or decision-maker would handle actions requiring specific approval. The exact division of responsibilities would depend on the lender’s policies and applicable requirements.</p><p>I would define escalation paths for failed verification, suspicious documents, conflicting financial information, and incomplete applications. Agents should operate with the minimum permissions necessary for their assigned tasks, and consequential actions should remain traceable.</p><p>I would also establish controls for sensitive information. Identity documents, bank statements, and credit records should only be accessible to authorized services and personnel. Retention, logging, and data-sharing practices should follow the lender’s security and privacy requirements.</p><h3>Measuring Whether the Workflow Works</h3><p>I would evaluate an agentic lending workflow against operational and risk-related measures.</p><p>Useful metrics include application processing time, document extraction accuracy, KYC exception rates, unresolved discrepancies, manual review rates, and the quality of underwriting summaries. I would also monitor integration failures, repeated processing attempts, and cases where the workflow advances without all required evidence.</p><p>I would test the workflow using incomplete applications, inconsistent documents, unusual financial patterns, and cases requiring escalation. A fast process is valuable only when it preserves the accuracy and controls required for lending decisions.</p><p>I would begin with a bounded use case, such as document completeness checks and financial data preparation for one lending product. I would establish a baseline, compare the agent’s outputs with the existing process, and review failure cases before expanding automation.</p><h3>How I Would Take Agentic Lending Into Production</h3><p>I would start by automating the stages where structured information gathering and repetitive checks create the most manual effort. I would keep consequential decisions within the lender’s approved decision framework and introduce automation gradually as the workflow demonstrates reliable performance.</p><p>Over time, I would use production monitoring and review findings to improve document handling, reduce avoidable exceptions, and identify weaknesses in integrations or policy implementation.</p><p>For me, agentic lending is about coordinating the lending process intelligently while maintaining clear boundaries around verification, risk assessment, and decision authority. When KYC, financial assessment, and underwriting support work together within a controlled workflow, AI agents can help lenders process applications more efficiently without losing sight of accountability, explainability, and responsible credit decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4a7c7b0095d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Document Agents in Insurance: Classify, Extract, Route]]></title>
            <link>https://medium.com/@arun56/document-agents-in-insurance-classify-extract-route-12bdf5db0aec?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/12bdf5db0aec</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[document-agents]]></category>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[agents-on-insurance]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 07:49:06 GMT</pubDate>
            <atom:updated>2026-10-19T07:49:06.327Z</atom:updated>
            <content:encoded><![CDATA[<p>Building an AI agent for document processing is relatively straightforward compared with making it reliable in an insurance environment. Insurance teams work with different document formats, incomplete submissions, conflicting information, and strict requirements around data handling. A system that performs well in a demonstration can still struggle when it encounters real claims, unfamiliar documents, and exceptions that were never included in its initial testing.</p><p>When I approach document automation in insurance, I focus on three connected capabilities: classification, extraction, and routing. Each stage has a distinct responsibility, and the reliability of the overall workflow depends on how well these stages work together.</p><p>I see document agents as part of a broader operational system rather than standalone tools for reading PDFs. Their value comes from converting unstructured information into verified, actionable data while preserving the controls insurance operations require.</p><h3>Why I Start With Document Classification</h3><p>Before extracting information, I want the system to establish what kind of document it has received and how that document fits into the insurance workflow.</p><p>A single claim might contain a claim form, policy schedule, medical report, repair estimate, invoice, and supporting photographs. Each document serves a different purpose and requires a different processing approach. Applying the same extraction rules to every document introduces unnecessary complexity and increases the likelihood of errors.</p><p>I would use a classification agent to identify the document type, assign it to the appropriate category, and select the relevant extraction schema.</p><p>For example, a vehicle repair estimate might require the vehicle details, replacement parts, labor charges, and estimated repair cost. A medical report would require different fields and stricter access controls. A policy schedule might need to be checked for coverage dates, policy limits, and relevant exclusions.</p><p>I also account for documents that do not fit predefined categories. When an agent encounters an unfamiliar format or cannot confidently distinguish between document types, I want it to flag the uncertainty and route the document for review rather than force it into the closest available category.</p><p>This is important because classification errors can affect every subsequent stage. If a medical report is incorrectly identified as a general attachment, the system may fail to extract information required for the claim. If an invoice is classified incorrectly, it may enter the wrong approval process.</p><p>The<a href="https://content.naic.org/insurance-topics/artificial-intelligence"> National Association of Insurance Commissioners’ overview of artificial intelligence</a> provides useful context for understanding how AI is being applied across insurance operations. I consider the operational and governance requirements of these applications alongside the capabilities of the underlying models.</p><h3>Extracting Information That the Business Can Trust</h3><p>Once the document has been classified, I would move to field extraction.</p><p>Depending on the document type, the agent might identify policy numbers, claim references, customer details, dates, invoice totals, or information about an incident. OCR and document intelligence models can help process scanned files and digital PDFs, while language models can interpret information that appears in less predictable layouts.</p><p>However, I would not treat a successfully extracted value as verified information.</p><p>An agent might extract a policy number correctly from a document that belongs to a different claim. It might also identify conflicting incident dates across a claim form and a supporting report. The extraction may be technically correct, but the information still needs to be checked in context.</p><p>I would separate validation into three layers.</p><p>First, field-level validation checks whether required values exist and follow the expected format. Second, cross-document validation compares important fields across documents associated with the same claim. Third, system validation checks information against authorized policy, customer, and claims records.</p><p>For example, if the policy number extracted from a document does not match the claim record, the workflow should flag the discrepancy before the document progresses. If two documents contain different dates, the agent should preserve both values and identify the inconsistency instead of choosing one without a defined rule.</p><p>I would also retain the source document and the relationship between each extracted field and its source. This gives claims professionals a way to verify information and understand where a value originated.</p><h3>Routing Is Where Document Intelligence Becomes Useful</h3><p>I see routing as the point where document understanding becomes operationally useful.</p><p>After classification and extraction, the agent needs to determine what should happen next. A document with complete, validated information might proceed to the next claims-processing stage. A missing signature, inconsistent amount, or uncertain classification could require additional information or human review.</p><p>I prefer explicit routing rules for these decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*cTwZG6ejgejsERyC5RvuCg.png" /></figure><p>This structure makes exceptions visible and gives the team a clear way to resolve them. It also prevents uncertain outputs from silently progressing into downstream systems.</p><p>I distinguish document processing from final claims adjudication. An agent can organize evidence, identify inconsistencies, summarize documents, and prepare a case for review. Coverage decisions and other consequential actions must follow the insurer’s approved decision-making and authorization processes.</p><p>I would also make sure routing decisions are reversible where appropriate and that failed actions can be retried safely. For example, a temporary claims-system outage should not cause a document to disappear from the workflow or create duplicate records when the integration becomes available again.</p><h3>Connecting Agents to Existing Insurance Systems</h3><p>An agent can classify documents and extract information accurately while still failing to complete the business task. This can happen when relevant data is fragmented across systems, permissions are insufficient, or an API returns incomplete information.</p><p>I would therefore map the entire workflow before selecting the automation components.</p><p>The process might begin with a shared claims inbox, continue through document classification and extraction, and then connect to a policy administration system or claims management platform. The workflow should preserve the claim identifier throughout these stages so that every document remains associated with the correct case.</p><p>I would also define what happens when an integration fails. If a claims system is unavailable, the agent should record the failed action and leave the document in a recoverable state. It should not mark the task as complete simply because extraction succeeded.</p><p>This broader view of enterprise automation highlights the production challenges explored in<a href="https://www.nuplay.ai/blogs/ai-agent-fail-production-solution"> this article on why AI agents fail in production</a>. Fragmented enterprise data and workflows not designed for automated execution can undermine agent reliability, even when the underlying model performs well.</p><p>For me, the lesson is that document intelligence depends on the surrounding infrastructure as much as the extraction model. Reliable integrations, clear permissions, consistent identifiers, and defined fallback procedures are essential to successful deployment.</p><h3>Building Auditability and Data Protection Into the Workflow</h3><p>Insurance documents can contain sensitive personal, medical, and financial information. I would treat access control and auditability as core design requirements rather than features to add after deployment.</p><p>The workflow should record the document identifier, classification result, extracted fields, validation outcomes, routing decision, relevant system actions, and any human corrections. These records help the team investigate errors and explain how a document moved through the process.</p><p>I would apply least-privilege permissions so that agents access only the information required for their assigned tasks. A document classification service may not need the same access as a claims review system. Similarly, a general-purpose processing agent should not automatically receive permission to approve claims or modify policy records.</p><p>I would also define retention rules and secure handling procedures for source documents, extracted data, and operational logs. Where sensitive information is involved, the logging design must preserve auditability without unnecessarily duplicating personal data.</p><p>These controls become especially important when an insurer uses multiple agents or third-party services. Each integration creates another point at which information access, retention, and accountability must be considered.</p><h3>Measuring Document Agent Performance</h3><p>I would evaluate the workflow using several metrics rather than relying on a single accuracy score.</p><p>Classification accuracy shows whether the agent identifies document types correctly. Field-level extraction accuracy reveals whether important values are captured reliably. Exception rates and manual correction rates help me understand how much intervention the workflow still requires.</p><p>I would also monitor processing time, successful completion rates, integration failures, and the percentage of documents routed to the wrong queue.</p><p>The<a href="https://opentelemetry.io/blog/2025/ai-agent-observability/"> OpenTelemetry guide to AI agent observability</a> provides a useful reference for monitoring agent behavior beyond conventional application metrics. For document workflows, I would use traces to identify which stage failed, what information was available, which tools were called, and whether the intended business outcome was achieved.</p><p>I would evaluate these metrics separately for different document types. A strong overall extraction score can hide poor performance on handwritten forms or complex medical reports. Breaking results down by document category makes it easier to identify where improvements will have the greatest effect.</p><h3>How I Would Move Document Agents Into Production</h3><p>I would begin with one document-heavy workflow, such as claims intake for a specific claim category. Before introducing automation, I would establish a baseline for processing time, error rates, exception volumes, and manual effort.</p><p>Next, I would test the workflow using representative documents, including poor-quality scans, incomplete submissions, conflicting information, and unfamiliar formats. I would define the routing rules and review requirements before allowing the agent to interact with production systems.</p><p>I would initially keep the workflow focused on classification, extraction, validation, and preparation. Once it demonstrates reliable performance, I would expand it to additional document types and introduce further automation where the evidence supports it.</p><p>For me, successful document automation depends on the complete process. Classification establishes context, extraction turns documents into structured information, and routing connects that information to the right operational action. When these stages work together with reliable integrations, audit trails, and clear exception handling, document agents can reduce repetitive work while helping insurance professionals process claims with greater consistency and control.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12bdf5db0aec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Humans Belong in an Agentic Workflow]]></title>
            <link>https://medium.com/@arun56/when-humans-belong-in-an-agentic-workflow-5713d8110891?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/5713d8110891</guid>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[human-in-loop]]></category>
            <category><![CDATA[agentic-ai-architecture]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 04:36:16 GMT</pubDate>
            <atom:updated>2026-10-13T04:36:16.500Z</atom:updated>
            <content:encoded><![CDATA[<p>The phrase ‘human in the loop’ really does sound quite reassuring.</p><p>However, it makes me very nervous indeed when this is said without actually explaining what that human is supposed to do.</p><p>I’ve seen the term become a kind of short cut for saying that an AI system is safe because someone will be reviewing its work. However putting a person somewhere in a workflow doesn’t inherently create genuine oversight.</p><p>My actual design question is a lot more specific:</p><p>At what point will human judgment add the most value and where will it merely hold the whole system back?</p><p>That becomes especially important with agentic workflows.</p><p>A typical AI assistant will generate an answer and then sit back and await the user’s response.</p><p>An agent on the other hand will interpret your request, get the necessary information, invoke tools and make decisions and all before taking action on several different systems itself. The extra freedom of action is what really makes agents valuable but it does also create many points at which human judgment must be incorporated into the workflow.</p><h3>I don’t think every agent needs a human approval step</h3><p>My initial reaction is not to place a person before each action.</p><p>That seems safe but will lead to another problem.</p><p>Picture an agent dealing with thousands of standard requests every day. If a person has to validate every low-risk action itself, then the human would become a bottleneck rather than a really effective form of control.</p><p>The system will still technically have ‘human supervision’, but that oversight is functioning at the wrong level.</p><p>I find it easier to consider risks and consequences instead.</p><p>If an action is routine, completely reversible and low-impact itself, the agent might be allowed to complete it automatically.</p><p>If an action is somewhat uncertain, highly sensitive, irreparable or economically very important itself, human participation will be much more valuable.</p><p>This doesn’t mean taking humans out of the system altogether. Rather, it’s about putting them in places where their judgement really counts.</p><h3>The human should usually enter when the system reaches the edge of its confidence</h3><p>This principle is really useful in designing actual work flows.</p><p>Agents excel at managing patterns, navigating highly structured information, and performing repetitive tasks.</p><p>However, humans remain incredibly valuable whenever there’s some level of ambiguity, numerous priorities, exceptions or a context that’s quite difficult to encode.</p><p>Consider an agent processing a customer’s request.</p><p>It might be able to pinpoint the issue, get hold of the customer’s file, review the relevant policy and build a response.</p><p>However if the customer is asking for an exception that technically breaks the usual policy, the most important question is no longer about retrieving information.</p><p>It’s judgement.</p><p>That’s the point where I’d want the human involved.</p><p>The human shouldn’t have to start all over with the conversation again. The agent should pass along the relevant context what it discovered, what it tried to do and why it escalated the matter to a human.</p><p>A very good example can be seen in this discussion about<a href="https://www.nuplay.ai/blogs/voice-ai-human-handoff-preserving-context-in-enterprise-workflows"> voice AI human handoffs</a>, where the focus is on really holding onto the context when an automated process moves to a human operator.</p><p>That idea really extends itself well past voice applications. A smooth handover should actually transfer the state itself, not just delegate the responsibility.</p><h3>Human approval is different from human understanding</h3><p>This is a difference that I really think about quite a bit.</p><p>A person may approve something even though they have no idea how the system developed its recommendation. That is hardly effective oversight.</p><p>The <a href="https://www.nist.gov/itl/ai-risk-management-framework">NIST AI Risk Management Framework</a> places a high priority on having established, documented procedures for human oversight. I see this as going beyond just hitting an ‘approve’ button.</p><p>When assessing an action the reviewer will require sufficient context so as to make an informed choice themselves. For an agentic workflow this might comprise of:</p><ul><li>What was the initial request?</li><li>What information was the agent using?</li><li>What actions did it take?</li><li>Which tools or systems did it access?</li><li>What outcome is it suggesting?</li><li>Why does the action need approval?</li><li>What happens if the human declines it?</li></ul><p>Without that background information, the human will be essentially asked to approve a black box.</p><h3>I would not put humans at every step</h3><p>A workflow becomes inefficient if people are inserted at points that have very little judgment involved.</p><p>Consider a workflow with ten steps.</p><p>If the first eight are quite deterministic and of low risk then I don’t really see much value in needing approval after each one.</p><p>I would rather allow the agent to complete those steps itself and present the results when the workflow reaches a meaningful decision point.</p><p>This is where I find approval thresholds more useful than simply involving a human all the time.</p><p>For example I might set up different rules for each case -</p><ul><li>actions that are fully reversible,</li><li>actions affecting customer records,</li><li>actions involving financial commitments,</li><li>actions involving sensitive information,</li><li>actions that will permanently change the system state.</li></ul><p>The more severe the consequences, the greater the need for a thorough review. This approach also ensures that a human has a workable load.</p><h3>Some actions should never be treated like ordinary automation</h3><p>I am very careful when carrying out actions which will be difficult to reverse.</p><p>Sending an internal draft is one thing.</p><p>Sending an irreversible transaction, changing a critical record, making a legally important decision or taking an action with major financial implications is quite another.</p><p>In these cases, I want the workflow to clearly show the boundary.</p><p>OpenAI have applied similar principles in their <a href="https://openai.com/index/operator-system-card/">Operator system card</a> — describing the human-in-the-loop safety measures for certain actions where keeping things visible and under the user’s control really matters.</p><p>My takeaway from this is quite straightforward: autonomy should only increase as the organisation fully understands the consequences of that autonomy.</p><h3>I also want humans involved after the action, not only before it</h3><p>Human supervision is frequently set up as an initial action authorization mechanism. I think there is another very important part: review after the workflow itself runs out.</p><p>That’s where the company really learns itself.</p><p>If an agent finishes a customer workflow perfectly but a person later notes that the answer was technically right but still really frustrating for the customer then that’s valuable feedback.</p><p>Imagine an agent consistently escalating requests that highly experienced staff would generally settle instantly themselves. That matters too.</p><p>The point isn’t merely to oversee the agent.</p><p>It’s really about improving the workflow itself. Anthropic describes this bigger challenge in their work on trustworthy agents — where having more autonomy will always mean there is a greater need for some level of safeguard around unexpected actions and oversight itself.</p><p>I think this leads to a better model of human involvement: humans approve where necessary, intervene if necessary and continually enhance the system based on what’s happening in actual use itself.</p><h3>The human should have a real ability to disagree</h3><p>A human reviewer who is supposed to approve almost everything is actually not performing the function of an oversight mechanism itself. The system itself should allow for the possibility of disagreement.</p><p>Most importantly the organization should pay attention to those disagreements themselves.</p><p>If humans constantly override the agent in the exact same type of situation, I would consider this a signal about the workflow design.</p><ul><li>It might mean the agent doesn’t have enough information to work with.</li><li>It might mean the business rules aren’t clearly defined.</li><li>It might mean the escalation threshold is set too low.</li></ul><p>Or it could mean the task should never have been automated in the first place.</p><p>NIST’s framework and guidelines related to human factors are very useful in this case since they see oversight as something that has to be intentionally designed, documented and evaluated rather than just expecting it to happen naturally itself.</p><h3>I measure the handoff, not just the automation rate</h3><p>The automation percentage itself may be a very misleading metric.</p><p>An organisation will be able to proudly report that an agent handles 85 per cent of requests without the need for human intervention.</p><p>That tells me virtually nothing all on its own. I really need to know why the remaining 15 per cent were escalated.</p><ul><li>Were they truly difficult cases?</li><li>Did the agent fail?</li><li>Did the user ask for something beyond the intended scope?</li><li>Was the system unable to get hold of the necessary information?</li><li>Was there a business rule requiring an approval process?</li></ul><p>Anthropic has come up with measurement concepts like oversight coverage, review latency and escalation rate if you’re thinking about supervising agents. I find those metrics much more informative than just asking what percentage of work is automated.</p><p>To me, a really good workflow isn’t the one that involves the least number of people at all times.</p><p>It’s the one where human focus is concentrated on making the decisions that genuinely require it.</p><h3>The best human-in-the-loop design may not look like a loop</h3><p>Sometimes the human belongs before the workflow.</p><p>A person can establish the policy, approve the operating boundaries, develop the exception rules and then validate the agent just before deployment.</p><p>Sometimes the human belongs at the decision point itself.</p><p>The agent will carry out the routine tasks and only pause if it meets a certain threshold. Sometimes the human belongs after the workflow itself.</p><p>The agent completes the task whilst people review the outcome, look into failures and use that knowledge to inform future assessments themselves.</p><p>So now I do not think of “human in the loop” as a single architecture pattern anymore.</p><p>I consider human involvement over the entire lifecycle itself.</p><h3>My rule is simple: automate the routine, escalate the judgment</h3><p>As I delve deeper into designing an agentic workflow, my interest in maximizing autonomy itself diminishes ever further.</p><p>Autonomy will be valuable if the system really can dependably carry out the task.</p><p>Human judgment has its value when there’s uncertainty involved, consequences to consider, exceptions to handle, or competing priorities to juggle.</p><p>It isn’t the intention to create an agent that would be completely separate from humans themselves.</p><p>The intention is to make the relationship between the agent and the human one that’s deliberately considered.</p><p>When I define that boundary well, the agent manages a high volume and repetitive tasks whilst the human focuses on those aspects where the context and judgement really matter.</p><p>This is a far more practical definition of ‘human-in-the-loop’ than just saying ‘a person checks over the output.’</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5713d8110891" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Build or Off-the-Shelf: Making the Call Honestly]]></title>
            <link>https://medium.com/@arun56/custom-build-or-off-the-shelf-making-the-call-honestly-bc4e8c3079f6?source=rss-af1ffc326bd6------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc4e8c3079f6</guid>
            <category><![CDATA[ai-voice-agent]]></category>
            <category><![CDATA[voice-ai]]></category>
            <category><![CDATA[conversational-ai]]></category>
            <dc:creator><![CDATA[Arun]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 09:53:59 GMT</pubDate>
            <atom:updated>2026-10-09T09:53:59.915Z</atom:updated>
            <content:encoded><![CDATA[<p>I have noticed that the build versus buy conversation really gets going in the wrong spot most of the time.</p><p>Teams will say “can we build this ourselves?” or “which vendor should we purchase from?” before answering the much more important question of what really must be unique itself.</p><p>That distinction truly matters over the choice of technology itself.</p><p>Custom software really does seem attractive because it offers the sense of having control over things. Off-the-shelf software is attractive since it implies rapidity. Both of those statements are true, but neither one provides a complete basis for making a good decision.</p><p>The better question I ask instead is: where will customization really make a meaningful contribution to the value of our business and where will it simply add even more software to our company’s collection of assets?</p><p>That really changes the whole conversation.</p><h3>I don’t treat build and buy as opposites</h3><p>When I consider a software requirement, I hardly ever consider it a binary choice.</p><p>A valuable view from <a href="https://aws.amazon.com/blogs/enterprise-strategy/is-tailor-the-modern-solution-to-the-it-dilemma-of-build-vs-buy/">AWS’s examination of build, buy and “tailor”</a> is that there is quite frequently a third option, begin with what already exists in your capabilities and mould them around your organisation’s actual needs.</p><p>I find this particularly pertinent at present time.</p><p>Cloud platforms, APIs, open-source frameworks, managed services and adaptable enterprise products mean that ‘custom’ doesn’t have to mean ‘build everything ourselves’ after all.</p><p>I can construct a solution out of pre-existing components, personalise the bits that really matter and refrain from re-creating established functionalities elsewhere, which are already matured.</p><p>That is quite often a far more achievable starting point than either of the extremes.</p><h3>The first thing I ask is whether the requirement is actually differentiating</h3><p>This is probably the question I rely on most.</p><p>If the software is solving a very common problem that dozens of mature products have been solving quite well for years, then I’ll need a really good reason before I suggest you build it internally.</p><p>Authentication isn’t typically your main point of difference. Nor is simple ticket management, basic analytics, standard project management or routine workflow automation itself differentiating.</p><p>Things change though when the software is actually situated right at the heart of your company’s competitive advantage.</p><p>Imagine a business has a highly specialized pricing engine, a proprietary operational workflow or a decision-making process which really gives it the edge over its competitors, one that they can’t quite so easily copy. Then I’d be a lot more interested in developing or deeply modifying that capability myself.</p><p>The real key distinction is not whether the software itself is important.</p><p>It’s whether the way the software works itself is strategically important.</p><p>That distinction stops a very common mistake: always thinking every really important system must be built from scratch.</p><h3>I look at the full cost, not the development estimate</h3><p>A custom project will appear pretty cheap if your conversation is mainly about development.</p><p>Your estimate might say six engineers for six months. That number really feels solid.</p><p>However, that’s not the actual cost.</p><p>Once I start looking at everything beyond development, the whole ownership model gets a lot bigger. There is the infrastructure, monitoring, security, testing, documentation, upgrades, support, hiring, knowledge transfer, incident response and future development.</p><p>And there’s a cost that is so much harder to put into a spreadsheet: the opportunity cost.</p><p><a href="https://aws.amazon.com/blogs/enterprise-strategy/revisiting-buy-vs-build-drawing-the-line/">AWS’s analysis of the build versus buy</a> decision really drives this point home well. Developing software doesn’t just consume your technology budget. It will keep your internal specialists stuck on keeping a system alive rather than working on something else that would create far greater value.</p><p>I always do my best to take that into account right away when considering whether to call a custom solution ‘cheaper.’</p><p>A system that costs less to develop but needs a continuous internal team may end up costing more over five years than a mature product with very predictable subscription and support costs.</p><h3>Buying does not automatically mean giving up control</h3><p>Another assumption that I constantly challenge is that when we buy software, we must accept whatever the vendor gives us.</p><p>This is ever less true nowadays.</p><p>Modern products often show off APIs, configuration levels, integration frameworks, data controls, extensibility options and automated capabilities themselves. The actual question is really how much control I require.</p><p>If I require total control over the product roadmap, architecture, data model and behavior itself, then that could be pushing me towards building it myself.</p><p>If I merely need control over workflows, integrations, permissions and business rules themselves, then an extensible product might have just enough for me.</p><p>The difference there could save an enormous amount of engineering effort itself.</p><p>I also find it helpful to keep separate control over the software itself from control over the end result. They aren’t the same thing after all.</p><p>Even if I do hold the entire codebase, I may still struggle to achieve the desired business outcome itself.</p><h3>The maintenance burden is where many decisions change</h3><p>A prototype really brings out the attractiveness of custom development.</p><p>A production system forces me to ask very different questions.</p><p>Who owns it when the original developers move on? Who keeps it up-to-date when dependencies change? Who deals with security vulnerabilities? Who will test it after a change to the infrastructure? Who’ll explain its behavior to the business team two years down the line?</p><p>These questions hardly ever appear in the excitement surrounding the initial build.</p><p>That’s one reason I pay close attention to the distinction between developing a capability and running a product.</p><p>A company might be more than capable of making software itself — but still have every reason not to turn itself into a software company for this specific problem.</p><p>That’s a very important difference.</p><h3>I also ask how quickly the requirement is likely to change</h3><p>The build versus buy decision isn’t set in stone.</p><p>Some requirements remain quite stable while others will change every quarter. For fast-changing sections, I’m even more careful about developing a large bespoke architecture too soon. The organisation might then spend months developing against requirements that are themselves undergoing changes.</p><p>For very stable and highly specialized processes however, bespoke development can be more sensible because the investment has a longer useful life span.</p><p>This is particularly important when it comes to AI- enabled software. The underlying models, integrations, user expectations and workflow patterns themselves will constantly be evolving. So I much prefer architectures which allow for individual components to be swapped out rather than developing a system where each time there’s a change it necessitates a lengthy major redevelopment cycle.</p><p>The question effectively shifts from ‘what should we build?’ to ‘what should we make easily modifiable?’</p><h3>Sometimes the best answer is to buy the foundation and customize the workflow</h3><p>This is the middle ground I keep coming back to most often.</p><p>Instead of setting up an entire customer service system, for instance, I may use an existing platform for its core capabilities and design the workflow around the organisation’s very specific procedures.</p><p>Instead of creating each AI capability from scratch within our company, I could make use of pre-existing models, retrieval systems, APIs or orchestration frameworks and concentrate our internal engineering efforts on that business logic that actually sets our company apart.</p><p>This is similar to the broader “tailor” approach described by AWS, whereby using existing building blocks can really cut down on your architectural and operational overhead whilst still making space for the organisation’s unique needs.</p><p>I find this way of thinking pretty useful too when assessing AI-enabling customer services. A quite recent review of<a href="https://www.nuplay.ai/blogs/8-core-options-ai-native-vs-ai-enabled-customer-service-in-2026"> AI-native vs AI-enabled customer services</a> offers a really useful comparison of the architectural approaches itself — not just reducing the choice to a simple ‘automate or don’t automate’.</p><p>To me that’s the right frame of reference: first work out the workflow itself and then figure out which bits are standard and which ones would really benefit from some personalisation.</p><h3>I use five questions before making the final call</h3><p>When I need to make the decision more honestly, I usually work through five questions.</p><p><strong>Is this capability strategically differentiating?</strong></p><p>If the answer is no, buying becomes much more attractive.</p><p><strong>Does an existing product already solve most of the requirements?</strong></p><p>If it does, I need a strong reason to recreate it.</p><p><strong>Do we have the internal capacity to own it long term?</strong></p><p>Not just to build it, but to operate and evolve it.</p><p><strong>How expensive will change be?</strong></p><p>I care about the cost of the second and third versions, not just version one.</p><p><strong>What happens if we are wrong?</strong></p><p>This is often overlooked. If I choose the wrong product, can I migrate? If I build the wrong architecture, how much can I reuse? Reversibility has real value.</p><h3>The honest answer is sometimes neither</h3><p>I think the very best build-versus-buy decisions often appear less thrilling than the worst ones.</p><p>There’s no dramatic “we built everything ourselves” story.</p><p>Nor is there a dramatic “we bought the biggest platform out there” story.</p><p>Instead, I’ll probably have a mix of managed services, commercial software, open source components, our internal systems and just a bit of truly bespoke engineering.</p><p>That looks messy on an architecture diagram.</p><p>But if each component has its reasons for being there, then it will be far more efficient than trying to force the whole problem into one category.</p><p>I no longer view build-versus-buy as purely a technology discussion.</p><p>It’s really a matter of where your organisation intends to direct that very precious engineering time of yours.</p><p>Build where control and differentiating yourself are paramount. Buy where the problem’s already been very effectively solved. Make something bespoke where the two approaches may reasonably be combined.</p><p>This approach typically results in a much more genuine decision.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc4e8c3079f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>