<?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 Mahesh Sharma on Medium]]></title>
        <description><![CDATA[Stories by Mahesh Sharma on Medium]]></description>
        <link>https://medium.com/@sharmamahesh789?source=rss-37eec1d3480b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NR6rtH9O8ZFQTyN6.jpg</url>
            <title>Stories by Mahesh Sharma on Medium</title>
            <link>https://medium.com/@sharmamahesh789?source=rss-37eec1d3480b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:28:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sharmamahesh789/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[The AI Race Will Not Be Won by Models. It Will Be Won by Context.]]></title>
            <link>https://medium.com/@sharmamahesh789/the-ai-race-will-not-be-won-by-models-it-will-be-won-by-context-cde122e70c53?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/cde122e70c53</guid>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 10:05:08 GMT</pubDate>
            <atom:updated>2026-06-18T10:12:12.170Z</atom:updated>
            <content:encoded><![CDATA[<p>The AI industry is obsessed with models.</p><p>Every week brings a new benchmark, a new reasoning capability, or a new foundation model claiming superior performance. Organizations are investing heavily in evaluating models, optimizing prompts, and experimenting with agentic workflows.</p><p>But there is a larger shift underway.</p><p>The long-term winners of the AI race may not be determined by the models they use, but by the context they possess.</p><p>Here are five reasons why.</p><h3>1. Models Are Becoming Commodities</h3><p>The gap between leading models continues to narrow.Most organizations can already access powerful AI capabilities through commercial providers, open-source models, or cloud platforms. Over time, reasoning, summarization, planning, and content generation will become widely available.</p><p>If everyone has access to similar intelligence, intelligence itself cannot be the primary source of competitive advantage.</p><p>The differentiator must come from somewhere else.</p><h3>2. Context Turns Generic Intelligence into Business Intelligence</h3><p>A model can reason.</p><p>A model cannot inherently understand your customers, products, processes, policies, or history.</p><p>That understanding exists inside the enterprise.</p><p>Context includes:</p><p>Customer data</p><p>Product information</p><p>Operational processes</p><p>Historical decisions</p><p>Enterprise knowledge</p><p>Business rules</p><p>Relationship networks</p><p>Without context, AI produces generic answers.</p><p>With context, AI produces business value.</p><h3>3. Customer Interactions Are Often More Valuable Than Customer Data</h3><p>Organizations spend significant effort building customer master data and customer 360 platforms.</p><p>While important, static customer data only tells part of the story.</p><p>Interaction data often contains richer intelligence:</p><p>Calls</p><p>Emails</p><p>Chats</p><p>Meetings</p><p>Support cases</p><p>Service requests</p><p>Transaction behaviour</p><p>Customer data tells you who a customer is.</p><p>Interaction data tells you what is happening.</p><p>The latter is often far more useful for decision-making.</p><h3>4. Knowledge Graphs Create Connected Intelligence</h3><p>Data becomes significantly more valuable when relationships are understood.</p><p>Customers connect to products.</p><p>Products connect to transactions.</p><p>Transactions connect to events.</p><p>Events connect to risks and opportunities.</p><p>Knowledge graphs help organizations represent these relationships explicitly, enabling AI systems to understand not only facts but also how those facts relate to one another.</p><p>The future of enterprise AI is unlikely to be built on isolated records. It will be built on connected context.</p><h3>5. Agentic AI Is Only as Good as the Context It Receives</h3><p>Much of the discussion around Agentic AI focuses on frameworks, orchestration, reasoning loops, and autonomous workflows.</p><p>These capabilities matter.</p><p>However, the effectiveness of an agent is ultimately constrained by the quality of context available to it.</p><p>A highly capable agent with poor context will produce mediocre outcomes.</p><p>A well-informed agent with rich context can operate like a specialist, making recommendations, taking actions, and generating meaningful insights.</p><p>The future will belong to organizations that create better-informed agents, not simply smarter agents.</p><h3>Final Thought</h3><p>In the coming years, most organizations will have access to powerful models.</p><p>Most will have access to agent frameworks.</p><p>Most will have access to scalable infrastructure.</p><p>What they will not share is context.</p><p>Customer understanding.</p><p>Enterprise knowledge.</p><p>Operational history.</p><p>Relationship networks.</p><p>These assets are unique, difficult to replicate, and accumulated over years of business activity.</p><p>The organizations that win the AI race will not necessarily have the biggest models.</p><p>They will have the richest context.</p><p>Models provide intelligence. Context provides differentiation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cde122e70c53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From First-Year Prompter to Principal Engineer: Using AWS Kiro the Right Way]]></title>
            <link>https://medium.com/@sharmamahesh789/from-first-year-prompter-to-principal-engineer-using-aws-kiro-the-right-way-5ecfb5d04ef5?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ecfb5d04ef5</guid>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 09:03:38 GMT</pubDate>
            <atom:updated>2026-04-30T09:03:38.222Z</atom:updated>
            <content:encoded><![CDATA[<p>From First-Year Prompter to Principal Engineer: Using AWS Kiro the Right Way</p><p>Most teams using AWS Kiro start the same way:</p><p>“Build me an e-commerce app with cart, checkout, payments, and admin panel.”</p><p>And it works.</p><p>Until it doesn’t.</p><p>the “First-Year Student” phase</p><p>Early usage feels magical—but it’s chaotic:</p><p>* No architecture<br>* No module boundaries<br>* No naming or contracts<br>* Prompts like: “fix this”, “optimize that”, “add validation”</p><p>Kiro responds each time… independently.</p><p>Result:</p><p>* Duplicate logic (cart logic in 3 places)<br>* Mixed patterns (REST + random business logic in UI)<br>* Huge files and growing context<br>* Rising token costs</p><p>You’re not engineering. You’re patching.</p><p>The Hidden Problem: Token &amp; Entropy Explosion</p><p>Unstructured prompting creates two compounding issues:</p><p>1. Token waste</p><p>* Re-explaining system every time<br> * Regenerating large chunks of code</p><p>2. System entropy</p><p>* Every prompt introduces divergence<br> * No consistent mental model</p><p>The app works but becomes unmaintainable fast.</p><p>The Shift: Add a Steering Document</p><p>This is where you move from student to engineer.</p><p>Instead of prompting freely, you define a steering layer that Kiro must follow.</p><p>Now prompts become:</p><p>“Extend product service using existing pricing module and follow validation contract”</p><p>Not:</p><p>&gt; “Add discount logic”</p><p>Example: E-Commerce Steering Document (Minimal but Powerful)</p><p>```<br># System: E-Commerce Platform</p><p>## Architecture<br>- Frontend: React (component-driven, no business logic)<br>- Backend: Node.js (layered: controller → service → domain → infra)<br>- Communication: REST APIs only<br>- No business logic in controllers</p><p>## Core Domains<br>- Product<br>- Cart<br>- Order<br>- Payment<br>- User</p><p>## Rules<br>- Each domain owns its logic (no cross-domain leakage)<br>- Reuse services, do not duplicate logic<br>- All validations go in domain layer<br>- Shared utilities live in /common</p><p>## Naming Conventions<br>- Services: &lt;domain&gt;.service.ts<br>- Controllers: &lt;domain&gt;.controller.ts<br>- DTOs: &lt;action&gt;&lt;domain&gt;Request/Response</p><p>## Error Handling<br>- Central error middleware<br>- No try/catch in controllers unless required</p><p>## Prompting Protocol (for Kiro)<br>- Always reference existing modules<br>- Never regenerate full files unless asked<br>- Prefer incremental changes<br>- Maintain layer separation strictly<br>```</p><p>What Changes Instantly</p><p>Before (No Steering)</p><p>&gt; “Add discount feature”</p><p>→ Kiro adds logic in controller, duplicates pricing, breaks consistency.</p><p>After (With Steering)</p><p>&gt; “Add discount logic in product domain, reuse pricing service, follow validation rules”</p><p>→ Clean extension, minimal tokens, predictable output.</p><p>The Real Benefit: Compounding Quality</p><p>With steering:</p><p>* Smaller prompts<br>* Lower token usage<br>* Consistent architecture<br>* Easier debugging<br>* Scalable codebase</p><p>You stop rewriting.<br>You start building on top.</p><p>Final Thought</p><p>Kiro amplifies whatever you bring to it.</p><p>* No structure → faster chaos<br>* Strong structure → exponential leverage</p><p>The difference between a beginner and a principal engineer is no longer just coding skill, it is the system thinking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ecfb5d04ef5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Agents Scale Faster Than Responsibility: The risk in Agentic AI]]></title>
            <link>https://medium.com/@sharmamahesh789/when-agents-scale-faster-than-responsibility-the-risk-in-agentic-ai-16c3556161d8?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/16c3556161d8</guid>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Tue, 23 Dec 2025 16:53:36 GMT</pubDate>
            <atom:updated>2025-12-23T17:10:30.748Z</atom:updated>
            <content:encoded><![CDATA[<p>When Agents Scale Faster Than Responsibility: The risk in Agentic AI</p><p>We are rapidly entering a world where hundreds—soon thousands—of AI agents will execute operational tasks that humans once performed manually. The promise is compelling: efficiency, accuracy, and cost reduction. What we are not focusing on—at least not with the same urgency—is the risk surface we are creating, often invisibly, and often irreversibly. This is not a hypothetical concern. It is alarming, real, and already unfolding.</p><p>The Illusion of Control in Agentic Systems</p><p>Most organizations today take comfort in familiar safety levers:</p><ul><li>Guardrails and policies</li><li>Human-in-the-loop approvals</li><li>Audit logs</li><li>Governance committees</li></ul><p>These worked—when automation was deterministic and centralized. Agentic AI breaks that model. In an agentic world:</p><ul><li>Decisions are distributed</li><li>Actions are emergent</li><li>Behavior changes over time</li><li>Failures are non-linear</li></ul><p>An agent doesn’t just execute a rule.<br>It interprets context, reasons, chooses a path, and sometimes delegates to another agent. Now multiply that by hundreds. You may no longer know why something happened—only that it did.</p><p>Risk Scenario 1: Guardrails Exist… But Are Quietly Bypassed</p><p>Imagine an operations agent responsible for handling customer service requests.</p><p>Initially:</p><ul><li>Guardrails prevent sensitive data exposure and the agent routes edge cases to humans</li></ul><p>Over time:</p><ul><li>Prompts evolve, context windows grow, new tools are added and a temporary exception becomes permanent</li></ul><p>One day, the agent:</p><ul><li>Infers sensitive information, makes a decision it was never explicitly allowed to make.</li></ul><p>Post-incident question: Which guardrail failed? The honest answer: None. The system simply reasoned its way around them. This is not a bug. This is how autonomous reasoning systems behave.</p><p>Risk Scenario 2: Model Degradation You Don’t Even Notice</p><p>Traditional systems fail loudly while Agentic systems fail silently. An agent may:</p><ul><li>Drift in decision quality</li><li>Overfit to recent patterns</li><li>Become biased due to feedback loops</li><li>Optimize for speed over correctness</li></ul><p>The outputs still look reasonable. Metrics still look acceptable. No alert fires.</p><p>Until months later, during an audit or customer complaint, someone asks: Why was this decision made? and you realize:</p><ul><li>The model version has changed</li><li>The prompt has changed</li><li>The tool chain has changed</li><li>The reasoning trace is incomplete</li></ul><p>You are no longer investigating a defect.<br>You are forensically reconstructing intelligence.</p><p>Risk Scenario 3: Explaining an Agent to an Auditor</p><p>This is where theory meets reality. An auditor doesn’t ask: Did the agent work most of the time? They ask: Why was this decision made for this customer at this time?” Now imagine answering: The decision was made by Agent #47, Which delegated to Agent #12, Using a tool call configured two weeks earlier, Based on inferred intent etc.</p><p>That explanation is not acceptable and no amount of after-the-fact governance will fix it.</p><p>Why Human-in-the-Loop Is Not Enough</p><p>Human-in-the-loop is often presented as the safety net. But let’s be honest:</p><ul><li>You don’t want humans approving every step, that defeats the purpose of agents</li><li>It doesn’t scale and creates bottlenecks</li></ul><p>More importantly:</p><ul><li>Human-in-the-loop treats risk as an intervention problem, not a design problem. By the time a human intervenes — 1) The agent has already reasoned 2) The path is already chosen 3) The damage may already be done</li></ul><p>Responsible AI Is Not Governance—It’s Architecture</p><p>One of the biggest mistakes organizations make is treating Responsible AI as a checklist, a compliance exercise, and a central governance function, that mindset is dangerous.</p><p>In an agentic world:</p><ul><li>Risk is created at design time</li><li>Responsibility must live close to the business</li><li>Each domain must challenge every step</li></ul><p>This requires:</p><ul><li>Domain-focused Responsible AI groups</li><li>Deep understanding of both business intent and agent behavior</li><li>Authority to stop, redesign, or limit autonomy</li></ul><p>Why This Cannot Be Retrofitted, here is the most critical point:</p><p>Responsible AI for agentic systems cannot be done retrospectively. You cannot add explainability later or govern emergent behavior post-deployment. Once agents are live, They evolve and learn patterns.</p><p>Responsible AI must move faster than agent rollout, deeper than governance<br>and into the core of architecture</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16c3556161d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Micro Frontends: What They Are, What They Are Not, and How to Design Them]]></title>
            <link>https://medium.com/@sharmamahesh789/micro-frontends-what-they-are-what-they-are-not-and-how-to-design-them-e7b477751e40?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7b477751e40</guid>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Sat, 27 Sep 2025 17:48:21 GMT</pubDate>
            <atom:updated>2025-09-27T17:48:21.833Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the last decade, microservices transformed backend architectures by breaking down monolithic systems into independently deployable units. On the frontend, however, we often still see one large, complex SPA (Single Page Application) that grows heavier and harder to manage over time.</p><p>This is where Micro Frontends come in.</p><p>What is a Micro Frontend?</p><p>A Micro Frontend (MFE) is the extension of the microservices concept to the frontend world.</p><p>It’s about splitting a frontend application into smaller, autonomous pieces owned by independent teams, each responsible for a specific business domain. These pieces can be developed, deployed, and even scaled separately—yet come together seamlessly in the user’s browser.</p><p>In short:Micro Frontends = Independent frontends for independent business domains, stitched into one experience.</p><p>What is NOT a Micro Frontend?</p><p>To clear the confusion:</p><ul><li>Splitting your app into React components — Not a Micro Frontend</li><li>Having separate pages inside a monolith — Not a Micro Frontend</li><li>Creating multiple repos for UI components without independent deployment = Not a Micro Frontend</li><li>Using iframes to embed apps = Not a true Micro Frontend (more like an integration hack)</li></ul><p>A Micro Frontend is about team and domain ownership, independent lifecycles and decoupled deployments —not just code modularity.</p><p>Design Principles of Micro Frontends</p><p>Here’s a simplified take on the principles:</p><ul><li>Domain Ownership: Align MFEs with business domains — Each domain should be independently built and deployed.</li><li>Independent Deployability</li><li>Technology Agnostic — Each micro frontend can use its own tech stack (React, Vue, Angular), though most organizations prefer some standardization.</li><li>Seamless User Experience — same experience, use of websdks</li><li>Minimize coupling — Share only what’s absolutely necessary.</li></ul><p>Architecture Approaches</p><p>There are multiple ways to implement Micro Frontends:</p><ul><li>Build-time Integration (e.g., separate builds, stitched together in CI/CD)</li><li>Runtime Integration via JavaScript bundling (Webpack 5 Module Federation, SystemJS)</li><li>Edge/Server-Side Composition (Next.js, Single-Spa, Luigi, Tailor)</li></ul><p>Each micro frontend is an independently deployed app that plugs into the main shell. When Should You Use Micro Frontends?</p><p>Good for:</p><ul><li>Large organizations with multiple teams owning different domains.</li><li>Complex apps that evolve rapidly</li><li>Cases where independent deployments are critical.</li></ul><p>Not ideal for:</p><ul><li>Small teams with limited scope.</li><li>Simple apps where complexity overhead outweighs benefits.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7b477751e40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Small Language Models (SLMs) Will Outperform LLMs in Agentic Frameworks]]></title>
            <link>https://medium.com/@sharmamahesh789/why-small-language-models-slms-will-outperform-llms-in-agentic-frameworks-064260455dbc?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/064260455dbc</guid>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Tue, 16 Sep 2025 15:51:54 GMT</pubDate>
            <atom:updated>2025-09-16T15:51:54.745Z</atom:updated>
            <content:encoded><![CDATA[<p>The hype around Large Language Models (LLMs) is undeniable. They are versatile, powerful, and capable of solving a wide range of problems. But when it comes to agentic frameworks—systems where multiple autonomous AI agents collaborate, reason, and act—Small Language Models (SLMs) often prove to be the better choice.</p><p>Here’s why.</p><ul><li>Specialization Over Generalization: LLMs are trained to be general-purpose, capable of answering anything from poetry to Python scripts. But in agentic workflows, agents rarely need that breadth. Instead, they perform narrow, well-defined tasks—like parsing invoices, querying CRM systems, or summarizing compliance rules.</li><li>SLMs can be fine-tuned or distilled for these domains, making them more accurate, efficient, and dependable. Think of them as a team of specialists instead of a single, overqualified generalist.</li><li>Faster and More Efficient: Agentic systems thrive on micro-interactions — agents continuously pass data, call APIs, and refine results. Using an LLM for every step adds latency and slows down the workflow. SLMs, being lightweight, deliver faster responses at lower compute costs, ensuring smoother orchestration.</li><li>Cost Optimization at Scale: Running a large LLM for enterprise-scale agent frameworks quickly becomes cost-prohibitive. Each query consumes significant resources, and at scale, that translates into unsustainable infrastructure costs.</li><li>Modularity: Agentic frameworks are about plug-and-play agents. Each agent can be swapped, upgraded, or retrained independently. SLMs, being smaller and task-specific, fit perfectly into this modular approach. By contrast, LLMs are monolithic and less flexible to fine-grained adaptation.</li><li>Reduced Hallucinations: SLMs, when fine-tuned for a single purpose, are less likely to hallucinate irrelevant information compared to general-purpose LLMs.</li></ul><p>The future is very much a hybrid — LLM can still be used as a planner, but actual tasks need to go on SLMs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=064260455dbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Exploratory Data Analysis should be Data-Driven First (and Not Business-Process Driven)]]></title>
            <link>https://medium.com/@sharmamahesh789/why-exploratory-data-analysis-should-be-data-driven-first-and-not-business-process-driven-4596e2b2ec14?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4596e2b2ec14</guid>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Fri, 29 Aug 2025 14:14:57 GMT</pubDate>
            <atom:updated>2025-08-29T14:14:57.409Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Why Exploratory Data Analysis should be Data-Driven First (and Not Business-Process Driven)</blockquote><p>Exploratory Data Analysis (EDA) is the backbone of any serious data science or analytics initiative. It involves summarizing, visualizing, and probing datasets to discover underlying patterns, detect anomalies, and generate hypotheses.</p><p>A common debate is whether EDA should be guided directly by business processes (e.g., &quot;analyze the data only in terms of KPIs the business cares about&quot;) or should be purely data-driven first (e.g., &quot;explore what the data itself says before mapping back to business workflows&quot;).</p><p>The more effective approach: EDA must start as data-driven, validated later against business processes.</p><p>Why EDA Should Be Data-Driven First</p><ol><li>Unbiased Discovery<br>Business processes introduce assumptions. Starting with processes risks overlooking unexpected insights (e.g., customer churn patterns not captured in predefined KPIs). Data-first exploration reduces confirmation bias.</li><li>Detecting Hidden Patterns<br>Some insights may lie outside the current process framework. For example, customer behavior anomalies might not map neatly into the existing sales funnel but still reveal churn or fraud.</li><li>Handling Complex, Evolving Systems<br>Business processes often lag behind reality—especially in fast-moving industries. Data often tells the &quot;ground truth&quot; faster than documented workflows.</li><li>Siloed Exploration = Freedom to Fail &amp; Iterate<br>Keeping EDA initially siloed allows analysts to freely test hypotheses, discard dead ends, and experiment without being constrained by process expectations.</li></ol><p>Why Business-Process Validation Still Matters</p><ol><li>Ensures insights are actionable (e.g., linking churn prediction to retention campaigns).</li><li>Helps prioritize business-relevant findings over academic patterns.</li><li>Provides organizational alignment, so data insights don’t become siloed reports that no one uses.</li></ol><p>Positives of Data-Driven EDA</p><ol><li>Uncovers the unknown unknowns</li><li>Promotes innovation by going beyond the business’s current mental models.</li><li>Builds trust in data quality, since anomalies are discovered independently of process assumptions.</li></ol><p>Negatives of Data-Driven EDA</p><ol><li>Risk of analysis paralysis: endless digging without connecting to business value.</li><li>Findings may be irrelevant if not validated against business needs.</li></ol><p>Example – Retail Customer Data</p><ol><li>Business-Process-Driven EDA: Look at sales by region, seasonal patterns, and customer segments already defined in CRM.</li><li>Data-Driven EDA: Start by clustering customers without pre-defined categories. Discover that a small group of &quot;high-return customers&quot; (not part of CRM segmentation) causes 30% of return-related losses.</li><li>Validation: Map this back to return/refund policies and adjust business processes accordingly.</li></ol><p>Conclusion</p><p>Exploratory Data Analysis should be data-driven first, free from process constraints, so that true discovery and innovation are possible. However, findings must always be validated against business processes to ensure relevance, adoption, and impact once initial EDA is done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4596e2b2ec14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building autonomus agents — do not forget the HITL Agent]]></title>
            <link>https://medium.com/@sharmamahesh789/building-autonomus-agents-do-not-forget-the-hitl-agent-656b1bee869e?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/656b1bee869e</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[responsible-ai]]></category>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 07:36:32 GMT</pubDate>
            <atom:updated>2025-08-23T07:36:32.644Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building autonomus agents — do not forget the HITL Agent</h3><p>Building an autonomous AI agent in a regulated industry can be a challenge. Enterprises want the efficiency and scalability that AI provides, but they also have strict regulations to follow, especially Banks. This is where <strong>Human-in-the-Loop (HITL)</strong> becomes critical.</p><h3>Understanding Autonomy</h3><p>Instead of seeing autonomy as a simple yes or no, it’s helpful to view it as a spectrum.</p><ul><li><strong>Level 0: Rules-Based.</strong> AI has no autonomy. All decisions are made by humans based on a set of predetermined rules.</li><li><strong>Level 1: AI-Assisted.</strong> AI suggests actions or provides data, but a human is always the final decision-maker.</li><li><strong>Level 2: Semi-Autonomous.</strong> The AI takes action on its own, but critical steps require human approval. This is often the target level for many regulated businesses.</li><li><strong>Level 3: Autonomous with Oversight.</strong> The AI runs an entire process from start to finish. Humans only step in to audit the results and intervene if a problem is detected.</li><li><strong>Level 4: Fully Autonomous.</strong> AI operates without any human intervention or oversight. This is extremely rare in regulated industries due to the high risks involved.</li></ul><p>Most regulated enterprises aim for <strong>Levels 2 or 3</strong>. This allows them to balance the efficiency of AI with the need for strict governance and accountability.</p><h3>Implementing Governance with HITL Workflows</h3><p>Before you start building, you need to understand the governance requirements for enterprise-level AI. These include:</p><ul><li><strong>Traceability:</strong> The ability to trace every decision back to its source. Why did the AI do that?</li><li><strong>Auditability:</strong> The ability to log all inputs, outputs, and decisions for later review.</li><li><strong>Control Gates:</strong> Human approval points for high-impact actions.</li><li><strong>Explainability:</strong> The ability for a human to understand how the AI arrived at its conclusion.</li><li><strong>Accountability:</strong> Knowing who is responsible for an action, whether it’s a human or an AI.</li></ul><p>With these requirements in mind, you can implement one of the following workflows for your AI agents.</p><h3>The Problem with Full Autonomy</h3><p>The most basic AI agent workflow is fully autonomous. A user or system trigger activates the AI agent, which then takes action. While this is the most efficient method, it lacks the necessary governance for regulated environments.</p><blockquote>Trigger → AI Agent → Action</blockquote><p>This simple flow has no checks and balances, making it difficult to trace decisions or ensure compliance.</p><h3>The Classic HITL Workflow</h3><p>A safer approach is to include a human copilot in the loop. The AI agent makes a recommendation, which a human then reviews and either approves or denies. This workflow is much safer and works well for high-risk tasks like credit approval or compliance checks, but it can significantly slow down the process.</p><blockquote>Trigger → AI Agent → Recommendation → Human Copilot Reviews → Execution</blockquote><h3>HITL Agent: Tiered Autonomy</h3><p>For the optimal balance of speed and governance, you should use a <strong>tiered autonomy model</strong> based on risk scoring. In this model, the AI agent is first tasked with classifying its own task by a pre-defined risk score.</p><ul><li><strong>Low-Risk:</strong> If the task is low-risk, the AI agent can execute it automatically.</li><li><strong>Medium-Risk:</strong> For a medium-risk task, the AI can execute the action but must log the event and notify a human for later review.</li><li><strong>High-Risk:</strong> For high-risk tasks, a human copilot gate is required. The AI agent must pause and wait for human approval before taking any action.</li></ul><p>This tiered approach allows your AI to handle simple tasks efficiently while ensuring a human is always in the loop for actions that carry the most risk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3HbcqTtJxvxx3LokGoO3w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=656b1bee869e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bringing Enterprise Data Together]]></title>
            <link>https://medium.com/@sharmamahesh789/bringing-enterprise-data-together-d449267d26e8?source=rss-37eec1d3480b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d449267d26e8</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Mahesh Sharma]]></dc:creator>
            <pubDate>Sat, 23 Aug 2025 05:46:08 GMT</pubDate>
            <atom:updated>2025-08-23T13:19:57.972Z</atom:updated>
            <content:encoded><![CDATA[<p>Problem Statement:</p><p>Customer data in banks or large enterprises often resides in isolated silos — legacy systems like mainframe/DB2, modern cloud platforms, data lakes (e.g., S3), and various APIs. Each system has its own query language, authentication, and format, forcing customer service agents or risk officers to juggle multiple queries or rely on IT teams for data integration.</p><p>Solution</p><p>Large Language Models (LLMs) can serve as a semantic query layer. The LLM then breaks this into sub-queries — SQL for DB2, API calls for KYC, etc. — and composes a coherent response.</p><p>MCP functions like a plugin interface for LLMs. Each data source (DB2, Snowflake, API, Data Lake) exposes an MCP server that standardizes schemas and connectors.</p><p>Example Workflow</p><p>a. User Query “Give me the last 5 failed transactions of customer 12345 and any fraud alerts.”</p><p>b. LLM Reasoning</p><p><em>Query DB2 for transaction data</em></p><p><em>Query Snowflake for fraud monitoring</em></p><p><em>Query API for alerts</em></p><p>c. MCP Request (simplified YAML)</p><blockquote>yaml</blockquote><blockquote>request:</blockquote><blockquote>query: “last 5 failed transactions of customer 12345”</blockquote><blockquote>sources:</blockquote><blockquote>- db2_core_banking</blockquote><blockquote>- snowflake_fraud</blockquote><blockquote>- alerts_api</blockquote><p>d. MCP Translates to Source Queries</p><p>DB2 (transactions)</p><pre>SELECT * FROM transactions<br>WHERE customer_id = &#39;12345&#39;<br>AND status = &#39;FAILED&#39;<br>ORDER BY transaction_date DESC<br>FETCH FIRST 5 ROWS ONLY;</pre><p>Snowflake (fraud alerts)</p><pre>SELECT alert_id, description, timestamp<br>FROM fraud_alerts<br>WHERE customer_id = &#39;12345&#39;<br>ORDER BY timestamp DESC;</pre><p>e. API (alerts service)</p><pre>GET /alerts?customer_id=12345<br>Authorization: Bearer &lt;token&gt;</pre><p>f. LLM Response (JSON)</p><pre>{<br>&quot;customer_id&quot;: &quot;12345&quot;,<br>&quot;failed_transactions&quot;: [<br>{&quot;id&quot;: &quot;tx987&quot;, &quot;amount&quot;: 500, &quot;date&quot;: &quot;2025–08–01&quot;},<br>{&quot;id&quot;: &quot;tx986&quot;, &quot;amount&quot;: 200, &quot;date&quot;: &quot;2025–07–28&quot;},<br>…<br>],<br>&quot;fraud_alerts&quot;: [<br>{&quot;alert_id&quot;: &quot;fraud_123&quot;, &quot;description&quot;: &quot;Unusual login&quot;, &quot;date&quot;: &quot;2025–07–27&quot;}<br>],<br>&quot;system_alerts&quot;: [<br>{&quot;id&quot;: &quot;alert789&quot;, &quot;message&quot;: &quot;KYC update pending&quot;}<br>]<br>}</pre><p>g. Final User-Facing Summary</p><p>Customer 12345 has 5 recent failed transactions. Fraud system flagged an unusual login on Jul 27. KYC update is pending.</p><p>Flow and Code Snippet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*ZgeiBMq9C8_0CTbOqgEKuA.png" /></figure><pre>from mcp import MCPClient<br>from openai import OpenAI<br># Connect MCP to multiple data sources<br>mcp = MCPClient()<br>mcp.register_source(&quot;db2_core_banking&quot;, conn_string=&quot;db2://…&quot;)<br>mcp.register_source(&quot;snowflake_fraud&quot;, conn_string=&quot;snowflake://…&quot;)<br>mcp.register_source(&quot;alerts_api&quot;, base_url=&quot;https://alerts.internal&quot;)<br># User query<br>user_query = &quot;Show me last 5 failed transactions of customer 12345 and fraud alerts.&quot;<br># Send query to LLM<br>llm = OpenAI(api_key=&quot;sk-…&quot;)<br>prompt = f&quot;&quot;&quot;<br>You are connected to MCP data sources.<br>Translate the query into MCP requests.<br>User Query: {user_query}<br>&quot;&quot;&quot;<br>plan = llm.chat.completions.create(<br>model=&quot;gpt-5&quot;,<br>messages=[{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: prompt}]<br>)<br># Execute MCP plan<br>results = mcp.execute(plan)<br>print(results.summary())</pre><p>Key Benefits</p><ol><li><em>Unified access: Eliminates the need for users to learn different query languages or APIs.</em></li><li><em>Speed: Enables real-time responses instead of days-long delays.</em></li><li><em>Scalability: Easily integrates new data sources via MCP.</em></li><li><em>Compliance: Enables enforcement of regulatory rules like PII masking and audit tracking.</em></li><li><em>Future-ready: Bridges legacy systems (DB2) and modern platforms (Snowflake, APIs) with a single interface.</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d449267d26e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>