<?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[How to Architect - Medium]]></title>
        <description><![CDATA[This publication focuses on articles that look into architectural ideas and solutions. This is a good place to read about ideas especially around Generative AI, Agentic systems. - Medium]]></description>
        <link>https://medium.com/how-to-architect?source=rss----8032633ef1a4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>How to Architect - Medium</title>
            <link>https://medium.com/how-to-architect?source=rss----8032633ef1a4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:00:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/how-to-architect" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Do you have your CTO Playbook for AI-Native SDLC?]]></title>
            <link>https://medium.com/how-to-architect/do-you-have-your-cto-playbook-for-ai-native-sdlc-275b665d8bd9?source=rss----8032633ef1a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/275b665d8bd9</guid>
            <category><![CDATA[developer-experience]]></category>
            <category><![CDATA[helix]]></category>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Kapil Viren Ahuja]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 05:53:23 GMT</pubDate>
            <atom:updated>2025-09-06T05:53:25.820Z</atom:updated>
            <content:encoded><![CDATA[<p>I will share mine, but first, let’s start with why we need one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXgFfObpZ7vm9-X1KcNgzQ.jpeg" /></figure><h3>The Strategic Problem Everyone Misses</h3><p>Every few decades, something fundamentally rewrites how we build software. Mainframes gave way to client-server. Client-server bowed to the web. The web surrendered to cloud and mobile. Now we stand at another threshold: AI-driven software development that will transform planning, coding, testing, deployment, and governance at the most basic level.</p><p>Unlike previous transitions that changed where or what we build software for, this one changes how we build it entirely. Yet Harvard Business Review research reveals a sobering reality: 80% of AI projects fail. The conventional wisdom blames technical limitations, but the real problem runs deeper. User trust kills more AI products than technical constraints.</p><p>While everyone focuses on making AI smarter, the fundamental barrier is that people cannot understand what AI systems are doing. Sam Altman envisions natural language programming where business requirements translate directly into functioning software, yet even he expresses concerns about AI’s impact on human decision-making. The Copilot Era remains chaotic with little structure or clear direction.</p><p>Organizations treat AI integration as tooling upgrades rather than the systemic transformation it demands. The 20% that succeed establish frameworks for explainable AI systems that users actually adopt. They develop specific techniques for AI decision transparency, governance architecture, and systems that enhance rather than replace human judgment.</p><h3>Where Enterprise AI Breaks Down</h3><p>Current AI adoption suffers from a fundamental gap that explains why enterprise implementations struggle despite impressive demo capabilities. Teams expect AI assistants to handle complex business logic integration, but these tools fail when institutional knowledge becomes critical. Real-time pricing optimization demonstrates this perfectly.</p><p>The system may produce technically correct code, but it fails business requirements because it operates without understanding the broader ecosystem of dependencies and regulatory constraints that experienced operators navigate intuitively. While this level of code may be okay for vibe coding, this gap becomes critical in integrated enterprise systems where multiple business functions intersect. AI handles cannot combine the business needs and the complex technical needs of the enterprise.</p><p>The problem compounds as teams scale to use AI co-pilots. Firing the same command gives a different set of code for the same engineer. Try to do this across your team of 50 people — good luck! And then you add your team, using various AI tools — and it’s a perfect storm; in terms of technology, you get inconsistent code styles and architectural patterns. Code reviews should become easier, but they have the exact opposite impact. The speed at which your team writes code becomes a powerhouse that spits technical debt, which no AI co-pilot will ever address.</p><p>Current co-pilots are getting better, especially with agents, but they struggle because they excel at isolated tasks but cannot navigate the complex needs and the interconnected nature of business systems. Teams manage fragmented workflows where AI handles components while humans struggle to integrate and maintain overall system coherence. Think of a world where spec-to-design, design-to-code, code-to-test, test-to-deploy, and deploy-to-run happen seamlessly. We need a comprehensive system integration that preserves business logic and institutional knowledge.</p><p>Engineering leaders face a paradox. AI demonstrates impressive capabilities in demos but fails when business people need to make high-stakes decisions affecting revenue, compliance, and customer relationships. Teams need AI that feels familiar rather than foreign while delivering genuine productivity gains.</p><h3>The MAYA Framework</h3><p>Raymond Lowwy transformed design with a simple instinct — his MAYA framework (Most Advanced Yet Acceptable) explained why some innovations shape history and why others just fizzle out in the shadows despite being superior. He designed the Greyhound bus for the Space Shuttle. He proved that revolutionary products fail when they are too revolutionary. Consumers need familiarity as an anchor when encountering the advanced.</p><p>MAYA solves the trust problem, which kills 80% of the initiatives. Everyone seems to be obsessed with making AI more capable, and we know that without acceptance, it&#39;s going to fail. The principle demands that we wrap the initiatives in something familiar. Which is why we see tools like GitHub Co-Pilot, Cursor wrap their capabilities inside IDE which are familiar. Developers are not leaving their familiar tools and yet getting new capabilities to make their Dev-Experience (DevX) get better.</p><p>MAYA will tell you what to achieve, and not necessarily how to. You need systems and experiences that will continue to transform the AI. Vibe coding isn’t the answer. You need consistency and control without restraining capability. Understanding this gap between principle and practice is leading me to develop something actionable.</p><h3>The HELIX Method: From principle to practice</h3><p>I have spent years building T-shaped engineering teams and observed some of them fail. I have seen the T-shaped framework evolve to pi-shaped and then applied that to individuals and also to engineering teams. What I always found was that in these frameworks principles of MAYA were missing. Even as an individual, when one picks a new skill, they hardly apply the previous learning. Most importantly, they would completely forget to understand the end user, and introduce something so new, so innovative that they would just reject it.</p><blockquote>2024 saw one of such projects go over the hill. I introduced something (not) new, but as a team we forgot that this was so innovative for the client, that the only way they could have reacted was to revolt against it. Now we get a 2nd chance, and I am putting my FORGE method into practice to ensure we succeed this time.</blockquote><p>The name HELIX carries deliberate meaning. Like the double helix of DNA that encodes life itself, HELIX encodes AI capabilities into your organisational DNA through an evolutionary spiral. Each rotation of the helix builds upon the last, creating stronger trust, better merics, and more sophisticated orchestration. The framework emerges from recognising that successful AI-native SDLC must mirror the T-shape structure that I have long advocated for and seen work for many teams.</p><p>Think of double HELIX as an architectural blueprint rather than a metaphor. Each strand represents your coding practices, quality vision, technical depth models, advanced algos, and cutting-edge performance. The other strand represents organisational breadth, business alignment, stakeholders, teams like UI/UX, requirements, etc. The connecting threads are the place where magic happens, where transformation happens. HELIX will transform AI from an alien presence into organisational DNA via evolution, without which the structure collapses. This needs to evolve systematically over time. You go too aggressively, and organisational DNA will reject the AI DNA (MAYA helps here).</p><p>Magic happens in the spiral progressions. Unlike linear frameworks that have point-to-point progression, HELIX recognised AI adoption as iterative progression. Each complete rotation of the helix represents a full cycle of adoption of all 5 components (see below). The first rotation will achieve basic automation with simple metrics. However, the tenth rotation orchestrated complex workflows with nuanced trust indicators. As you complete each rotation, you see deeper integrations and autonomous behavior evolve. This also means that you are building on the previous rotations.</p><blockquote>H — Harmonized <strong>orchestration</strong></blockquote><blockquote>E — Evolutionary <strong>adoption</strong></blockquote><blockquote>L — Live <strong>metrics</strong></blockquote><blockquote>I — Incremental <strong>trust</strong></blockquote><blockquote>X — eXutable <strong>actions</strong></blockquote><p><strong>Your Architecture Requirements for Scale</strong></p><p>Successful HELIX implementation balances real-time business context delivery without compromising performance. Override mechanisms preserve system learning while giving business users meaningful control. When executives adjust AI parameters based on strategic priorities, those interventions become training data that improve future recommendations.</p><p>AI-native foundation requires a modular approach enabling granular adoptions, audit trails for decision tracking, and patterns that enhance existing workflows. Teams configure AI tools to follow established branching strategies and testing requirements, ensuring AI-generated work meets the same quality standards as human code.</p><p>Testing shows people trust AI significantly more when they understand the reasoning behind recommendations, even when rarely overriding them. This psychological factor proves crucial for adoption in high-stakes environments. Framework validation occurs through continuous measurement of trust metrics, adoption rates, and business outcome quality. Hence, Live Metrics becomes critical to the adoption of an AI-native approach in your teams.</p><p>Research reveals staff prefer concise summaries with drill-down capability, while executives want strategic context and risk assessment. Your methodologies accommodate these preferences while maintaining system consistency and auditability across organizational levels.</p><h3>Control Your Developer Experience (DevX)</h3><p>Meaningful user control becomes essential for AI adoption. Your approach gives executives real influence over AI behavior while preserving system learning capabilities and operational efficiency.</p><p><strong>Design Patterns for Business Control</strong></p><p>Effective control interfaces provide scenario modeling tools for testing alternatives before implementation. These tools enable users to explore “what-if” scenarios without committing to decisions, building confidence through interactive exploration. Parameter controls let users adjust decision weights based on current business strategy or market conditions.</p><p>Approval workflows maintain audit trails while enabling human oversight at appropriate points. Design distinguishes between routine operations where AI acts autonomously and strategic decisions requiring human validation. This reduces cognitive load while preserving control where stakeholders consider it most important.</p><p>Balance becomes critical between user agency and system efficiency. Too much control creates bottlenecks that reduce AI value. Too little undermines trust and adoption. Research helps teams identify optimal control levels for different use cases and organizational contexts.</p><p><strong>Implementation Examples and Technical Patterns</strong></p><p>Architecture blueprints ensure user interventions improve rather than bypass core AI-native SDLC capabilities. When users override recommendations, those decisions become training data that help enhance the blueprints. The system learns from human expertise while maintaining automated efficiency for routine decisions. Integrating these blueprints into the core developer experience ensures that these bypass actions are captured in real-time.</p><p>Patterns should be designed to accommodate different expertise levels. Power users access detailed parameter controls and scenario analysis tools. Executive users receive streamlined dashboards with focused approval workflows for high-impact decisions. Design scales from operational to strategic use cases seamlessly.</p><p>Implementation integrates with existing business tools rather than requiring separate AI management interfaces. Controls embedded within familiar applications users already understand, reducing training requirements while increasing adoption rates across different segments.</p><h3>Role of Natural Language in Your Playbook</h3><p>Natural language programming presents opportunities with significant constraints requiring strategic navigation. While 90% of developers will use AI assistants by 2028, current limitations around context blindness, legacy integration, and institutional knowledge gaps continue to limit effectiveness in enterprise environments.</p><p>AI assistants improve rapidly at individual components but struggle with integrated enterprise business logic, defining complex systems. This explains near-universal AI adoption while natural language programming remains limited to specific use cases rather than comprehensive system development.</p><p><strong>Current Limitations</strong></p><p>Enterprise environments contain decades of accumulated business logic and undocumented dependencies that AI cannot access. Legacy systems embody complex business rules developed and refined through real-world usage over the years. Natural language programming works for greenfield projects but encounters friction when integrating with existing architecture and established processes.</p><p>Context window limitations compound integration challenges (and not the 1M context window from Claude also doesn’t solve for this). Current models process thousands of tokens but cannot maintain awareness of entire enterprise codebases or organizational standards evolved over time. This creates gaps, limiting natural language programming to smaller, self-contained projects.</p><p>What appears as clumsy AI contributions today will become seamless, production-ready work within two years. Uncoordinated story definitions will evolve into groomed backlogs with production-ready interfaces within a year. However, business context and institutional knowledge integration require longer timelines and more sophisticated approaches.</p><p><strong>Strategic Recommendations for Preparation</strong></p><p>Build modular architectures now that incorporate AI components while maintaining human oversight of system integration. This enables immediate productivity gains while preserving control over business logic and architectural decisions, determining system success.</p><blockquote>Composable for DXP were nice to have, but composable for enterprise stack if going to be a necessity.</blockquote><p>Implement testing frameworks for AI-generated code that validate outputs against business requirements, security standards, and performance criteria. These capabilities must scale with increasing AI usage while maintaining confidence in system reliability and business alignment.</p><p>Organizations building trust foundations today will benefit most as AI capabilities advance, while others continue experiencing high failure rates despite improved technology. Teams establishing clear standards, review processes, and quality metrics will adapt more successfully as AI advances rapidly.</p><p>Treating this transformation as wait-and-see represents gambling with more than engineering velocity. Organizations risk competitive irrelevance where AI-native development becomes table stakes for market participation.</p><h3>Competitive Advantage Framework</h3><p>Analysis reveals the 20% who succeed prioritize trust-building from project inception. They implement proven user control patterns, giving stakeholders meaningful influence over AI behavior. They use design approaches making AI feel familiar rather than foreign, reducing adoption friction while building long-term confidence.</p><p>Competitive advantage comes from organizational capability rather than tool selection. Companies mastering explainable AI architecture and trust-building approaches establish sustainable advantages as the industry moves toward natural language programming and AI-native development.</p><blockquote>I am developing HELIX in realtime. I am betting on this to be the go-to framework for my teams to scale (for ME to scale).</blockquote><p><strong>Three Immediate Actions for CTOs</strong></p><p>First, build explanation systems using tested transparency patterns from the MAYA framework to HELIX. Transform AI outputs into business-friendly explanations that stakeholders can act upon confidently.</p><p>Second, implement developer experiences with proven methodologies. Create scenario modeling tools and parameter controls, giving executives meaningful influence while preserving system learning. Establish audit trail systems, maintaining accountability and business alignment while enabling rapid iteration.</p><p>Third, establish preparation frameworks for increasing AI autonomy. Build modular architectures accommodating advancing AI capabilities while maintaining human oversight where critical. Implement quality measurement systems that scale with AI advancement while preserving stakeholder confidence and regulatory compliance.</p><p>Your positioning centres on experience transformation as the bridge between AI’s technical potential and business adoption success. Companies mastering your explainable AI architecture and trust-building approaches gain sustainable competitive advantages. Your expertise in making advanced technology feel acceptable becomes the key differentiator for avoiding the 80% failure rate while capturing substantial business value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=275b665d8bd9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/how-to-architect/do-you-have-your-cto-playbook-for-ai-native-sdlc-275b665d8bd9">Do you have your CTO Playbook for AI-Native SDLC?</a> was originally published in <a href="https://medium.com/how-to-architect">How to Architect</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Curious Case of Machines That Tell the Truth]]></title>
            <link>https://medium.com/how-to-architect/the-curious-case-of-machines-that-tell-the-truth-54514cc51583?source=rss----8032633ef1a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/54514cc51583</guid>
            <category><![CDATA[organisational-culture]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Kapil Viren Ahuja]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 05:29:00 GMT</pubDate>
            <atom:updated>2025-07-16T10:12:35.833Z</atom:updated>
            <content:encoded><![CDATA[<p>Something fascinating happens when artificial intelligence systems get trained on corporate data. The machine learns what organizations actually do, rather than what they think they may do. This distinction matters more than most people realize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLeLEuSLh47hbIqWfMzVzQ.png" /></figure><p>The phenomenon resembles what we observe when we finally measure something we’ve only theorized. The act of measurement reveals the true state of the system, which often differs dramatically from our predictions. Organizations, like many complex systems, exist in multiple states simultaneously until observed.</p><blockquote>Here is a link to read if you don’t have a subscription — <a href="https://howtoarchitect.io/the-curious-case-of-machines-that-tell-the-truth-54514cc51583?sk=79ce657a381907321bad9926314cdabc">https://howtoarchitect.io/the-curious-case-of-machines-that-tell-the-truth-54514cc51583?sk=79ce657a381907321bad9926314cdabc</a></blockquote><h3>The Two Realities Problem</h3><p>Every organization operates under a fundamental duality. The official version exists in manuals, flowcharts, and training materials: everything documented, organized, logical. This represents the organization’s intended design, the blueprint for how things should work. The real version emerges from daily practice: shortcuts invented under pressure, rules bent for efficiency, workarounds that become tradition. This constitutes the actual functioning system that enables work to get done.</p><p>Consider how this duality manifests across different organizational layers. Executive leadership operates primarily within the documented reality, making decisions based on official procedures and reported metrics. They see dashboards, receive summaries, and review performance against stated objectives. Middle management straddles both worlds, aware of official requirements yet intimately familiar with practical necessities. They know what the rules say and also know what actually works. Front-line employees inhabit the real world almost exclusively, developing sophisticated informal systems that enable actual work completion despite official constraints.</p><p>This layered existence creates natural tensions. Senior leaders wonder why initiatives fail despite clear documentation and adequate resources. Middle managers struggle to reconcile conflicting demands from above and below. Front-line workers develop cynicism toward official processes that seem disconnected from operational reality.</p><p>Before AI systems, this split remained invisible to systematic observation. Management could maintain the fiction that official procedures governed actual behavior. Employees could pretend compliance while adapting to reality. Everyone participated in this comfortable delusion, maintaining organizational harmony through mutual pretense.</p><p>But machines understand patterns, never delusions. When you feed an AI system your organizational data (emails, chat logs, decision documents) it searches for patterns with relentless objectivity. The patterns it discovers reflect actual behavior, unlike intended behavior. The machine becomes an organizational microscope, revealing structures invisible to casual observation.</p><h3>Pattern Recognition Without Bias</h3><p>Consider a financial institution deploying an internal AI assistant for compliance queries. An employee asks: “How do we handle identity verification for small remittances?”</p><p>The AI, having analyzed thousands of historical cases, responds: “Teams typically skip enhanced verification for amounts below $5,000 unless the client is new.”</p><p>This answer reflects reality with uncomfortable precision. The AI found this pattern because that describes what actually happens when staff balance regulatory requirements against operational efficiency. Processing times, customer satisfaction scores, and approval rates all influenced this emergent behavior. But the response directly contradicts written policy, which mandates uniform verification procedures regardless of transaction size.</p><p>The compliance officer faces what might be called a measurement problem: the act of observation has revealed a system operating differently than expected. The machine has exposed the gap between theoretical and practical operations. This creates what we might recognize as an observer effect, where measurement itself changes the system being observed. Once the gap becomes visible, it cannot be ignored.</p><p>The situation becomes more complex when we examine the underlying forces that created this pattern. Staff members never consciously decided to violate policy. Instead, they responded to multiple competing pressures: regulatory requirements, operational efficiency demands, customer service expectations, and resource constraints. The informal verification process that emerged represents a kind of equilibrium state, balancing these forces in ways that official policy failed to anticipate.</p><p>Understanding this emergence requires examining the feedback loops that shaped behavior over time. When enhanced verification caused processing delays, customer complaints increased. When complaints reached management attention, pressure mounted to expedite transactions. Staff discovered that skipping verification for trusted customers and small amounts resolved immediate problems without triggering audits. This solution became habitual through repetition and success.</p><h3>The Speed of Discovery</h3><p>These behavioral gaps previously required months to uncover through consultants, surveys, and annual audits. Even then some of these may not surface. Traditional organizational analysis resembled astronomy before advanced telescopes: limited to visible phenomena and dependent on intermittent observation opportunities. Organizations could remain comfortable with their assumptions between formal review cycles.</p><p>AI systems reveal patterns in near real-time, creating immediate pressure for decision-making. The machine observes changes in workflow, tool usage, and procedural shortcuts, then summarizes them without bias or delay. This acceleration makes the disconnect between policy and practice impossible to ignore.</p><p>Consider the implications of this temporal compression. Traditionally, organizational drift occurred gradually, allowing comfortable adaptation to changing realities. Management could remain unaware of deviations until they became significant enough to trigger formal review processes. Problems could simmer beneath the surface for years before reaching attention thresholds.</p><p>AI systems eliminate this comfortable ignorance, creating what might be called “organizational real-time feedback.” Every deviation gets registered, every pattern gets analyzed, every trend gets reported. The continuous monitoring creates unprecedented visibility into organizational behavior patterns.</p><p>Organizations accustomed to slow feedback cycles suddenly face continuous monitoring. This transition can feel overwhelming, like suddenly being required to justify every unconscious decision. The challenge lies in distinguishing meaningful patterns from random variation, significant trends from temporary fluctuations.</p><h3>And, Accuracy Creates Discomfort</h3><p>New employees receive conflicting guidance from AI systems and official documentation, creating cognitive dissonance that undermines confidence in both sources. They must navigate contradictory information streams while developing practical competence. This contradiction forces them to choose between following official procedures or adopting AI-suggested approaches based on observed behavior.</p><p>The choice creates anxiety because both options carry risks. Following official procedures might lead to inefficiency and peer criticism. Adopting AI suggestions might violate stated policies and create compliance issues. New employees lack the experience necessary to evaluate these trade-offs, leading to paralysis or arbitrary decision-making.</p><p>Leaders invested significant time and resources developing current procedures. They hired consultants, and conducted extensive planning to create systems they believed would work effectively. Discovering that these systems have been largely ignored or modified creates strategic confusion.</p><p>The gap between stated values and actual practices becomes visible organization-wide, creating what might be called “cognitive dissonance” at institutional scale. Organizations pride themselves on consistency and integrity, yet the AI reveals systematic inconsistencies between principles and practices.</p><p>Trust in official documentation erodes as people recognize the disconnect between written procedures and AI-reported realities. This erosion affects decision-making processes, training programs, and strategic planning activities that depend on accurate system understanding.</p><p>When documentation loses credibility, organizations face fundamental questions regarding information reliability. If official procedures cannot be trusted to reflect actual operations, what other organizational knowledge might be inaccurate? This questioning can spiral into broader skepticism regarding leadership competence and institutional integrity.</p><h3>Principles for Working with Organizational Truth</h3><p>Three principles help organizations use AI reflection constructively, drawing from established methodologies for handling observational data:</p><ol><li><strong>Traceability</strong>:</li></ol><p>AI systems must cite sources for their responses with rigorous documentation standards. When the system reports that people skip procedures, it should reference the specific communications and logs that demonstrate this pattern. Traceability enables verification and correction, allowing observers to evaluate the quality and representativeness of underlying data.</p><p>This principle extends beyond simple citation to include statistical confidence measures. The AI should indicate how frequently observed patterns occur, across what time periods, and with what degree of certainty. A pattern observed once differs fundamentally from one repeated thousands of times across multiple organizational units.</p><p>Traceability also requires transparency regarding data collection methods and analytical approaches. Users must understand how the AI identified patterns, what criteria it used to classify behaviors, and what limitations might affect its conclusions. This transparency enables informed evaluation of AI recommendations.</p><p><strong>2. Discrimination</strong>:</p><p>All deviations represent problems. Some shortcuts reflect intelligent adaptation to changing conditions that official procedures failed to anticipate. Organizations must distinguish beneficial evolution from dangerous drift using systematic analysis rather than intuitive judgment.</p><p>This discrimination requires understanding the forces that drive observed behaviors. Deviations that improve multiple performance metrics while maintaining quality standards deserve different treatment than those that create risks or reduce effectiveness. The analysis should examine both intended and unintended consequences of observed patterns.</p><p>Effective discrimination also requires understanding context. Behaviors that work well in specific situations might fail when applied broadly. Shortcuts that succeed during normal operations might create vulnerabilities during crisis conditions. Organizations must evaluate patterns within their operational context rather than in isolation.</p><p><strong>3. Human Authority</strong>:</p><p>Machines can report behavioral patterns but cannot assess context, risk, or organizational values. Human decision-makers must own responses to AI observations, bringing domain expertise and strategic understanding that algorithms lack.</p><p>The system provides data; leadership provides judgment. This division of responsibility reflects fundamental limitations in artificial intelligence systems. While machines excel at pattern recognition, they cannot evaluate the broader implications of those patterns for organizational mission, stakeholder relationships, or strategic objectives.</p><p>Human authority also means accepting responsibility for decisions based on AI observations. Leaders cannot blame the machine for choices they make using AI-provided information. The technology serves as an analytical tool, never as a decision-making replacement.</p><h3>When Shortcuts are disguised as Innovations</h3><p>Sometimes deviations indicate improvement rather than failure, resembling how evolutionary processes generate beneficial adaptations. Field teams might abandon inefficient forms for better methods that reduce processing time while improving data quality. Engineers might replace slow tools with faster alternatives that enable more thorough analysis within existing time constraints. Medical staff might develop shared documentation that improves patient care coordination while reducing administrative burden.</p><p>These represent positive evolution, unlike compliance failures. The key distinction lies in understanding whether deviations improve or degrade overall system performance across multiple relevant dimensions. Performance improvements that sacrifice safety represent different phenomena than those that enhance both efficiency and quality.</p><p>AI helps surface beneficial innovations early, enabling organizations to decide whether to formalize and spread improvements or constrain them. This decision requires careful analysis of scalability, risk factors, and alignment with organizational objectives. Innovations that work well in specific contexts might fail when applied broadly.</p><p>Consider how informal innovations often emerge from front-line employees who understand operational realities better than policy designers. These individuals face daily challenges that policy-makers never encounter, leading them to develop creative solutions that address real-world constraints. Their innovations represent valuable organizational learning that should be captured and evaluated.</p><p>The challenge lies in distinguishing genuine improvements from convenient shortcuts that compromise long-term objectives. Some deviations that appear beneficial in the short term might create systemic problems that only become visible over extended periods. Organizations need frameworks for evaluating both immediate and long-term consequences of observed behavioral patterns.</p><h3>When Rules Cannot Bend</h3><p>Certain processes cannot accommodate casual changes. In medicine, finance, and safety-critical systems, procedural shortcuts carry legal or physical consequences that extend far beyond organizational boundaries. AI pattern recognition becomes an early warning system in these domains, analogous to monitoring systems in nuclear facilities.</p><p>Example: Rigorous Evaluation and Impact: <a href="https://indiaai.gov.in/article/ai-powered-early-warning-system-reduces-hospital-deaths-study-finds">A recent study at St. Michael’s Hospital in Toronto implemented CHARTWatch</a>, an AI-powered early warning system that monitors hospitalized patients in real time. The system identifies patients at high risk of unexpected deterioration and alerts medical staff, enabling timely intervention. The study, published in the Canadian Medical Association Journal, demonstrated a significant 26% reduction in unanticipated mortality, highlighting both the effectiveness and necessity of careful evaluation before deployment</p><p>When systems detect deviation in high-risk areas, they should alert governance teams rather than suggest workarounds. The goal shifts from codifying observed behavior to preventing dangerous practices before they cause harm. This requires sophisticated classification systems that can distinguish between high-risk and low-risk deviations automatically.</p><p>The challenge lies in defining risk boundaries accurately. Some procedures that appear critical may actually represent bureaucratic artifacts rather than genuine safety requirements. Conversely, seemingly minor deviations might create cascading failures under specific conditions. Risk assessment requires understanding both immediate and systemic consequences of procedural variations.</p><h3>The Fundamental Choice</h3><p>AI systems trained on organizational data function as perfectly honest observers, resembling scientific instruments that measure phenomena without regard for convenience or comfort. They report patterns without political consideration or social diplomacy. They distinguish between convenient and inconvenient truths with dispassionate accuracy.</p><p>This creates a fundamental choice that every organization must make: Organizations can embrace accurate feedback regarding actual operations or maintain comfortable fictions regarding compliance with stated procedures. The choice parallels historical moments when institutions faced contradictory evidence that challenged established beliefs.</p><p>The decision carries long-term consequences for organizational learning and adaptation. Organizations that embrace uncomfortable truths develop capacity for continuous improvement based on empirical evidence. Those that resist such feedback become increasingly disconnected from operational realities, creating vulnerability to disruption and failure.</p><p>The choice also affects organizational culture and employee engagement. Teams that see their innovations recognized and their practical wisdom valued become more invested in organizational success. Conversely, employees whose adaptations get dismissed or penalized despite demonstrated effectiveness become cynical and disengaged.</p><h3>Implementation Strategy</h3><p>Successful implementation requires preparation for uncomfortable discoveries, similar to how research projects require protocols for handling unexpected results. Organizations must establish frameworks for responding to AI observations that balance rapid response with thoughtful analysis.</p><p>Key implementation elements include:</p><p>Develop rapid response capabilities for high-risk areas where patterns indicate dangerous practices. Response protocols should specify escalation procedures, temporary mitigation measures, and investigation requirements. Speed matters when safety or compliance risks emerge, requiring predetermined action plans rather than ad hoc responses.</p><p>Build communication strategies for explaining changes driven by AI observations to stakeholders who may resist data-driven revelations. Communication should emphasize improvement opportunities rather than compliance failures, framing discoveries as learning opportunities rather than punitive findings.</p><p>Establish feedback loops that enable continuous refinement of both AI systems and organizational responses. Regular evaluation of decision outcomes helps calibrate both algorithmic accuracy and human judgment, improving overall system performance over time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54514cc51583" width="1" height="1" alt=""><hr><p><a href="https://medium.com/how-to-architect/the-curious-case-of-machines-that-tell-the-truth-54514cc51583">The Curious Case of Machines That Tell the Truth</a> was originally published in <a href="https://medium.com/how-to-architect">How to Architect</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI’s Biggest Impact Will Be Forcing Every Company to Define Its Internal ‘Source of Truth’]]></title>
            <link>https://medium.com/how-to-architect/ais-biggest-impact-will-be-forcing-every-company-to-define-its-internal-source-of-truth-731738f5f68d?source=rss----8032633ef1a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/731738f5f68d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Kapil Viren Ahuja]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 05:28:46 GMT</pubDate>
            <atom:updated>2025-07-16T10:12:55.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7cCXBjCe8ZKqPdcU3s7DZg.avif" /></figure><p>There is a growing enthusiasm in many companies to bring artificial intelligence into day-to-day operations. People talk about AI copilots, internal assistants, and knowledge bots as if they are simple upgrades, like moving from email to chat, or from documents to dashboards. These tools are expected to make work faster, reduce repetitive questions, and help employees find the answers they need. The common assumption is that plugging AI into internal systems will lead to better decisions and greater efficiency.</p><p>In practice, what often happens is confusion. The model gives incorrect answers. It contradicts itself. It responds with confidence, but the result may be outdated or out of sync with how things work today. Employees grow frustrated. They begin to work around the system. Eventually, they stop using it. When leadership notices the problem, the blame is usually placed on the model, the integration, or the interface. Some call it a trust issue. Others label it a hallucination.</p><p>What they usually fail to realize is that the AI is doing exactly what it was trained to do. It is reading the information it was given and answering based on that. The problem is not with technology. It is with the Data Grid . Most companies do not have a clear, current, and agreed-upon internal knowledge base. What they have is a collection of partial documents, overlapping policies, and contradicting guidelines created at different times by different people. That is what the AI is reading. So when it gives a wrong answer, it is not inventing confusion. It is reflecting the confusion that was already there.</p><p>This should not be interpreted as a failure. It is a signal that the organization has never clearly defined what it believes to be true. And this leads to some the behaviours listed in this piece.</p><h3>AI works differently from humans, and that matters</h3><p>In a normal work environment, when someone is unsure about a policy or process, they ask around. They may check an internal system, read a PDF, or open a shared folder. If they see two slightly different answers, they ask a colleague for clarification. If needed, they escalate to a team lead or domain expert. Humans know how to filter what they see. They understand which sources can be trusted and which ones appear out of date. In other words, people have mechanisms for navigating inconsistency. These habits allow work to continue even when the documentation is less than perfect.</p><p>AI does not approach information this way. A model connected to a set of internal documents will read everything available and respond based on patterns. It will not pause when it sees contradictions. It will not ask for help. It will not try to identify which team has final authority. It will respond with what it predicts to be the most likely correct answer, based on the words it has seen before. And because these models are designed to sound smooth and confident, the response will often appear accurate — even when it is outdated or wrong. Even the models with reasoning capability are not intelligent enough (yet) to know what to reason, at least not on their own.</p><p>This difference is important. People use context and judgment to work around broken knowledge systems. AI is flawed, at least for now… It will give answers that look reliable, even when the input is flawed. Users will assume the information is valid because the model presents it that way. This creates a new kind of risk. Information that once sat quietly in forgotten folders now becomes part of the company’s active memory, served up in real time and followed without question.</p><h3>Most internal knowledge systems are not ready for AI</h3><p>In most organizations, internal knowledge is not stored in a single, well-maintained place. It is spread out across different platforms, folders, teams, and time periods. Some documents live in Confluence, others in Sharepoint. And, then there will be some which are in JIRA and not even considered part of the ecosystem. Many are outdated, created during a previous version of a product or policy, and never reviewed again. Often, different teams write their own versions of the same guideline, each suited to their specific needs. Over time, these versions drift further apart. And because day-to-day work continues regardless, nobody notices until something breaks.</p><p>This kind of chaos is tolerable as people know how to navigate. People have built perception which tells them just by looking what to consider, what to reuse/redo and what to ignore. An experienced employee knows where to look, who to ask, and which documents can be trusted. They may ignore a five-year-old PDF or know that a particular team’s process doc is no longer followed. In other words, people know how to operate within a system that is imperfect. They rely on habits, networks, and memory to make up for what the documentation lacks.</p><p>Unlike humans, AI won’t pause to check when answers don’t match. It picks one, blends both, or summarizes the contradiction and replies with confidence. This means even outdated or incorrect policies can quietly become “official” practice, simply because they sounded convincing at the moment.</p><p>Suppose an AI assistant is trained to support client onboarding. It pulls information from sales notes, delivery checklists, and outdated internal documents. One source promises a kickoff within 24 hours, another outlines a three-day timeline, and a few still reference tools that are no longer in use. The model doesn’t question the inconsistency; it simply selects one version and responds with confidence. The client receives that answer and adjusts their expectations accordingly. When the actual process doesn’t match what they were told, they follow up and receive conflicting responses from different teams. Internally, the confusion may be resolved, but from the client’s perspective, the experience already feels misaligned. What began as a minor documentation gap now signals a lack of coordination. The AI didn’t create the problem. It exposed an existing issue that had gone unnoticed and, in doing so, revealed the absence of a clear, trusted source of truth at the exact moment when the client was forming their first impression.</p><p>The deeper issue is not always the absence of governance, but the weight of the responsibility involved. Many organizations do have teams or processes in place to manage internal content. Yet in practice, keeping that knowledge consistently reviewed, updated, and clearly owned is a tall order. Documents may exist, but without regular upkeep or clear version history, even well-intentioned systems can drift. For AI models that rely on this content, that gap becomes critical. The model may function accurately at a technical level, but if its inputs are inconsistent or outdated, its answers will quietly reflect that, with confidence and without visibility.</p><h3>The trust breakdown happens slowly, then all at once</h3><p>When a company first launches an internal AI assistant, the response is usually positive. Employees are curious. They try it out with simple questions. The answers seem fast and helpful. At first, the tool appears to be doing its job. Beneath that early enthusiasm, however, the real test is only beginning. What matters most is not whether the AI can respond, but whether people trust those responses enough to rely on them day after day.</p><p>Trust in a tool like this doesn’t fail dramatically — it fades quietly. A few minor mistakes, like outdated instructions or incorrect escalation paths, begin to chip away at confidence. Employees start cross-checking, relying on colleagues, and gradually stop using the tool for critical tasks. On the surface, usage may seem steady, but the tool has already lost its place as a trusted source. What remains is a system people keep around, but no longer rely on.</p><p>This kind of breakdown is difficult to repair. The technology may be sound; the model is doing exactly what it was trained to do. But once trust fades, it rarely returns easily. The real issue lies in the Data Grid it depends on. If the underlying knowledge is outdated, scattered, or misaligned, the model will reflect that faithfully. The responses may sound confident, but they mirror confusion that already existed. Ironically, we stop trusting the tool, when what we should question is the clarity of the information we gave it in the first place.</p><h3>Truth must be defined before it can be automated</h3><p>Before a model can answer questions accurately, someone has to decide what the right answer is. This is obvious, isn’t it? Yet, this gets skipped all the time. They assume that because information has been written down somewhere, the model will know how to find it. But a document by itself is not a definition of truth. It is one version of it, written by one person or team, often created for a specific moment or purpose. If other teams have written their own versions, or if the original author has left the company, or if the document was never updated, it may no longer apply. The model, however, cannot tell the difference.</p><p>To prevent this, companies need to take on the less visible but essential task of deciding which knowledge counts. That means identifying sources that are still valid and removing those that are outdated. It involves reviewing policies that have not been touched in years. It also requires assigning ownership to specific types of content, so that when something changes, there is someone responsible for keeping it current. These decisions should be visible, not only to the AI but also to the people who use it.</p><p>This is not a simple process. It requires making decisions that many companies have avoided. Different departments may disagree on how something is supposed to work. A legal team might interpret a policy one way, while operations sees it differently. A product manager might publish documentation that contradicts what the support team uses day to day. These differences cannot remain hidden. If the company is unclear on what it believes, the model will reflect that lack of clarity. It will not resolve the conflict. It will present the contradiction with confidence, as if it were settled.</p><p>In this way, truth inside a company becomes something that must be maintained. It cannot be left to grow by accumulation. Allowing documents to pile up without review does not lead to clarity.</p><p>Creating an internal definition of truth is not a technical task. It is a leadership responsibility. It is what allows an organisation to say, “This is how we operate, and this is the answer we stand behind.” Until that work is done, every model will be built on uneven ground. And every answer it gives will carry the risk of confusion, not because the model is flawed, but because the organization never aligned on the truth in the first place.</p><h3>Using AI without clarity turns confusion into policy</h3><p>When an AI system is introduced into a company, it quickly becomes more than a tool. It becomes a new interface for knowledge. It aspires to be the new way of working.</p><p>This creates a subtle and serious problem. If the Data Grid refers to an outdated knowledge base, there is no clear signal to the user that something is off. The AI presents its answers as if they are final. It can provide background context or mention the internal discussions that shaped earlier decisions, but as that context was relevant some day, it may get clouded under the pretext of an older perception.</p><p>This is how confusion slowly becomes policy. And, it happens quietly. The AI reflects a version of the company’s knowledge that, if left unchecked, starts to feel real. People stop questioning it. They stop searching elsewhere. Eventually, what the model says feels more reliable than what is hidden in a shared drive or buried in an old Slack thread.</p><p>The risk here is not caused by laziness. It happens because the AI is convincing. The way it delivers information makes it feel like a source of authority. When employees trust the model’s responses more than they trust the actual owners of a process, something critical has shifted. Responsibility starts to blur. When an error occurs, no one is sure who made the decision. The person asked the co-pilot. The assistant followed the data. The Data Grid, bless its heart, just made it up as it went along — and led us straight into policy mayhem.</p><p>At that point, the AI is doing more than surfacing knowledge. It is shaping a version of the company’s identity that no one chose on purpose. The longer that version goes unchecked, the more deeply it becomes embedded, and the harder it is to correct. This is why companies need to decide in advance what they want the AI to reflect. That decision should be made clearly, and before the system is deployed across teams.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=731738f5f68d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/how-to-architect/ais-biggest-impact-will-be-forcing-every-company-to-define-its-internal-source-of-truth-731738f5f68d">AI’s Biggest Impact Will Be Forcing Every Company to Define Its Internal ‘Source of Truth’</a> was originally published in <a href="https://medium.com/how-to-architect">How to Architect</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic Architecture (Part 4) — Role of Bias]]></title>
            <link>https://medium.com/how-to-architect/agentic-architecture-part-4-role-of-bias-e5340e5d33f8?source=rss----8032633ef1a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/e5340e5d33f8</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[how-to-architect]]></category>
            <dc:creator><![CDATA[Kapil Viren Ahuja]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 07:46:36 GMT</pubDate>
            <atom:updated>2024-08-25T10:07:08.558Z</atom:updated>
            <content:encoded><![CDATA[<h3>Agentic Systems (Part 4) — Role of Bias</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dENey9RTLREafltnZBONmQ.gif" /><figcaption>Generated by AI (not an agent yet!)</figcaption></figure><p>As I researched the Agentic viewpoint, the use cases of Bias became apparent. The agents will need to handle the bias as one of the use cases. As the agents are supposed to get information from multiple sources (i.e. perception), we will need something to identify and filter out the bias. We need to understand what bias is. I sidetracked on this one for today and am glad I did. Some exciting aspects came to light.</p><h3>Understanding Bias in AI</h3><p>Decisions are essential for better controlling our future actions and outputs. Bias refers to systematic discrimination in decision-making in the data we use to train these systems. In the context of agents that are supposed to create text, images, or other media, mainly autonomously, bias can manifest in various ways, and these can go unnoticed.</p><h4>The Role of Data in Bias Formation</h4><p>We all know that data is at the core of any AI system. The quality and quantity of data are just as important as diversity. All of these characteristics influence the biases these models may exhibit. Historical data may contain biases that reflect societal inequities, and when this data is used to train AI systems without proper scrutiny, the biases are perpetuated and even amplified.</p><p>Consider a generative AI model designed to generate job descriptions. If the training data predominantly features male-dominated roles or language favouring specific demographics, the AI will likely generate biased job descriptions that exclude or discourage other groups. This is a direct consequence of the biases present in the training data. As we have seen, LLMs are particularly good at generating their own data sets, so ensuring that the outputs are scanned for bias and adjusted is essential.</p><h3>Technical Architectures and Bias Mitigation</h3><p>Addressing bias in AI systems, particularly in agentic architectures, requires an approach all through the pipeline, i.e., data preprocessing, model design, and post-deployment. Some of the techniques in each of these areas are:</p><h4>1. Data Preprocessing and Augmentation</h4><p>If we can handle bias initially, our lives and jobs will be much easier. However, identifying and fixing bias at this stage is also the most challenging step. To do this, we will need effective data augmentation methods where additional data is required to balance the bias segments. Our pipelines should be set up in ways that can identify the segments that are shortfall and then introduce additional steps in the pipelines to generate the datasets to fix the deficiency. A few research papers suggest that we use ontologies and text network graphs to determine if there are structural gaps in the generated data sets. This approach can be connected to self-reflection methods built into the pipeline, which can then re-prompt LLMs to develop more rich content. Given our pipelines are very linear, this is where agentic architectures can help. We will need two things in particular:</p><ol><li>Ability to connect the data to the agents and then identify the bias based on what an agent needs to do. We have to accept that every agent may have a different set of biases. This is similar to adversarial debiasing, where we may back bias-checking by another model.</li><li>We need our pipelines to be set up like smaller agents that can add additional steps if needed, aka adapt to the needs, or should these be Agents that should request additional pipelines to trigger?</li></ol><h4>2. Bias Detection and Model Auditing</h4><p>Next, I need to understand the different Bias detection tools that we can deploy and where in the architecture they should be set up. These tools will be essential in identifying bias, and the sent set of tools will help us mitigate the bias.</p><p>Model auditing is another practice in which AI models are tested against diverse datasets to ensure they perform well. This is important in agentic architectures, where the decisions made by autonomous agents can have significant real-world consequences. We need to figure out how these different auditing techniques are triggers. Do we do these at regular intervals, or do we have some triggers like Human triggers or something similar to Continuous Integration testing? Are these unit testing for the Model?</p><h4>3. Algorithmic Fairness and Model Design</h4><p>In the context of agentic architectures, incorporating fairness constraints into the model design can help ensure that the AI system does not disproportionately impact specific groups. This is a layer that is beyond the agents. If we use the underlying foundation model, we can’t inject fairness into the model. The only choices we have are either the RAG or prompt engineering. However, we may want to identify benchmarks. Beyond this, we have to find and tune a model to the desired results.</p><p>This will become a very important <a href="https://medium.com/how-to-architect/agentic-systems-part-2-framing-what-an-agent-is-can-be-83ae248363ae">architecture principle</a>, which will have implications around cost and training time, as Fine-Tuning a model vs. using prompt engineering can add significant overheads.</p><h4>4. Explainability and Transparency</h4><p>Foundation models have the “black box” syndrome, and this nature of models, particularly deep learning models, makes it difficult to understand how decisions are being made and where biases might be introduced.</p><p><strong>Explainable AI (XAI)</strong> aims to address this by developing models that provide insights into their decision-making processes. Explainability techniques can help users understand why a particular piece of content was generated and whether bias played a role in its creation. This transparency is crucial for building trust in AI systems, especially in high-stakes environments like healthcare or finance. However, only some of the use cases need XAI. For example, I do not need XAI if I send personalised emails to thousands of customers. But, if I am creating models that will predict and forecast, we need XAI, as these will impact business decisions around the supply chain. Returning to our Agentic architecture, we need to know if XAI is required, especially if the actions can have financial impacts.</p><h4>5. Continuous Monitoring and Feedback Loops</h4><p>AI systems, especially those in production environments, should be continuously monitored for signs of bias. This involves setting up feedback loops.</p><p>Is this the L1 level of monitoring we need for the Agents and their underlying models? Given that we are designing a system for real-time adaptation, we can’t know when an agent’s output has introduced a bias beyond our benchmarks.</p><h3>Practical Examples of Bias in AI Architectures</h3><h4>Racial and Gender bias in image generation</h4><p>A <a href="https://arxiv.org/abs/2403.02726">study</a> analysing images generated by Midjourney, Stable Diffusion, and DALL-E 2 revealed biases in how these models depicted different occupations. Women were often depicted as younger and smiling more, while men were shown as older with neutral or angry expressions. The study highlighted the urgent need for better bias detection. Read the study here — <a href="https://arxiv.org/abs/2403.02726">https://arxiv.org/abs/2403.02726</a></p><h4>2. AI Recruitment Tool Discrimination</h4><p>In 2018, Amazon had to scrap an AI-based recruitment tool after discovering that the system was biased against female candidates. This was because the AI was trained on resumes submitted over ten years, predominantly from men. You can read more here: <a href="https://www.ajg.com/us/news-and-insights/2024/apr/from-bias-to-balance-and-beyond-how-to-navigate-risks-in-generative-ai/">https://www.ajg.com/us/news-and-insights/2024/apr/from-bias-to-balance-and-beyond-how-to-navigate-risks-in-generative-ai/</a></p><h4>3. Political bias in language models</h4><p>An analysis of 14 LLMs found degrees of political bias. Some models skewed towards libertarianism, while others leaned more toward authoritarian views. These biases influenced the content generation, potentially affecting users’ perceptions and decisions. This issue concerns applications like news content generation. Read more here: <a href="https://ar5iv.labs.arxiv.org/html/2406.13843">https://ar5iv.labs.arxiv.org/html/2406.13843</a>.</p><h3>Conclusion</h3><p>Handling bias in AI and agentic architectures is an essential topic. As AI continues to evolve and play a more prominent role in society, addressing bias will only grow, making it a critical area of focus for future technology architecture. Most applications today do not speak about bias; very few tools address this. Also, the solutions I see need to be revised regarding bias detection and fixing.</p><p>As we build these new architectures, we must ensure we drive these topics together. I use architecture as the core principle here because a fully fleshed-out architecture is the only way to address this and cross the Chasm of Disillusionment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5340e5d33f8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/how-to-architect/agentic-architecture-part-4-role-of-bias-e5340e5d33f8">Agentic Architecture (Part 4) — Role of Bias</a> was originally published in <a href="https://medium.com/how-to-architect">How to Architect</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic Systems (Part 3) - Shaping an Agent + Patterns]]></title>
            <link>https://medium.com/how-to-architect/agentic-architecture-shaping-an-agent-patterns-654cbd699dac?source=rss----8032633ef1a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/654cbd699dac</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[how-to-architect]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kapil Viren Ahuja]]></dc:creator>
            <pubDate>Fri, 23 Aug 2024 18:50:24 GMT</pubDate>
            <atom:updated>2024-08-25T10:06:55.424Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Disclaimer: Some of the text in this article is generated by ChatGPT4o. The underlying keywords are part of my research, and I used GenAI to save myself some time. The start and end of those sections will be highlighted clearly.</blockquote><p>Today, I will focus on creating a model of what an agent may look like if we start describing it like an object (yes, I am an OOPS person!). I will also look at some patterns that an agent may adopt. As I created the following view, I realised that some of these components can overlap.</p><h4>An early representation of what an agent may look like</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYL5HmHAy66pNk_fFlN27Q.jpeg" /></figure><p>I have determined that as we build an agent, the interactions need to be via the perception layer. This is a very important decision, especially as we are building various inputs for the agent. For example, in an IOT-driven architecture, this layer will play the most important role. Similarly, for an LLM-driven use case, the inputs a user is taking will be considered here. An agent needs to build its cognition via the perceptions/context it receives.</p><p>Do not worry about flows or layers yet; I am still trying to convert this into architecture. Right now, I just want to have an object representation. I know this sounds like an OOPS thing, but I am considering KGs to maintain this representation. This goes back to the principle that I had called out in the Part of this series where I feel these agents need to be adaptable. The underlying structure needs to be something that can grow in real-time. This is something that will also drive the autonomous nature of an agent.</p><p>I was reading about a few topics, and while they have nothing to do with the agent structure forming, the concepts will define some key capabilities. I am going to leave what I learned for future reference.</p><blockquote>Start of AI-Generated Content</blockquote><h4>Reflection: A Self-Correcting Mechanism</h4><p>One of the most intriguing patterns emerging in agentic architectures is “Reflection.” When we interact with LLMs like ChatGPT, we often engage in a back-and-forth dialogue. You provide a prompt, review the output, and then refine your query based on the response, repeating this cycle until you’re satisfied with the result. Now, imagine automating this process, where the agent itself can critique and improve its outputs autonomously. This is the essence of the Reflection pattern.</p><p>Reflection allows an agent to evaluate its performance, identify improvement areas, and make necessary adjustments. In a multi-agent setup, one agent could be designated to critique the output of another, creating a loop of continuous enhancement. This collaborative self-assessment could significantly elevate the quality of AI-generated content, ensuring that the final output is polished and well-considered.</p><h4>Tool Use: Expanding Capabilities Beyond Core Functions</h4><p>Another promising pattern in agentic architectures is “Tool Use.” As the name implies, this pattern involves equipping agents with the ability to utilise various tools to enhance their performance. For instance, in the current iteration of ChatGPT, users can instruct the AI to perform a web search to gather more information. However, this concept can be expanded significantly in more specialised domains.</p><p>Consider an enterprise scenario where an agent monitors traffic patterns and alerts authorities about potential blockages. In this context, the agent could employ various specialised tools — such as image recognition software, traffic data analytics platforms, and external databases — to continuously analyse and detect anomalies. By leveraging these tools, the agent can provide more accurate and timely insights, thus improving its utility in critical situations.</p><p>The flexibility to use both generic and highly specialised tools empowers agents to operate effectively across diverse contexts. Whether it’s querying an academic database like arXiv for research purposes or accessing real-time sensor data for industrial applications, the Tool Use pattern enables agents to extend their capabilities far beyond their basic functions.</p><h4>Planning: Breaking Down Tasks for Better Outcomes</h4><p>Planning is another critical aspect of agentic frameworks, though it is still in the nascent stages of development. Planning involves the agent’s ability to break down a complex task into smaller, more manageable components and then execute these in a sequence that leads to the desired outcome. This is akin to how a human might approach a multi-step problem, considering each phase carefully before moving on to the next.</p><p>An interesting example of this is when using an LLM, you might have noticed instances where the AI seemingly anticipates your needs. For example, while writing a recommendation for a colleague, you might casually mention “words,” and the LLM could immediately generate a Python script to count the words, even executing the code to give you the result. This indicates that the AI has some form of internal planning mechanism, which anticipates your requirements based on the context and provides a solution you might not have explicitly asked for.</p><p>In practice, if we can refine agents&#39; ability to decompose tasks and create intent-based plans, the results can be extraordinarily powerful. Much of this is done through prompt engineering, where users craft their queries in a way that guides the LLM towards the desired outcome. However, as planning mechanisms become more advanced, we can expect agents to autonomously develop and execute complex plans, resulting in more nuanced and effective outputs.</p><h4>Multi-Agent Pattern: Collaborative Intelligence</h4><p>The final pattern we’ll explore is the “Multi-Agent” approach, where multiple agents collaborate to achieve a common goal. This pattern is akin to orchestrating a team, with each agent playing a specific role to contribute to the overall task. These roles can vary widely in a multi-agent system, from data collection and analysis to decision-making and execution.</p><p>Consider a workflow where you want to summarise a series of articles and then generate ideas related to your work. This task might be performed manually every day, but with a multi-agent system, the entire process could be automated. One agent could summarise the articles, another could analyse the summaries to extract key themes, and a third could generate new ideas based on these themes. This collaborative approach saves time and ensures a more comprehensive and integrated result.</p><p>Each agent in this system could employ different patterns, such as Reflection or Tool Use, to enhance their performance. For example, the agent responsible for summarisation might use Reflection to refine its summaries iteratively. In contrast, the idea-generation agent might utilise Tool Use to draw on external databases for inspiration. By combining these capabilities, a multi-agent system can deliver outputs that are greater than the sum of their parts.</p><blockquote>End of AI-Generated Content</blockquote><h3>Conclusion: The Future of Agentic Architectures in AI</h3><p>I realised that these patterns are interlinked and overlapping as well. I am still reading more to see if I can find some clear patterns. I also realise that these patterns are linked to LLMs but can also apply to other agents too. I will first be working with LLMs and foundation models and try out these patterns and try to get to a blueprint before I diverge out to other ML models and techniques.</p><p>The last few days have confirmed my initial thinking that agentic architectures have the potential to revolutionise the way we interact with AI.</p><p>I am also finding use cases in my core area of expertise, like Digital Experiences, where adopting agentic architectures could have profound implications. I am also trying to see how these can play a critical roles in IOT solutions where agents have been existing for a while, just not how we are seeing them evolve now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=654cbd699dac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/how-to-architect/agentic-architecture-shaping-an-agent-patterns-654cbd699dac">Agentic Systems (Part 3) - Shaping an Agent + Patterns</a> was originally published in <a href="https://medium.com/how-to-architect">How to Architect</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic Systems (Part 2) - Framing what an Agent is/can be?]]></title>
            <link>https://medium.com/how-to-architect/agentic-systems-part-2-framing-what-an-agent-is-can-be-83ae248363ae?source=rss----8032633ef1a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/83ae248363ae</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Kapil Viren Ahuja]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 19:20:22 GMT</pubDate>
            <atom:updated>2024-08-25T07:44:18.205Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HxS0PNqHvMK6KEDXrrtvGQ.jpeg" /><figcaption>Generated using Flux.1</figcaption></figure><h4>Edits</h4><ol><li>Added an architecture principle based on the handling of <a href="https://howtoarchitect.io/agentic-architecture-part-4-role-of-bias-e5340e5d33f8">bias</a>.</li></ol><p>Before I dive into the details of how I architect an Agentic System, I must first define an Agent (or what it can be). At this stage, I will not understand what an autonomous agent is but simply an agent.</p><p>I am trying to conceptualise an agent in terms of what a Human would do. Why Humans? I don’t know yet, but that is something AI is supposed to be moving towards — the AGI. I want to be clear that I am not trying to solve for an AGI space, but as the technology matures, that’s what it’s trying to be. Hence, I believe I need to somehow break it into such. Also, the research that I have done points to a similar definition. An agent is supposed to have 3 characteristics:</p><h3>Perception: The foundation of awareness</h3><p>just like humans, an agent must know its context (surroundings). This is needed to gather data, which is further used to make critical decisions. This data can come from sources like vision (camera and more), sounds (mic), touch/feel, and smell (sensor). I am trying to connect to the sensory inputs that allow humans to collect data and make choices. If you are considering where text, videos, etc., are, those are covered under the vision category. For humans, we read and watch; in the case of a data set, it&#39;s sort of a similar use case.</p><p>It is unimportant here to connect an agent’s ability to collect data to a human perception. What’s critical is to understand that the accuracy and richness of this data will lead to subsequent steps to success. Different agents can collect different datasets for a system, which will lead to a complex environment, thus building a much deeper perception.</p><h3>Cognition: The engine of thought</h3><p>Cognition is a process by which knowledge is developed in the mind. For an agent, this can be defined by deep learning or pattern matching, reinforcement learning, reasoning, or meta-learning. Deep learning and reinforcement learning have been particularly trendy in recent years. The rich data available via perception helps an agent&#39;s cognition improve and evolve. An agent must be able to make decisions, needing all the data and the ability to adapt.</p><h4>Memory</h4><p>Cognition is also about <strong><em>memory</em></strong>, which is very powerful in the case of LLMs. The transformer models became powerful when the context was introduced, and right now, we are seeing how various models are working towards increasing the context of any mode. I gather that memory can be categorised further into the following:</p><p><strong>Sensory Memory</strong>: An initial stage of memory, which retains impressions of sensory information after the original stimuli have ended. It lasts only for a few seconds but provides the raw data for further processing.</p><p><strong>Short-Term Memory (STM)</strong>: Also known as working memory, STM stores information that the agent is currently using. It is critical for carrying out complex cognitive tasks such as reasoning and learning. STM has a limited capacity, typically holding about seven items for 20–30 seconds.</p><p><strong>Long-Term Memory (LTM): </strong>LTM stores information for a prolonged period, from days to decades, with an essentially unlimited capacity. It can be divided into explicit (declarative) memory, which involves facts and events, and implicit (procedural) memory, which involves automatic skills and routines.</p><h4>Planning</h4><p>Planning involves breaking down tasks into smaller components that can be executed in sequence (or not — more on this later). Techniques like <em>Chain of Thoughts (CoT)</em> and <em>Tree of Thoughts (ToT)</em> are commonly used in large language models (LLMs) to enable effective planning and reasoning. <em>Self-reflection</em>, enabled by frameworks like ReACT, Reflexion, and Chain of Hindsight, further enhances an agent’s cognitive abilities by allowing it to evaluate its actions and outcomes, leading to continuous improvement.</p><h3>Action: The Execution of Intent</h3><p>Once an agent has perceived its context and processed the information via cognition, it must take action to achieve its goals. Actions can range from digital operations, like sending a command, to physical actions, like moving a robotic arm. Actions can be categorized into several types:</p><p><strong>Control Algorithms </strong>are used for precise task execution, often in digital environments. For example, a control algorithm might adjust the light on or off based on movement in the room.</p><p><strong>Robotics and Actuation </strong>involve physical actions in the real world, such as a robot navigating a space or a drone adjusting its flight path. These actions require precise coordination of mechanical parts, guided by sensor input and control algorithms.</p><p><strong>Feedback Loops</strong> represent the agent&#39;s actions to self-correct and improve its performance over time. For instance, if a robot detects that it has veered off course, it can use feedback from its sensors to adjust its path and return to the correct trajectory.</p><h4>Guiding Principles for Agentic Frameworks</h4><blockquote>(not a complete list)</blockquote><h4>Modularity</h4><p>Since agents are autonomous, they should be built with modularity. This means that the components of the agent, such as tasks, actions, and data stores, should be designed as independent modules that can be easily integrated, modified, or replaced. Modularity ensures flexibility and scalability in agent design.</p><h4>Scalability</h4><p>An agent must be able to scale its capabilities according to the environment&#39;s demands. This might involve leveraging additional resources or collaborating with other agents. In some architectural patterns, a central body may allocate resources, but the ability to scale remains a key consideration.</p><h4>Adaptability</h4><p>Although it might be debated whether adaptability is a principle or a property, agents must adapt to the knowledge they acquire. Adaptability allows agents to refine their behaviour based on new information, ensuring they remain effective in changing environments.</p><h4>Bias-free</h4><p>The architecture needs to be bias-free. It needs to identify the bias of every agent deployed. Then, it should be able to connect to the pipelines or at the model level to fix this. After writing Agentic Architecture (Part 3) — Role of Bias, this was added<em>.</em></p><h4>Explainable AI (XAI)</h4><p>An agent should be able to explain the responsibilities and steps for how and why it generated its output. We do have to consider if this is something that we need to persist outside the agent because agents do not have their own memory. If you were to ask a Human why a decision was made after 2 weeks (saying) when the decisions was made, there is a chance that their answer is biased by all the knowledge they had at the time of the decisions, but also after the decisions were made. They can use this information to create cohesion to the response, yet there is no way to know the factual answer. In the case of agents, this is also a problem.</p><h3>Conclusion</h3><p>The agent needs to have these core characteristics, i.e., perception, cognition, and action. Only then can we create agents capable of performing increasingly complex tasks?</p><p>I must keep exploring and refining the agent definition to create a potent agentic system. This may look like a simple design, i.e. get some data, feed it into a system, take a decision, take some actions, etc. But, this is more nuanced — I promise.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83ae248363ae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/how-to-architect/agentic-systems-part-2-framing-what-an-agent-is-can-be-83ae248363ae">Agentic Systems (Part 2) - Framing what an Agent is/can be?</a> was originally published in <a href="https://medium.com/how-to-architect">How to Architect</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic Systems (Part 1) — Introduction]]></title>
            <link>https://medium.com/how-to-architect/agentic-systems-howtoarchitect-part-1-ddd6072a7a96?source=rss----8032633ef1a4---4</link>
            <guid isPermaLink="false">https://medium.com/p/ddd6072a7a96</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[how-to-architect]]></category>
            <dc:creator><![CDATA[Kapil Viren Ahuja]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 18:33:21 GMT</pubDate>
            <atom:updated>2024-08-25T07:47:08.491Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part of the “How to Architect” series</h4><h4>Disclaimer</h4><p>I am writing in this series as I learn about Agentic architectures. The first few articles can sound arbitrary and incohesive. This is because I am consuming a lot of information and haven’t yet started to form an opinion. These articles will help me distil the information at a later stage.</p><h4>The Promise</h4><p>If you stay with me on this journey, I will promise two things:</p><ol><li>You will learn the semantics and the underlying principles, as well as the final solution</li><li>You will soon start seeing code and core principles come together into a cohesive narrative.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IRL3EcSqj_foSakg" /><figcaption>Photo by <a href="https://unsplash.com/@possessedphotography?utm_source=medium&amp;utm_medium=referral">Possessed Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Today, everyone says that Agentic systems are the future. Multi-agent systems are coming to the forefront of every Generative AI conversation. Tools like Crewai.com and Langchain Agents, and even Microsoft Azure and Google Vertex, allow you to create agents with low code.</p><p>When I first read about the Agentic systems, something clicked for me. I can’t put a finger on what about this system makes sense (it&#39;s been a few months), but I can feel this is the future.</p><p>I have been collecting information for the last few weeks to plan this series, and here I am, starting to build my own AI “tool,” which should make my life easier. I am coding again, creating architecture to solve my life. But, what’s more important is to be able to answer several questions about Generative AI (and Deep learning in general) myself after trying it, and not just what people have to say. Hence, this series is based on what I am trying, reading, learning, building and architecting.</p><h3>The Evolution of Agentic Systems</h3><p>Building an agentic system requires intricate rules-based programming or highly specialised machine-learning models that are time-consuming and brittle. Large Language Models (LLMs) are changing the landscape, and that too very fast.</p><p>With natural language processing (NLP) capabilities, we have systems that can understand human language and create more adaptive systems. This shift (from rigid to flexible &amp; learning-based approaches) marks a pivotal moment, setting the stage for developing agentic systems. But, it remains to be seen if these systems can genuinely operate autonomously in complex, real-world environments.</p><blockquote>But how? — I do not know yet!!</blockquote><p>Agentic systems can now “think” and “decide” based on vast data and learned patterns. This speeds up the development process and results in more adaptable systems to changing environments.</p><blockquote>I plan to exploit this capability.</blockquote><h4>The Multiagent Systems</h4><p>Multiagent systems further amplify the potential of agentic systems. In a multiagent system, a network of agents can interact with each other. Multiagent systems may also react to changes in their environment or tasks, allowing for unparalleled dynamism and adaptability. All this is done without a set of rules that occasionally require human adjustments.</p><p>For instance, in a multiagent system, one agent might be tasked with gathering data, another with analysing that data, and a third with making decisions based on the analysis. And we can then have another set of agents that can take future actions based on the analysis/decisions.</p><p>All this can be made possible if these agents communicate (and collaborate) in real time. This is not really anything new. I have been building such systems for two decades. Schedulers, Queues, and Event-based programming come to mind when I think about a multi-agent framework.</p><blockquote>Yet, something is different this time. It’s not about real-time; it’s about small systems coming together without needing a lot of code.</blockquote><p>Workflows are designed with a clear start, a set of steps in the middle, and an end. While effective in simple scenarios, this linear approach leads to rigidity. A single change in one step needs entire programs to be rewritten. This is what any enterprise does (The transformations every five years). But, as an individual, even if you are a developer, building something something that works at a scale of your life hasn’t been possible.</p><h4>Generative AI and agentic systems offer a solution to this problem.</h4><blockquote>This solution is Codifying agentic systems.</blockquote><p>This is particularly useful in content management systems (CMS) and digital experience platforms (DXP), where the ability to handle dynamic content and interactions is crucial. I aim to take this concept to Digital Experiences (in general) and make an experience that is human-like both in its ways of happening and the quality of the output.</p><blockquote>But how exactly do these systems achieve this?</blockquote><h3>The Process of Creating Agentic Systems</h3><p>There is a ReACT framework that everyone is talking about using to create these agents. However, before we go that far down the rabbit hole, let’s look at some simplified steps to create an agent:</p><h4>1. Instruction</h4><p>It all starts with a user providing instructions through natural language. A foundation model is beneficial here to interpret the “intent”.</p><h4>2. Planning and Allocation</h4><p>After we understand the instructions, an agent can Plan and allocate resources. We generally need to break down the tasks into smaller subtasks. This is the step of the archaic systems, which makes it brittle, but a foundation model can make this task easy.</p><h4>3. Improvement</h4><p>One of the significant tasks an agent is asked to perform is to keep improving upon the task. Like humans, an agent must deliver the “just the right” results. We can easily fall into the trap of being perfect (where an agent will never stop) or bad (an agent can stop too early).</p><h4>4. Execution</h4><p>Another critical step is the execution of the necessary tasks. This may need an agent to interact with external systems, gather data, or make decisions.</p><p>These steps do not have to happen in this order. The start remains with an instruction (or a trigger event), but from there on, the idea is that an Agentic System will take its own life. Even the planning and allocation may happen in phases as the system learns more about the ask.</p><h3>Challenges</h3><p>If I have made this sound easy, it is not.</p><p>There are frameworks and tools that claim this happens, but it&#39;s not easy. Whatever tools I have tried only do a very small fraction of the job. I have yet to see an Agentic framework in action. And I am not surprised why—it&#39;s just not easy.</p><blockquote>This is why this exercise will be fun.</blockquote><h4>When to stop?</h4><p>I chose to stop based on an internal system. There is often no easy answer; I stop when I stop. But if I am asked about it, every time and without fail, I will be able to answer why I stopped. It&#39;s based on cognitive, ethical, cultural, and many other parameters.</p><p>Determining this for an agentic system will be our first challenge, but I don’t think we need to solve it at the Agentic System level.</p><h4>How do we bring resilience and adaptability to Decision-Making?</h4><p>Traditional decision-making models suck (yes, there, I said it) or are too complex. And we are now talking about a human-like decision-making capability. This won’t be easy at all. But this will be awesome (when it’s done). And, if we can make these real-time contextual, it will be super cool.</p><blockquote>I bet there are way more challenges.</blockquote><h3>Conclusion</h3><p>These are exciting times. I was still a student of the trade when the significant revolutions happened in the last two decades. I still feel like a student, but this time, I have the experience of being able to form a POV of my own and try things that way I have never been able to in the past.</p><p>Multiagent systems will be the future. The pattern is familiar, but we will see this evolve and drive many shifts by 2030.</p><p>The future is to create innovative systems that work alongside humans, augmenting us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddd6072a7a96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/how-to-architect/agentic-systems-howtoarchitect-part-1-ddd6072a7a96">Agentic Systems (Part 1) — Introduction</a> was originally published in <a href="https://medium.com/how-to-architect">How to Architect</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>