<?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[QuantumBlack, AI by McKinsey - Medium]]></title>
        <description><![CDATA[We are the Artificial Intelligence (AI) arm of McKinsey &amp; Company. We are a global community of technical and business experts, and we thrive on using AI to tackle the most complex problems. - Medium]]></description>
        <link>https://medium.com/quantumblack?source=rss----2b20955d0463---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>QuantumBlack, AI by McKinsey - Medium</title>
            <link>https://medium.com/quantumblack?source=rss----2b20955d0463---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 10 Nov 2026 15:09:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/quantumblack" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Kedro to build reusable reflection systems for enterprise AI agents]]></title>
            <link>https://medium.com/quantumblack/using-kedro-to-build-reusable-reflection-systems-for-enterprise-ai-agents-400de3719c03?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/400de3719c03</guid>
            <category><![CDATA[enterprise-architecture]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 08:12:35 GMT</pubDate>
            <atom:updated>2026-10-20T08:12:34.678Z</atom:updated>
            <content:encoded><![CDATA[<h4>Modular pipelines, data contracts, and approval gates for agent improvement</h4><p>In a recent post on this channel, “<a href="https://medium.com/quantumblack/smart-contracts-for-ai-agents-6122e0c7e2f3">Smart contracts for AI agents</a>”, we described embedding governance directly into each agent through a machine-readable manifest and a runtime sidecar proxy. We noted how it addresses four scaling problems: framework-selection paralysis, compliance drift, reactive validation, and vendor lock-in. The smart contract defines what the agent is, and the sidecar enforces it.</p><p>However, an agent may operate fully within its declared boundaries while still producing weak outputs, for example, by falling short of quality targets, or drifting in patterns that emerge only across dozens of runs and several campaigns. The smart contracts approach can tell you that your agent used an unapproved model or accessed restricted data, but it cannot tell you about the quality of the emails your sales agent writes on your behalf. Are they any good? Are they improving over time?</p><p>What is missing is a way to accumulate learning at scale. That requires another layer, positioned above enforcement, which converts production traces into organizational knowledge. This article describes what a learning layer looks like and how to build it as shared infrastructure rather than a one-off feature bolted onto each agent.</p><h3>Why learning gets trapped in silos</h3><p>Enterprises running multiple agents tend to converge on the same organizational problem. One team builds an evaluation rubric for a sales outreach agent. Another adds observability to a marketing campaign agent. A third writes its own reflection workflow for customer care. Each team reinvents the same cycle: generate output → score it → detect what went wrong → propose a fix → review and approve it → apply it.</p><p>Their fixes stay local to their agents. A regression test written for the B2B sales agent never reaches the consumer marketing agent. A quality pattern that recurs in both sales and marketing sits in two separate dashboards. There isn’t a portfolio-level view of which agents are improving, which are degrading, and what failure modes they share.</p><p>The underlying issue is that improvement is treated as a feature of individual agents, not as a common layer that every team and campaign can reuse. This builds on an idea we introduced in our original article, “<a href="https://medium.com/quantumblack/how-we-enabled-agents-at-scale-in-the-enterprise-with-the-agentic-ai-mesh-architecture-baf4290daf48">Agentic AI Mesh</a>”, which described feedback loops where “agents configured to critique outputs of other agents… can be used to signal positive and negative performance, triggering the automated development of configuration variations that can be tested and scored.”</p><p>What that article didn’t specify was the shared infrastructure, such as approval gates, versioning, and cross-campaign visibility, that is needed to operationalize that loop, and that is what we cover here.</p><h3>A shared reflection infrastructure</h3><p>Agentic reflection is the process by which a system designed to evaluate agent performance reviews an agent’s outputs against predefined quality criteria, identifies errors or reasoning gaps, and proposes improvements. The learning part happens when improvements are approved, captured, and reused so that mistakes are not repeated. Building this as shared infrastructure requires the same three structural properties that make the smart contract architecture work.</p><ul><li><strong>Declarative:</strong> Evaluation logic, reflection prompts, approval rules, and improvement steps are written down and versioned rather than embedded in ad hoc scripts that only the team that wrote them can access.</li><li><strong>Modular:</strong> Generation, evaluation, signal detection, reflection, and application are separate stages that can change independently. A team that wants to swap the evaluation model does not need to touch the generation pipeline.</li><li><strong>Reusable:</strong> The loop, the deterministic checks, and the audit trail are common to every agent, and the scouts flag when the same type of failure recurs in more than one agent. Approved changes are versioned and visible across the portfolio, so a fix found by one team can be reviewed and adopted by another.</li></ul><h3>A worked example using Kedro</h3><p>We built an example of this approach using <a href="https://kedro.org/"><strong>Kedro</strong></a>, an open-source Python framework, which offers a modular pipeline structure and explicit data contracts to provide a set of building blocks. Using Kedro to take care of the surrounding orchestration enabled us to focus on the reflection and learning workflow.</p><p>To show how this pattern works in practice, we built an <a href="https://github.com/kedro-org/kedro-academy/tree/main/kedro-reflection-agent">example that applies the same reflection and learning workflow</a> across three business functions (B2B sales, consumer marketing, and customer care) in a telecommunications company.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kfSzy72ZQRM4spBh6aVJTw.jpeg" /><figcaption>The improvement lifecycle</figcaption></figure><p>Each function uses different data sources, prompts, and evaluation criteria. The improvement lifecycle is identical for all three:</p><ul><li><strong>Generate:</strong> run the AI workflow and capture outputs.</li><li><strong>Evaluate:</strong> score outputs against quality criteria using a versioned rubric and an LLM judge.</li><li><strong>Identify signals and patterns:</strong> detect recurring issues across runs, such as tone drift, hallucinations, missing required content, or score regressions.</li><li><strong>Reflect:</strong> generate targeted recommendations such as prompt updates, skill edits, or evaluation logic changes.</li><li><strong>Review and approve:</strong> a human reviewer inspects the proposed changes and approves or rejects them through an explicit approval gate. Nothing goes live without it.</li><li><strong>Apply:</strong> version and commit the approved changes, and record each one in an audit log.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nq3KE4Y0bmH04vMrxJu50g.png" /><figcaption>A screen from the <a href="https://github.com/kedro-org/kedro-academy/tree/main/kedro-reflection-agent">Kedro reflection agent example</a></figcaption></figure><p>In the example, the generate, evaluate, detect, reflect, and apply stages are separate pipelines, with review and approval acting as an approval gate. The pipelines, deterministic checks, and approval gate are shared, while the prompts, style guides, rubrics, and LLM judge dimensions change by use case.</p><p>Reflection also proposes new regression cases derived from the failures it found. Once approved, they are committed to that agent’s evaluation dataset (alongside any approved changes to the prompt, skills, or other configurable components) then every change is recorded in a single audit log. The signal moves between agents. When the same type of failure recurs in more than one agent, the scouts record it in a shared signal index and flag it as a cross-unit pattern, rather than leaving it as two unrelated findings in two isolated dashboards. A reviewer can then decide whether a fix belongs to one agent or should be adopted by others.</p><p>Reflection maps onto a Shape-Control-Operate (SCO) lifecycle. Prompts and evaluation criteria are defined in the Shape phase, and evaluation scoring runs in the Control phase. The evidence gathered while agents Operate then feeds approved changes back into the Shape-phase artifacts, which closes the loop.</p><h3>How the evaluation step works</h3><p>Evaluation uses a fixed set of benchmark cases but does not rely on a single correct or “golden” output. Each case, stored in Langfuse and cached locally, pairs a scenario — customer, product, and case ID — with a rubric defining required and forbidden content, expected call to action, tone, and other agent-specific criteria.</p><p>For each case, the generation pipeline produces an output, which is then scored in two ways:</p><ul><li>Deterministic checks validate objective requirements such as subject presence, body length, CTA presence, and fabricated SKU-like tokens.</li><li>An LLM judge evaluates qualitative dimensions such as writing quality, personalization, and groundedness. These dimensions can vary by agent (for example, empathy or compliance).</li></ul><p>A case passes when the average score across all scorers meets the configured threshold. Results are captured at both case and aggregate levels and logged to Langfuse, enabling teams to compare runs after prompt changes, inspect traces, and feed the findings back into the reflection loop.</p><p>The business impact of the solution is cumulative. Every run, signal, and approved change is recorded, to extend the learning history of each reflection. Approved improvements become reusable patterns that other teams can review and adopt. Over time, the system compounds learning so that new deployments benefit from previous ones.</p><p>For a deeper walkthrough of the approach and how it works in practice, watch our recent Kedro Coffee Chat.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fs7vZWoJCfkU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Ds7vZWoJCfkU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fs7vZWoJCfkU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa51ac67a3d11b503b4b0d2466a3b672/href">https://medium.com/media/fa51ac67a3d11b503b4b0d2466a3b672/href</a></iframe><h3>Kedro as the foundation for agentic reflection</h3><p>Each stage is a separate Kedro pipeline with explicit inputs, outputs, and <a href="https://docs.kedro.org/en/stable/catalog-data/data_catalog/">Kedro Data Catalog</a> declarations. Every run is traceable. Kedro acts as a runtime implementation of several smart contract dimensions: data boundaries (what each stage can read and write), audit trail (full run history and I/O contracts), and governance (nothing advances without a declared output and an approval step).</p><p>Kedro provides modular, independently versioned stages, and a traceable run history by design. In this example, human approval is an explicit step in the Reflection Hub app, which also embeds <a href="https://demo.kedro.org/">Kedro-Viz</a>, a live graph view of the pipeline that anyone can inspect without running it.</p><p>In our article “<a href="https://medium.com/quantumblack/generative-ai-workflows-need-engineering-discipline-to-scale-beyond-the-demo-a9928135e393">Generative AI workflows need engineering discipline to scale beyond the demo</a>”, we showed how Kedro brings reproducibility, observability, and evaluation to gen AI pipelines. This article further adds the layer above that to show how Kedro helps capture improvements for reuse.</p><h3>Summary</h3><p>An agent can be fully compliant with an approved model, correct data boundaries, and pass every guardrail, but it can still write outputs that are mediocre or deteriorating, in ways no manifest is built to detect. Gaps can be filled, but if the fixes are then trapped in silos, the organization repeats the same mistakes.</p><p>Reflection can turn failures into approved, versioned changes by flagging patterns that recur across agents, so a fix can be considered across the portfolio rather than staying local to the team that found it. Frameworks and deployment patterns in enterprise AI will keep changing, but building portable contracts, embedded enforcement, and a shared improvement loop will give organizations a foundation to improve their agents rather than just watch over them.</p><h3>Find out more about Kedro</h3><p><a href="https://kedro.org/"><strong>Kedro</strong></a> is an open-source project supported by a full-time development <a href="https://docs.kedro.org/en/stable/about/technical_steering_committee/">team</a>. It is part of the <a href="https://lfaidata.foundation/">LF AI &amp; Data Foundation</a>, with a neutral, vendor-independent governance model that supports long-term sustainability and community-driven development. Beyond the core framework, Kedro is supported by an active <a href="https://kedro-org.slack.com/join/shared_invite/zt-3p7i2e1mq-uxqCl1tkBaqdmoCoK52CEQ">open-source community</a>. Contributors and users share patterns, extensions, and real-world experience. A growing list of blog posts, videos, and projects that use Kedro can be found in the <a href="https://github.com/kedro-org/awesome-kedro">awesome-kedro GitHub repository</a>.</p><p>Kedro is also backed by extensive <a href="https://docs.kedro.org/en/stable/">documentation</a>. This includes <a href="https://docs.kedro.org/en/stable/tutorials/spaceflights_tutorial/">tutorials</a>, example projects, <a href="https://github.com/kedro-org/kedro/wiki/Kedro-Coffee-Chat">coffee chats</a>, and code snippets ranging from introductory features to more advanced use cases. Teams can get started quickly with a ready-to-use <a href="https://docs.kedro.org/en/stable/create/minimal_kedro_project/">project template</a>, which includes sample datasets and enables users to train their first model with just a few commands from the terminal. If you check it out, drop us a comment below to let us know how you get on!</p><p><em>Authored by </em><a href="https://www.linkedin.com/in/alice-cima-25756b140/"><em>Alice Cima</em></a><em> and </em><a href="https://www.linkedin.com/in/ravi-kumar-pilla/"><em>Ravi Kumar Pilla</em></a><em>, with additional insights from </em><a href="https://www.linkedin.com/in/walshrory/"><em>Rory Walsh</em></a><em>, </em><a href="https://www.linkedin.com/in/dgabrielli/"><em>Dante Gabrielli</em></a><em>, </em><a href="https://www.linkedin.com/in/joseph-perkins-aa278272/"><em>Joseph Perkins</em></a>,<em> </em><a href="https://www.linkedin.com/in/stephenjxu/"><em>Stephen Xu</em></a><em>, and </em><a href="https://www.linkedin.com/in/sallah-k/"><em>Sallah Kokaina</em></a><em>. The editor was </em><a href="https://www.linkedin.com/in/jostichbury"><em>Jo Stichbury</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=400de3719c03" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/using-kedro-to-build-reusable-reflection-systems-for-enterprise-ai-agents-400de3719c03">Using Kedro to build reusable reflection systems for enterprise AI agents</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building production-ready GraphRAG systems with Kedro]]></title>
            <link>https://medium.com/quantumblack/building-production-ready-graphrag-systems-with-kedro-3cd24c8a3d34?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/3cd24c8a3d34</guid>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 08:12:28 GMT</pubDate>
            <atom:updated>2026-10-20T08:12:27.133Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>A demo project </em>to manage the graph, vector index, and relational store</h4><p><a href="https://cloud.google.com/use-cases/retrieval-augmented-generation"><strong>Standard Retrieval-Augmented Generation</strong> (RAG)</a> works well for factual lookup. For example, if you use semantic similarity to retrieve a document, you’ll usually find the correct passage. However, it struggles when the lookup requires reasoning across relationships, say if the answer depends on facts that are distributed across records that share little lexical or semantic similarity with each other.</p><p>As an illustration for healthcare, a search might want to discover the risk of a particular medication to patients with a certain condition. A typical query might be: “<em>For a chronic kidney disease patient, which medication may not be safe and interact with their poor kidney function?</em>”</p><p>A dense retriever might return the passages whose embeddings sit the closest to the query vector, like a chunk about chronic kidney disease and another about drugs with contraindications for renal patients. But to respond to this question as accurately as possible, we’d have to gather information from separate records, like a diagnosis note, a lab report, or a drug prescription. None of these directly references the others, and there is no structure that encodes the intersection of all of these pieces of data.</p><p><a href="https://microsoft.github.io/graphrag/">GraphRAG</a> addresses this by pairing semantic search with a knowledge graph that represents the structure explicitly: entities such as conditions, medications, and test results become nodes, and the relationships between them become edges. Before passing context to the language model, the system traverses the relationships connected to the retrieved entities so the model can reason across linked nodes rather than treating each document in isolation.</p><p>In this article, we describe how we used Kedro to build a demo of a simple reference implementation.</p><h3>The basics</h3><p>In our example, the GraphRAG system maintains three representations of the same underlying data, which need to stay consistent with each other as source data changes. The representations are:</p><ul><li>a knowledge graph for relationship traversal</li><li>a vector index for semantic retrieval</li><li>a relational store for aggregate statistics.</li></ul><p>Data engineering matters as much as retrieval because of the need for consistency. Inconsistent data arises, for example, when data teams use a collection of scripts, run in undocumented order, with no guarantee that the graph, the vector index, and the analytics store are produced from the same source run. When the knowledge graph becomes stale relative to the embeddings, the retrieval and graph traversal return contradictory context. As a result, the model resolves the inconsistency silently, and may resolve it incorrectly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mchROUXSv1NauUKvyY20ZA.png" /><figcaption>A data engineering pipeline feeds all three data stores.</figcaption></figure><p>Incremental updates compound the challenge. Rebuilding the full graph each time new records arrive is impractical at production scale. A production system needs targeted, merge-capable updates that leave unchanged nodes and edges untouched while incorporating new information: a classic data engineering pipeline problem.</p><h3>An example pipeline</h3><p>Using <a href="https://kedro.org/">Kedro</a>, we built a five-stage pipeline demo over a synthetic healthcare dataset of 55,500 patient records covering conditions, medications, insurers, admission types, diagnostic results, and demographics. The full source is on the <a href="https://github.com/kedro-org/kedro-academy/tree/main/kedro-healthcare-graphrag">Kedro Academy GitHub repository</a>. While this example is based on healthcare data, none of this structure is specific to healthcare, and the example is deliberately simple to keep it self-contained and easy to run. The entity extraction, graph building patterns, and incremental merge logic apply to any domain with typed entities and relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JLvFJ4oNZDSPxrBNaHIwIg.png" /><figcaption>A graph built from a synthetic healthcare dataset of 55,500 patient records in this simple and self-contained example.</figcaption></figure><p>The pipeline stages are as follows:</p><ul><li><strong>Clean and summarize:</strong> The first stage normalizes raw records, removes duplicates, and computes summary statistics per entity. We used patient counts per condition, average billing amounts per admission type, and result distributions across demographic groups. This stage stores them in SQLite and reuses them as retrieval context in later stages.</li><li><strong>Build the knowledge graph:</strong> The second stage extracts entities and typed relationships. Nodes represent <strong>conditions</strong>, <strong>medications</strong>, <strong>insurers</strong>, <strong>admission types</strong>, <strong>test results</strong>, and <strong>blood types</strong>. Edges carry a relationship label (TREATED_WITH, COVERED_BY, ADMITTED_AS, SHOWS_RESULT, ASSOCIATED_WITH) and a weight recording how frequently each relationship appears in the data. The stage produces a NetworkX JSON graph with 30 nodes and 120 weighted edges, and an interactive D3.js visualization of the entity network.</li><li><strong>Incrementally update the graph:</strong> Rather than rebuilding from scratch on each data refresh, the next stage merges new records into the existing graph using create-or-update semantics. It adds new entities, increments edge weights for existing relationships, and leaves unchanged portions untouched. In this demo, each run of the stage merges a fixed batch of 5,000 records rather than the full corpus, and it updates only the knowledge graph. We designed it to model a real production constraint: while rebuilding a relatively small graph like this is cheap and resolves in a few seconds, a production-sized knowledge graph based on a larger, more complex set of data would take much longer.</li><li><strong>Generate vector embeddings:</strong> For each entity, the next stage generates a natural-language summary of its characteristics and connections, then embeds those summaries using <a href="https://developers.openai.com/api/docs/models/text-embedding-3-small">OpenAI’s </a><a href="https://developers.openai.com/api/docs/models/text-embedding-3-small">text-embedding-3-small model</a>. This stage stores the embeddings in <a href="https://github.com/chroma-core/chroma">ChromaDB</a> for semantic similarity search at query time.</li><li><strong>Answer questions:</strong> The final stage runs an AI agent backed by GPT-4o. When a query arrives, the agent embeds it and queries ChromaDB for the most similar entity summaries. Starting from those results, it traverses one hop across the knowledge graph to collect neighboring entities and the relationships between them. That combined context (semantic matches plus explicit graph structure) goes to the model. Standard RAG asks, “<em>What is most similar to this query?</em>” This stage adds, “<em>What else is connected to those results?</em>” This is a hybrid GraphRAG pattern: vector retrieval followed by graph traversal.</li></ul><p>All five stages write to three different backends, and <a href="https://docs.kedro.org/en/stable/getting-started/kedro_concepts">Kedro’s Data Catalog</a> manages loading and saving for all of them from a single configuration file. Every dataset (the NetworkX graph, the ChromaDB collection, the SQLite statistics table, the LangChain prompt template) is declared in catalog.yml so there is one place to see where each input and output lives and there are no separate scripts to reconcile manually. A full default run builds all three stores from the same source data. The incremental update refreshes only the knowledge graph; keeping the vector index and statistics in step with it would require extending their pipelines in the same way.</p><p>Each stage is an independent Kedro pipeline with explicit inputs and outputs. The graph construction logic, the embedding model, and the retrieval strategy sit in separate modules. Swapping the embedding model requires changing one node and its catalog entry, while the graph and statistics stages are unaffected. Kedro-Viz renders the full data lineage across all five stages, and a published Kedro-Viz build can be viewed without any installation on the viewer’s side.</p><p>This approach also means it is possible to treat generative AI components as first-class Data Catalog entries, rather than scripts or loose objects spread around the project. It makes them easier to manage and keep track of, and they can be used as input or output for nodes like any other entry. Through the use of Kedro, generative AI datasets receive easy credentials management and follow the same load/save contract as other Kedro datasets.</p><p>The graph_update pipeline is excluded from the default run and must be invoked explicitly. It writes to the same catalog entry as graph_construction, so running both in the same default pipeline would create a <a href="https://www.geeksforgeeks.org/dsa/introduction-to-directed-acyclic-graph/">DAG conflict</a>. Full rebuilds and incremental updates are mutually exclusive operations, so making that explicit in the pipeline registry prevents silent errors.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F--DfHOWTLR8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D--DfHOWTLR8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F--DfHOWTLR8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0272c59b9717e762177d3a9fbe1f7845/href">https://medium.com/media/0272c59b9717e762177d3a9fbe1f7845/href</a></iframe><h3>Choosing between standard RAG and GraphRAG</h3><p>GraphRAG is not a replacement for standard RAG. For factual retrieval, a vector index is simpler to build, cheaper to operate, and easier to debug.</p><p>The case for a knowledge graph becomes clear when questions require multi-hop reasoning: finding conditions that share treatments, identifying which medications cluster around a particular insurer, or following relationship chains across several entity types. Healthcare illustrates the pattern, but the same logic applies wherever the connections between entities carry as much meaning as the entities themselves, for example, in areas as diverse as finance, legal, or supply chain management.</p><p>A reasonable approach is to begin with vector search and add a knowledge graph once relationship-based reasoning becomes a core requirement rather than an occasional edge case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wl_7zE7Fo0g0YrzfpA74FA.png" /><figcaption>Comparing standard RAG, graph-only RAG, and hybrid GraphRAG</figcaption></figure><h3>Resources</h3><p>If you want to go deeper on GraphRAG itself: the concept was popularized by Microsoft Research in <a href="https://arxiv.org/abs/2404.16130">From Local to Global: A Graph RAG Approach to Query-Focused Summarization</a> (Edge et al., 2024), with an accompanying open-source implementation at <a href="https://github.com/microsoft/graphrag">microsoft/graphrag</a>. For a broader view of the field, <a href="https://arxiv.org/abs/2408.08921">Graph Retrieval-Augmented Generation: A Survey</a> (Peng et al., 2024) covers the range of approaches beyond the pattern used here. <a href="https://neo4j.com/">Neo4j</a> also has a practical, framework-agnostic <a href="https://neo4j.com/blog/developer/rag-tutorial/">tutorial on building a RAG system on a knowledge graph</a>.</p><p><a href="https://kedro.org/"><strong>Kedro</strong></a> is an open-source project supported by a full-time development <a href="https://docs.kedro.org/en/stable/about/technical_steering_committee/">team</a>. It is part of the <a href="https://lfaidata.foundation/">LF AI &amp; Data Foundation</a>, with a neutral, vendor-independent governance model that supports long-term sustainability and community-driven development. Beyond the core framework, Kedro is supported by an active <a href="https://kedro-org.slack.com/join/shared_invite/zt-3p7i2e1mq-uxqCl1tkBaqdmoCoK52CEQ">open-source community</a>. Contributors and users share patterns, extensions, and real-world experience. A growing list of blog posts, videos, and projects that use Kedro can be found in the <a href="https://github.com/kedro-org/awesome-kedro">awesome-kedro GitHub repository</a>.</p><p>Kedro is also backed by extensive <a href="https://docs.kedro.org/en/stable/">documentation</a>. This includes <a href="https://docs.kedro.org/en/stable/tutorials/spaceflights_tutorial/">tutorials</a>, example projects, <a href="https://github.com/kedro-org/kedro/wiki/Kedro-Coffee-Chat">coffee chats</a>, and code snippets ranging from introductory features to more advanced use cases. Teams can get started quickly with a ready-to-use <a href="https://docs.kedro.org/en/stable/create/minimal_kedro_project/">project template</a>, which includes sample datasets and enables users to train their first model with just a few commands from the terminal. If you check it out, drop us a comment below to let us know how it goes!</p><p><em>This article was authored by </em><a href="https://www.linkedin.com/in/lrcouto/"><em>Laura Couto</em></a><em> and </em><a href="https://www.linkedin.com/in/alice-cima-25756b140/"><em>Alice Cima</em></a><em> with additional insights from </em><a href="https://www.linkedin.com/in/brucephilp/"><em>Bruce Philp</em></a><em> and </em><a href="https://www.linkedin.com/in/joseph-perkins-aa278272/"><em>Joseph Perkins</em></a><em>. The editor was </em><a href="https://www.linkedin.com/in/jostichbury/"><em>Jo Stichbury</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cd24c8a3d34" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/building-production-ready-graphrag-systems-with-kedro-3cd24c8a3d34">Building production-ready GraphRAG systems with Kedro</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What changes when your design system can talk to an AI?]]></title>
            <link>https://medium.com/quantumblack/what-changes-when-your-design-system-can-talk-to-an-ai-0a856b3c40d9?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/0a856b3c40d9</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 14:13:20 GMT</pubDate>
            <atom:updated>2026-10-02T09:02:44.604Z</atom:updated>
            <content:encoded><![CDATA[<h4>Rebuilding a UI with QuantumBlack Design System, Claude Code, and the Figma MCP</h4><p>In our recent blog post, “<a href="https://medium.com/quantumblack/announcing-quantumblack-design-system-opensourcing-7dfaf3f8e207">When everyone can build, design is the differentiator</a>”, we introduced QuantumBlack Design System (QBDS). We made the argument that an AI-native design system is more than a component library and its purpose is as an infrastructure that lets agentic developers make fewer guesses. The article described the system and our philosophy.</p><p>Over the past few weeks, we have re-platformed the entire UI of one of our products onto QBDS, one that previously had a production dashboard built on an older shadcn layout that predated QBDS. In numbers, it runs to 21 pages, 13 modals, 40 UI primitives and somewhere around 96 supporting components. A refactor of this size used to mean months of redlines and handoff documents. We’ll describe what we discovered from using QBDS, both from the engineering side and the design side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRwQiyceHigojulSwuo7gg.png" /><figcaption>In this post we’ll describe what happened when we put QuantumBlack Design System to work.</figcaption></figure><h3>The setup</h3><p>We used a small stack since QBDS supplies the components, the tokens, and the agent guidance described in the earlier QBDS article linked above. We used Figma to hold the target designs, and Claude Code for the implementation, connected through the <a href="https://developers.figma.com/docs/figma-mcp-server/remote-server-installation/#claude-code">Figma MCP server</a>. We crafted an internal QuantumBlack front-end developer <a href="https://medium.com/quantumblack/agent-skills-turn-human-expertise-into-ai-advantage-743d3d4c0c60">skill</a> to package QBDS guidance in the form an agent can act on. That skill lives on <a href="https://medium.com/quantumblack/how-mcp-can-accelerate-ai-reusability-1d40e876d48a">Brix</a>, our inner source platform for sharing artefacts.</p><h3>The workflow</h3><p>Our front-end engineer runs a page migration roughly as shown in the diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNnio5pQkeeQyyTKQoKrkA.png" /><figcaption>A typical page migration workflow for a FE engineer.</figcaption></figure><ol><li>Spin up the app locally with hot reloading.</li><li>Give Claude the context: the PR, a screenshot of the current screen, the target Figma node, and the skill.</li><li>Instruct the agent to ask when something isn’t trivial.</li><li>Review every change as it lands live, through hot reload.</li><li>Run unit tests and lint (Claude fixes most failures itself), then draft the PR, run CI/CD, and run manual Playwright E2E tests on a local minikube.</li><li>Use a review bot initially, then have a human review the result before the merge.</li></ol><p>Step 3 is more than a throwaway. For example, when Claude migrated the Secrets page, the Figma node left two questions open: how row actions should render, and what to do with two modals the design didn’t cover. Rather than making a guess, it set out the gaps, weighed each option against the pages we’d already migrated, and asked for clarification. We answered in two lines and it then completed the build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7sXj5yZ_BbwjE5WQvXubSw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u8mCRws5rRj6gnZxrGV7nw.jpeg" /></figure><p>The agent noticed that one option “diverges from other migrated tables,” which means that the agent had to know what the other migrated tables do. This knowledge came about because QBDS encodes patterns and relationships, not only components, which is the benefit of using QBDS over a plain component library.</p><p>In time terms: a simple table page with an existing sibling pattern took 10 to 15 minutes end to end, with tests and build included. A complex screen from scratch took 4 to 5 hours. If we had worked on this migration by hand, both would have taken days.</p><h3>What the design side measures</h3><p>Our designer’s comparison is against a similar product we shipped last year, before QBDS or any of this tooling existed:</p><ul><li>First-pass fidelity to Figma: around 20 percent previously, 70–80 percent now we’re using this workflow.</li><li>Review rounds per screen: four or more previously, and the result often still wasn’t right. One or two now, and the result is correct.</li><li>Component reuse: we now reuse about 90 percent from stock QBDS components. The other 10 percent is custom, but assembled from QBDS micro-elements as a starting point.</li><li>QA and handoff: three-plus hours per screen previously, much of it spent writing Figma documentation so engineering could interpret intent, and we sometimes also needed a meeting to decide. With the new workflow we now need twenty minutes to an hour. This is a key result because previously handoff was a translation problem from human to agent. Now we can use QBDS, the system documentation is already readable by the agent, so most of the laborious translation work is now unnecessary.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ObmlYcPyClUhe5Cm1aJTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pUB9tLDj4ig2uqPTPus67Q.png" /><figcaption>A typical page before and after refactoring.</figcaption></figure><h3>The broader role of a designer</h3><p>It’s difficult to capture this in a metric, but ultimately, designers on our team don’t live in Figma any more. We’ve expanded our AI skills and ways of working, so depending on what we’re trying to solve, that might mean working in Figma, Cursor, or Claude Code, or moving between them. The choice of tool becomes more intentional, based on what each part of the problem actually needs.</p><p>With QBDS in the codebase, we can work against the same system the product actually ships with. Through the Figma MCP, our QBDS skills and Code Connect, we carry context between design and code instead of recreating it at every step. When something is easier to explore visually, we work in Figma. When we want to experience it in the real product, we move into code.</p><p>That changes the traditional design-to-development handoff. With AI, designers can take an idea further, from exploring the experience to composing it with real components, implementing the front end, and experiencing the design in the actual product.</p><p>AI doesn’t get everything right by default, and the quality of the result depends heavily on the context and tools we give the agent. Explicitly calling the relevant QBDS skill and verifying that the agent is using the MCP correctly can make the difference between something that only looks close and something that follows the design system.</p><p>The difference became clear when we ran the same task twice: recreating the product experience in Figma with an agent. In the first attempt we didn’t explicitly call our QBDS skill. In the second, we called the skill and verified the MCP usage. The improvement in component usage, icons, styles and overall fidelity was immediately apparent. The full prompt sequence behind this exercise is in our prompt playbook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vb5Ize8I_-Kf38wEtYm5-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*quZQNSNxz1kooNjEhM5u3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O379sLSr4sy2QpaxB3ZG5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nuF0Ks9KrVqRnPHmi3FS5w.png" /><figcaption>Comparing the upper images where the agent didn’t use a QBDS skill with the lower images which called the skill and verified MCP usage. Note the significant improvement, particularly to the workflow studio page.</figcaption></figure><h3>The new design flow</h3><p>The workflow is much more flexible for us as we can move between design and code depending on the requirements.</p><p><strong>0. Feature request.</strong> The starting point varies. A product manager might create a ticket, a designer might identify an opportunity, or a developer might already have a working draft that needs UX refinement.</p><p><strong>1. Ideation and prototyping.</strong> We move between the Figma MCP, QBDS skills, QBDS Code Connect, Cursor, Claude Code and Vercel. Ideas can start directly with AI and quickly become working prototypes. When something is too complex for the AI to resolve well, we design it in Figma and bring that context back into code through the MCP. With Vercel, we can also create shareable versions early and test ideas with stakeholders before treating them as finished.</p><p><strong>2. Code to Figma, and design refinement.</strong> Sometimes the working prototype becomes the starting point for deeper design refinement. We bring it back into Figma, where we can work with more precision on the parts that need it, while keeping the experience connected to the same design system.</p><p><strong>3. The new design handoff.</strong> The handoff is no longer necessarily a finished set of screens in Figma. Depending on the feature, we might keep the key components in Figma while handing over a working prototype in a dedicated repository or branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgHv5tU4alQ6MN0Z0pntdw.png" /><figcaption>A typical new design workflow.</figcaption></figure><p>Figma remains important for giving designers visibility and control over the components we already have, and a place to explore specific design changes. The working implementation carries those decisions closer to the actual product. Engineering then brings the deeper code expertise to validate the implementation, and make sure what ultimately ships is robust and production-ready.</p><p>The design system becomes the shared medium and, with AI assistance, directs the flow from intent to implementation, improving throughput along the way. As one product owner in <a href="https://www.mckinsey.com/capabilities/quantumblack/labs">QuantumBlack Labs</a> explains,</p><blockquote>“Before, we would use designers to prototype, then front end engineers, when we could get them, to build. Now, the agentic developer builds the actual code that will be used as part of the actual feature. We are all more efficient.”</blockquote><h3>Humans stay firmly in the loop</h3><ul><li><strong>Hidden style bugs</strong>. There are always a few, like a kebab menu with a mysterious white border inherited from a parent. Claude fixes them reliably once a human spots them and points at the exact component. Early screens: 5–6 per page. Now that shared components are migrated: 1–2.</li><li><strong>Interaction states</strong>. Static elements are easy, but anything with hover, focus, or conditional states still needs a designer’s eye.</li><li><strong>Functional regressions</strong>. A UI update can silently drop behavior, not just pixels, and a screen can look exactly right while a function has gone missing. So beyond the test suite, we explicitly verify that existing functionality survived the redesign.</li><li><strong>Tests</strong>. Nearly every migration touches them. A failure means either dropped functionality (a real bug) or stale selectors (housekeeping), and distinguishing between them requires a human.</li><li><strong>Component duplication</strong>. An agent hyper-focused on one task can overlook components that already exist and quietly build a second version. We track what gets implemented during design updates, refactor periodically, and document the frontend architecture in a reference file the agent reads (CLAUDE.md, in our case) so it knows what&#39;s already there.</li><li><strong>E2E stays manual</strong>: Playwright, local minikube, human at the keyboard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YdmfCS_kuJxsgxzFJ40eDA.png" /></figure><h3>Our learnings</h3><p>We learned quickly to scope our prompts to what exists: whole pages when a sibling pattern exists, chunks when it doesn’t. It also became apparent that we needed to explicitly instruct the agent to ask when something was non-trivial.</p><p>Other practical learnings included keeping hot reload running so that verification was continuous rather than an event. Finally, we learned to treat test failures as a useful diagnostic rather than a set of chores.</p><p>The following are our key takeaways:</p><ul><li>An AI-friendly design system made the process faster <em>and</em> the output better. Screens that took 2+ weeks now take hours to days, and land closer to spec.</li><li>Bugs that took 2 days to resolve (5 days at the worst points last year) now get fixed in minutes, because the agent can trace a style to its source.</li><li>The highest-value design work this year was in making the system itself unambiguous, because every product and every AI tool inherits its clarity, or its mess.</li></ul><h3>Open source for reusability</h3><p>Apart from our internal skill, everything described in this article, from the design system, the agent guidance baked into it, and the runtime whose UI we rebuilt with it, is code you can clone today.</p><p>That’s a deliberate choice because here at <a href="https://www.mckinsey.com/capabilities/quantumblack/how-we-help-clients">QuantumBlack, AI by McKinsey</a>, we work across many clients, industries and brands, so anything we build has to prove itself beyond a single product. Open-sourcing QBDS is how we roll: the system has to be clear enough that either a human or an AI agent can pick it up without us in the room. The agent can only be as good as we teach it.</p><p>You don’t have to take our numbers on faith. Installation details for QBDS are in the <a href="https://designsystem.quantumblack.com/installation">QBDS documentation</a>, so why not give the design system and runtime a try for yourself? Leave us a note in the comments if you do to let us know how you get on.</p><p><em>Authored by </em><a href="https://www.linkedin.com/in/natalia-kurakina-73b0912b/"><em>Natalia Kurakina</em></a><em>, with contributions from </em><a href="https://www.linkedin.com/in/p%C3%A9ter-kismarczi-54372554/"><em>Péter Kismarczi</em></a><em>, </em><a href="https://www.linkedin.com/in/carolinastaudinger/"><em>Carolina Staudinger</em></a><em>, and </em><a href="https://www.linkedin.com/in/joseph-perkins-aa278272/"><em>Joseph Perkins</em></a><em>. The editor was </em><a href="https://www.linkedin.com/in/jostichbury"><em>Jo Stichbury</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a856b3c40d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/what-changes-when-your-design-system-can-talk-to-an-ai-0a856b3c40d9">What changes when your design system can talk to an AI?</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving the data lineage problem that’s holding enterprise AI back]]></title>
            <link>https://medium.com/quantumblack/solving-the-data-lineage-problem-thats-holding-enterprise-ai-back-6ba7b3fc63e1?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/6ba7b3fc63e1</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 08:00:45 GMT</pubDate>
            <atom:updated>2026-10-07T13:07:36.362Z</atom:updated>
            <content:encoded><![CDATA[<h4>AI4Data by QuantumBlack, AI by McKinsey</h4><p>Data estates rarely become complex by design. They grow through acquisitions, new platforms, local workarounds, and repeated efforts to connect, consolidate, or retire legacy systems. While such changes are often necessary, each one opens the door to duplicated data, undocumented transformation logic, and inconsistent definitions. Even when individual datasets are high quality, teams may no longer know the lineage of data, that is, where a value originated, nor how it changed between systems, or which version should be treated as authoritative.</p><p>Most enterprises still build lineage manually. Teams piece it together from institutional knowledge, often relying on the few subject-matter experts who remember how a dataset was assembled. Because documentation is frequently incomplete and becomes outdated quickly, analysts spend disproportionate time finding and validating data. Projects are stalled, data is duplicated rather than reused, and different teams repeatedly investigate the same relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_gSzhSSeRaEdkCP2NK-xcw.jpeg" /><figcaption><em>This article describes how to </em>accelerate the creation of trusted, end-to-end data lineage.</figcaption></figure><h3>Everyone has a reason to invest in data lineage</h3><p>Until recently, the firms that invested seriously in lineage were regulated firms such as banks, insurers, and healthcare organizations, and they did it because their regulators required it. Since 2020, those sectors have paid more than $1.4B in finalized regulatory penalties, often due to deficient monitoring and reporting frameworks, and failures to meet standards such as BCBS 239. The response was to throw people at the problem. In complex data environments, tracing the path of a single element from report to data source can take weeks, largely because the relevant knowledge is scattered across ETL tools, data catalogs, and the memories of individual employees. Firms outside regulated industries looked at that cost and reasonably decided they could live without lineage.</p><p>Unresolved lineage stands in the way of both regulatory compliance and the cost reductions that come from a modernized legacy data estate. The scale of the underlying spend explains why: procuring data sources and maintaining data governance can account for roughly a fifth of total IT spend at a large institution, with more than half of that going toward data controls and manual governance activity alone.</p><p>By improving lineage and reducing the effort required to trace, validate, and remediate data issues, organizations may be able to realize an estimated $30–100M in cost savings. The harder-won benefit is trust: executives get a defensible reason to believe the dashboards they already use and the agents they are being asked to rely on.</p><p>An AI agent asked to answer a question from enterprise data has to know which source is authoritative and what happened to a value between systems. Without lineage, the agent either guesses or the organization refuses to trust what it returns. Every sector deploying agents now needs lineage across a far wider slice of the estate than a regulatory report ever covered.</p><h3>Manual lineage can’t keep pace</h3><p>Most lineage tools available today are point solutions which trace how data moves within a single system, leaving organizations struggling when faced with more complex enterprise estates. It’s not unusual for an estate to comprise dozens of systems, built years or decades apart, on a wide variety of legacy platforms and programming languages with undocumented logic. This helps explain why up to three-quarters of organizations still rely on manual work to trace the lineage of their most critical data, an incredibly slow and expensive process. Manually tracing a single data element end-to-end across legacy and cloud systems typically has a direct cost of one to three million dollars.</p><p>Recent advancements in AI that have emerged over the past year enable the interpretation of code and metadata alongside the raw data itself, detecting connections across <em>any</em> environment or platform. These automated tools can complement the lineage tools organizations already have, closing gaps between them and accelerating those tasks that used to require an army of analysts.</p><p>This rest of this article explains how AI for data lineage (AI4DL) from QuantumBlack, AI by McKinsey, addresses a shared bottleneck by accelerating lineage creation, to give organizations a clearer view of where data comes from and how it changes across systems.</p><h3>AI4DL accelerates one core task across four common use cases</h3><p>AI4DL is an accelerator that combines AI-based detection methods with human validation to identify complete, end-to-end lineage across whatever mix of systems and technologies a client happens to run. It’s designed to capture lineage faster and more completely, engendering greater trust than any manual approach can.</p><p>AI4DL is an accelerator for creating lineage output that is reusable, and provides many different types of business value, depending on the use case.</p><ul><li><strong>Regulatory traceability:</strong> AI4DL gives compliance teams real and up-to-date visibility into how data flows, transforms, and depends on other data across systems.</li><li><strong>Improved data and business understanding:</strong> AI4DL exposes origins, dependencies, transformations, and consumption patterns across the data estate.</li><li><strong>Migration readiness:</strong> AI4DL accelerates the mapping between legacy and modern data models, cutting the effort required for platform and code migrations.</li><li><strong>AI and analytics implementation:</strong> AI4DL gives AI agents validated context for finding, interpreting, and using enterprise data.</li></ul><p>Together, these benefits build a level of trust that enables a regulator, a migration lead, and a data engineering team to point to the same underlying lineage graph and trust it for their own purposes, rather than maintaining separate, often incomplete versions of the truth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MrkICxCLQ5DkOhhYU7DwXw.jpeg" /><figcaption>Solving data lineage can unlock gen Al and agentic workflows in organizations.</figcaption></figure><p>Productivity is the shared economic benefit across all four use cases. By reducing manual lineage documentation, investigation, and validation, AI4DL frees data, engineering, governance, and subject-matter experts to focus on higher-value work.</p><h3>AI detection and human checks</h3><p>AI4DL works by running various detection methods in parallel, each tuned to a different signal in the data estate:</p><ul><li><strong>LLM-based metadata inference</strong> reads data catalogs (table and column names, descriptions, constraints, tags, owners) to infer likely lineage.</li><li><strong>LLM-based code review</strong> parses ETL and ELT code, from SQL to PySpark to DAGs, to derive column-level lineage and summarize what each transformation actually does.</li><li><strong>Statistical attribute matching</strong> suggests column similarities between different datasets using data profiling and distribution similarity.</li></ul><p>The same approach used for a single COBOL program, for example, can be scaled to two thousand or more, with the same degree of accuracy and trust.</p><p>Whatever combination of methods applies, the results are never taken at face value. The tool flags low confidence decisions and human experts review the resulting lineage graphs, so that they flag inconsistencies before anything is treated as fact. This human check is what allows AI4DL’s output to be treated as audit-grade rather than merely directional, a critical distinction in regulated industries.</p><h3>The results</h3><p><strong>Example:</strong> A major Latin American bank pursuing an AI-first strategy was being held back by data quality issues with ten years of real-time credit card and investment data, more than 34 billion rows spread across 2,000-plus COBOL programs and 50-plus DB2 tables. By decomposing that metadata and code into end-to-end lineage and layering AI models on top, the bank cut lineage creation time from ten weeks to a few hours, freeing roughly 50,000 combined hours for its data governance and engineering teams.</p><p><strong>Example:</strong> A European insurer faced a Databricks migration that was stalled by a lack of documentation on more than 100 legacy SQL scripts and the departure of the people who understood them. AI4DL parsed the scripts and traced their dependencies, validating the resulting lineage against manually produced lineage to reach about 98 percent accuracy, de-risking a migration that had been stuck for months.</p><p><strong>Example: </strong>A European bank faced a data migration with an original estimated effort of five people working full time for one year. It used AI4DL to automatically map about half its target features, for a 65 percent efficiency gain against the original baseline. Confirming those source-to-target mappings, which ended up being 70 percent correct, took a subject-matter expert roughly a quarter of their time over one month. This saved the bank months of time and effort from the specialist team the bank had originally budgeted for.</p><p>In each case, the win wasn’t simply speed. It was that everyone involved, whether at the bank, the insurer, or on the regulatory side, could point to a specific, auditable trail for how a number in a report traced back to its source, something none of them could do with confidence before.</p><h3>AI4DL doesn’t require a rebuild</h3><p>AI4DL runs across source systems, whether mainframe, on-premises or cloud, making it possible to implement without requiring a client to rebuild their technology stack. Deployment can be cloud-native, hybrid, or on-premises, expanding to match whatever architecture a client already runs. The solution traces how fields are derived, transformed, and consumed, so teams get one consolidated map instead of disconnected documentation per system or layer.</p><h4>Start with one use case, prove the value, scale the recipe</h4><p>Teams that get data lineage right unlock benefits well beyond the initial use case, and provide a genuine foundation for the AI initiatives that data problems have been quietly undermining. The technology behind that shift has been proven at scale across financial services and other regulated sectors, delivering results in a fraction of the time required by manual methods.</p><p>The right way to start is with a pilot focused on a single domain or product. Clients can enter through whichever use case has the clearest current economics, such as a regulatory report, a difficult data domain, a migration wave, or a bounded agent workflow. Ideally this is in a domain where success can be measured and the approach refined before being codified into a repeatable recipe. Once that recipe works, scaling AI-driven lineage across an entire enterprise becomes a matter of repetition rather than invention.</p><p>AI4DL makes lineage something that can be created quickly and reused across the work that depends on it, from regulatory reporting to data migration and AI use cases. It creates a foundation that supports a variety of business use cases, including regulatory and business reporting, data migration, and agentic AI implementation.</p><p>When lineage is no longer a slow, manual effort, it stops being a one-off exercise and becomes part of the infrastructure teams rely on day to day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqbkijD438gjeZpVEPPgXg.jpeg" /><figcaption>AI4DL is also part of a broader AI4Data portfolio addressing the full data lifecycle, including data quality detection and remediation and data product design.</figcaption></figure><p>The broader AI4Data portfolio addresses the full data lifecycle and has now been deployed with clients more than 100 times. Find out more from <a href="https://medium.com/quantumblack/unlocking-the-value-of-clean-trusted-data-c036affe6a6e">QuantumBlack’s ongoing series on data transformation</a> that showcases products in the AI4Data portfolio, and from the following articles:</p><ul><li><a href="https://medium.com/quantumblack/accelerating-data-remediation-with-ai-dd873f618954"><strong>AI4Data Quality</strong></a>: The product cleans data using a customizable AI based toolkit that can detect and correct data quality issues.</li><li><a href="https://medium.com/quantumblack/solving-data-quality-for-gen-ai-applications-11cbec4cbe72"><strong>AI4Data Quality Unstructured</strong></a>: An extension of our AI4DQ product, this asset uses a customizable AI based toolkit to detect and correct issues in unstructured datasets.</li><li><a href="https://mckinsey-my.sharepoint.com/personal/andreea_bajenaru_mckinsey_com/Documents/Documents/01.%20Studies/03.%20AI4Data/01.%20Articles/Using%20generative%20AI%20to%20accelerate%20data%20product%20development"><strong>AI4Data Products</strong></a>: The solution generates ETL/ELT code automatically from table schemas, cutting engineering time by up to 80 percent and embedding best practices in the generated pipelines.</li><li><a href="https://medium.com/quantumblack/unlocking-consumable-data-for-generative-ai-069204e1e26d"><strong>AI4Data Extraction</strong></a>: The product transforms un-structured documents (PDFs, PPTs, PNGs) into re-usable structured data assets for downstream use in agentic workflows</li></ul><p><strong><em>Do you work on a team that regularly grapples with issues of data lineage? We’d love to hear about your experiences, challenges, and solutions in the comments. And if you’d like to know more about AI4DL or hear relevant use cases in more detail, you’re invited to </em></strong><a href="https://www.mckinsey.com/capabilities/quantumblack/contact-us"><strong><em>get in touch with us</em></strong></a><strong><em> directly.</em></strong></p><p><em>Authored by </em><a href="https://www.linkedin.com/in/bridget-bassi/"><em>Bridget Bass</em></a><em>i, </em><a href="https://www.linkedin.com/in/andreea-bajenaru-popa-398298136/"><em>Andreea Popa</em></a>,<em> and </em><a href="https://www.linkedin.com/in/alanconroy1/"><em>Alan Conroy</em></a><em>, with additional input from </em><a href="https://www.linkedin.com/in/kayvaunrowshankish?utm_source=share_via&amp;utm_content=profile&amp;utm_medium=member_ios"><em>Kayvaun Rowshankish</em></a><em>, </em><a href="https://www.linkedin.com/in/dr-sebastian-sch%C3%B6bl-2468a45a?utm_source=share_via&amp;utm_content=profile&amp;utm_medium=member_ios"><em>Sebastian Schöbl</em></a><em>, </em><a href="https://www.linkedin.com/in/nikhil-j-rao?utm_source=share_via&amp;utm_content=profile&amp;utm_medium=member_ios"><em>Nikhil Rao</em></a><em>, </em><a href="https://www.linkedin.com/in/nishantk12/"><em>Nishant Kumar</em></a><em>, </em><a href="https://www.linkedin.com/in/dana-mekler?utm_source=share_via&amp;utm_content=profile&amp;utm_medium=member_ios"><em>Dana Mekler</em></a><em>, </em><a href="https://www.linkedin.com/in/estherlym/"><em>Esther Leong</em></a>, <a href="https://www.linkedin.com/in/season-yang-830554b1/"><em>Season Yang</em></a><em>, and </em><a href="https://www.linkedin.com/in/filipeo2/"><em>Filipe Oliveira</em></a><em>. The editors were </em><a href="https://www.linkedin.com/in/carl-alviani/"><em>Carl Alviani</em></a><em> and </em><a href="https://www.linkedin.com/in/jostichbury/"><em>Jo Stichbury</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ba7b3fc63e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/solving-the-data-lineage-problem-thats-holding-enterprise-ai-back-6ba7b3fc63e1">Solving the data lineage problem that’s holding enterprise AI back</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When everyone can build, design is the differentiator]]></title>
            <link>https://medium.com/quantumblack/announcing-quantumblack-design-system-opensourcing-7dfaf3f8e207?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/7dfaf3f8e207</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Thu, 10 Sep 2026 08:37:26 GMT</pubDate>
            <atom:updated>2026-09-22T09:43:24.402Z</atom:updated>
            <content:encoded><![CDATA[<h4>An open-source project from QuantumBlack, AI by McKinsey</h4><p>Here at <a href="https://www.mckinsey.com/capabilities/quantumblack/">QuantumBlack</a>, we’ve had an internal design system for a while. It’s powered multiple products and gives our development teams a consistent language to help them ship faster. But it was built for a different era. The original architecture worked well for designers and developers, but it wasn’t set up for AI-assisted development. Now we’ve rebuilt it to make it easier for both human team members and AI agents to use, customize, and extend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiZmT0D71PqU2rv-Oz5JLg.gif" /></figure><p><strong>We are sharing part of the new design system infrastructure as an </strong><a href="https://github.com/mckinsey/quantumblack-design-system"><strong>open-source project</strong></a>, giving our clients and other external teams a practical way to adopt it in their own products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N1e7RbvlWnX653KdcgZT3w.jpeg" /><figcaption>The previous design system held components, design tokens and documentation. QuantumBlack Design System rebuilds those and adds a design-code link, guidelines, design intent, agent skills and project context.</figcaption></figure><p>In this article, we explain what makes a design system AI-native, share what we learned rebuilding ours on shadcn and Tailwind, and describe where we think design infrastructure goes next.</p><h3>Our belief: the design system is where design scales</h3><p>AI makes interface implementation faster and more widely available. That puts more weight on decisions generation alone cannot make: whether an interface works, whether it is appropriate for its users, and whether it should be built at all. Good judgment, critical design thinking, taste, and trust have become more important than ever.</p><p>If design is the differentiator, then a design system is the way to scale it. In the past, design systems were mainly component libraries that kept products consistent. Today they’re more fundamental as a shared infrastructure that captures an organization’s design intelligence and makes it available to every product, every team, and, increasingly, every AI tool.</p><p>The best design systems enforce consistency and help humans and AI build better products and solutions together.</p><p>Unlike most design systems, ours isn’t built for a single product or company. We deploy design and code across a variety of McKinsey clients, industries, and brands, which means our system has to scale. It has to capture design decisions, foundations, principles, guidelines, structure, and intent that work in different contexts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ThbtDCgtDZUf_LWnOgyurA.jpeg" /><figcaption>QuantumBlack Design System supports agentic workflows, product building, prototypes and POCs, consistency at scale, a replicable playbook, client ecosystems, brand theming, and design-code handoff.</figcaption></figure><p>We’ve spent years on the closely related design problem of explaining AI/ML reasoning to people so they trust it. Building an AI-native design system reverses that challenge, so that we are now teaching AI to understand and apply human design judgment.</p><h3>Design infrastructure, not a component library</h3><p>An AI-native design system is more than a collection of components; it includes the infrastructure that helps AI build the right thing. That means going beyond reusable UI to defining a system that encodes design values <em>and</em> the intent behind them.</p><p>Every component, token, guideline, and connection between design and code must be explicit. The less AI has to guess, the more consistent, explainable, and production-ready its output becomes. A clean, well-structured, well-documented design system is now one of the highest-value investments a design team can make, because every AI tool in the organization inherits its quality…or its mess.</p><p>This benefits people too. The process of making a system understandable to AI forces greater clarity between designers and engineers, creating a shared source of truth that everyone can build from. That clarity serves the AI as well as every human designer and engineer who has to understand the system, not to mention every user who consumes its outputs.</p><p>Good structure also makes AI more efficient and cost-effective. Better structure means fewer iterations, fewer unnecessary tokens, improved output accuracy and consistency, and overall lower cost to reach a production-ready result. We designed for this deliberately, down to letting the system steer work toward the correct technical path for the job, rather than defaulting to a heavier setup that the task may not require.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PvL_y998e4yuTt4xkzBDrg.jpeg" /><figcaption><em>Better structure means fewer rounds to reach production.</em></figcaption></figure><p>QuantumBlack Design System brings together design tokens, components, documentation, and agent skills into a single foundation. The more knowledge it captures, the better every product and every AI workflow built on top of it becomes. It is executable knowledge, not just documentation. Agents can learn the principles and use the implementation directly, turning design guidance into something they can both reference and reason with.</p><p>We treat agent guidance as part of the design system. Alongside design tokens and components, we package the project context, implementation guidance, and reusable capabilities that help agents navigate the system consistently. Rather than relying on handcrafted prompts, agents inherit the same shared knowledge and conventions that our teams use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EaDxPZQZd29Ip1fSEDls-Q.jpeg" /><figcaption>How QuantumBlack Design System helps turn a prompt into production-ready work.</figcaption></figure><h3>What we learned along the way</h3><p>Building a system for AI means making different trade-offs from those we would have made a few years ago. These are best summarized through a series of principles we used to guide our efforts:</p><ul><li><strong>Build with AI, not against it:</strong> Instead of maintaining a fully bespoke component library, we built on foundations that AI already understands, layering our design system on top. Rather than building custom components from scratch and sharing npm packages which are hard for LLMs to read and edit, we rebuilt our design system on <a href="https://ui.shadcn.com/">shadcn</a> and <a href="https://tailwindcss.com/">Tailwind</a> and incorporated our design intelligence alongside it.</li><li><strong>Composition over configuration: </strong>Not every product should look the same. Rather than rigid, feature-rich components, we rebuilt around composition and flexible slots. We created smaller, modular pieces for people or AI to assemble as necessary for different use cases.</li><li><strong>Structure over documentation: </strong>We found that richer, more explicit tokens that capture design intent, guidelines on component relationships, and usage rules were more valuable than an exhaustive catalog of components. AI performs better and reasons more effectively when knowledge is defined and structured well.</li><li><strong>Consistency with room to adapt: </strong>The system needs to serve different use cases and users. We built different levels of flexibility into the system so AI can distinguish between these use cases. For example, quick experimental offline prototyping and production-grade application work are two different tasks running on the same system.</li></ul><h3>What’s next? 🔮</h3><p>QuantumBlack Design System is the start of a new way of building products here at <a href="https://www.mckinsey.com/capabilities/quantumblack/labs">QuantumBlack Labs</a>. Everything we learn becomes a replicable playbook we can bring to our clients.</p><p>As models improve, we expect some of today’s scaffolding to become unnecessary. We will continue testing which design rules agents need explicitly, which they can infer reliably, and where designers and engineers still need tighter controls. The interesting work for AI-era designers and engineers is to keep finding the next novel combination.</p><p>Find out more about QuantumBlack Design System from our open-source <a href="https://github.com/mckinsey/quantumblack-design-system">GitHub repository</a> and learn how to install it from <a href="https://designsystem.quantumblack.com/installation">QBDS documentation</a>.</p><p><em>Authored by </em><a href="https://www.linkedin.com/in/stephanie-kaiser-a54299145/"><em>Stephanie Kaiser</em></a><em>, with contributions from </em><a href="https://www.linkedin.com/in/joseph-perkins-aa278272/"><em>Joseph Perkins</em></a><em>, </em><a href="https://www.linkedin.com/in/huong-li-nguyen/"><em>Li Nguyen</em></a><em>, </em><a href="https://www.linkedin.com/in/dan-dumitriu-b8172b3/"><em>Dan Dumitriu</em></a><em>, </em><a href="https://www.linkedin.com/in/pruthvi-prakasha-50425b51/"><em>Pruthvi Prakasha</em></a><em>, </em><a href="https://www.linkedin.com/in/tynan-debold/"><em>Tynan DeBold</em></a><em>, </em><a href="https://www.linkedin.com/in/katesoliman/"><em>Kate Soliman</em></a><em>, and feedback from </em><a href="https://www.linkedin.com/in/stephenjxu/"><em>Stephen Xu</em></a><em>, </em><a href="https://www.linkedin.com/in/dgabrielli/"><em>Dante Gabrielli</em></a><em> and </em><a href="https://www.linkedin.com/in/ottis/"><em>Ottis Kelleghan</em></a><em>. The editor was </em><a href="https://www.linkedin.com/in/jostichbury/"><em>Jo Stichbury</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dfaf3f8e207" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/announcing-quantumblack-design-system-opensourcing-7dfaf3f8e207">When everyone can build, design is the differentiator</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Escaping AI Pilot Purgatory: From POC to P&L]]></title>
            <link>https://medium.com/quantumblack/escaping-ai-pilot-purgatory-from-poc-to-p-l-1216d30ec4d0?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/1216d30ec4d0</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 07:25:58 GMT</pubDate>
            <atom:updated>2026-08-27T21:09:11.084Z</atom:updated>
            <content:encoded><![CDATA[<h4>What separates the teams that ship from the ones that don’t?</h4><p>In McKinsey’s recent <a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">State of AI 2026 global survey</a>, 89 percent of respondents said that their organizations regularly use AI in at least one business function. Yet only 37 percent attributed an EBIT impact to AI, most of them under 5 percent of EBIT. McKinsey’s “<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/seizing-the-agentic-ai-advantage">Seizing the agentic AI advantage</a>” report calls the mismatch between widespread use and limited bottom-line impact the <strong><em>gen AI paradox</em></strong>.</p><p>A previous article on this blog about <a href="https://medium.com/quantumblack/creating-a-future-proof-enterprise-agentic-platform-architecture-c21fc48406a5">enterprise agentic platform architecture</a> provides a useful framing for this imbalance: horizontal solutions such as copilots and chatbots may be easy to deploy, but they’re loosely coupled to core processes and so don’t move the dial. In contrast, vertical solutions embedded into specific workflows can be transformative. For large organizations with the budget and executive sponsorship for AI at scale (itself a non-representative slice of the market), technology is rarely the binding constraint. For these companies, capable models exist, frameworks are mature, and cloud infrastructure is available. What keeps stalling is the move from “interesting proof of concept” to “production system that moves P&amp;L in the right direction.”</p><p>This article captures key lessons about the engineering and delivery practices that separate initiatives that move the P&amp;L from those that don’t. We’ll give an engineering perspective on principles that other McKinsey authors have framed strategically and architecturally. It runs in parallel to the six lessons described in the earlier McKinsey article “<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/one-year-of-agentic-ai-six-lessons-from-the-people-doing-the-work">One year of agentic AI</a>”.</p><h3>The case studies</h3><p>Two McKinsey engagements anchor most of what follows. We’ll refer back to them as Case 1 and Case 2.</p><h4><strong>Case 1: Manufacturing service operations</strong></h4><p>A global manufacturer working with our team and AWS deployed four AI solutions across an end-to-end service journey, and saw meaningful improvements in key service metrics, with clear P&amp;L impact over the program’s measurement window. Each solution addressed a different step and used a technique suited to the problem: LLMs for unstructured text, optimization algorithms for resource allocation, and ML models for recommendation and prediction, with agentic orchestration over the top.</p><h4><strong>Case 2: Enterprise agentic platform</strong></h4><p>A global manufacturing conglomerate, working with our team, has built and launched its first enterprise agentic AI platform at scale, currently released to more than 10,000 account executives and strategy leaders. The platform is the venue through which dozens of agentic use cases are delivered across business units — the architectural side of the “codify and replicate” challenge in Lesson 6.</p><p>Both engagements started as proofs of concept, and both could easily have stayed there. We mention them upfront not as a pair of victory laps, but because the lessons that follow draw on the details of their delivery, as well as other engagements where we did not get these things right the first time.</p><h3>The shape of pilot purgatory</h3><p>The phrase “pilot purgatory” is one that our McKinsey colleagues have used before, for example in “<a href="https://www.mckinsey.com/capabilities/operations/our-insights/how-coos-maximize-operational-impact-from-gen-ai-and-agentic-ai">How COOs maximize operational impact from gen AI and agentic AI</a>”. That article describes organizations developing gen AI tools “that have little effect beyond saving workers a few minutes a day.” We use the term as shorthand for a pattern that’s pointed to by several independent data points, even though each measures something slightly different:</p><ul><li><strong>Project abandonment</strong>. <a href="https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027">Gartner predicts that over 40 percent of agentic AI projects will be canceled by the end of 2027</a>, due to escalating costs, unclear value, and weak risk controls. The prediction also notes a tendency among vendors to engage in “agent washing,” rebranding existing tools as agentic. Gathered data already points this way: <a href="https://www.ciodive.com/news/AI-project-fail-data-SPGlobal/742590/">S&amp;P Global Market Intelligence</a> found the share of organizations abandoning most of their AI initiatives rose to 42 percent in 2025, from 17 percent a year earlier, with the average organization scrapping 46 percent of its proofs of concept before they reached production (note that this is self-reported, and “most” initiatives is not “all”).</li><li><strong>POC-to-production conversion</strong>. <a href="https://blogs.idc.com/2024/08/23/time-to-make-the-ai-pivot-experimenting-forever-isnt-an-option/">IDC research on enterprise gen AI programs</a> describes a funnel in which a typical enterprise identifies hundreds of potential use cases, launches dozens of proofs of concept, and puts fewer than six into production.</li><li><strong>Maturity</strong>. In McKinsey’s Superagency research (a US-weighted C-suite survey), only about 1 percent of respondents describe their gen AI rollouts as “mature” (full source and caveats in “Why knowing what to do is not enough” below).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5x1R9aUdXHWseASHEP4Nw.png" /><figcaption><strong>Figure 1 — The pilot-purgatory funnel</strong>. Each stage keeps only a fraction of what entered the last: hundreds of candidate use cases narrow to dozens of pilots and then to fewer than six in production. Sources: IDC (2024), Gartner (2025), McKinsey (2025).</figcaption></figure><p>The metrics are not strictly comparable, but together they describe an industry that is much better at starting AI work than finishing it. The engagements we see exhibit a consistent pattern: a proof of concept lands well, stakeholders are excited, the real work begins, and progress stalls. There are several recurring symptoms:</p><ul><li><strong>The demo-to-production gap</strong>. A model that works on curated data but doesn’t survive real-world inputs with incomplete records, inconsistent formats, and edge cases nobody anticipated because the training data was too clean.</li><li><strong>The adoption cliff</strong>. A technically impressive system that nobody uses, because end users were not involved in the design and it does not fit their workflow.</li><li><strong>The accountability vacuum</strong>. Data science built the model, engineering built the infrastructure, the business unit owns the process, and a vendor manages the platform. So when the system underperforms, everyone points at someone else.</li><li><strong>The “next model” trap</strong>. Instead of fixing the deployment, the team pivots to a new model, framework, or vendor. Each pivot resets the clock, and the pilot stays a pilot.</li><li><strong>The skills mismatch</strong>. A team can say it “knows AI” because it built a prototype that calls an LLM API. Production AI engineering has a much wider scope, which overlaps with rather than replaces MLOps and traditional software engineering. We return to that distinction in Lesson 5.</li></ul><p>These are mostly socio-technical failures rather than algorithmic ones: a mix of workflow design, ownership, executive alignment, and engineering discipline. Better algorithms alone do not solve them.</p><h3>Our lessons from production</h3><h4>1. Redesign the workflow alongside the model.</h4><p>This is the lesson McKinsey colleagues have already amplified, and we build on it here. In “<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/one-year-of-agentic-ai-six-lessons-from-the-people-doing-the-work">One year of agentic AI</a>,” the first of the six lessons is “It’s not about the agent; it’s about the workflow.” The <a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">State of AI</a> survey shows that intentional workflow redesign and senior-leader ownership correlate strongly with meaningful business impact, though this is an association across self-reported high performers, not a measured intervention effect. The broader “rewiring” thesis is the subject of McKinsey’s popular technology playbook “<a href="https://www.mckinsey.com/featured-insights/mckinsey-on-books/rewired">Rewired</a>”.</p><p>A common mistake in AI deployment—and one we have made ourselves more than once—is treating it as a technology insertion problem. The team takes an existing process, bolts an AI model onto one step, and expects transformation. This is the horizontal-solution pattern called out in <a href="https://medium.com/quantumblack/creating-a-future-proof-enterprise-agentic-platform-architecture-c21fc48406a5">a recent QuantumBlack platform architecture article</a>, in which copilots and chatbots ride on top of existing workflows, making them easy to ship and scale, but leaving them loosely coupled to the process they are meant to improve. In Case 1, the obvious horizontal approach would have been a single chatbot frontline teams could query when stuck: a reasonable pilot, but one that provides just a fraction of its potential impact. Our QuantumBlack colleagues reached the same conclusion from the software-development angle in <a href="https://medium.com/quantumblack/agentic-workflows-for-software-development-dc8e64f4a79d">Agentic workflows for software development</a>. Agents earn their value only when they run inside redesigned, convention-driven workflows rather than bolted onto the old ones, and doing that well “requires organizational change that goes beyond technical tooling.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymFA7TXBAf9eoPaBduHEPA.png" /><figcaption><strong>Figure 2 — Horizontal vs. vertical AI solutions</strong>.<strong> </strong>Horizontal solutions ride on top of existing workflows and are easy to ship; vertical solutions are embedded into the workflow itself. Enterprise-level impact tends to come from the vertical pattern.</figcaption></figure><p>In Case 1, we worked with the client to redesign the end-to-end service journey and put four AI solutions into production across it. On its own, no single solution would have moved the needle. Together, in the client’s reporting, they were associated with the service-metric improvement and P&amp;L impact noted earlier. We treat those as program-attributable rather than a clean causal claim. AI was one factor among several, and the client’s own teams did the integration work that made the savings stick. This pattern appears in the research too: enterprise-level benefit shows up more often alongside vertical, workflow-embedded redesign than horizontal point automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TB5xmeGEDPtLU2-A2kpT1w.png" /><figcaption><strong>Figure 3 — Case 1: four solutions across one service journey</strong>. Each step of the service journey gets the technique it needs, coordinated by an orchestration layer on top. The figure shows why the program’s value was cumulative across steps.</figcaption></figure><p>Internal AI teams often struggle to break out of pilot mode because they are usually organized around a single function or technology layer. Seeing the full workflow and having a mandate to redesign it from end to end requires a cross-functional perspective and executive sponsorship that pilot teams frequently lack. The problem is not the teams so much as an operating model built for tools rather than transformation.</p><blockquote><strong>The teams that ship</strong> redesign the whole workflow, not just the step where the model sits.</blockquote><h4>2. Measure in P&amp;L rather than accuracy.</h4><p>Model accuracy is necessary, but it’s not the full story. A 95 percent accurate model that nobody uses delivers no business value; a lower-accuracy model embedded in a workflow people actually follow can move an operation. The shift that matters is from “does this model work?” to “does this system move the business?”</p><p>In Case 1, the C-suite tied a portion of their own performance targets to the AI program’s outcomes. In our experience this is a stronger forcing function than any technical KPI. Optimization arguments become business arguments, and trade-offs are resolved in days rather than quarters. We do not claim the incentive structure caused the results, but it visibly changed the conversation.</p><p>That kind of alignment might sound obvious, but it’s also rare, and the State of AI 2026 survey suggests that the organizations capturing value are the ones that instrument for it. AI high performers — the roughly 6 percent of respondents who attribute at least 5 percent of EBIT to AI and report ‘significant’ value from it — are about twice as likely as others to say their organizations have defined processes to measure the impact of their AI initiatives. That is correlation, not proven causation, and it’s important to note that high performers are doing several things right at once, with practices that reinforce one another. But the correlation matches our own observation that teams who successfully move the P&amp;L tend to be the ones measuring in P&amp;L terms from the start.</p><p>Many pilots are still measured in technical metrics (F1 scores, latency, throughput) that the business cannot easily act on. Show accuracy charts to a CFO trying to understand cost-to-serve and the pilot gets another quarter of funding without anyone learning anything new. Closing that gap takes someone who can translate technical architecture into financial outcomes for the CFO, then turn those outcomes into system requirements for engineering. Many organizations have people who can do one or the other, but the combination of skills is rarer. This becomes especially important in the second or third quarter when sponsorship is renegotiated.</p><blockquote><strong>The teams that ship</strong> measure success in business outcomes and translate P&amp;L goals into engineering requirements.</blockquote><h4>3. Design for adoption.</h4><p>The hardest engineering problem in AI deployment is getting people to use it well, and this is hard to get right on the first attempt. In an earlier engagement we assumed operators would adopt a separate tool once we showed what it could do. In practice, usage barely moved. The pivot that mattered was rebuilding an integration so the AI’s recommendations appeared inside the tools they already used, where following a recommendation took fewer steps than ignoring it. Usage increased sharply over the following months.</p><p>In Case 1 we built that lesson in from the outset, and the four solutions reached high active-usage rates across the targeted frontline population within the measurement window. We do not put a single number on that outcome here, because adoption-rate definitions vary by tool, role, and time window. The result was not accidental because adoption was treated as a first-class engineering requirement. Our experience suggests a few key principles:</p><ul><li><strong>Build alongside end users</strong>. Frontline operators were in the room during design. We watched them work and mapped their tools, frustrations, and workarounds, then designed the systems to fit the workflow they already had rather than replace it.</li><li><strong>Optimize for trust, not just accuracy</strong>. Operators with decades of experience rarely trust a black box, so the systems show their reasoning: why an action was recommended, what data was used, the confidence level. Transparency is an engineering decision, and a costlier one than it looks. It has to be built into the model interface, evaluation harness, and UI in a coordinated way.</li><li><strong>Ship incrementally</strong>. Each system went live independently, proved its value, and built confidence for the next. By the time the last launched, the organization had already internalized AI as part of how it works.</li></ul><p>Adoption, measured properly, is a form of behavior change. The test we look for is whether people reach for the AI over their existing process when both are available, and keep doing so once launch attention fades.</p><blockquote><strong>The teams that ship</strong> design for adoption with end users and fit AI into the tools they already use.</blockquote><h4>4. Own the outcome end-to-end.</h4><p>Pilots stall most often where ownership is fragmented. When the model is built by one team, the infrastructure by another, the frontend by a third, and integration managed by a vendor, nobody owns the outcome and decisions get relitigated. At scale, one engineering group needs to own enough of the stack — architecture, code, infrastructure, and the technical relationship with the client’s governance functions — to defend the design end-to-end. Not everyone must build everything, but someone has to be answerable for the whole picture, and reaching that arrangement often requires reorganization that can be uncomfortable in the short term.</p><p>At enterprise scale, technical governance reviews are inevitable: security teams audit the architecture, compliance questions data flows, senior stakeholders ask why one approach was chosen over another. The team that can speak credibly to architecture, coding standards, test coverage, and security practices retains trust. The team that defers to a vendor, or escalates to someone who was not in the room when the decisions were made, quickly loses it.</p><p>We have seen what this looks like when it goes wrong. In one earlier engagement we accepted what looked like a clean split, with a vendor owning the inference layer, a partner the data pipeline, and our team the application layer. In practice, though, every governance review revealed an ownership gap: a security question that needed three answers, an integration bug that needed three reproductions before anyone could diagnose it. The program was stalled not by technology, but coordination. The uncomfortable fix involved re-scoping to take operational accountability for the full stack, holding the vendor and partner to a defined interface as upstream suppliers rather than parallel owners. That broke a few expectations, but ended the governance stalls within the next quarter.</p><p>One note, for transparency: McKinsey supports its clients with exactly this kind of integrated capability, but there are legitimate alternatives, such as investing in platform teams, hiring senior AI engineering leadership, building deeper hyperscaler partnerships, or setting up a structured handover from a consulting partner into in-house ownership. Indeed, many of our engagements are completed this way. The point is that <em>someone</em>, internal or external, must own the architecture, the code, and the governance conversation as a single point accountability, rather than three.</p><blockquote><strong>The teams that ship</strong> give one engineering group clear accountability for the architecture, code, infrastructure, and governance relationship.</blockquote><h4>5. Staff for production AI engineering.</h4><p>Production AI engineering is not a wholly new discipline. It overlaps heavily with mature MLOps and production-grade software engineering, and most of the strongest practitioners we work with come from one of those backgrounds. What is different is the surface area that LLM-based and agentic systems introduce on top:</p><ul><li>rigorous evaluation and output validation at every step</li><li>model selection accounting for cost, latency, and capability constraints</li><li>streaming and retry patterns tuned for token-by-token responses</li><li>observability</li><li>migration paths when the underlying model changes every few months.</li></ul><p>Instincts about systems differ because AI failure modes are not the same as those in deterministic software, nor in classical ML pipelines.</p><p>Two recent QuantumBlack pieces map this concretely. “<a href="https://medium.com/quantumblack/generative-ai-workflows-need-engineering-discipline-to-scale-beyond-the-demo-a9928135e393">Generative AI workflows need engineering discipline to scale beyond the demo</a>” argues that what breaks in production “is almost never the quality of the underlying model, but the way the system is structured,” and treats reproducibility, observability, and evaluation as first-class properties, not afterthoughts. “<a href="https://medium.com/quantumblack/agentic-workflows-for-software-development-dc8e64f4a79d">Agentic workflows for software development</a>” shows the same discipline at the level of a single workflow: bounded agent execution wrapped in deterministic orchestration, with automated evaluation at every step. The engineers who do this well treat those practices as the job, not as overhead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3yEF9xhxgAG76QXT7Vf_bg.png" /><figcaption><strong>Figure 4 — The production AI engineering surface area</strong>. Production AI engineering overlaps heavily with mature MLOps and software engineering; what’s different is the added surface area that LLM-based and agentic systems introduce on top.</figcaption></figure><p>Teams that staff for “software engineers who have used an LLM once” tend to discover this the hard way, in production. Many are able adapt if given time to learn the new failure modes, with support from a senior practitioner who has shipped LLM systems at scale. But the adjustment happens somewhere, and a pilot is a cheap place to learn it. A high-visibility production rollout is not.</p><p>A related challenge is domain expertise. Engineers can write prompts, but they are rarely best placed to know what a good output looks like in a given business context. A subject matter expert can tell you whether a recommendation is reasonable for an aftermarket service call, but is not usually the right person to build the evaluation harness around it.</p><p>Domain experts take charge of prompts, evaluation criteria, and output validation; engineers scale and harden what works. Treating prompt engineering as a form of software engineering, rather than a domain task with engineering infrastructure around it, is a common and costly mistake.</p><blockquote><strong>The teams that ship </strong>pair production AI engineers with domain experts who own prompts, evaluation criteria, and output validation.</blockquote><h4>6. Codify and replicate.</h4><p>Production is not the finish line, and AI projects are successful only if they keep working after they are deployed. We recently described this dynamic in our article about live AI operations, “<a href="https://medium.com/quantumblack/ai-value-the-growing-ai-operations-challenge-ca8621aa245c">AI value: The growing AI operations challenge</a>”.</p><p>The real value multiplier, in our experience, is turning a single successful deployment into a repeatable approach. “<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/one-year-of-agentic-ai-six-lessons-from-the-people-doing-the-work">One year of agentic AI</a>,” cited in Lesson 1, puts a sharper version of this in its fifth lesson: “…the best use case is the reuse case.” Companies often build a unique agent or pipeline for each task, when the same components — ingesting, extracting, searching, analyzing — recur across many tasks and can be assembled from parts already built.</p><p>The most common first instinct is documentation, in the form of detailed pages on architectural decisions, integration choices, and lessons. But a few months later, few outside the original team have read it, and the next engagement rebuilds the same things from scratch.</p><p>What works better is packaging the decisions as runnable scaffolds — template repositories, evaluation harnesses, integration adapters for a new team to clone and adapt — with a much shorter narrative on what the patterns are and when not to use them. Engineers are far more likely to reach for the code their colleagues have already written than the documentation about it. In Case 1 we codified the most reusable artifacts as runnable assets with a thin narrative wrapper: architectural patterns for multi-agent orchestration over enterprise data, integration approaches for common back-end systems, the frontline adoption playbook, and the governance model used to clear internal risk and compliance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLVTqawXEdpt_cZ8oPA7pQ.png" /><figcaption><strong>Figure 5 — Codify and replicate: from documentation to runnable assets</strong>. Decisions codified as runnable scaffolds get reused on later work; the same decisions left in documentation usually don’t.</figcaption></figure><p>The approach has since shortened the path, through people and patterns more than transplanted code. With an overlapping team, the disciplines from Case 1 — a habit of building evaluation harnesses, orchestration conventions, and shared McKinsey engineering tooling — carried into Case 2 and cut time-to-first-deployment for new use cases, even where little of the implementation transfers directly. Case 1 is a reference point for later teams to start from, rather than a blank page. The recent QuantumBlack <a href="https://medium.com/quantumblack/creating-a-future-proof-enterprise-agentic-platform-architecture-c21fc48406a5">platform architecture article</a> frames this as building for <em>composable and compostable</em> assembly: modular blocks that combine into complex systems and can be replaced without redesign. That is the bar that Case 2 is being built to meet.</p><p>There is a difference between building a single instance and building a capability. Under delivery pressure, AI teams usually do the former: ship, declare victory, start the next project. Codification asks for abstraction, time spent on assets that will not directly benefit the current engagement, and an honest retrospective about which parts of the last build were actually transferable and which were incidental. That last part is the hardest, because it asks the engineers who built something to argue against parts of it. It is easy to skip, yet it is the difference between a team that delivers projects and one that builds a capability the next program can stand on. Knowing <em>what</em> to codify comes from having shipped across industries and use cases more than once.</p><blockquote>The teams that ship turn reusable decisions into runnable scaffolds that later teams can clone and adapt.</blockquote><h4>7. Build business-led capability.</h4><p>To escape pilot purgatory, build AI as a capability that the business owns and runs, instead of a finished system handed over to it. Lesson 5 argued that domain experts, not engineers, should own prompts, evaluation criteria, and output validation; this lesson is about the operating model around them.</p><p>In the programs that scale, business and domain leaders take ownership of the product build, setting requirements, shaping and refining prompts, and validating successive versions of the output so that hard-won domain expertise is encoded in the system rather than approximated by engineers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EoVqt3aeJXNLkpVNvsJn7g.png" /><figcaption><strong>Figure 6 — Build business-led capability</strong>. The business owns the build. Business and domain experts co-own requirements, prompts, and validation. With AI literacy spread widely, the capability to run AI becomes the enterprise’s own rather than a vendor’s or a central lab’s.</figcaption></figure><p>Sustaining that at enterprise scale means investing in AI literacy across a broad base of business staff, so they can work shoulder-to-shoulder with technologists instead of lobbing requirements over a wall. In our experience this business–technology divide is where many programs quietly stall, and the organizations that succeed are dissolving it deliberately. The roles blend over time, and the capability to run AI becomes the enterprise’s own rather than a vendor’s or a central lab’s. This is the least engineering-centric of our lessons and, for that exact reason, the one most often left to chance.</p><blockquote>The teams that ship make AI a business-owned capability, not a system handed over by technologists or suppliers.</blockquote><h3>Why knowing what to do is not enough</h3><p>None of these seven lessons is a secret, and most technology leaders could read the list and nod. The lessons are facets of an integrated system, and each depends on the others, which is a point that <a href="https://www.mckinsey.com/featured-insights/mckinsey-on-books/rewired">Rewired</a> and <a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">State of AI</a> make at the strategic level. We restate them here, but from an engineering and delivery perspective.</p><p><strong>Workflow redesign</strong> needs executive sponsorship, which needs P&amp;L-linked KPIs, which need enough understanding of the workflow to know what to measure.</p><p><strong>Adoption</strong> depends on trust, which depends on owning the governance relationship, which depends on a production AI engineering skill set that goes beyond “has used LLMs.”</p><p><strong>Codification</strong> depends on having shipped enough to recognize what generalizes.</p><p>And underneath all of them sits <strong>business-led capability</strong>: the domain ownership and AI literacy that let an organization own this itself rather than depend on outside help.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQejJWt3NlhjeipmmQa4mw.png" /><figcaption><strong>Figure 7 — The seven lessons as one system, not a checklist</strong>. The lessons work as one interlocking system, not a checklist — a program can execute six of them well and still stall on the seventh.</figcaption></figure><p>The industry data broadly supports this, with some caveats. In McKinsey’s US-weighted <a href="https://www.mckinsey.com/capabilities/tech-and-ai/our-insights/superagency-in-the-workplace-empowering-people-to-unlock-ais-full-potential-at-work">Superagency in the workplace</a> survey (which includes 238 C-level executives), only one percent of C-suite respondents describe their gen AI rollouts as “mature” (fully integrated into workflows, driving substantial outcomes). Another striking number, albeit a US-heavy one based on self-reporting against an ambitious bar, comes from the global <a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">State of AI 2026</a> survey, which shows 44 percent of overall respondents scaling AI (up from 38 percent the previous year). Among organizations with over $1B+ in revenue, the share scaling agentic AI increased from 27 percent in 2025 to 40 percent in 2026.</p><p>Cost is a material part of why so few get there. Gartner’s <a href="https://www.gartner.com/en/newsroom/press-releases/2024-07-29-gartner-predicts-30-percent-of-generative-ai-projects-will-be-abandoned-after-proof-of-concept-by-end-of-2025">analysis of gen AI deployment approaches</a> puts deployment at US$5–20 million for business-model-innovation cases (a gen AI category, not an agentic-specific figure); we see comparable ranges by analogy, well above most pilot budgets. Outside the largest revenue tier, that shifts where the bar for “worth doing at scale” sits, and why staged investment with frequent value checkpoints matters.</p><p>The organizations we have seen escape pilot purgatory rarely do it with a single existing team on its own. They combine three things: an internal core that owns the AI agenda over time, external partners (whether consulting, hyperscaler, vendor, or open-source) who bring in patterns from other deployments, and an explicit plan for bringing the capability in-house as the program matures. The cost of learning by trial and error often dwarfs the cost of borrowing pattern recognition from outside. We support clients with <a href="https://medium.com/quantumblack/how-to-sustain-the-long-term-impact-of-ai-d5e4ab30d067">one version of that outside help</a>, but the broader claim does not depend on who supplies it.</p><h3>In summary</h3><p>This article explains the gap between AI’s promise and its production reality and why, more often than not, it comes down to delivery rather than to better models or newer frameworks. The seven lessons from teams that ship are as follows:</p><ul><li>Redesign the workflow alongside the model.</li><li>Measure in P&amp;L rather than accuracy.</li><li>Design for adoption.</li><li>Own the outcome end-to-end.</li><li>Staff for production AI engineering.</li><li>Codify and replicate.</li><li>Build business-led capability: the business owns the build, and AI literacy is spread across the organization.</li></ul><p>Agentic systems, which autonomously plan, use tools, and chain actions across workflows, stress every lesson above. And the bar is rising: the <a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">State of AI 2026</a> reports that 20 percent of respondents have now reached the point of scaling AI agents.</p><p>Workflow redesign now crosses system boundaries, ownership blurs across many models and tools, and a mistaken agent takes a bad action rather than just returning a bad answer. McKinsey’s “<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/seizing-the-agentic-ai-advantage">Seizing the agentic AI advantage</a>” frames that shift strategically and the QuantumBlack <a href="https://medium.com/quantumblack/creating-a-future-proof-enterprise-agentic-platform-architecture-c21fc48406a5">platform architecture piece</a> answers it architecturally. Case 2 is our attempt at the “dozens across an enterprise” version, and we expect to write more as it matures.</p><p>One fair pushback on the “AI is the easy part” framing is worth examining: AI is not <em>easy</em> in any absolute sense, because building, evaluating, and tuning modern models is hard, and the field moves quickly. What we mean is that <em>relative to</em> redesigning workflows, securing executive alignment, engineering for adoption, defending the architecture in governance, hardening for production, and codifying the result, the model-building part is the more solved element for most enterprise use cases. And that cross-functional work is growing more demanding, not less, as systems become more autonomous and deployments more interconnected — engineering many organizations have not had to do at this scope before.</p><p><strong>Are you interested in finding out more about what we’ve learned in McKinsey engagements? Leave us a comment or </strong><a href="https://www.mckinsey.com/capabilities/quantumblack/contact-us"><strong>reach out to us</strong></a><strong>, and follow this publication for further insights, deep-dives, and case-studies.</strong></p><p><em>This article was written by </em><a href="https://www.linkedin.com/in/james-mortemore/"><em>James Mortemore</em></a><em> with contributions from </em><a href="https://www.linkedin.com/in/subu-narayanan/"><em>Subu Narayanan</em></a><em>. It was edited by </em><a href="https://www.linkedin.com/in/jostichbury/"><em>Jo Stichbury</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1216d30ec4d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/escaping-ai-pilot-purgatory-from-poc-to-p-l-1216d30ec4d0">Escaping AI Pilot Purgatory: From POC to P&amp;L</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Value : The growing AI operations challenge]]></title>
            <link>https://medium.com/quantumblack/ai-value-the-growing-ai-operations-challenge-ca8621aa245c?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/ca8621aa245c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 13:48:56 GMT</pubDate>
            <atom:updated>2026-08-14T13:48:55.640Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI value: The growing AI operations challenge</h3><h4>You’re using AI in production. What keeps it delivering value?</h4><p>AI projects are successful only if they keep working after they are deployed.</p><p>It may sound obvious, but one of the persistent obstacles to realizing value from AI implementation is a tendency to treat its deployment as a finish line, not a starting point. Organizations often invest heavily up front in AI systems, and then expect the same teams and processes that built and launched them to keep them running, if they invest in this stage at all. But running AI solutions reliably, at scale, with maintainable systems and predictable outcomes is a specialized discipline which requires its own expertise, processes, operational cadences, and technology.</p><p>To consider what this looks like in practice, imagine an insurer deploying a hybrid workforce with AI agents working alongside humans. The AI handles most customer calls through generated voice and an agentic workflow that decides claim validity, payout, and messaging. At launch, everything looks promising. But then a customer complains that the agent was rude. Another cannot reach the helpdesk. Another receives a payout ten times higher than expected. Another is denied despite a clearly valid contract.</p><p>This is the point where hard questions arise. Who or what gets alerted? How much business value is at risk? How do you diagnose root causes across the model, tools, data, and workflows? How do you detect issues before they affect customers? Failure to address these questions leads to problematic issues for the organization, such as reputational risk and customers losing trust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TDXv7S8FZLzRpJl82HHwUA.jpeg" /><figcaption>Live AI Operations (LiveOps) is designed to ensure AI continues to deliver value.</figcaption></figure><p>In agentic systems, the blast radius expands because the system acts autonomously, not just predictively. Many of the most common failure modes may not even show up in demos or test environments. Examples include:</p><ul><li>tools breaking when upstream APIs change</li><li>retrievals that miss critical context as data evolves</li><li>performance degrading as models and workloads evolve</li><li>policy violations that surface in edge cases</li><li>spiking costs as usage patterns shift or platforms refresh pricing</li><li>growing latency as workflows become more complex</li></ul><p>These are the problems that <strong>Live AI Operations (LiveOps)</strong> is designed to solve. LiveOps, developed by QuantumBlack, AI by McKinsey, is an end-to-end AI operations capability that comprises a set of practices to ensurethat AI continues to deliver value in production. The “end-to-end” scope of LiveOps means that it considers all aspects of operating AI <strong><em>post</em>-<em>deployment</em></strong>, with the wide range of actions it drives, including:</p><ul><li>AI performance management and value realization</li><li>monitoring and observability for quality, drift, cost, latency, safety, and business outcomes</li><li>governance, risk management, and human oversight where needed</li><li>production hardening and readiness</li><li>incident response and triage</li><li>remediation through hotfixes, prompt and workflow updates, retraining, model upgrades, and rollback</li><li>controlled model upgrades with change and release management</li><li>knowledge continuity through runbooks and decision records</li></ul><p><strong>Put simply, LiveOps transforms a one-time AI deployment into a dependable, long-term service, with clear accountability for how it operates and a reliable path to recovery when things go wrong, while freeing up developer capacity to focus on delivering new product releases on time.</strong></p><h3>AI systems will degrade without AI operations in place</h3><p>Even the best-performing AI system will degrade after launch. They may do so quietly over time, or loudly and abruptly, in some cases almost immediately after being deployed. Performance often degrades through small changes that accumulate: data shifts, new edge cases, outdated evaluations, rising costs, and declining response quality. When degradation is abrupt, value can fall off a cliff, for example, due to a sudden, significant shift in data due to a major event or change in operating conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DiGKaUyGEookb6Y8DiRKsQ.png" /><figcaption>LiveOps is critical to sustaining value over time.</figcaption></figure><p>Beyond the technical impact, degradation erodes trust. Users see inconsistent results and revert to old workflows, while stakeholders lose confidence as business value fades. Without an operations discipline in place, teams can end up stuck in a pattern of repeatedly patching systems to try to achieve their original value goal instead of continuously improving them and realizing further value.</p><h3>Relying on AI builders to handle operations only goes so far</h3><p>Without LiveOps, your best developers can quickly become full-time firefighters, while users lose confidence and scaling hits a ceiling fast.</p><p>Agentic AI makes this even harder. Teams can easily get pulled into unstructured data cleanup, prompt and workflow tuning, fixing tool chain breakages, and repeated validation of what agents are allowed to do. That work is not optional if the organization expects stable performance and responsible AI use in production. The fact that agentic capabilities can be implemented so quickly can also put pressure on teams to speed up release times, often at the cost of stability and without sufficient consideration of the true business value added.</p><h3>Gen AI and agentic workflows raise the stakes</h3><p>As AI systems shift from providing model predictions to delivering automated decisions and agentic actions, the number of moving parts compounds. Retrieval, tools, workflows, voice, policies, and external APIs are all needed, and all create more failure modes. Personalization and context open up new kinds of risk exposure related to privacy, bias, safety, and reputation.</p><p>When organizations struggle to achieve AI impact at scale, it can often be traced to the gap between what was working in a single pilot compared to what is needed for a sustainable system to run at scale. In production, small changes can have outsized, compounding effects, as systems drift from the conditions under which they were validated.</p><p>A number of pressure points commonly show up in production across the full AI stack:</p><ul><li><strong>Agentic AI systems can behave unpredictably</strong> as prompts, tools, models, and context evolve. Unstructured data introduces inconsistencies and bias that drive downstream mistakes and create operational drag.</li><li>Maintaining quality, managing latency, optimising costs, and achieving reliability becomes an <strong>ongoing operational challenge</strong>.</li><li>Even when the technology performs well, poor change management can <strong>slow user adoption and limit business impact</strong>.</li><li><strong>Organizations need the right skills in place</strong> to operate and troubleshoot complex, ever-evolving technologies. Human intervention in tandem with tools and agents remains essential to delivering consistently good output.</li><li>When new privacy, fairness, and security risks arise, <strong>ethical and regulatory considerations can suddenly become paramount</strong>.</li></ul><h3>The QuantumBlack LiveOps approach</h3><p><a href="https://www.mckinsey.com/capabilities/quantumblack/how-we-help-clients">QuantumBlack, AI by McKinsey</a>, has made advances in this space for years, working with clients across industries and organizations of all sizes to sustain AI value. We’ve developed the frameworks and tooling that makes AI value sustainable and scalable.</p><p>Our LiveOps framework is designed as a multi-phase operations approach that overlays on the existing well-established AI lifecycle of <strong>Build and Launch → Operate → Maintain and Improve.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jESPSDeyC_zI4ODE7G9jdg.png" /><figcaption>Prioritizing AI operations requirements at every stage, including <em>pre</em>-deployment, is critical.</figcaption></figure><p>During the <strong>Build and Launch</strong> stage, LiveOps requirements such as scalability and reliability are considered from the start, along with a clear set of readiness validation checks prior to models, agents, and/or workflows being deployed to production.</p><p>During the <strong>Operate</strong> stage, the AI workflow is triggered and runs to produce an output. This is validated from a technical and business perspective (e.g., validation rules, guardrails, evaluations, key performance indicators). Ongoing monitoring with logging and observability is essential for tracking AI performance, costs, and overall business value and surfacing issues which may risk value. User feedback is vital at this stage to understand AI performance and impact and identify areas to fix or improve.</p><p>During the <strong>Maintain and Improve </strong>stage, interventions are implemented to address issues detected during the operate stage and enhancements are delivered to increase value.</p><h3>Four critical operations elements to get right from the start</h3><p>To effectively deliver on AI operations goals, it’s critical to start early on before the solution is live. Doing so means focusing on four key elements throughout the lifecycle, starting during the Build phase.</p><p><em>For each element, we’ve provided a brief example from a recent project with a large-scale enterprise client, working to maintain their Gen AI-driven solution, followed by key takeaways.</em></p><h4><strong>1. Evaluations</strong></h4><p>Automated, systematic performance assessments across development, deployment, and post-production; golden datasets; user feedback</p><p><em>Example:</em> <em>We found it was vital to set up a clear process for gathering user feedback and to share this as part of onboarding. Feedback from user evaluations was then applied directly to prompts during finetuning.</em></p><p><strong>Takeaway</strong>: <strong>Setting user feedback loops early ensures feedback can be captured and used from day one.</strong></p><h4><strong>2.</strong> <strong>Architecture, scalability, and tooling</strong></h4><p>Token limits; disaster recovery; client tech-stack compatibility</p><p><em>Example:</em> <em>We had to scale existing functionality as adoption increased, taking into account tool and plugin constraints which could have required architectural changes. An increase in users brought in more perspectives on the best way to show outputs, leading to further prompt refinement.</em></p><p><strong>Takeaway:</strong> <strong>When selecting an architecture, take future scale into consideration and plan accordingly.</strong></p><h4><strong>3.</strong> <strong>Observability</strong></h4><p>Logging across all layers; tracking both solution performance and business impact (FinOps)</p><p><em>Example:</em> <em>We used a ‘single pane of glass’ monitoring view to track key metrics, including cost-related business KPIs, failed responses in the application, and query response/load times. This monitoring triggered interventions such as refactoring and architectural improvements.</em></p><p><strong>Takeaway:</strong> <strong>Identify early what will need monitoring and tracking, so that logging and observability requirements can be built for from the outset.</strong></p><h4><strong>4.</strong> <strong>Model changes and reliability</strong></h4><p>Multi-model strategy; planning for model drift and provider updates; primary/secondary model fallback</p><p><em>Example: We faced issues related to LLM outages that required adopting a multi-agent setup, with a secondary LLM to fall back on. Data drift validation enabled us to identify issues through alerts and address them before the pipeline ran, avoiding any impact for business users.</em></p><p><strong>Takeaway: Plan for LLM availability issues, and decide in advance how to catch problems fast enough to prevent them from impacting business users.</strong></p><p>All elements are relevant throughout the lifecycle, although some assume greater prominence in certain phases. For example, observability is most critical in the Operate stage, while model changes and reliability take a central position in the Maintain and Improve stage.</p><p>In practice, there are other aspects that require attention, including continuous checks and regression tests, intelligent alerting and routing, automated diagnostics, runbook guidance, and evidence capture for audits and governance. Automation reduces manual effort in the highest volume operational tasks and helps teams respond consistently. Agentic support can help triage drift, watch cost and latency, enforce evaluation gates, capture incident context, and guide responders through runbooks.</p><p>Following this approach enables a highly streamlined, tech-enabled operations process to run AI at scale in production, with expert operations input applied as needed, shortening the time from issue detection to resolution by making diagnostics and response more precise and repeatable.</p><h3>Summary</h3><p>AI value can erode after launch, and with it, the trust users have in it. Teams can quickly find themselves consumed by reactive fixes as they deal with changes, outages, degraded outputs, stakeholder disappointment, and falling adoption.</p><p>LiveOps is the AI operations discipline that keeps AI delivering value after launch through monitoring, observability, incident response, change control, and capability building. Gen AI and agentic AI can provide tremendous value, but they also bring new operating challenges such as higher inherent inaccuracy risk, reliability edge cases, higher operating costs, and more end-to-end complexity.</p><p>QuantumBlack, AI by McKinsey, brings expertise and insights developed while operating AI solutions across industries, and have the people, processes, and tools needed to sustain and scale ML, gen AI and agentic solutions end-to-end. Our aim is to help clients maximize the value of their AI solutions over time by enhancing their AI operations capabilities, bridging skillset gaps at launch, reducing adoption risk with production-ready AI solutions, and offering clients access to our latest innovative products for AI operations, built based on our learnings to-date</p><p>By assessing AI production-readiness, defining the necessary operating workflows, and standing up the right teams, technologies, and processes, we can ensure that your implementation delivers sustained value over time. If you are launching or scaling ML, Gen AI or agentic AI solutions in production, we can help. <a href="https://www.mckinsey.com/capabilities/quantumblack/contact-us"><strong>Reach out to us to learn more</strong></a><strong>, and follow this publication for further insights, deep-dives, and case-studies.</strong></p><p><em>Authored by </em><a href="https://www.linkedin.com/in/andrew-ferris-172a221/"><em>Andrew Ferris</em></a><em>, </em><a href="https://www.linkedin.com/in/katesoliman/"><em>Kate Soliman</em></a><em>, </em><a href="https://www.linkedin.com/in/parmeet-kumar-2414a666/"><em>Parmeet Kumar</em></a><em> and </em><a href="https://www.linkedin.com/in/brucephilp/"><em>Bruce Philp</em></a><em>. Edited by </em><a href="https://www.linkedin.com/in/carl-alviani/"><em>Carl Alviani</em></a><em>, </em><a href="https://www.linkedin.com/in/alexandraquinnbokser/"><em>Alexandra Quinn</em></a><em> and </em><a href="https://www.linkedin.com/in/jostichbury/"><em>Jo Stichbury</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca8621aa245c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/ai-value-the-growing-ai-operations-challenge-ca8621aa245c">AI Value : The growing AI operations challenge</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart contracts for AI agents]]></title>
            <link>https://medium.com/quantumblack/smart-contracts-for-ai-agents-6122e0c7e2f3?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/6122e0c7e2f3</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 09:35:33 GMT</pubDate>
            <atom:updated>2026-08-05T00:55:58.799Z</atom:updated>
            <content:encoded><![CDATA[<h4>From centralized platforms to distributed control planes</h4><p>As AI agents move out of the realm of experimentation and into core enterprise workflows, the question of how to govern them effectively becomes critical. Companies are deploying agents across teams and runtime environments, making software delivery, customer operations, risk management, and other workflows more productive and efficient. But as deployments expand, the concern shifts from how to build capable agents to how to govern them consistently at scale.</p><p>The primary challenge is fragmentation. Teams are constantly evaluating new solutions, deciding what to adopt and what to replace, and this tends to make the underlying solution stacks transient and heterogeneous, with agents operating under different governance policies and monitoring practices. A cobbled-together approach of this sort can work with a dozen agents, but becomes harder to sustain with a hundred or more. As agents gain access to enterprise workflows, sensitive data, and operational decision-making, regulatory scrutiny compounds, making the issue even more urgent.</p><p>In our work developing <a href="https://medium.com/quantumblack/how-we-enabled-agents-at-scale-in-the-enterprise-with-the-agentic-ai-mesh-architecture-baf4290daf48">Agentic AI Mesh</a> architecture, we have found a way to address this challenge using a distributed governance model that equips each agent with an identity and compliance framework. Using a standard open specification that represents the agentic harness, we created <strong>smart contracts</strong> that embed governance within each agent. At runtime, these contracts can power an agentic service mesh that runs alongside the main agent, monitoring and evaluating its behavior, and enforcing policy and guardrails. This is one approach among several: centralized control planes and framework-native governance are others, and each has different tradeoffs. What follows is the path we took and what we learned from it.</p><h3>The governance gaps that prevent agentic AI from scaling</h3><p>Unless explicit steps are taken to prevent it, fragmentation tends to set in as enterprises scale up agent deployment. This manifests in several ways:</p><ul><li>At the <strong>configuration </strong>layer, different frameworks are applied, each with its own proprietary schemas, runtime abstractions, and orchestration patterns. This leads to a <strong>lack of standardization.</strong></li><li>At the <strong>operational</strong> layer, guardrails are developed on an ad-hoc basis, often embedded directly into individual applications rather than managed through reusable governance layers. This limits <strong>runtime control.</strong></li><li>At the <strong>validation</strong> layer, evaluation and quality assurance controls are often implemented late in the process, frequently in reaction to observed misbehaviors in production. This relegates validation to a reactive process, rather than a <strong>predictive, pre-deployment</strong> one.</li><li>Combined, these gaps make frameworks and orchestration models difficult to transfer efficiently, leading to <strong>lock-in</strong> that can slow enterprise-wide scaling efforts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UvC5v7EcmyOOZ4Hr.jpeg" /><figcaption>Figure 1: Four governance gaps prevent agentic AI from scaling in regulated enterprises. Each gap is solvable individually, but only an embedded contract closes all four together.</figcaption></figure><p>In our experience, building governance in rather than bolting it on has held up better as deployments grow. When built into the agentic architecture, governance can actually accelerate scaling and innovation by:</p><ul><li>preventing operational inconsistencies</li><li>making agents more modular and reusable</li><li>reducing the cost of migrating to better solutions as technology evolves</li></ul><h3>Towards built-in agentic governance using smart contracts</h3><p>In modern microservices environments, a service mesh separates operational concerns (security, observability, resiliency, policy enforcement) from application logic itself. We applied a similar architectural principle to our AI agents, introducing a sidecar proxy that operates alongside each agent at runtime. The proxy was responsible for enforcing governance policies, validating runtime behavior on sample traces, monitoring execution, maintaining auditability, and metering guardrails independently of the orchestration framework.</p><p>Under this model, the smart contract and sidecar create a built-in distributed governance layer that can operate across different environments. This approach offers several advantages over traditional centralized control models:</p><ul><li>governance becomes attached to the agent, making it self-auditable, rather than tied exclusively to the platform</li><li>runtime validation and policy enforcement remain consistent even when orchestration frameworks change</li><li>operational controls became built-in across the lifecycle especially as part of the CI/CD pipelines as well as probed within live environments</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QyahuiiO1ZEE7URkB2lKyQ.jpeg" /><figcaption>Figure 2: From siloed deployments with an external control plane to the Agentic Service Mesh with embedded sidecar proxies.</figcaption></figure><p>The practical shift is from an external control plane that governs agents from the outside to an embedded control plane that travels with each agent. That is what contributed to make our agents more self-standing, reusable, and auditable across use cases, building trust at the level of the individual agent.</p><h3>The smart contract defines. The sidecar enforces.</h3><p>The smart contract represents the agentic harness manifest, carrying the agent’s identity, model choices, tools, memory, guardrails, evaluation rules, observability controls, compliance expectations, and runtime requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vcOiQp1TKFM6RePk.jpeg" /><figcaption>Figure 3: Governance becomes embedded and enforceable at the agent level across all its components.</figcaption></figure><p>Based on this, the agent sidecar proxy:</p><ul><li>continuously enforces or verifies agent behavior against the harness manifest.</li><li>operationalizes these controls during execution by validating approved models and tools’ use, alerting or enforcing permissions and policies, monitoring runtime behavior, and triggering human-in-the-loop requests.</li><li>runs evaluations on a sample of production traces, manages authentication, exports audit evidence, and eventually detects or escalates contract violations.</li><li>operates as a deterministic enforcement layer, evaluating runtime behavior against the declared contract and executing predefined actions such as allow, block, throttle, log, or escalate</li></ul><p>We also used the sidecar in an agentic mode, in which it selectively invoked evaluators to assess behaviors that are difficult to capture through static rules alone. For example, a local evaluator or lightweight LLM-as-a-judge reviewed a configurable sample of interactions (e.g., five percent of traffic) and helped flag cases where observed behavior appeared to deviate from the declared contract.</p><blockquote><strong><em>Case Example:</em></strong><em> </em>A leading technology provider has deployed reliable, reusable agents to large government entities, intending them to scale rapidly across administrative workloads, citizen facing workflows, risk reporting, and software development. As part of this effort, the team decides to direct some of the traffic to a local LLM to ensure data residency without needing a full platform to monitor and control the agent.</blockquote><blockquote>Applying a Story Grooming agent, they move several capabilities previously embedded in the application — including model configuration, prompts, tool definitions, and operational controls — into a declarative smart contract. The team can then isolate and tailor the agent, optimizing it on a smaller self-hosted LLM focused on specialized tasks that don’t require hyperscaler models. With roughly 15% of traffic routed locally, the team can restrict data residency on some part of the SDLC flow within built-in metrics and evaluations to ensure that the agent behaves as expected.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4F9tco3wnVSeYu_J.jpeg" /><figcaption>Figure 4: An example of manifest used as the unit of governance, versioning and deployment. The same eight dimensions used in the sidecar enforcer and the inner ring are made tangible here as code.</figcaption></figure><h3>​Five principles for operating at scale</h3><p>This architecture builds on principles introduced in our earlier work on the <a href="https://medium.com/quantumblack/how-we-enabled-agents-at-scale-in-the-enterprise-with-the-agentic-ai-mesh-architecture-baf4290daf48">Agentic AI Mesh</a>, extending them through Smart Contracts for AI Agents and portable runtime enforcement. Five core principles inherited from the original Agentic AI Mesh hold this architecture together — and each one directly addresses a scaling bottleneck:</p><ul><li><strong>Composability</strong> means that any agent, regardless of framework or runtime, can be introspected and discovered in a trust network without requiring system-wide rework.</li><li><strong>Distributed intelligence</strong> lets tasks be decomposed and resolved by networks of cooperating agents, each with compliance baked in. Instead of a single monolithic orchestrator, we use a web of capable, governed agents collaborating at the task level, with each sidecar ensuring its agent stays within declared boundaries.</li><li><strong>Layered decoupling</strong> separates an agent’s logic, memory, orchestration, and interface functions into declared layers, maximizing both modularity and portability. When one layer needs to change because of a new model, a different memory backend, or an updated set of tools, the rest stays untouched.</li><li><strong>Vendor neutrality</strong> means every agent can be re-targeted to any framework, updated or replaced as the technology evolves, without locking you into a single vendor’s ecosystem. The same manifest that defines an agent for a framework can generate runnable code to another one.</li><li><strong>Governed autonomy</strong> keeps agent behavior proactively controlled through embedded policies, evaluations suite and idempotent escalation mechanisms. Agents operate with significant freedom, but within boundaries that are declared in the manifest, enforced by the sidecar policy engine, and auditable — even across heterogeneous runtimes.</li></ul><blockquote><strong><em>Case Example:</em></strong> A Telecom player is embarking on a full agentic transformation journey where agentic workloads are expected to span multiple cloud providers and runtimes. The organization opts for a distributed governance architecture, with the objective of increasing the governance coverage from 10% to +80%, where each agent will be attached with a side agent mesh proxy to enforce required policies and report to a central agentic governance plane.</blockquote><h3>The SCO framework</h3><p>This approach does carry overhead: organizations take on sidecar infrastructure, policy consistency, and governance ownership across teams. To support that, we used a Shape-Control-Operate (SCO) framework:</p><ul><li><strong>Shape:</strong> During the shaping phase, organizations define the operational characteristics of the agent: model selection, tool configuration, prompts, memory architecture, evaluation criteria, and API interfaces. This is also the phase when security and governance controls are introduced, including policy definitions, access restrictions, PII safeguards, and prompt injection protections.</li><li><strong>Control:</strong> The control phase focuses on validation and auditability. Schema validation, runtime health checks, evaluation scoring, and compliance testing help ensure that agents meet operational and governance requirements before deployment. This phase can also support alignment against emerging regulatory and security standards, including internal governance baselines and external frameworks.</li><li><strong>Operate:</strong> Once deployed, the operating phase focuses on runtime reconciliation and continuous monitoring. The system evaluates whether deployed agents continue to align with their declared specifications, policies, and operational constraints. Drift detection, runtime monitoring, audit logging, and policy enforcement remain active throughout execution.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mlN_2KjXhqklRKwz.jpeg" /><figcaption>Figure 5: Transition from centralized orchestration toward distributed governance and runtime enforcement</figcaption></figure><p>Model choices, memory boundaries, tool permissions, evaluation standards, runtime policies and escalation rules are declared during the design stage, rather than discovered after deployment. Together, these lifecycle stages establish a continuous governance loop capable of evolving alongside the agent ecosystem itself.</p><h3>Summary</h3><p>The enterprise agentic AI landscape is still evolving rapidly. Frameworks, orchestration models, and deployment patterns are likely to change significantly over the coming years. The governance challenge, though, looks structural rather than temporary. Centralized platform models give strong integrated controls but introduce ecosystem dependency. Many frameworks maximize flexibility but leave governance responsibilities fragmented across teams and implementations.</p><p>We observed that built-in governance provides a practical tradeoff that also fits, when necessary, with a central platform governance. The broader implication is that enterprise AI governance starts to look like modern distributed systems of governance, with portable governance layers that enforce policies consistently across changing runtime environments.</p><p><a href="https://www.mckinsey.com/capabilities/quantumblack/contact-us"><strong><em>Reach out to us to learn more</em></strong></a><strong><em>, and follow </em></strong><a href="https://medium.com/quantumblack"><strong><em>this publication</em></strong></a><strong><em> for further insights, deep-dives, and case-studies about enterprise-grade agentic AI.</em></strong></p><p><em>This article was authored by </em><a href="https://www.linkedin.com/in/sallah-k/"><em>Sallah Kokaina</em></a><em>, </em><a href="https://www.linkedin.com/in/ali-ustun-2a99a54/"><em>Ali Ustun</em></a><em>, </em><a href="https://www.linkedin.com/in/tomisherwood/"><em>Tom Isherwood</em></a><em>, </em><a href="https://www.linkedin.com/in/gsorrentino1987/"><em>Giuseppe Sorrentino</em></a><em>, </em><a href="https://www.linkedin.com/in/jalajsingh11/"><em>Jalaj Singh</em></a><em>, </em><a href="https://www.linkedin.com/in/samarth0174/"><em>Samarth Gupta</em></a><em>, and </em><a href="https://www.linkedin.com/in/prakharmathur21/"><em>Prakhar Mathur</em></a><em>. The editor was </em><a href="https://www.linkedin.com/in/carl-alviani/"><em>Carl Alviani</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6122e0c7e2f3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/smart-contracts-for-ai-agents-6122e0c7e2f3">Smart contracts for AI agents</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agent skills turn human expertise into AI advantage]]></title>
            <link>https://medium.com/quantumblack/agent-skills-turn-human-expertise-into-ai-advantage-743d3d4c0c60?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/743d3d4c0c60</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 08:34:18 GMT</pubDate>
            <atom:updated>2026-06-09T11:09:47.109Z</atom:updated>
            <content:encoded><![CDATA[<h4>Four agent skills for banking that cut compliance review time</h4><p>As any powerful new technology goes through its adoption curve, there arrives a moment when the technology itself stops being the differentiator. With cloud computing, it happened when AWS made world-class infrastructure available to everyone, <a href="https://www.mckinsey.com/capabilities/tech-and-ai/our-insights/cloud-adoption-to-accelerate-it-modernization">shifting the advantage</a> from those who could access high-quality infrastructure to those who knew what to do with it. A similar drama played out with databases, with mobile platforms, and with SaaS.</p><p>Now it’s happening with AI. As foundation models gradually converge in capability, the gap between best and second-best LLM is narrowing toward irrelevance. Tooling is standardizing as well, with agents that required months to deploy now running in days. Our experience suggests that a technical edge that was meaningful 18 months ago can often <a href="https://www.mckinsey.com/capabilities/strategy-and-corporate-finance/our-insights/where-ai-will-create-value-and-where-it-wont">now be considered merely table stakes</a>.</p><p>Despite this convergence, we’re still seeing wildly different outcomes between organizations as they deploy AI. They may all be using frontier models, employing skilled people, and staying on top of the dizzying pace of new tool releases, yet the value they realize varies. Some are achieving outcomes that compound over time: faster decisions, more consistent outputs, and workflows that improve as they scale. Many more, though, are seeing their early productivity gains plateau.</p><p>The organizations pulling ahead are not, by and large, the ones that have deployed the fastest or spent the most on infrastructure. They’re the ones that have figured out what to put inside the agents. Prompt quality is a part of this, as is knowing how to manage context windows. But for many organizations, a key differentiator is the ability to encode existing expertise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMpTlG4GaRj6LbdFe2y9fA.png" /><figcaption>Structuring human knowledge into executable AI skills drives successful transformation.</figcaption></figure><h3>The encoded knowledge problem predates AI</h3><p>Most organizations know what “good” looks like within their category. If they’re competitive, they’ve spent years defining best practices, documenting their processes, and accumulating experience. However, many struggle to consistently apply this knowledge at the point of execution, especially as they scale up.</p><p>Sometimes this is because teams are too siloed, causing them to interpret guidance differently. Sometimes it’s because they’re repeatedly rethinking solved problems, just for the sake of doing something. Failure to codify knowledge, however it manifests, is a familiar problem.</p><p>For a long time, organizational knowledge was primarily <strong>tacit</strong>, living in the judgment and experience of individuals. This kind of knowledge is powerful, but nearly impossible to scale: if a senior analyst leaves, their methodology often leaves with them.</p><p>The shift toward <strong>explicit knowledge</strong> such as documents, playbooks, and standard operating procedures has made knowledge easier to share, but not necessarily easier to apply. These are all artifacts, which rely on human interpretation, and thus introduce variability at the point of use. A playbook may describe a process, but whether that process is followed depends on leadership, organizational culture, and individual initiative.</p><p>Software brought <strong>encoded knowledge</strong> that could be embedded into systems and made executable and repeatable. This is far more reliable but comes with trade-offs. Encoding knowledge in software means translating human expertise into technical formats, which tends to distance it from the domain experts who understood it best, making change slower and more expensive.</p><p>Each of these steps improves access to organizational knowledge and makes reuse easier, but none have fully solved the application problem.</p><h3>Agent Skills: the executable expertise layer</h3><p>With the arrival of AI, we’re now seeing the value of <strong>agent skills</strong>, a more structured approach to encoded knowledge.</p><p>In this context, a skill is a set of instructions that define how a task should be done, packaged in a reusable, versioned format. Skills enable organizations to capture procedures, constraints, contextual knowledge, and evaluation criteria across workflows, in a way that AI agents can consistently apply instead of inferring individual prompts.</p><p>Having access to skills shifts an agent role from one of reasoning and execution to something more like orchestration. It can now interpret intent and then invoke the appropriate skill, ensuring that its execution follows a defined, repeatable pattern. The result is a system that is not only more efficient, but significantly more reliable.</p><p>Crucially, however, skills need the context of the situation they’re operating within. For example, in a software development life cycle, this context might include repositories, architecture decision records, or architecture diagrams. In the broader architecture of agentic systems, skills are just one of several “context assets” that shape how agents behave, reason, and execute. Applying feedback to the right asset is critical. Skills must work in concert with system prompts, knowledge, handoff templates, tools, and memory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WD8LPmUey7hsbOi7.jpeg" /><figcaption>AI agents operate by combining skills, prompts, and tools</figcaption></figure><p>Three current shifts are making the skills-based model viable:</p><ul><li><strong>Converging foundation models</strong> are <strong>elevating </strong>the value of embedded knowledge over reasoning power.</li><li><strong>Natural language interaction</strong> is making powerful processing tools directly available to subject matter experts.</li><li><strong>Skills can be defined and refined largely by experts themselves</strong>, allowing knowledge to be encoded directly.</li></ul><p>In regulated industries like banking and life sciences, skills offer the crucial additional benefit of <strong>traceability</strong>. With methodology encoded into a versioned, auditable format, the actions of agents leave auditable compliance trails, in sharp contrast to the often opaque workings of systems based on prompts alone. When a regulator asks how a conclusion was reached, the answer is largely summarized in the skill version that governed the workflow, rather than being reconstructed from memory.</p><h3>How do skills work?</h3><p>A skill is a structured knowledge document that encodes expert methodology, compliance requirements, and quality standards into a reusable, versioned format. Neither a prompt nor code, it is an explicit specification of how work should be done, written in natural language that agents read and execute at runtime. <strong>Note that as an AI-assisted workflow, skills support compliance activities. They do not replace legal, regulatory, or human review requirements.</strong></p><p>This sample file (anonymized) shows how a typical skill is structured:</p><pre>---<br>name: compliance-due-diligence-methodology<br>version: 1.2.0<br>domain: AML-KYC<br>regulatory-framework: EU-AMLD5 &lt;-- Example<br>requires-skills: []<br>---<br><br>## 4-Step Due Diligence Research Process<br><br>### Step 1: Check internal policy documents<br>Objective: Understand regulatory requirements before analysis begins.<br>Tools: policy-lookup, grep-policy<br><br>### Step 2: Review existing analysis reports<br>Objective: Identify prior conclusions with evidence citations.<br>⚠️ Do not stop here — proceed to Step 3 for independent verification.<br><br>### Step 3: Deep dive into source documents<br>Objective: Extract direct evidence from original filings with page numbers.<br>Tools: pdf-extract-vision, pdf-keyword-search<br><br>### Step 4: Web research for current information<br>Objective: Verify current status; filed documents may be outdated.<br>Tools: web-research, perplexity-search<br>⚠️ This step is mandatory, not optional.</pre><p>Skills sit between the agent and the domain rather than the agent and the model. The model provides reasoning capability, while the skill provides the expertise layer that makes that reasoning consistent and auditable. Multiple skills can be composed: an agent reads a methodology skill, a validation skill, and a reporting skill, and each governs a different dimension of its behavior.</p><p>Skills are stored in version control alongside the codebase, with a changelog that documents every modification. When regulations are updated, the relevant skill is updated, reviewed, and redeployed. And because they are written in natural language, this process often takes just hours, not the weeks or months typically required for code changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lR8u3PUmRvh2JVmM.jpeg" /><figcaption>Competitive advantage is shifting from agents and platforms to codified expertise</figcaption></figure><h3>Skills-based AI in banking: Four agent skills that can halve compliance review time</h3><p>The combination of reliability, efficiency, and traceability afforded by skills-based AI brings value to any industry, but its impact is especially pronounced in banking. The need for regulation and compliance in banking is absolute; without it, the trust required to complete transactions is undermined, which affects the sector’s entire value proposition.</p><p>Every compliance decision in banking comes with a paper trail: beneficial ownership declarations, corporate registry extracts, annual reports, sanctions screening results, among countless other records. A single customer due diligence case can touch dozens of documents across multiple jurisdictions, and every conclusion must be traceable, defensible, and aligned with current regulation.</p><p>For years, compliance teams have had two tools for making sense of this complexity.</p><ul><li><strong>Rule-based systems </strong>bring consistency, but break down when faced with messy data or changes in regulation.</li><li><strong>Hard-coded logic </strong>offers predictability, but cannot process a narrative filing, and takes months to update when a threshold shifts.</li></ul><p>Large language models brought flexibility but introduced several new problems: outputs that varied from case by case, no systematic audit trail, and a tendency to hallucinate the very thresholds they were meant to enforce.</p><p>Neither traditional approaches nor LLMs encode the expertise of analysts. In the traditional approach, this expertise rested with the analysts and not the infrastructure, while LLM approaches seek to simulate that expertise but often fail. The structured reasoning, evidence hierarchy, and quality checks that analysts use to turn a pile of documents into a defensible decision are the bedrock on which compliance relies.</p><p>AI skills offer a third way that explicitly encodes expertise in a way that experts themselves can review, approve, and update, producing reusable assets that are incorporated directly into agent workflows. Applied to banking compliance, skills transform the process into something deterministic and auditable.</p><p>In our work with the banking sector, we have developed and refined a variety of skills, and identified four that have a dramatic impact on the quality of the banking compliance workflow. When implemented together, their benefit is undeniable:</p><ul><li><strong>An order-of-magnitude reduction</strong> in policy violation errors through guardrail skills.</li><li><strong>Significant improvement</strong> in first-pass report quality via structured methodology skills.</li><li><strong>100 percent audit trail</strong> coverage with evidence-based reasoning.</li></ul><p>Below we’ll describe the skills that drove these results and explain the design principles behind them.</p><h3>The four skills that changed the workflow</h3><h4>Skill 1: Research methodology</h4><p>This foundational skill, shown in the example above, defines the four-step due diligence process and makes each step mandatory with explicit tooling requirements. It also introduces an evidence confidence framework, where every finding is rated HIGH (multiple independent sources), MEDIUM (single authoritative source), LOW (indirect inference), or N/A (cannot determine). This forces analysts to quantify the strength of their conclusions rather than simply assert them.</p><p>After introducing this skill, the majority of cases completed all four steps, and human evaluators reported more than a two-fold improvement in the evidence quality.</p><h4>Skill 2: Policy validation guardrails</h4><p>The second skill acts as a quality gate between workflow stages. Rather than checking outputs at the end, it validates them before each subsequent step, blocking non-compliant work from progressing. It covers four validation layers:</p><ul><li><strong>data integrity:</strong> required fields, type validation, cross-field consistency.</li><li><strong>business logic: </strong>beneficial ownership threshold calculations, indirect ownership chain multiplication.</li><li><strong>policy compliance: </strong>documentation requirements by risk level.</li><li><strong>output quality: </strong>report structure, citation format, professional language standards.</li></ul><p>Critically, when validation fails, the skill generates specific remediation guidance instead of simply flagging the error. For example:</p><p><em>“Indirect ownership for John Doe: calculated as 20 percent but should be 30 percent. Chain: John (60 percent of CompanyB) → CompanyB (50 percent of Target) = 0.60 × 0.50 = 30 percent.”</em></p><p>Before implementing this skill, a significant portion of reports required late-stage rework due to policy violations. Applying the skill reduced the rework rate to the point of virtually eliminating the manual review burden, allowing analysts to reclaim almost half of their workweek for higher-value tasks.</p><h4>Skill 3: Report writing quality</h4><p>The third skill defines the exact structure every compliance report must follow:</p><ul><li>nine mandatory sections in a fixed order.</li><li>a target length of 250–400 lines.</li><li>citation format requirements (page numbers for PDF sources, access dates and publication dates for web sources).</li><li>explicit prohibitions on speculative language, unsupported claims, and informal tone.</li></ul><p>By using this skill to enforce structural and formatting standards, analysts were able to assemble reports that were virtually complete on their first pass. This cut the average report length by half and significantly reduced the number of revision cycles, freeing them from tedious formatting and allowing more time for substantive review.</p><p><em>“Documentation quality improved significantly,” </em>observed one reviewer, <em>“Consistent format across all submissions.”</em></p><h4>Skill 4: Open questions and assumptions tracking</h4><p>The fourth skill addresses a less visible but equally damaging problem: undocumented reasoning.</p><p>Prior to skill implementation, when regulators asked how a conclusion was reached, the analytical trail was frequently unrecoverable and highly inconsistent. This skill requires agents to document every knowledge gap actively searched for but not found, and every logical inference made without direct evidence, at the end of every analysis. It further requires agents to provide an explicit impact assessment for each instance and recommend follow-up actions.</p><p>Without this skill, almost half of reports were challenged for insufficient justification; with the skill implemented, we eliminated almost all gaps in analytical reasoning.</p><h3>The validation architecture</h3><p>These four skills do not operate independently, but are embedded in a workflow built around validation gates. Each gate checks that outputs meet the standards defined in the guardrails skill (#2 above) and blocks progression if they fail. This leads to a reliable pattern of:</p><p><strong>extract → validate → analyze → validate → generate report → validate</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Azbj9l6ZTvra3u0N.jpeg" /><figcaption>AI Skills in Banking: Structured application of agent skills enables a more efficient, reliable compliance review process</figcaption></figure><p>This chain creates a traceable audit trail explaining what an agent concluded, which version of which skill it followed, and which validation it passed.</p><p>We run this workflow on an orchestration framework such as Argo (which we use along with ARK), with skills mounted as versioned ConfigMaps in Kubernetes; the same infrastructure we use to manage application deployments. Skills are therefore moving through the same review and deployment pipeline as code and using the same change controls. They can still be authored and updated by domain experts, though, without engineering involvement.</p><h3>Principles for teams building skills-based workflows</h3><p>Several design decisions drove this implementation’s success. Their absence is what typically causes skills-based approaches to underperform.</p><p><strong>Single responsibility:</strong> Each skill covers one aspect of the workflow. A multi-aspect skill that encodes<strong> </strong>methodology, validation, and reporting simultaneously quickly becomes difficult to maintain and audit. With single responsibility skills, it’s immediately clear what to modify when a regulatory update requires change.</p><p><strong>Explicit over implicit.</strong> Vague instructions produce variable behavior. <em>“Do thorough research”</em> leads to inconsistent results; <em>“check these four sources, in this order, and document why each step was performed”</em> does not. The most effective skills are prescriptive about process, not just intent.</p><p><strong>Validation as architecture, not afterthought.</strong> Embedding validation between stages, throughout the workflow, catches errors when they are cheapest to fix. In practice, we found that the policy guardrails skill was just as important to reliable results as the methodology skill.</p><p>Skills as living assets.<strong> </strong>A skill that is not maintained drifts from current requirements. The teams that sustain improvement treat skills the way they treat software: versioned, tested before deployment, updated when requirements change, and reviewed on a defined cadence. A self-improving AI agent evaluates its own output quality, logs structured data, and auto-updates its skills over time without requiring human intervention for every cycle. To support this capability safely, teams must manage AI agent skills with the same rigor they apply to traditional APIs and software, through versioning and automated rollback capabilities. A systematic approach ensures that as an agent dynamically updates its own behavior and context, the organization maintains a traceable, stable, and compliant history of its evolving expertise.</p><h3>A new organizational discipline</h3><p>As skills become more central to the way AI agents execute their work, they begin pointing to a new kind of discipline. In much the same way that agile methodologies transformed how organizations built and maintained software, skills are now reshaping how organizations manage and evolve their knowledge.</p><p>Skills are more flexible and easily updated than traditional codebases, but also more transparent and predictable than ad-hoc prompting. This creates a shift that is both technical and organizational, changing the way teams capture, share, and refine their expert knowledge. The organizational knowledge base persists and compounds over time, rather than dispersing when individuals move on.</p><p>To realize these benefits, organizations must prioritize the task of making implicit knowledge explicit. Defining what tasks must be completed is only the first part; the more subjective steps of defining how they should be completed, and what constitutes a good outcome, must also be clearly defined.</p><p>This can present a challenge to organizations that view documentation as a one-time exercise rather than an integral part of the workflow. Knowledge that’s captured once and not maintained leads to skills that drift and eventually become irrelevant. Organizations that build systematic processes for capturing, validating, and updating expertise will find their advantage compounds.</p><h4>Ensuring Responsible AI-Assisted Workflows</h4><p>As we noted above, AI-assisted workflows do not replace legal, regulatory, or human review requirements. While skills-based agents create powerful efficiencies, their implementation requires a robust governance framework to be effective and responsible. Our experience has shown that success is dependent on three key principles:</p><ul><li>Humans remain in control.</li><li>Continuous monitoring and testing</li><li>Explicitly defined boundaries.</li></ul><p>By building these guardrails, organizations can harness the full value of agentic AI while maintaining the highest standards of compliance and operational resilience. Further insights can be found in a recent McKinsey article titled “<a href="https://www.mckinsey.com/capabilities/risk-and-resilience/our-insights/deploying-agentic-ai-with-safety-and-security-a-playbook-for-technology-leaders">Deploying agentic AI with safety and security: A playbook for technology leaders</a>”.</p><h3>The question leaders should be asking</h3><p>The first wave of AI adoption was about deployment: which tools, where to start, how to manage change. That question is largely answered.</p><p>The more important question now is: how do we ensure that what our best people know can be applied consistently and at scale, in every workflow?</p><p>Organizations that succeed in answering the question will build libraries of reusable skills that capture how they operate, as well as what they produce. Those that do not may find themselves with capable agents that produce inconsistent results. Ultimately, this reinforces a fact that has been true across the business world since long before the arrival of AI: an organization’s most valuable assets are not the technologies it employs, but the expertise of its people.</p><p><a href="https://www.mckinsey.com/capabilities/quantumblack/contact-us">Reach out to find out more about our work with agentic AI</a>.</p><p><em>This article was authored by </em><a href="https://www.linkedin.com/in/irisroelens/"><em>Iris Roelens</em></a><em>, </em><a href="https://www.linkedin.com/in/debanjanbanerjee-de/"><em>Debanjan Banerjee</em></a><em>, </em><a href="https://www.linkedin.com/in/johnlawlund/"><em>John Law-Lund</em></a><em>, </em><a href="https://www.linkedin.com/in/anasthasia-manu/"><em>Anasthasia Manu</em></a><em>, </em><a href="https://www.linkedin.com/in/frederikvanhecke/"><em>Frederik Van Hecke</em></a><em>, </em><a href="https://www.linkedin.com/in/walshrory/"><em>Rory Walsh</em></a><em>, </em><a href="https://www.linkedin.com/in/carl-alviani/"><em>Carl Alviani</em></a><em> and </em><a href="https://www.linkedin.com/in/jostichbury/"><em>Jo Stichbury</em></a><em>. Additional graphics were supplied by </em><a href="https://www.linkedin.com/in/kasperjanehag/"><em>Kasper Janehag</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=743d3d4c0c60" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/agent-skills-turn-human-expertise-into-ai-advantage-743d3d4c0c60">Agent skills turn human expertise into AI advantage</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative AI workflows need engineering discipline to scale beyond the demo]]></title>
            <link>https://medium.com/quantumblack/generative-ai-workflows-need-engineering-discipline-to-scale-beyond-the-demo-a9928135e393?source=rss----2b20955d0463---4</link>
            <guid isPermaLink="false">https://medium.com/p/a9928135e393</guid>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[QuantumBlack, AI by McKinsey]]></dc:creator>
            <pubDate>Thu, 07 May 2026 14:50:43 GMT</pubDate>
            <atom:updated>2026-05-07T14:50:41.977Z</atom:updated>
            <content:encoded><![CDATA[<h4>Kedro helps teams build reliable AI systems from prototype to production</h4><p>One of the most remarkable qualities of generative AI (gen AI) and agentic systems is the speed with which they can progress from an impressive demo to real-world usage. Shipping to production is exciting for any developer, but it’s also often the point at which unanticipated friction emerges.</p><p>When agentic logic is integrated into a broader data pipeline, it becomes harder to follow what the system is doing and why. Prompts, tools, and routing logic between agents are often embedded throughout the pipeline in places that assume deterministic execution. The result is often failures that are difficult to explain and runs that are hard to reproduce. This can make even small changes feel risky because the outcome <em>is</em> no longer purely deterministic.</p><p>The source of this trouble is almost never the quality of the underlying model, but the way the system is structured. Structure is what makes the system understandable and evolvable for the engineers building it, and for anyone who needs to review it, trust it, or influence what it does.</p><h3><strong>We’ve seen this before</strong></h3><p>If this sounds <a href="https://medium.com/quantumblack/introducing-kedro-the-open-source-library-for-production-ready-machine-learning-code-d1c6d26ce2cf">familiar</a>, it should. Development of early machine learning (ML) pipelines went through the same pattern: experimentation-first workflows, hidden states, fragile handoffs from notebooks to deployment, and systems that worked…until they didn’t. The teams that scaled ML reliably solved these problems through standardization, by creating clear structures for how work is executed, and building visibility into every run.</p><p>Gen AI has reached a similar inflection point, just much faster. Agentic systems are often released to production before teams have put basics like reproducibility, observability, and maintainability in place. Because of this, today’s agentic AI integrations are often plagued by recurring problems, amplified by dynamic execution paths and non-deterministic outcomes.</p><p>Many of our clients have found that the requirements for building agentic workflows (orchestration, observability, governance, version control of steps, and so on) overlap significantly with what existing data pipeline and ML infrastructure already provides. Rather than building agentic platforms on top of cloud infrastructure or custom setups, they are building them on top of their existing data platforms.</p><p>We have been through this process too. <a href="https://kedro.org/">Kedro</a>, an open-source tool first launched by <a href="https://www.mckinsey.com/capabilities/quantumblack/labs">QuantumBlack Labs</a> in 2019, is a pipeline authoring framework that, with minimal adaptation, can run complex workflows combining agentic and deterministic steps. Kedro complements existing agent frameworks by enforcing system-wide structure, managing environment-specific configuration, and guaranteeing reproducible pipeline execution across environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvcaSYI0UpDGtS_aDoDqRg.png" /><figcaption>Kedro applies proven engineering principles to enforce system-wide structure, manage environment-specific configuration, and guarantee reproducible execution across environments.</figcaption></figure><p><a href="https://medium.com/quantumblack/agentic-workflows-for-software-development-dc8e64f4a79d">In a recent article</a> we argued that agentic systems require deterministic orchestration wrapped around bounded agent execution. That same architectural principle applies here: for a pipeline to be understandable, evolvable, and robust, it needs a backbone that controls what runs, in what order, with what configuration, while letting agent loops handle the reasoning within individual steps. Kedro operationalizes that deterministic backbone by providing a consistent way to:</p><ul><li>create pipelines</li><li>manage configuration across environments</li><li>make execution repeatable</li><li>version the artifacts that matter, from datasets and prompts to model outputs.</li></ul><p>Critically, <a href="https://medium.com/data-science/five-software-engineering-principles-for-collaborative-data-science-ab26667a311">Kedro brings software engineering best practices</a> including modularity, separation of concerns, and testability into systems that include non-deterministic components.</p><p>In the real world, a workflow may have deterministic steps like data preparation, feature engineering, or model scoring sitting alongside less deterministic agentic steps like retrieval, prompting, tool use, and planning. Kedro lets teams run these side-by-side in the same pipeline without needing to change their stack or bolt on a separate orchestration layer just for gen AI and agentic AI. We’ve expanded on our explanation on where Kedro fits in a <a href="https://kedro.org/blog/kedro-in-the-data-and-ai-landscape">recent blog post about Kedro in the modern data and AI tooling landscape</a>.</p><h3><strong>Building gen AI systems on explicit engineering principles</strong></h3><p>When gen AI systems break, it’s typically because the surrounding system isn’t designed to safely carry dynamic, non-deterministic behavior. What begins as a promising notebook prototype can quickly evolve into tightly coupled logic, hidden configuration, and behavior that is difficult to explain. These qualities can become entrenched once the system is running in production. Changes start to feel risky, failures become ambiguous, and a once robust demo suddenly feels fragile when running as part of a production pipeline.</p><p>This entrenchment is one of the primary causes of what’s been called the “<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/seizing-the-agentic-ai-advantage">gen AI paradox</a>” in McKinsey &amp; Company implementation studies: systems are widely deployed, but struggle to deliver reliable impact at scale. Without the right architectural foundations, observability, process design, and accessible, well-governed data products, this outcome is nearly inevitable.</p><h4><strong>Structured and modular workflows</strong></h4><p>Rather than treating engineering discipline as something to add later, Kedro treats it as part of the design from day one, ensuring that intelligence sits inside a system built to support it.</p><p>To give a concrete example, imagine a customer support assistant for an insurance company. The process begins when a user asks a question, prompting the system to interpret intent, retrieve relevant information, and generate a response. While this may sound like a simple chain of actions, it requires a multi-step agentic workflow built on a system with branching logic, state transitions, tool calls, and data dependencies. This is when structure stops being optional.</p><p>In this example, the solution can be organized into two pipelines, one for intent understanding, another for response generation. The agent framework handles reasoning and tool usage, while Kedro manages the surrounding system of configuration, datasets, credentials, and repeatable execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LtK6p4GSS-lgz3cPygQ3-w.png" /><figcaption>A high level view of two Kedro pipelines.</figcaption></figure><p>While this example is relatively simple, it demonstrates the importance of designing agentic workflows from the outset as part of a system, rather than loosely connecting scripts that gradually accumulate complexity.</p><p>Underlying this approach, and Kedro’s core functionality, are production engineering principles that should be familiar:</p><ul><li><strong>Explicit, modular pipelines</strong> instead of loosely connected scripts: agent logic, context assembly, and data processing are clearly separated.</li><li><strong>Environment-aware configuration</strong> rather than hard-coded parameters: models, prompts, and tracing are defined declaratively and can vary safely across environments.</li><li><strong>Centralized credential management</strong>: external services and tools are configured consistently and securely.</li><li><strong>Reproducible, traceable execution</strong> across environments: each run captures the exact configuration, prompt versions, and dependencies that shaped the outcome.</li></ul><p>Since agent logic sits on top of this structure, switching gen AI frameworks becomes a matter of updating the nodes that invoke those services, while the overall pipeline design remains intact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKJhkmYGJDO8xvM-LYF2Uw.gif" /><figcaption>How the project is organized: pipelines, configuration, credentials, and datasets are separated by design.</figcaption></figure><p>This approach creates a separation of responsibilities. Agent frameworks handle dynamic decision-making and conversational state, while Kedro manages the operational backbone: data access, configuration, credentials, session state, and execution. The result is a stable system that can be changed without becoming brittle.</p><h4><strong>Transparent agent configuration</strong></h4><p>Beyond structure, there is a question that becomes increasingly important as AI agents proliferate: <strong>Why did this agent make that decision?</strong></p><p>Agent behavior depends on multiple moving parts, including:</p><ul><li>the selected model</li><li>the active prompt version</li><li>registered tools and their parameters</li><li>runtime configuration.</li></ul><p>In many systems, reasons for agentic decision-making are scattered across framework internals and implicit defaults, and when something goes wrong, it’s unclear which inputs actually shaped the outcome. Kedro addresses this by treating agent setup itself as a first-class system component.</p><p>Instead of assembling context implicitly inside agent code, Kedro introduces a dedicated pipeline step that explicitly declares the model, prompts, and tools the agent will use before any reasoning occurs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*KGO4rQ-vHpsFlnVq8xyMcg.png" /><figcaption>Everything the agent needs is declared in one place before execution starts.</figcaption></figure><p>These inputs are loaded, validated, and versioned like any other pipeline inputs. At runtime, they are assembled into a single, well-defined context object and passed downstream. From that point forward, the agent consumes a clearly defined configuration. It does not need to know how its context was assembled, and there is no hidden execution layer coupling it to a specific framework.</p><p>This approach shifts agent setup from <strong>implicit runtime wiring</strong> to <strong>explicit system design</strong>. The configuration that shapes behavior is visible before execution begins, making decisions easier to understand and safer to evolve.</p><h4><strong>System-level visibility</strong></h4><p>Agentic systems are dynamic by design. They branch, select tools, and transition between states based on intermediate outputs. To safely evolve these systems, teams need to clearly understand how the system is structured and how decisions propagate through it.</p><p>Many agent frameworks, such as LangGraph, recognize this need and provide visualization features to inspect reasoning paths and state transitions. This kind of visibility is essential for debugging and iteration within the agent loop.</p><p>Kedro extends this idea to the system level through its native visual interface, <a href="https://demo.kedro.org/">Kedro-Viz</a>, which provides a graphical representation of pipeline structure, execution flow, and dependencies. Deterministic and agentic components are inspectable within the same architecture. And because structure and configuration are explicit, agent setup appears directly in the pipeline graph alongside traditional data steps. Gen AI-specific components such as agent context, prompts, LLM configuration, and tracing can be visually distinguished from standard processing nodes, clarifying the boundary between reasoning and transformation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JiozjqAdsTSawoltOAD5_Q.gif" /><figcaption>The full pipeline in Kedro-Viz: Gen AI components sit alongside data processing steps, each inspectable before a run.</figcaption></figure><p>Since prompts are treated as datasets, they can be inspected and compared without running the pipeline. This enables teams to review exactly what the agent will be prompted with before deploying a change. Agent nodes are also inspectable. Their internal structure, including states and transitions defined by the chosen agent framework, can be explored without executing the full workflow.</p><p>The impact of this design is subtle but significant. Agent behavior moves from opaque runtime execution to visible system architecture. Teams can understand how the system is assembled before evaluating its performance, and they can review changes as structural modifications rather than unpredictable side effects.</p><p>Together, <strong>modular workflows</strong>, <strong>transparent agent configuration</strong>, and <strong>system-level visibility</strong> form the engineering foundation of a production-ready gen AI system.</p><p>Once these principles are in place, the challenge shifts from internal clarity to completing the engineering loop, connecting observability, evaluation, and lifecycle tooling into a single, disciplined workflow without fragmenting the system.</p><h3><strong>Closing the engineering loop with ecosystem integrations</strong></h3><p>So far, we’ve focused on the structural and operational properties that Kedro makes explicit in a gen AI project, to help create stability. But in addition to internal discipline, production systems must also support <strong>observability, evaluation, and controlled evolution</strong>. This enables models, prompts, and tools to change over time without forcing teams to redesign their architecture each time.</p><p>Rather than rebuilding these capabilities from scratch, Kedro connects specialized ecosystem tools into the same structured workflow. The goal is not to own every layer of the gen AI stack, but to make external platforms feel like natural extensions of a coherent system design.</p><h4><strong>Observability as a system property</strong></h4><p>When something goes wrong in a gen AI system, it’s not enough for teams to know that something failed; they need to understand exactly what happened. This becomes critical when:</p><ul><li>a small prompt change alters behavior in production</li><li>an agent selects the wrong tool at scale</li><li>costs or latency spike unexpectedly</li><li>model updates subtly shift output quality.</li></ul><p>These issues rarely come from a single component. They emerge from how the system behaves as a whole.</p><p>Kedro approaches observability by making the key ingredients of a gen AI system explicit before execution. Instead of instantiating models, prompts, and tracing implicitly inside agent code, these properties are declared as part of the project configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*0M4vm0fBym-IjP0GPXOxEA.png" /><figcaption>A prompt declared as a catalog entry.</figcaption></figure><p>This has two important effects. First<strong>, behavior becomes explainable. </strong>Each run carries a clear record of which model, prompt version, and tools were used, and these are tied to a reproducible pipeline execution.</p><p>Second<strong>, observability tools can integrate cleanly at the system level. </strong>Instead of embedding logging or tracing logic into agent implementations, Kedro connects pipeline execution to specialized platforms like <strong>Langfuse </strong>or <strong>Opik</strong>. This ensures that:</p><ul><li>traces are captured automatically</li><li>prompts are versioned and linked to runs</li><li>agent behavior can be inspected end-to-end in dedicated UIs</li><li>evaluations and comparisons remain connected to structured executions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ifALRtKYF8zgdiIrPQYECQ.gif" /><figcaption>Same pipeline, different prompt version: tracing the impact of a single change in Langfuse.</figcaption></figure><p>In this design, observability becomes a property of the architecture. The agent focuses on reasoning, and the surrounding workflow ensures every run is traceable and comparable.</p><h4><strong>Evaluation as an essential part of production gen AI</strong></h4><p>Observability explains what happened. Evaluation answers <strong>whether the system is improving or regressing over time</strong>.</p><p>In production gen AI systems, evaluation involves a wide range of metrics that go well beyond the monitoring performed in ML systems. These include:</p><ul><li>output quality and consistency</li><li>prompt regressions after updates</li><li>changes in agent decision patterns</li><li>tool usage accuracy</li><li>operational metrics such as cost and latency.</li></ul><p>Across the gen AI ecosystem, one pattern is consistent: <strong>dataset-based evaluation </strong>forms the foundation<strong> </strong>for assessing output quality, consistency, and correctness over time.</p><p>This approach aligns naturally with Kedro’s design. Evaluation datasets are catalog entries, declared in configuration, synced between local files and remote platforms, and managed the same way prompts and other datasets are. During development, teams author evaluation items locally and iterate quickly. In staging or production, the remote platform becomes the source of truth. For reproducibility, a dataset can be pinned to a point-in-time snapshot. All of this is done through configuration, without changing pipeline code.</p><p>This connects to platforms like <strong>Langfuse</strong>, where experiment execution, scoring, and <a href="https://docs.kedro.org/projects/kedro-datasets/en/kedro-datasets-9.3.0/api/kedro_datasets_experimental/langfuse.LangfuseEvaluationDataset/">regression analysis happen outside Kedro</a>. Kedro handles the structured, reproducible runs; the evaluation platform handles the rest. The loop between experimentation, observability, and evaluation closes inside the same system.</p><h4><strong>Flexibility without fragmentation</strong></h4><p>In gen AI and agentic AI ecosystems new frameworks and tools appear constantly, and teams need the freedom to adopt them without rewriting their systems. This is why Kedro is designed to be deliberately <strong>framework-agnostic</strong>. Specifically, this means:</p><ul><li>agent logic can be implemented using different frameworks or custom approaches</li><li>tools remain plain Python functions</li><li>configuration and execution stay consistent</li><li>prompt management, tracing, and evaluation are handled through integrations rather than embedded framework logic.</li></ul><p>Because there is a clear boundary between the responsibilities of agent frameworks and the system-level structure Kedro provides, teams can change how agents are implemented without redesigning the surrounding workflow. This enables pipelines to remain intact, while inputs, outputs, and operational guarantees stay the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QezFatCnHK5yyS3Q0o7N8g.png" /><figcaption>The pipeline stays stable. Agent frameworks, observability, and evaluation platforms change independently around it.</figcaption></figure><p>This flexibility extends across the full lifecycle from development to observability and evaluation without fragmenting the system.</p><h3><strong>From opaque experiments to trustworthy systems</strong></h3><p>As a gen AI solution graduates from a promising demo to a real-world system, its success depends on whether it can be:</p><ul><li>understood by the whole team (not just its original authors)</li><li>observed clearly in production</li><li>evaluated systematically over time</li><li>evolved safely as tools and standards shift.</li></ul><p>There’s no doubt that the rapidly evolving gen AI tools available to us offer incredible resources in terms of intelligence and high-quality decision-making on demand. Kedro acts as a partner to these tools, helping ensure that the data pipelines used by gen AI systems are reliable. As a deterministic operating system that can incorporate non-deterministic agents, this makes it, in many cases, the crucial link in the chain of capabilities that enable AI solutions to generate real, lasting value.</p><h3>Find out more about Kedro</h3><p><a href="https://kedro.org/">Kedro</a> is an open-source project with broad industry adoption. It records over seven million <a href="https://clickpy.clickhouse.com/dashboard/kedro?min_date=2025-01-01&amp;max_date=2025-12-31">downloads</a> annually, has more than ten thousand <a href="https://github.com/kedro-org/kedro">GitHub stars</a>, and is used by teams across sectors to build production-grade data and machine learning systems.</p><p>Kedro is supported by a full-time development <a href="https://docs.kedro.org/en/stable/about/technical_steering_committee/">team</a> and is part of the <a href="https://lfaidata.foundation/">LF AI &amp; Data Foundation</a>, providing a neutral, vendor-independent governance model that supports long-term sustainability and community-driven development. Beyond the core framework, Kedro is supported by an active and growing <a href="https://kedro-org.slack.com/join/shared_invite/zt-3p7i2e1mq-uxqCl1tkBaqdmoCoK52CEQ#/shared-invite/email">open-source community</a>. Contributors and users share patterns, extensions, and real-world experience, helping the project evolve in response to practical needs. A growing list of blog posts, videos and projects that use Kedro can be found in the <a href="https://github.com/kedro-org/awesome-kedro">awesome-kedro GitHub repository</a>.</p><p>Kedro is also backed by extensive <a href="https://docs.kedro.org/en/stable/">documentation</a>. This includes <a href="https://docs.kedro.org/en/stable/tutorials/spaceflights_tutorial/">tutorials</a>, example projects, <a href="https://github.com/kedro-org/kedro/wiki/Kedro-Coffee-Chat">coffee chats</a>, and dedicated sections for each part of the tool, with code snippets ranging from introductory features to more advanced use cases. Teams can get started quickly using a ready-to-use <a href="https://docs.kedro.org/en/stable/create/minimal_kedro_project/">project template</a>, which includes sample datasets and enables users to train their first model with just a few commands from the terminal.</p><p><a href="https://slack.kedro.org/">To find out more about Kedro, reach out to us on Slack</a>.</p><p>This article was written by <a href="https://www.linkedin.com/in/elena-khaustova/">Elena Khaustova</a> and <a href="https://www.linkedin.com/in/merel-theisen/">Merel Theisen</a>, with additional contributions from <a href="https://www.linkedin.com/in/elijah-k-a01522133/">Elijah Koh</a>, <a href="https://www.linkedin.com/in/alice-cima-25756b140/">Alice Cima</a>, <a href="https://www.linkedin.com/in/joseph-perkins-aa278272/">Joseph Perkins</a>, <a href="https://www.linkedin.com/in/carl-alviani/">Carl Alviani</a>, and <a href="https://www.linkedin.com/in/jostichbury/">Jo Stichbury</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9928135e393" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quantumblack/generative-ai-workflows-need-engineering-discipline-to-scale-beyond-the-demo-a9928135e393">Generative AI workflows need engineering discipline to scale beyond the demo</a> was originally published in <a href="https://medium.com/quantumblack">QuantumBlack, AI by McKinsey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>