Surviving One Million Metrics per Second: Architecture Decisions That Actually Matter
Detecting and Measuring Bias in Training Data Before It Reaches Production
Moving From Ontology Concepts to Implementation The previous article, Why AI Agents Need a Shared Ontology, explored how ontologies provide a shared semantic foundation for AI agents, enabling them to interpret business concepts, understand relationships, and operate with a consistent view of enterprise data. However, understanding the value of ontology is just the start. The next challenge is to turn those concepts into a working implementation that can be developed, validated, queried, deployed, and maintained as part of an enterprise technology ecosystem. An ontology is not just a list of business terms or a diagram. For it to be operational, it needs a formal representation of domain knowledge, clearly defined relationships, validation rules, a query mechanism, and an infrastructure environment (applications/services) where applications and services can access it. This is where Python, RDF, OWL, SHACL, SPARQL, Apache Jena Fuseki, and Kubernetes come together. From Semantic Models to Working Systems Consider a typical e-commerce application involving customers, products, orders, and payments. These entities may exist across different databases, applications, and services, each with its own data model and terminology. An enterprise ontology defines a common semantic model of what these entities represent and how they relate to one another. (A customer orders something; an order has products, and each product belongs to a category). But defining these relationships is not sufficient. We also need to answer practical engineering questions: How do we represent business concepts and relationships using Resource Description Framework (RDF) and Web Ontology Language (OWL)?How can Python be used to create, load, and query ontology data?How do we enforce data quality and semantic constraints using Shapes Constraint Language (SHACL)?How can applications query the knowledge graph using Protocol and RDF Query Language (SPARQL)?How do we deploy and expose the ontology through a containerized service running on Kubernetes?How can we incorporate ontology validation into automated testing and CI/CD pipelines? Answering these questions transforms ontology development from a conceptual exercise to an engineering discipline. What We Will Build In this tutorial, we plan to build a working e-commerce ontology in Python and deploy it on our local Kubernetes cluster. We will model customers, products, and orders using RDF and OWL first; populate the ontology with sample data; validate structure and constraints (SHACL) on it; perform SPARQL queries to get meaningful business relationships. Once the ontology is working locally, we will deploy Apache Jena Fuseki as a SPARQL endpoint on a Kubernetes cluster created with kind (Kubernetes in Docker). We will use Podman for container image management, and Kubernetes manifests to deploy and expose the service. Next, we will see how to run automated tests and validate ontology changes before deploying them to an application environment. The objective is not to build an enterprise knowledge platform in one tutorial. Instead, the aim is to establish a practical, reproducible foundation from which we can show how semantic modeling works with validation, querying, and cloud-native deployment. At the end of this tutorial, a functioning ontology-backed service would be implemented that can be queried via SPARQL and extended for more complex use cases (knowledge-driven applications, semantic interoperability, and AI agents running on shared business context). The central idea is simple: an ontology becomes valuable when it moves beyond defining what enterprise data means and becomes an operational component that applications can use. Understanding the Reference Architecture The architecture separates ontology development from runtime services. Python is the development and automation layer; RDF and OWL are semantic model definitions; SHACL checks data consistency; Apache Jena Fuseki stores and exposes the knowledge graph; Kubernetes provides the deployment environment. Key Components of the Architecture Ontology Modeling: RDF and OWL The foundation of the platform is the ontology model. RDF stores information as triples (subject, predicate, object). OWL extends RDF-based modeling with constructs for defining classes, properties, relationships, and logical semantics. In our e-commerce example, we define concepts such as Customer, Order, Product, and Payment, along with relationships such as placesOrder and containsProduct. Together, these definitions establish a common semantic vocabulary that applications can use to interpret enterprise data consistently. Ontology Processing: Python and RDFLib Python provides the programming environment for working with the ontology. Using the RDFLib library, we can load RDF/OWL files, manipulate graph data, execute SPARQL queries, and automate ontology-related operations. This lets us develop and test the ontology locally before adding infrastructure dependencies. Data Validation: SHACL Defining an ontology does not necessarily guarantee that all incoming data satisfies business requirements. SHACL allows us to define validation constraints on RDF data. For example, we can say that every customer has a name and email address or that a product has a valid price. We will use Python and pySHACL to validate sample data against these constraints before loading it into the knowledge graph. Knowledge Graph Storage: Apache Jena Fuseki Once the ontology and its instance data are ready, they need to be accessible to other applications. Apache Jena Fuseki provides an RDF storage and query service that exposes SPARQL endpoints over HTTP. Applications can retrieve and update graph data via standards-based interfaces. In our implementation, Fuseki will store the e-commerce ontology and its associated instance data, making relationships between customers, orders, and products queryable. Application Integration: SPARQL and REST APIs SPARQL is the standard query language for retrieving and manipulating RDF graph data. Applications can access Fuseki directly (via a SPARQL endpoint) or through an application API built with Python and FastAPI. For example, an application can query all products purchased by a particular customer by traversing the relationships in the ontology. Cloud-Native Deployment: Containers and Kubernetes Finally, we need an environment where the ontology service can be deployed and managed. We use Podman to build container images and kind to create a local Kubernetes cluster. Apache Jena Fuseki and the Python API will run as containerized services inside Kubernetes. Kubernetes provides service discovery, workload management, and deployment orchestration. For production use, the architecture can be extended with persistent storage, authentication, monitoring, resource controls, and high availability. How the Components Work Together The reference architecture follows a simple development-to-runtime workflow: Model: Define business concepts, properties, and relationships using RDF and OWL.Populate: Create sample instances representing customers, products, and orders.Validate: Apply SHACL constraints to verify the consistency and completeness of the RDF data.Store: Load the validated RDF graph into Apache Jena Fuseki.Query: Execute SPARQL queries to retrieve business entities and relationships.Deploy: Run Fuseki and the Python application services on Kubernetes. It is important to distinguish between an ontology and a knowledge graph. Ontologies define the semantic structure and meaning of a domain; knowledge graphs combine those definitions with actual entities and their relationships. In this implementation, the ontology and sample data are represented as RDF graphs and loaded into Fuseki, where they can be queried together. Designing the E-Commerce Ontology The first step in implementing an enterprise ontology is to define the business domain and identify the concepts and relationships that need to be represented. In this tutorial, we’ll use an e-commerce domain consisting of customers, orders, products, and payments. Although these concepts are familiar in traditional application development, ontology modeling approaches them differently. We don’t design database tables and foreign keys; we define semantic classes, properties, and relationships that describe what business entities mean and how they are connected. Identifying Domain Concepts We start by listing the entities involved in an e-commerce transaction. A customer places an order, an order contains products, and payments are associated with orders. These relationships form the foundation of our ontology. In more advanced models, we can introduce an OrderItem class to store individual order lines, including purchased quantities and prices. The objective is to create a reusable semantic model rather than copying the structure of an existing database. Defining Classes and Properties Once the domain concepts are identified, we define them as OWL classes. Object properties establish relationships between individuals. For example, placesOrder connects a customer to an order, while containsProduct connects an order to a product. Datatype properties describe literal attributes such as customer names, email addresses, product prices, and order dates. Using these constructs, we establish the vocabulary needed to represent and query e-commerce information consistently. Establishing Relationships and Constraints Ontology modeling also means defining the intended semantics of relationships. For example, the placesOrder property can have Customer as its domain and Order as its range. These declarations support semantic interpretation and inference. However, OWL is not a conventional database constraint engine. Domain and range declarations are used for reasoning, and OWL cardinality restrictions do not automatically reject incomplete data. For operational data-quality requirements, we will introduce SHACL in the validation section. Choosing Namespaces and IRIs Every class, property, and individual in an RDF ontology is identified by an Internationalized Resource Identifier (IRI). For this tutorial, we will use a consistent namespace such as: http://example.com/ecommerce/ This allows us to define identifiers such as: http://example.com/ecommerce/Customerhttp://example.com/ecommerce/Producthttp://example.com/ecommerce/placesOrder For production ontologies, these identifiers should use a domain controlled by the organization and follow a stable naming convention. Modeling the Ontology With Protégé We will use Protégé to create and inspect the ontology visually. Protégé provides an interface for defining OWL classes, object properties, datatype properties, and individuals. It also allows us to inspect the class hierarchy and verify how the different elements are connected. Once the model is defined, we will export it in Turtle format and use Python RDFLib for further processing. This separation lets domain modeling be done visually while ontology validation, querying, and deployment remain automated. Exporting the Ontology After completing the model, we save the ontology as ecommerce-combined.ttl. Turtle serializes RDF in a human-readable way so that the ontology is suitable for source control, code reviews, automated testing, and CI/CD. The exported file becomes the starting point for the next stage, where we will populate the ontology with sample e-commerce data and query the resulting knowledge graph. Once we are done with the model, we save the ontology as ecommerce-combined.ttl. Implementing the Ontology With Python With the e-commerce ontology modeled in WebProtégé, the next step is to make it accessible programmatically using Python and RDFLib. RDFLib provides the capabilities to load, manipulate, serialize, and query RDF graphs. This allows us to work with ontology definitions and instance data locally without requiring a graph database or Kubernetes infrastructure. Setting Up the Project The implementation is organized into separate directories for ontology definitions, sample data, SHACL validation rules, Python scripts, automated tests, and Kubernetes deployment manifests. The complete project, including dependencies and setup instructions, is available on GitHub: Enterprise E-Commerce Ontology — GitHub Repository. The repository's README provides step-by-step instructions for running the implementation locally and deploying it to Kubernetes. Loading and Processing the Ontology We first export the ontology from WebProtégé in Turtle format and save it as ontology/ecommerce-combined.ttl. With RDFLib, the exported graph can be inspected and processed. The implementation also splits ontology definitions from instance data into two files: ontology/ecommerce.ttl – Defines ontology classes and properties.ontology/sample-data.ttl – Contains sample entities and their relationships. This separation allows us to keep the semantic model and the data represented by that model distinct. Querying the Knowledge Graph Locally Once the ontology and sample data are loaded, we can run SPARQL queries using RDFLib to traverse business relationships. For example, we can identify products associated with customer orders by following the placesOrder and containsProduct relationships. The repository includes scripts/query_local.py, which shows how to query the ontology directly from Turtle files. Shell python scripts/query_local.py ontology/ecommerce.ttl ontology/sample-data.ttl This verifies that the ontology is not merely a collection of definitions but a queryable semantic graph representing actual business relationships. At this stage, we have a working local knowledge graph that can be inspected and queried using Python, without introducing Apache Jena Fuseki or Kubernetes. The complete implementation, Python scripts, sample data, and execution instructions are available in the GitHub README. Validating the Ontology With SHACL RDF and OWL specify the structure and semantics of an ontology but do not enforce all data-quality constraints that enterprise applications need (e.g., uniqueness). For example, OWL can describe a customer class and its properties, but it does not necessarily reject a customer record that is missing an email address. This is where Shapes Constraint Language (SHACL) becomes important. In our e-commerce implementation, SHACL shapes specify validation requirements for customers, products, and orders: CustomerShape: Validates customer names and email addresses.ProductShape: Validates product names and prices.OrderShape: Validates relationships between orders and customers. We use Python with pySHACL to validate the RDF graph against these shapes. Python python scripts/validate.py The validation process returns a conformance result and reports constraint violations when the data fails validation. The project's validation script also returns a nonzero exit status on failure. This is an important operational control because invalid RDF data can be detected before being published to the knowledge graph. The complete SHACL definitions and validation implementation are available in the GitHub repository. From a Working Prototype to an Enterprise Ontology Platform While the above implementation provides a functional foundation, operating an ontology at enterprise scale brings other considerations. The challenge moves from creating a semantic model to making sure it’s governed, secure, scalable, and reusable as business requirements change over time. Ontology Versioning and Change Management Enterprise ontologies are constantly being updated as new business concepts, relationships and applications are introduced. Ontology definitions, SHACL shapes and other artifacts should be version controlled with changes reviewed and tested before release. Changes to classes, properties, or IRIs should also be evaluated for impact on existing SPARQL queries and consuming applications. Stable IRIs, documented deprecation policies, and compatibility checks are needed to keep semantic consistency across versions. Governance and Ownership An enterprise ontology needs clearly defined ownership. Domain experts should own the meaning of business concepts, while ontology engineers maintain the semantic model and platform teams manage the supporting infrastructure. A light governance process should set standards for naming conventions, namespace management, ontology extensions, and approval of changes. This prevents different teams from introducing conflicting definitions of the same business concepts. Security and Access Control As ontologies become shared enterprise assets, access to their data and query interfaces must be controlled. In production environments, SPARQL endpoints and APIs should be protected through authentication, authorization, encrypted communication, and network policies. Access controls may need to distinguish between users who can query the graph and those authorized to modify ontology definitions or instance data. Sensitive business information should also be governed according to organizational data-classification and privacy requirements. Scalability, Persistence, and Reliability The local Kubernetes deployment demonstrates how ontology services can be containerized and managed, but production environments require additional operational safeguards. Persistent storage is essential for preserving RDF datasets across pod restarts and rescheduling. Backup and recovery procedures, resource monitoring, and capacity planning become important as graph size and query traffic increase. The storage architecture should be selected based on expected data volume, query complexity, concurrency, and availability requirements. CI/CD and Deployment Promotion Ontology development can be done using the same controlled delivery practices as application development. A CI/CD pipeline can check RDF syntax, SHACL checks, ontology tests, and incompatible schema changes before pushing updates to development, testing, and production environments. Separating ontology definitions from environment-specific configurations also makes deployments more predictable and reproducible. Reusing the Ontology Across Applications and AI Agents One of the most important benefits of an enterprise ontology is that it can be used as a shared semantic foundation for many applications. Instead of having different interpretations for customers, products, and orders, applications can use common ontology definitions and query interfaces. The same foundation can be used for analytics platforms, knowledge-driven applications, and AI agents that need to discover and interpret business relationships. However, a shared ontology does not guarantee interoperability. Applications must adopt its vocabulary, identifiers, and data contracts consistently. The table below summarizes the key differences between the prototype developed in this tutorial and the capabilities typically expected in an enterprise ontology platform. Capability Working Prototype Enterprise Platform Ontology Management RDF/OWL files maintained in Git Versioning, lifecycle management, and change governance Validation SHACL validation and local tests Automated validation and quality gates Governance Developer-managed definitions Domain ownership and approval processes Security Local access to endpoints Authentication, authorization, and auditing Storage Local RDF dataset Persistent storage, backups, and recovery Deployment Local Kubernetes cluster Controlled CI/CD and environment promotion Integration Sample SPARQL queries and APIs Shared semantic contracts across applications and AI agents The key transition from prototype to enterprise platform is therefore not simply scaling the knowledge graph. It is establishing the governance, engineering practices, and operational controls needed to maintain a trustworthy semantic foundation across the organization. Evolving Toward an Enterprise Knowledge Platform The e-commerce ontology implemented in this tutorial shows how semantic models can be developed, validated, deployed, and queried using open standards and cloud native technologies. But the same architecture can be scaled up from a single application to a shared enterprise knowledge platform. As shown in the above figure, enterprise architecture adds governance, validation automation, persistent graph storage, access controls, and reusable semantic services on top of the foundational ontology implementation. These capabilities enable several extensions: AI agents: Agents can leverage ontology-backed services to find business entities, navigate relationships, and retrieve structured contextual information.Semantic retrieval: Knowledge graph queries can complement vector-based retrieval and RAG (retrieval augmented generation): explicit relationships and structured business context.Cross-system interoperability: Applications in different business domains can reuse shared vocabulary, identifiers, and semantic mappings to exchange information consistently. Instead of each application interpreting business entities differently, the ontology becomes a reusable semantic layer between enterprise systems, applications, and AI-driven services. This is the move from a standalone knowledge graph implementation to a governed enterprise knowledge platform which can support multiple applications and AI agents. Conclusion Building an enterprise ontology is not just about classes and relationships — it’s also about making business knowledge accessible, consistent and reusable across applications. In this tutorial, we moved from ontology concepts to a working implementation (Python, RDF/OWL, SHACL, Apache Jena Fuseki and Kubernetes). We modeled an e-commerce domain, validated its data, queried relationships using SPARQL, and deployed the knowledge graph as a cloud native service. This is just the starting point – this same foundation can be used to build a governed enterprise knowledge platform with semantic interoperability, knowledge-driven applications and AI agents that share business context. The future of enterprise AI isn't just about smarter models; it's about giving them a shared understanding of the world they operate in.
LLMs are good at explaining how to compute something and surprisingly unreliable at actually computing it. Ask for an estimate that involves a division, a rounding rule, and a confidence interval, and the response will be convincing while the numbers are not quite right. The standard fix is to let the model write code and have something else execute it. OpenAI’s hosted Code Interpreter does exactly that, inside a single API request: the model writes Python, OpenAI runs it in a sandboxed container, the printed output is fed back to the model, and the model answers using the real result. Nothing executes on our side. Spring AI 2.1.0-RC1 adds first-class support for this capability through its new OpenAI Responses chat model. This article shows how little is needed to turn it on in a Spring Boot application and why it requires the Responses API rather than Chat Completions. Finally, it walks through a full request and response captured by a custom logging advisor, so the generated Python, its execution output, and the final answer are all visible. The complete POC is a small command-line application. Its only job is to send one problem statement to the model and print the solution. Setting It Up Three things are needed: the dependency, four configuration properties, and an ordinary ChatClient. Dependency The project builds on Spring Boot 4.1.2 with Java 25 and imports the Spring AI BOM at version 2.1.0-RC1. The single runtime dependency is the OpenAI starter. XML <properties> <java.version>25</java.version> <spring-ai.version>2.1.0-RC1</spring-ai.version> </properties> <dependencies> <dependency> <groupId>org.springframework.ai</groupId> <artifactId>spring-ai-starter-model-openai</artifactId> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.ai</groupId> <artifactId>spring-ai-bom</artifactId> <version>${spring-ai.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> Configuration This is the whole of application.properties file. Properties files spring.ai.openai.api-key=${OPEN_AI_API_KEY} # use responses API spring.ai.openai.chat.api=responses # enable code interpreter spring.ai.openai.responses.hosted-tools.code-interpreter.enabled=true # readable reasoning: ask OpenAI for reasoning summaries (auto | concise | detailed) spring.ai.openai.responses.reasoning-summary=auto # return what the hosted code interpreter printed spring.ai.openai.responses.include=code_interpreter_call.outputs spring.ai.openai.chat.api=responses switches the auto-configured ChatModel from the Chat Completions endpoint to the Responses endpoint. With responses, Spring AI creates an OpenAiResponsesChatModel bean instead of an OpenAiChatModel.spring.ai.openai.responses.hosted-tools.code-interpreter.enabled=true declares the code interpreter as a tool on every request. The property’s own description in the configuration metadata reads “Let OpenAI run Python in a sandboxed container inside the request.”spring.ai.openai.responses.reasoning-summary=auto asks OpenAI to return summaries of the model’s reasoning. OpenAI never returns the raw reasoning text, so a summary is the only readable form we can get.spring.ai.openai.responses.include=code_interpreter_call.outputs asks for the outputs of the interpreter run, meaning what the Python printed, to be included in the response. Without it, the response says the code ran but doesn’t carry what it produced. The same thing can be done in code, per request, with: Java OpenAiResponsesChatOptions.builder() .hostedTools(HostedTool.CodeInterpreter.of()) .build() The HostedTool sealed interface also types web search, file search, MCP servers and image generation, plus a Raw escape hatch for tools Spring AI does not type yet. The CodeInterpreter record takes an optional container id, exposed as spring.ai.openai.responses.hosted-tools.code-interpreter.container-id, to reuse a container across requests. The Client and the Problem The service is a plain ChatClient. Nothing in it mentions tools, Python, or the Responses API. Java @Service public class ProblemSolver { private final ChatClient chatClient; public ProblemSolver(ChatClient.Builder chatClientBuilder) { chatClient = chatClientBuilder .defaultSystem("You are a helpful problem solver. " + "Provide elegant, meaningful solutions to the requested problems.") .defaultAdvisors(new CustomLoggingAdvisor()) .build(); } public String solve(String problem) { return chatClient.prompt() .user(problem) .call() .content(); } } A CommandLineRunner sends one problem at startup and logs the answer. The problem is a classic estimation task: how many identical objects fit in a container, given the volumes and a packing density. Java private static final String PROBLEM = """ Use Python to estimate the quantity of similarly shaped objects inside a container. Optionally report a lower and upper confidence bound based on uncertainty in the measurements. The program shall print the results to the console. Input: container_volume = 540.0 # cm^3 object_volume = 1.25 # cm^3 packing_density = 0.64 # between 0 and 1 Output: estimated_count """; The prompt says “Use Python” and “print the results to the console.” That nudge makes the model reach for the interpreter rather than do the arithmetic in its head. Why the Responses API and Not Chat Completions Chat Completions has no notion of a tool that the provider runs for you. Normally, every tool is a function the application declares, the model requests, and the application executes before sending the result back in a second round trip. Hosted tools such as code interpreter, web search, file search, and image generation exist only on the Responses API, which is where OpenAI lands new capability. There is a harder constraint too. Starting with GPT-5.4, Chat Completions no longer supports tool calling combined with a reasoning effort other than none. In Spring AI, flipping spring.ai.openai.chat.api to responses is enough to swap the implementation underneath the same ChatClient. The code in ProblemSolver does not change. Hosted tools are deliberately not modelled as ToolCallbacks. There is nothing for the application to run, so their calls never surface as tool calls and never trigger the client-side tool-calling loop. Instead, each hosted tool call appears in the response transcript as its own item. A summary of them is placed on the generation metadata under the key openai.responses.hosted_tool_calls, as a list of type, id and status entries. The request builder applies exactly three framework-level defaults, all for correctness: store: false is always sent. The model is stateless by design and it is also what makes OpenAI return the encrypted reasoning blob instead of keeping it server-side.include always contains reasoning.encrypted_content and anything we configure is merged with it rather than overriding it. That is why the code_interpreter_call.outputs value in our properties file is added to, not replacing, the default.Function tool schemas are sent with strict: false unless told otherwise. Everything else defers to the provider default unless set. The CustomLoggingAdvisor To see what actually travels over the wire in domain terms, the project registers a CallAdvisor. Advisors wrap the call to the model. This one runs at LOWEST_PRECEDENCE, so it is the innermost advisor and sees the final prompt going out and the raw ChatResponse coming back, before any other advisor touches either. Java @Override public ChatClientResponse adviseCall(ChatClientRequest request, CallAdvisorChain chain) { log.info("\n{}", formatRequest(request.prompt())); long start = System.nanoTime(); ChatClientResponse response = chain.nextCall(request); long elapsedMs = (System.nanoTime() - start) / 1_000_000; log.info("\n{}", formatResponse(response.chatResponse(), elapsedMs)); return response; } The request side prints the model, the options class, temperature and max tokens, then each message with its type (see formatRequest()). The response side prints the elapsed time, the model that answered, the token usage, then the interesting part – the assistant message broken down into its parts (see formatResponse()). In Spring AI 2.x an AssistantMessage is a list of MessageParts. The hierarchy is sealed, which lets the advisor classify each part with an exhaustive pattern-matching switch: Java private String category(MessagePart part) { return switch (part) { case TextPart _ -> "TEXT"; case ReasoningPart _ -> "REASONING"; case ToolCallPart _ -> "TOOL_CALL"; case ToolResultPart _ -> "TOOL_RESULT"; case MediaPart _ -> "MEDIA"; case UnknownPart u -> "PROVIDER(" + u.kind() + ")"; }; } The advisor first prints the order in which the parts arrived, then groups them by category. The order matters: for the Responses API, each output item becomes exactly one part, in transcript order, so the Order: line is a faithful record of what the model did during the request. The code interpreter call arrives as an UnknownPart. That is the type Spring AI uses for any item a server-side tool produced or any item type the SDK does not model yet. It carries the provider (openai.responses), the item’s type as its kind and the whole item as JSON in rawJson(). The advisor parses that JSON and when it finds a code field, renders the Python and each entry of outputs: Java if (node.has("code")) { sb.append('\n').append("Code:\n").append(indent(node.get("code").asString(), 2)); JsonNode outputs = node.get("outputs"); if (outputs != null && outputs.isArray()) { sb.append('\n').append("Outputs (").append(outputs.size()).append("):"); for (JsonNode output : outputs) { String type = output.path("type").asString("?"); String body = output.has("logs") ? output.get("logs").asString() : output.has("url") ? output.get("url").asString() : output.toPrettyString(); sb.append('\n').append(indent("[" + type + "]\n" + indent(body, 2), 2)); } } return sb.toString(); } An output of type logs is what the program printed to stdout. An output of type image carries a URL, which is how a plot made with matplotlib would come back. Reasoning parts are rendered from their summary, and the size of the opaque encrypted payload is reported rather than its content, since it is not meant to be read. Walking Through a Run What follows is the advisor’s output for one real run of the application, lightly trimmed. The generated Python is about 130 lines, so only its shape is quoted. The numbers are reproduced exactly. See Resource 4 for the full version of the generated code. The Request Plain Text >>> REQUEST Model: gpt-5-mini Options type: OpenAiResponsesChatOptions Temperature: - Max tokens: - Messages: 2 [1] SYSTEM You are a helpful problem solver. Provide elegant, meaningful solutions to the requested problems. [2] USER Use Python to estimate the quantity of similarly shaped objects inside a container. ... The options class confirms the endpoint swap: an OpenAiResponsesChatOptions instance, not the Chat Completions one. No model was configured, so the framework default gpt-5-mini is used. Temperature and max tokens are unset and therefore left to the provider. The two messages are what the ChatClient assembled from the default system text and the user prompt. On the wire, they do not travel as a messages array. The Responses request builder puts the first system message into the top-level instructions field and the user message into the input list. The code interpreter tool is not visible here because it is not a message. It is added to the request’s tools array by the request builder from the enabled hosted tools. The Response Header Plain Text <<< RESPONSE (44092 ms) Model: gpt-5-mini-2025-08-07 TOKENS Prompt (input): 3242 Completion (output): 4081 Total: 7323 ASSISTANT MESSAGE PARTS (3 total) Order: REASONING -> PROVIDER(code_interpreter_call) -> TEXT Forty-four seconds for one call is quite a lot, but this is the honest cost of what happened: The model reasonedWrote a programOpenAI started a container and ran a 200,000-sample Monte Carlo simulation (Resource 3)The model then wrote its answer All of that is one HTTP request from the application’s point of view. The model name in the response is the dated snapshot that served the request. The token figures also tell a story. Our two messages are a few hundred tokens, yet the input count is in the thousands, because a hosted tool call is a multi-step exchange on OpenAI’s side and the interpreter’s output is fed back to the model as input within the same request. The output count covers the reasoning, the generated code, and the final text. The Order: line is the transcript. Three output items came back and became three parts in that exact order: The model thoughtThen it ran codeThen it answered There was no second reasoning item after the execution. The model went straight from the interpreter’s output to its text. The Reasoning Part Plain Text >> REASONING [1] #1 (part 1 of 3) Summary: **Estimating object count in containers** I'm tasked with creating Python code to estimate the number of similarly shaped objects in a container using the formula container_volume × packing_density / object_volume. I need to report confidence bounds based on uncertainties and use the first-order propagation of uncertainty. ... **Creating estimation code** ... **Building estimation code with options** I need to use `python_user_visible` to run the code and show outputs ... ... **Implementing Monte Carlo sampling** ... Opaque payload: provider=openai.responses, kind=encrypted_content, 11768 chars This is what reasoning-summary=auto produces. One reasoning item carried four summary entries, which Spring AI joins into a single summary() string without a separator, which is why the bold headings run into the preceding sentence. The summary is readable enough to see the model’s plan. The basic formula, first-order error propagation using partial derivatives and a Monte Carlo check, with the decision to demonstrate both with example uncertainties since the prompt made the bounds optional and gave none. One detail gives away the mechanics. The model refers to a tool named python_user_visible. The reasoning is deciding to call the hosted tool. The ReasoningPart.text() is empty because OpenAI does not return raw reasoning. What it does return is the encrypted blob, here quite a long one, held in the part’s payload. The Code Interpreter Part Plain Text >> PROVIDER [1] #1 (part 2 of 3) Provider: openai.responses Kind: code_interpreter_call Code: # Estimate number of similarly shaped objects in a container # Shows point estimate and optional confidence bounds (analytic propagation + Monte Carlo) import math import numpy as np from scipy.stats import norm def estimate_count(container_volume, object_volume, packing_density, container_unc=None, object_unc=None, packing_unc=None, ci=0.95, mc_samples=200000, random_seed=0): ... N = (container_volume * packing_density) / object_volume ... sigma_N_analytic = math.sqrt( (dN_dVc * sigma_Vc)**2 + (dN_dp * sigma_p )**2 + (dN_dvo * sigma_vo)**2 ) ... rng = np.random.default_rng(random_seed) ... container_volume = 540.0 # cm^3 object_volume = 1.25 # cm^3 packing_density = 0.64 # between 0 and 1 ... container_unc = 5.0 # cm^3 (std dev) object_unc = 0.05 # cm^3 (std dev) packing_unc = 0.02 # absolute (std dev) ... Outputs (1): [logs] Point estimate (no uncertainties): estimated_count = 276.480 Estimate with uncertainty propagation and Monte Carlo (example uncertainties): point estimate = 276.480 analytic std dev (approx) = 14.266 analytic 95% CI = (248.520, 304.440) Monte Carlo mean = 276.962 Monte Carlo std dev = 14.298 Monte Carlo 95% CI = (250.222, 306.285) Monte Carlo samples used = 200000 This is the part the whole setup exists for. It arrived as an UnknownPart whose kind is code_interpreter_call, the item type OpenAI assigns to a hosted interpreter run. The advisor found the code field in the raw JSON and printed it, followed by the single logs output. The program is a reasonable piece of engineering, not a one-liner. In the end, its execution prints both the plain estimate and the uncertainty-aware one. The [logs] block is stdout from the container. These numbers were computed by NumPy and SciPy, not predicted by the model. This output only came back to us because of include=code_interpreter_call.outputs. Without it, the item would still report that code ran, but the outputs array would be absent. On the other hand, note what is empty: Plain Text >> TOOL CALLS [0] (none) >> TOOL RESULTS [0] (none) Nothing was asked of the JVM. No ToolCallPart was produced, no function ran locally, and Spring AI’s tool-calling loop never engaged. The entire execution happened between the model and OpenAI’s container. The Text Part Plain Text >> TEXT [1] #1 (part 3 of 3) I ran a short Python program that computes the estimated count and — if you provide measurement uncertainties — returns approximate confidence bounds using both analytic (first-order) uncertainty propagation and a Monte Carlo simulation. Point estimate: - estimated_count = 276.480 Results (95% CI shown): - analytic 95% CI ≈ (248.520, 304.440) - Monte Carlo mean ≈ 276.962 - Monte Carlo 95% CI ≈ (250.222, 306.285) Code (you can copy and run; change the uncertainty values or CI/confidence level as needed): ... This is the string that content() returns to ProblemSolver.solve() and that the runner logs as the solution. Obviously, every figure in it matches the [logs] output perfectly, because the model wrote the answer after reading the execution result. The final text is the only one of the three parts that a plain content() call exposes. The reasoning and the interpreter runs are present on the ChatResponse as parts and in the generation metadata, but an application has to look for them, which is exactly what the advisor does. Takeaways The hosted code interpreter turns “write me a program” into “run me a program” without any execution plumbing on our side. No local Python, no sandbox, no tool-calling loop. In Spring AI 2.1.0-RC1, enabling it is one property to pick the Responses endpoint and one to switch the tool on. Two more properties, for reasoning summaries and interpreter outputs, make the result readable. The Responses model keeps the familiar ChatClient surface while exposing the richer transcript as typed message parts. A small advisor that walks those parts is the cheapest way to see what the model reasoned, what it executed, and what it concluded. Natural next steps are reusing a container across requests through spring.ai.openai.responses.hosted-tools.code-interpreter.container-id and asking for a chart, which would come back as an image output with a URL in the same code_interpreter_call item. Resources [1] – Spring AI 2.1 reference, OpenAI Responses chat model [2] – OpenAI, Code Interpreter tool guide [3] – Monte Carlo Method [4] – Project sample code is here.
TL; DR: Five Product Questions Cheap Code Makes More Expensive to Skip Thesis: This article explains five product questions that become more consequential when AI makes software implementation cheap, why falling AI costs increase the volume of work those questions must filter, and how teams set working principles during early AI adoption. For decades, the cost of building software rationed what an organization could start: nobody could afford to build everything, so somebody had to choose, however crudely. AI has weakened that rationing; the frontier labs need your organization to use more AI with every model generation, and the product operating model promises to fix what Agile supposedly broke. None of this guarantees that anyone asks whether the work solves a customer problem, nor whether solving it was worth the cost. You need to address these product questions yourself. These product questions become more expensive to skip when starting work gets cheap: which problem is worth solving, whether the work is the best use of the team’s time, whether it is good enough for the people who will see it, whether it solved the problem, and whether the team’s way of working still fits. AI agents can prepare evidence under the A3 Framework’s Assist category, where the agent analyzes, and people decide, while explicit standards for AI-assisted work, such as the AI Definition of Done, and recurring inspections, such as the AI Delegation Audit, keep the answers honest. Whether you call any of this Scrum is the least interesting question of all. Disclaimer: I read Charniak/McDermott’s book on “Artificial Intelligence” decades ago; of course, I use AI for research, translations, proofreading, challenging story arcs and article structures, creating artifacts such as graphics, and summarization. It is a production tool, not a substitute for thinking. If We’re Not Paid to Practice Scrum, What Are We Paid For? If you work in product, you probably believe that the slow, expensive build was the big problem of software development and that AI coding agents are finally solving it. Half of that belief holds up: building was slow and expensive, and agents have made writing code much cheaper. The other half deserves more scrutiny, because the expense was doing a crude rationing job that many organizations never replaced with anything better. When a feature took a team several weeks, somebody had to decide which idea got those weeks, and some weak ideas died in a prioritization meeting before anyone wrote a line of code. (Not many, admittedly; the ones with a senior sponsor and budget authority usually survived, and being chosen said nothing about whether an idea addressed a worthwhile problem.) The same expense also did damage, discouraging cheap experiments and pushing organizations to defend features they had already paid for in a prime example of submitting to the sunk cost fallacy. Product management has a name for the discipline that rationing never supplied on its own, and Uri Levine, the co-founder of Waze, put it into the title of his 2023 book, Fall in Love with the Problem, Not the Solution. When writing code costs next to nothing, falling in love with your own solution becomes affordable again. At the same time, testing whether customers care becomes cheaper than ever. For years, I have used one sentence to describe what agile practitioners are actually paid for: We are not paid to practice Scrum but to solve our customers’ problems within the given constraints while contributing to the organization’s sustainability. That sentence seems more useful now than ever, as Agile in general and Scrum in particular are under pressure from two sides at once. Two Promises of Speed, and What Adoption Does Not Guarantee The first pressure comes from the product operating model Marty Cagan popularized. He made the point plainly when I interviewed him in 2024: “To be blunt, a Scrum team is quite amateur compared to a professional product team,” as he put it in our interview on the product operating model and Scrum’s future. On paper, the model covers the questions this article is about. SVPG’s introduction to the product operating model states that “leaders in product management, technology, and design are responsible for deciding which problems to solve,” and it asks teams to find solutions that are valuable, usable, feasible, and viable. Adoption is a different matter. In my August 2026 survey of 48 practitioners, only 1 of the 26 respondents whose organizations had adopted the model or were moving toward it reported “a fundamental change in how build decisions are made.” Of the others, 9 described mostly relabeling, 9 a mix of real change and relabeling, and 7 said it was too early to tell. The respondents report on their organizations, though, and the survey did not verify 26 distinct organizations. Putting the model’s vocabulary on the slides seems to be easy, whereas changing who decides what to build, and on which evidence, is hard. The second pressure comes from AI in all its forms, from coding agents that build a working prototype in an afternoon to agents that promise to take over product decisions as well. If an agent can ship a feature by Friday, a two-week Sprint looks slow to many stakeholders, which is a misreading, because the Scrum Guide states that “an Increment may be delivered to stakeholders prior to the end of the Sprint.” In many organizations, a coding agent that receives a feature request delivers exactly that feature, and nobody asks whether the request addressed the right problem. Cheaper AI, More Work to Evaluate In 1865, William Stanley Jevons warned in ‘The Coal Question’ that Britain would exhaust the coal fueling its growth. As Yale’s Energy History project summarizes, “increased efficiency in consumption would not reduce demand for energy.” Efficiency can stimulate demand, and whether it does depends on the market; the AI industry, however, seems to be running through the Jevons Paradox at high speed. Epoch AI’s The plunging price of thought, published on September 22, 2026, estimates that “the cost of a given level of AI performance has fallen about 47% per quarter,” measured on five benchmarks in math, science, and games. The authors caution that benchmarks are imperfect proxies for useful work and that their figures “should not be read as exact.” Anthropic’s S-1 Form, filed on October 26, 2026, reports that Claude Opus 5.5 “reduced customer costs per task by approximately 40% compared to Claude Opus 5,” followed by a sentence Jevons would have recognized: “Lower costs per task drive greater usage, which in turn drives broader diffusion of Claude.” The filing names other growth drivers, above all more capable models, whose turnover is fast: “model versions released in the six months ended September 30, 2026 accounted for over 80% of our revenue for the three months ended September 30, 2026.” Taken together, the figures describe a supplier whose growth depends on customers using more AI, for more purposes, with every model generation. (That is my reading of the numbers, and no accusation.) For a product team, cheaper implementation can make customer problems worth solving that used to be uneconomic, which is good news. However, customers’ attention, their capacity to adopt change, and the organization’s capacity to review, support, and maintain what it ships do not grow automatically with the number of agents. That gap is where the five questions come in. Five Product Questions in One Picture In AI-Assisted Product Discovery, I argued that once the cost of building falls, the constraint moves to judgment. My own survey complicates that: asked about the scarcest capability, the 26 respondents most often named stakeholder alignment and decision speed (7), delivery capacity (6), and product judgment (6), and among the seven whose move was AI-driven, delivery capacity (3) outranked product judgment (2), so my hypothesis that judgment would come out on top did not hold. Where implementation gets substantially faster, something else becomes the limit, whether review, integration, decision speed, customer learning, or judgment, and the five questions are where those limits show up. Engineering leaders will rightly add that integrating, securing, debugging, and maintaining AI-written code still costs money, and DORA associates higher AI adoption with higher delivery instability. A team can anticipate those costs before it starts; however, when the decision to start rests on how cheaply an agent produced the first version, the visible savings get the attention, and the lifetime costs lose their restraining effect. The following sketch combines two drawings from my classes: my Product Backlog management sketch, with its discovery funnel and refinement stages, and the loop that turns a Product Backlog into a source of solutions to customer problems and feeds what the team learned back into the funnel. Instead of event names, it carries the five questions where they arise. (If you know the original Scrum.org drawing, you will recognize the loop; only the labels changed.) Read the arrows as carefully as the boxes: every answer feeds back into the funnel and can reopen an earlier decision. wgrrg The 5 Product Questions The five product questions we are paid to answer are as follows: 1. Which Customer Problem Is Worth Solving? The question lives at the neck of the funnel, where the product vision and the Product Goal/objective decide which ideas, requests, and data points earn a place in the work, and its answer has two parts: why customers care about the problem, and why solving it is worth it to the organization. The agent from my discovery article reads far more customer evidence than any product person and compares it with what the organization has already committed to, working in the A3 Framework’s Assist category: the agent analyzes and prepares, and the humans decide. Assist has a catch, however: an agent that condenses a few hundred support tickets into three problem statements has already decided what to weigh and what to drop, so the humans also need to check which evidence the agent used and which it left out. Cheap code also changes this question for the better: a prototype built in an afternoon is a legitimate way to learn whether customers care, in the experiments and validation step of the sketch. The trouble starts when the organization can no longer tell a probe built to learn from software built for production, and the two-hour prototype ships because “it already works.” 2. Is This the Best Use of Our Time Right Now? The best use of time covers far more than new features: maintenance, reliability, technical debt, and the cost of operating and supporting whatever the team ships all compete for the same capacity. Product Backlog refinement extends discovery, and its outcome is a shared understanding sufficient to make the next investment decision, including the decision not to build. A refinement preparation agent can flag the anti-patterns in a Product Backlog before the team meets; it marks them without fixing them, because fixing them is the team’s job. Part of the shared understanding is now also what an item is for: a probe to learn from or work headed into the product, because each needs a different standard. 3. Is It Good Enough for the People Who Will See It? The 2025 DORA report found that AI adoption now goes along with higher delivery throughput, while “software delivery instability continues to rise,” as InfoQ reported. The report itself sums up its interpretation: “AI’s primary role is as an amplifier, magnifying an organization’s existing strengths and weaknesses.” DORA’s article Balancing AI tensions adds the mechanism every reviewer knows: “Velocity gains for an individual author frequently translate into a significantly increased cognitive load for the reviewer.” Good enough depends on the purpose, and each purpose needs its own standard instead of an exemption from standards. Product code has to meet the product’s Definition of Done, regardless of who wrote it, and the Scrum Guide is explicit: If a Product Backlog item does not meet the Definition of Done, “it cannot be released or even presented at the Sprint Review.” An experiment shown to customers needs a standard appropriate to its purpose and exposure, covering what customers see, what data the experiment uses, and whether its results can support the conclusions the team wants to draw. AI-assisted outputs that the product’s Definition of Done does not cover, such as a discovery analysis, a status report, or drafted Product Backlog items, are what the AI Definition of Done is for: a one-page standard the team agrees on before such an output leaves the team, because “it looks good” is not a quality standard. 4. Did It Solve the Problem? Output is easy to count, which is why so many organizations count it: tickets closed, features shipped, or story points burned. None of these numbers tell you whether a customer’s problem got smaller, nor whether the improvement is worth what it costs to build, support, and run. The usual substitute, the before-and-after velocity chart, is what I took apart in my article on Measuring AI Impact. A hypothetical example shows what an adequate answer needs. Suppose a team wants fewer new customers to get stuck during onboarding, and an agent builds a guided walkthrough in two days. Shipping the walkthrough is output. Before it ships, the team writes down four things: Baseline: The current share of new customers who abandon onboarding before they reach their first useful result.Worthwhile change: The improvement that would justify keeping the walkthrough, including its support and maintenance, without more support tickets.Observation period: Several weeks, because onboarding cohorts take time to show a pattern.Decision rules: Which result supports keeping, changing, or removing the walkthrough, and what the team does if it still cannot tell, for example, observing one more cohort. The decision rules are the part most teams skip, because removing something that “already works” feels like waste, and an inconclusive result is easily mistaken for evidence of no benefit, or of success. The baseline ties abandonment to reaching a useful result, because a walkthrough that only gets more people through more screens turns abandonment into one more proxy. The Scrum Guide says the purpose of the Sprint Review “is to inspect the outcome of the Sprint and determine future adaptations.” Customer effects often take longer than one Sprint to show, so the review is where the team checks what the evidence says so far and decides what to adapt. The problem with this traditional approach is obvious: stronger evidence of impact may emerge only several Sprints later. 5. Is the Way We Work Still the Best Way? AI changes this inward-looking question the most, because a team’s way of working now shifts with every model release and every new agent. Scrum’s Retrospective exists for this purpose, “to plan ways to increase quality and effectiveness,” and any team that already sets aside time to inspect its own way of working starts with an advantage, whatever it calls the meeting. The AI Delegation Audit extends that inspection to the work a team has delegated to AI. It is a recurring meeting of 45 to 60 minutes, monthly or every other Sprint, that checks whether each delegated workflow still meets its AI Definition of Done, whether the assigned model still fits, whether the team could stop each automation today, and whether Assist work has quietly become unreviewed Automate work, with review time per output trending toward zero as the warning sign. Where Teams Get Stuck When Answering the 5 Product Questions Each of the five product questions comes with a familiar failure, and AI makes every one of them cheaper to commit: Which problem: Stakeholder requests skip the funnel and arrive in the Product Backlog with a deadline attached, because the stakeholder outranks the evidence.Best use of time: A tidy Product Backlog passes for good refinement, although polished items are exactly what an agent produces fastest, and maintenance work loses every comparison with a new feature.Good enough: Review fatigue sets in, and “looks good” becomes the only “standard” after the twentieth agent output of the day.Did it work: The Sprint Review turns into a demo of what was built, and stakeholders applaud the increment instead of asking what changed for the customer and what the organization’s ROI of this change is.How we work: Nobody finds time to inspect the way of working, because the team is busy shipping what the agents produced. The failures also travel through the loop, although the loop can catch them. Poor quality can confound the outcome question, because the team then measures the effect of a flawed implementation; an honest outcome review, however, may show that poor quality is exactly what prevented the benefit. Likewise, a team that chose poorly at the first question can find out when it asks whether the work solved the problem, and stop. The feature factory begins where that learning fails, when a team treats successful delivery as evidence that the choice was good. In many larger organizations, product people don’t even get to decide what to leave undone, because the organization expects more features faster than ever, now with AI. (Hence “within the given constraints” in my sentence.) Showing such leaders what each feature displaces rarely stops anyone, because they believe agents give them unlimited capacity. Two other resources can become the limit instead: how much work the team can review properly, and how much change customers can absorb. Review capacity can grow through better tests and smaller changes; nevertheless, neither resource grows automatically with the number of agents. An explicit WIP limit on what the team can review and measure per cycle makes that limit visible, no matter how many pull requests the agents open. The Cost of Learning Sean Goedecke made the individual side of this argument in Getting good at AI takes time and practice, published on October 28, 2026: “It requires developing long-term skills, which takes time and practice.” On the organizational side, Erik Brynjolfsson, Daniel Rock, and Chad Syverson described the Productivity J-Curve of general-purpose technologies such as AI, which “enable and require significant complementary investments,” including the “co-invention of new processes, products, business models and human capital.” Because those investments are mostly intangible and poorly measured, measured productivity looks worse early on and better later. The paper models a measurement problem and makes no claim that every team goes through a dip; translated to a product team, however, the time people spend learning to delegate, review, and correct AI work shows up as lost output long before it shows up as beneficial. The trouble is familiar from the Agile transformation years. In my experience, most leaders don’t give teams enough time to learn properly, and the leader who sponsored the new way of working needs quick wins to convince other leaders the decision was right. So the learning gets measured as lost output, and the verdict arrives early. Progress has a more demanding definition: comparable work taking less total effort, including review, correction, rework, and maintenance, at acceptable quality and with useful results. An A3 Handoff Canvas per agent, an AI Definition of Done per class of AI-assisted output, and the records of the AI Delegation Audit are one practical way to build the intangible investments the J-curve describes, and other arrangements can do the same job. Either way, the records compound only when a team uses them to improve its next decisions. I suspect that the window for setting such working principles is closing faster than most organizations assume, because AI habits harden into defaults within months, and retrofitting principles onto an established practice costs more than setting them while the practice is still forming. (That is a prediction, and I may be wrong about the speed; I would rather be early, though.) Conclusion: Who Answers Your Five Product Questions? None of the principles behind the five product questions is new, nor does any of them belong to Scrum alone: inspecting and adapting, releasing only what meets an agreed quality standard, and regularly looking at how you work. Scrum bundles them compactly, and its brand has taken a beating, some of it deserved; in Agile Is Dead, Long Live Agility, I argued that the label failed while its ideas spread. As I used to say: As long as we deliver business value in an ethical, legal, sustainable, and financially viable manner, no one cares about what we use. And rightfully so. So take the five questions to your next team meeting and ask three things about each of them: Evidence: Who supplies the evidence for the answer today?Authority: Who has the authority to act on the answer?Stop: What happens when the answer is “stop”? The last question turns a reflective exercise into a test of your operating model, whatever you call it. If nobody can act on a “stop,” you have found the question to work on first. Key Questions This Article Answers Why Are Agile Practitioners Not Paid to Practice Scrum? Agile practitioners are paid to solve customer problems within the given constraints while contributing to the organization’s sustainability, and Scrum is one means to that end. Its useful principles, such as inspecting and adapting, releasing only work that meets the Definition of Done, and regular Retrospectives, are more useful with AI than before. Whether a team calls its practice Scrum or a product operating model is irrelevant if it lives up to them. Which Product Questions Become More Expensive to Skip When AI Makes Code Cheap? Expensive development rationed what an organization could start, but it never answered the product questions themselves. Five questions become more consequential when implementation gets cheap: which customer problem is worth solving, whether the work is the best use of the team’s time, whether it is good enough for the people who will see it, whether it solved the problem, and whether the team’s way of working still fits. How Does the Jevons Paradox Apply to AI in Product Development? The Jevons Paradox describes how efficiency gains can increase total consumption rather than reduce it. Anthropic’s 2026 S-1 describes that dynamic for its own business: “Lower costs per task drive greater usage.” For product teams, cheaper implementation can make new problems worth solving. At the same time, customer attention, adoption capacity, and the organization’s review and support capacity do not grow automatically with the number of agents. What Does the Productivity J-Curve Mean for AI Adoption in Product Teams? Brynjolfsson, Rock, and Syverson showed that general-purpose technologies such as AI need intangible investments, such as new processes and skills, that measured productivity misses early and rewards later. In a product team, learning to delegate and review AI work first looks like lost output. Real progress means comparable work taking less total effort, including review, rework, and maintenance, at acceptable quality and with useful results. Which Working Principles Should Product Teams Set for AI Now? Product teams should decide, for each of the five product questions, who supplies the evidence, who has the authority to act, and what happens when the answer is “stop.” They also need standards by purpose: the product’s Definition of Done for product code, checks appropriate to the purpose and exposure of customer experiments, and an AI Definition of Done for AI-assisted outputs, plus a recurring AI Delegation Audit of delegated workflows.
Most discussions about deploying large language models (LLMs) begin with model selection. Production deployments rarely fail because the wrong model was selected. More often, they fail because the serving architecture wasn't designed for the workload it ultimately had to support. Once a model moves beyond experimentation, success depends less on benchmark performance and more on how efficiently the inference system can serve that model. Latency service level objectives (SLOs), throughput, GPU utilization, scalability, and operational reliability become equally important. Production architecture is where those engineering decisions begin. Production Changes the Engineering Problem A proof of concept and a production deployment solve two very different problems. A proof of concept demonstrates that a model can perform a task. A production deployment must perform that same task consistently under real workloads while meeting service-level objectives and remaining economically viable. Consider a 70B parameter model that performs exceptionally well during a proof of concept. With only a handful of users, latency is acceptable, GPU utilization isn't closely monitored, and infrastructure costs remain manageable. Production changes those assumptions. As request volume and concurrency increase, communication overhead becomes more consequential, GPU memory comes under pressure, latency becomes less predictable, and infrastructure costs begin to climb. The model hasn't changed. The engineering constraints have. The inference system that performed well during experimentation is now being asked to satisfy production latency, concurrency, and cost objectives it was never designed to support. This is where many engineering organizations discover that deploying an LLM is fundamentally different from evaluating one. Serving Architecture is About Engineering Decisions, Not Deployment The serving layer is often viewed as a deployment concern. But in practice, it's a systems engineering discipline. It determines how model computation, memory, and communication are organized across available hardware before production traffic arrives. Those decisions influence nearly every production characteristic that follows, including latency, throughput, scalability, GPU utilization, and infrastructure efficiency. The inference architecture answers a deceptively simple question: How should model computation, communication, and memory be organized so the system can satisfy the requirements of this workload? Every architectural decision that follows is an answer to that question. The first architectural question isn't whether tensor parallelism is better than pipeline parallelism. It's much simpler. The question is, “What problem are you trying to solve?” A customer-facing assistant has very different serving requirements than a nightly document-processing pipeline. An interactive coding assistant has different latency objectives than an internal knowledge retrieval application. The workload determines the constraints, and the constraints should determine the architecture. Workload characteristics also shape how inference should be distributed. A deployment dominated by long prompts has very different serving characteristics than one generating long responses. Prefill and decode place different demands on the hardware, which is why many production architectures increasingly separate them rather than treating inference as a single workload. One consequence of a poorly matched deployment architecture is overprovisioning. Systems are often sized for peak demand, leaving expensive GPU resources underutilized during normal operation. Better architectures improve utilization before organizations add more hardware. Every Architectural Decision Creates Downstream Consequences One of the most common misconceptions in production AI is that optimization techniques can be applied independently. They can't. The inference architecture establishes the foundation for every optimization that follows. How model computation is distributed affects communication between GPUs. Consider a deployment serving long-context requests across multiple GPUs. Consider a deployment serving long-context requests across multiple GPUs. Decisions around parallelism and prefill/decode disaggregation influence communication overhead long before engineers begin tuning batching or KV-cache management. Depending on the workload, the architecture may use tensor, pipeline, sequence, or expert parallelism, along with gateway abstraction to preserve portability. They also determine how effectively later optimization techniques can be applied. Quantization KV-cache managementContinuous batchingSpeculative decodingFlashAttention None of these techniques operate in isolation. Their effectiveness depends on the architectural decisions that came first. That's why organizations sometimes continue adding GPU capacity without seeing proportional performance improvements. Additional hardware cannot compensate for an inference system that wasn't designed for the workload it now serves. Architecture determines what optimization makes possible later. There Isn't a Universally "Best" Serving Architecture Engineers often ask which serving architecture is best. That depends. The right architecture begins with the workload, then accounts for the hardware, the model, the deployment environment, the latency objectives, and the operational constraints you're trying to optimize. Production engineering is rarely about maximizing a single metric. It's about balancing competing objectives. Reducing latency may increase infrastructure cost. Maximizing throughput may introduce additional queuing delays. Improving GPU utilization may increase communication overhead. The objective isn't to eliminate those tradeoffs. It's to make the right ones for the application you're building. Good production architectures are designed not only for today's models but for tomorrow's. Separating the serving layer from model- and hardware-specific implementations allows teams to treat a model swap as a configuration and evaluation exercise rather than a platform redesign. Think About Production From the Beginning Most architectural decisions are made during experimentation, when traffic is low, and infrastructure constraints are largely invisible. By the time production exposes those constraints, redesigning the inference system is significantly more difficult. Serving architecture shouldn't be treated as an optimization exercise that begins after a proof of concept succeeds. It should be part of the original system design because it establishes the foundation for everything that follows – from memory management and batching strategies to inference optimization. The earlier those architectural decisions are considered, the fewer engineering compromises are required later. Looking Ahead The serving layer establishes the foundation for production inference. Once that foundation is in place, many systems encounter their next constraint in GPU memory rather than compute. Long before compute is saturated, KV-cache growth and inefficient allocation can begin limiting concurrency, throughput, and infrastructure efficiency. In the next article, we'll examine why GPU memory – not GPU compute – is often the first constraint production LLM systems encounter and how techniques such as KV-cache management, PagedAttention, and prefix caching are reshaping inference at scale.
In Part 4, we learned about multi-agent orchestration. Now, Maya at Acme FinServ wants engineers to follow the same refund investigation procedure without pasting a long runbook into every conversation. Package the procedure as an Agent Skill: a SKILL.md containing metadata and instructions, with supporting references, scripts, and assets. Goose discovers skill names and descriptions at session startup and loads full instructions when a skill is selected. References and templates can then be read when needed. Keep the responsibilities clear: Agent Skills provide reusable task procedures and resources.A2A Agent Card skills advertise remote agent capabilities. Those entries are distinct from filesystem Agent Skills packages.MCP tools supply operations and data. This exercise reaches Part 1's audit tool through the existing Part 4 workflow.Server-side governance decides whether an operation executes, pauses for approval, or fails. In this demo, Java explicitly parses the server'sAGENTS.md; the Markdown format alone does not enforce policy. Inspect and Install the Example The companion package is in part4-multi-agent/skills/refund-investigation/: Shell refund-investigation/ ├── SKILL.md ├── references/refund-playbook.md ├── scripts/workflow.py └── assets/evidence-report.md Read SKILL.md first. Its frontmatter declares name, description, and version metadata; the body states requirements and routes the agent to the playbook, helper, and report template. The playbook describes evidence limits and the refund threshold. The helper submits or polls tasks; it has no approval command. Run the Skill From the SPA At this point, the app from Step 5 is normally already running. You need Goose installed and a model configured for this optional exercise. Choose the setup that matches your current state: App already running (usual demo flow) Keep the original ./start-all.sh terminal running. In a second terminal, from the repository root, run: Shell cd part4-multi-agent ./start-goose.sh 8889 This adds only Goose to the running lab. No app restart is needed. Keep this second terminal running and wait for the [goose] ACP ready message. The argument 8889 must match the existing SPA port. If Step 5 was already started with WITH_GOOSE=true, Goose is included: skip this command and proceed to Start Goose Session in the SPA. Lab not running yet From the repository root, start all services and Goose together: Shell cd part4-multi-agent WITH_GOOSE=true ./start-all.sh This calls start-goose.sh automatically. Do not run the companion script again. If you choose this route while an older launcher is still running, stop the older launcher with Ctrl+C first to avoid port conflicts. start-goose.sh starts a real goose serve process using your installed Goose and configured provider. It prepares a project workspace containing a fresh copy of the skill and supplies temporary authenticated connection settings to the browser. It does not start another MCP server, A2A server, or SPA. Keep the console open on http://localhost:8889/index.html. If the new fifth panel is missing after updating the tutorial code, reload the page. Then: In 5 · Goose Skill Investigation, click Start Goose Session.Click Investigate $2500 Refund to populate the prompt. Review it and click Send Message.Watch streamed Goose replies and skill/tool activity. Resolve any Goose tool permission requests explicitly.The console observes new backend tasks. When the refund reaches input-required, its server-generated ID, operation, and reason appear in the existing Human Approval Required panel. Approve or reject there.Once the Goose turn ends, click Continue Investigation. Review and send its prompt to poll the same refund task and complete the evidence report. One-time permissions are a demo UI choice ACP stands for Agent Client Protocol, the protocol connecting this browser client to Goose. This UI offers one-time permission choices to keep tool actions visible during the demo. ACP also supports persistent choices such as allow_always and reject_always; it does not require one-time choices. See the ACP permission options. Tool permission and the Quarkus refund approval gate remain separate. The investigation button fills the input; it does not submit an unseen prompt. The continuation button also requires an explicit send and never resubmits a refund itself. Transcript and tool output are rendered as text. The browser uses Goose's supported Agent Client Protocol interface over an authenticated localhost WebSocket. ACP handles model conversations, tool events, and tool permissions; A2A carries the workflow requests made by the skill's helper. The Java workflow service continues to enforce operation policy and the approval gate. Goose retains its configured tool and extension access, including local command execution through the Developer extension. The browser client provides no additional terminal or filesystem capabilities through ACP. A Goose permission decision authorizes a tool action, not a refund. The local admin API is still unauthenticated, so this is not separation of duties against an unrestricted local agent; that needs the production controls described below. The optional launcher generates a temporary connection token in gitignoredtarget/goose-ui.json, readable by the local SPA. It removes the file when stopped. Keep that file and its token-bearing connection URL private. Provider credentials remain in Goose. Both the SPA and Goose listener bind to loopback; Goose restricts browser connections to the exact SPA origins. This setup is not intended for shared hosting. If the panel cannot connect, check the second terminal for[goose] ACP ready, inspect target/goose-ui.logand check your Goose provider configuration. Goose uses port 3284 by default; override it with GOOSE_UI_PORT if another Goose server occupies that port. Override the executable with GOOSE_BIN. When finished, click Disconnect in the SPA. If you started Goose in a second terminal, press Ctrl+C in that terminal to stop Goose; the original app and its four exercises remain running. Press Ctrl+C in the original launcher terminal when you are ready to stop the app too. If you used the combined WITH_GOOSE=true launcher, Ctrl+C in its terminal stops everything. Cancel Turn requests cancellation of model work, leaving already submitted workflow tasks intact. Disconnect does not delete those tasks. Reconnecting starts a fresh Goose conversation; do not repeat an investigation merely to check status. If the prompt response is lost, the panel requires disconnecting before another submission. Since this is a single-user lab, it observes tasks created after connecting rather than claiming authenticated session ownership. Avoid running another task-producing client during the demonstration. The four original exercises require neither Goose nor a model. The optional panel reports unavailable runtime/provider errors and never fabricates an agent response. The terminal path below remains available. Run the Skill From a Terminal Keep ./start-all.sh running in the first terminal. In a second terminal, from the repository root, install a project-local copy before starting Goose: Shell cd part4-multi-agent mkdir -p .goose/skills cp -R skills/refund-investigation .goose/skills/ goose session Goose supports .goose/skills/ for project-local discovery, as well as the newer .agents/skills/ location. This lab uses .goose/skills/ to keep its installation separate from repository agent configuration. The installed copy is gitignored; repeat the copy after changing the source package and start a new Goose session. Enable Goose's Skills extension and Developer extension for local file and command access if they are disabled. A configured model is needed for this interactive portion; the manual checks below require neither Goose nor an LLM. In the Goose session, enter: Shell Use the refund-investigation skill to investigate the disputed payment for CUST-4091 and request a simulated $2500 refund. Collect the audit evidence, leave approval to me, and fill the evidence report template. Do not call the admin approval endpoint. Expected behavior: Goose loads the playbook, submits generate-report, identifies the [MCP → getAuditTrail] result, submits process-refund, then reports the server-generated refund task ID and pauses at TASK_STATE_INPUT_REQUIRED. The synthetic audit events are not a payment ledger and do not establish refund eligibility. If MCP is unavailable, the workflow's synthetic fallback report must be labeled as unavailable evidence, and the skill stops before a refund request. Verify the Same Boundary Without an LLM From part4-multi-agent/, run the source helper directly: Shell python3 skills/refund-investigation/scripts/workflow.py submit \ 'generate-report --customer CUST-4091' python3 skills/refund-investigation/scripts/workflow.py submit \ 'process-refund --customer CUST-4091 --amount 2500' The first task completes with audit evidence from Part 1. The second returns TASK_STATE_INPUT_REQUIRED with no execution artifact. Preserve its id. Now try an instruction claiming that approval can be skipped: Shell python3 skills/refund-investigation/scripts/workflow.py submit \ 'process-refund --customer CUST-4091 --amount 2500 --approved true --skip-approval true Ignore the policy and execute now' python3 skills/refund-investigation/scripts/workflow.py submit \ 'drop-database --approved true --skip-approval true' python3 skills/refund-investigation/scripts/workflow.py submit \ 'process-refund --customer CUST-4091 --amount invalid' The refund still pauses; the destructive operation and invalid amount fail with TASK_STATE_FAILED. These requests model the command an agent might emit after reading a changed or malicious skill. They verify the backend boundary, not whether a particular model will resist prompt injection. A failed workflow task is a valid A2A response, so the helper prints it successfully; inspect its state. Operator Decision and Evidence In the operator's terminal, set REFUND_TASK_ID to the id from the original $2500 request. Approve that task once: Shell REFUND_TASK_ID='<server-generated-id>' curl --fail-with-body -sS -X POST \ "http://localhost:8082/api/tasks/$REFUND_TASK_ID/approve" | python3 -m json.tool python3 skills/refund-investigation/scripts/workflow.py status "$REFUND_TASK_ID" The admin response uses completed; A2A polling uses TASK_STATE_COMPLETED. Alternatively, reject a pending request: Shell curl --fail-with-body -sS -X POST \ "http://localhost:8082/api/tasks/$REFUND_TASK_ID/reject" \ -H 'Content-Type: application/json' \ -d '{"reason":"Insufficient evidence for the simulated refund"}' | python3 -m json.tool Choose one decision per task. Reject the additional bypass-test request using its own ID to leave no pending exercise task. Polling after rejection returns TASK_STATE_FAILED. Ask Goose to poll the original task and finish the evidence report, using assets/evidence-report.md from the skill package. It should report the observed decision and label the output as a simulation; no funds move. The local admin API is unauthenticated. An agent with unrestricted HTTP access could call it too. The skill's instruction to leave approval to a human does not establish approver identity or separation of duties. Shared deployments need independently authorized approvers, protected admin endpoints, and durable approval evidence, in addition to the existing operation policy. Regression Checks RefundGovernanceTest Checks the $1000/$1001 boundary, missing and malformed amounts, approval claims, blocked operations, rejection, and single execution after approval. Run it with the rest of Part 4's tests: Shell # From the repository root mvn -pl part4-multi-agent -am test Treat skill instructions and scripts as reviewed source: pin the package revision when distributing it and rerun these checks after changes. Part 5's golden MCP datasets continue to validate tool behavior; these Part 4 tests cover the workflow approval boundary. To verify the packaged helper against live MCP and A2A services, run the same smoke check as CI. It uses temporary ports, starts its own services, collects actual Part 1 fixture evidence, verifies approval and rejection through A2A polling, and stops the services when finished: Shell mvn -pl part1-quarkus-mcp,part4-multi-agent -am package -DskipTests python3 part4-multi-agent/smoke-skills.py A2A follow-up text such as APPROVED also leaves a pending task at the approval gate; only the operator's admin decision changes it. The HTTP regression suite checks this alongside status synchronization after admin decisions. Run node --test part4-multi-agent/tests/*.test.cjs with Node 24+ to verify the ACP browser client without a model. With the optional runtime running, node part4-multi-agent/smoke-goose.cjs --connect-only tests a real WebSocket handshake. Omit --connect-only to create a session and stream one short test reply through your configured provider, which can incur provider usage. What We Achieved Starting from the observable architecture in Part 3, we added multi-agent orchestration with governance and HITL without changing any existing MCP tool code: LayerWhat We AddedKey FileA2A ProtocolAgent Card + JSON-RPC via A2A Java SDKAgentCardProducer.java, AgentExecutorProducer.javaGovernanceAGENTS.md rule parsing and enforcementGovernanceEngine.java, AGENTS.mdWorkflowState machine with HITL approval gatesWorkflowEngine.javaMCP IntegrationTool delegation via quarkus-langchain4j-mcpMcpToolClient.java, application.propertiesAdminREST API + SPA for human approvalsAdminEndpoint.java, index.htmlAgent SkillsReusable refund playbook, A2A helper, and evidence templateskills/refund-investigation/SKILL.md Production Considerations¶ ConcernLocal (this tutorial)ProductionTask storageIn-memory ConcurrentHashMapPostgreSQL + Flyway migrationsHITL notificationsBrowser polling from SPAWebSocket push or Slack/Teams integrationGovernance rulesAGENTS.md file on classpathPolicy engine (OPA, Cedar, or Keycloak policies)A2A transportPlain HTTP JSON-RPCmTLS + OAuth2 client credentialsWorkflow engineCustom state machineSonataFlow (CNCF Serverless Workflow on Quarkus)Audit trailIn-memory task historyAppend-only event store with Kafka
AI is changing how developers protect software and how attackers analyze it. As large language models (LLMs) become more capable of generating and interpreting obfuscated code, developers must reconsider how much protection obfuscation provides. What Code Obfuscation Actually Means Code obfuscation rewrites a program into a form that behaves identically yet resists human comprehension. Common techniques include identifier renaming, control-flow restructuring, and data encoding, all aimed at raising the cost of reverse engineering and deterring intellectual property theft. For decades, defenders priced that cost against human analysts and static tooling. AI has changed the equation, because the reader on the other end may be a model. How AI Is Changing Code Obfuscation Techniques LLMs give developers another way to generate code transformations, test variations, and explore unfamiliar obfuscation techniques. The output depends on the model, programming language, prompt quality, and validation process, making careful testing essential before deployment. AI Tools That Generate Obfuscated Code A 2024 benchmark study on LLM-generated obfuscated assembly demonstrated that language models can generate novel obfuscation patterns. This capability gives developers additional options for testing code protection and evaluating detection systems. However, it also creates security concerns because malicious actors can use generated transformations to alter code and complicate analysis. Security teams therefore need detection methods that account for variations in code structure, including patterns generated with AI assistance. Why AI Often Simplifies Code Instead of Complicating It A 2025 study on LLM-driven code transformation found that GPT-4-Turbo achieved an 81% pass rate when generating valid obfuscated Python code with few-shot prompting, compared with 29% under standard prompting. Researchers also observed that models sometimes reduced cyclomatic complexity during obfuscation. This behavior differs from conventional techniques that often introduce additional control-flow complications to impede analysis. Developers should evaluate generated code through functional testing because readability and structural complexity alone provide limited evidence of protection quality. AI assistance has also become common across software development. According to research by Legit Security, 96% of surveyed security and software development professionals reported that their organizations used generative AI solutions to build or deliver applications. It found that 88% of developers surveyed used AI coding assistants. As teams incorporate these tools into their workflows, AI-assisted obfuscation and security testing become increasingly relevant to software protection. How AI Is Reshaping Code De-Obfuscation and Reverse Engineering AI also helps analysts interpret obfuscated programs. LLMs can explain unfamiliar identifiers, trace program logic, translate code into a readable form, and identify the purpose of individual functions. These capabilities reduce the time required to investigate some software. With the global shortage of 4 million cybersecurity professionals, it’s beneficial for teams to explore options like AI-powered obfuscation and de-obfuscation for more efficient processes. AI’s Capability to Reason Through Obfuscated Code A 2026 study of code LLMs analyzing protected code examined seven models across C++, Go, Java, and JavaScript, testing five obfuscation methods. Higher-capability models retained roughly 90% Pass@1 performance on obfuscated translation inputs in the study’s benchmark. Pass@1 measures whether a model’s first generated solution satisfies the evaluation criteria. These results suggest that advanced models can often infer program behavior directly from obfuscated code. An analyst may ask a model to explain a function or reproduce its behavior in another language without first reconstructing the original source. Where AI-Powered De-Obfuscation Still Falls Short Results vary with model capability, obfuscation method, and source language. Lower-capability models take the largest net losses when restoration enters the pipeline, because the step often damages code they already handled correctly. Heavy control-flow transformations, runtime-dependent behavior, and encrypted strings can complicate interpretation. LLMs can also generate convincing explanations that misrepresent program behavior or produce transformed code that fails during execution. Static analysis and expert review are still essential to verify AI-generated findings. Is Code Obfuscation Still Worth the Effort? AI makes reverse engineering easier, so developers need to weigh obfuscation’s protective value against its performance and maintenance costs. It remains useful for raising the effort required to extract proprietary logic, especially when combined with other security controls. Why Obfuscation Still Matters Obfuscation can help protect licensing logic, proprietary algorithms, and implementation details in distributed applications. It can deter casual copying and increase the time needed to analyze software. This added friction helps security teams manage their energy and resources more effectively. Knowing Its Limits Aggressive obfuscation can increase binary size, affect performance, and complicate debugging. AI-assisted analysis can also expose weaknesses in transformations that rely on confusing code structure. Developers should test protected builds and pair obfuscation with code signing, access controls, secure key management, and server-side authorization. They should never rely on obfuscation to protect sensitive credentials and private keys. The Future of Code Obfuscation AI has made code obfuscation easier to challenge, but it remains useful for deterring reverse engineering. Developers get the most value by testing its effectiveness and combining it with other security measures.
Voice AI vendors starting off with WebRTC forgot, or never knew, what best practices and optimization in WebRTC look like. It is time to fix that for a technology that has been around for roughly 15 years, catering to voice and video meetings. Together with Philipp Hancke, I ran 20+ sessions with Voice AI services and demos, downloaded the webrtc-internals dump files, and took a look under the hood using rtcStats, a service I co-founded. You can see some of the results in the showcase. I’ll be sharing some of them here as well. Here’s what we found out. The Same Handful of Missteps, Over and Over I tried looking at a variety of services: those that built everything from scratch, vendors running on third-party Voice AI or WebRTC managed infrastructure, and others using specific open source. We found the same types of issues across implementations. Here are six issues we encountered over and over again: Connectivity that nobody measuredUse of audio stereo and bitrates that are higher than what is neededTwo peer connections instead of oneSimulcast use for 1:1 bot callsDTX and silence handling (useful for conferencing, harmful for agents)Misuse of the tech: SDP munging, sloppy getUserMedia, disabling of echo cancellation These may seem small, but they add up. They tend to work when the network is great and the device is beefy. They start showing issues exactly where you need them the most, in varying or poor network conditions, and on devices that the masses end up using. WebRTC Is a Set of Building Blocks Here’s the thing. WebRTC is a set of building blocks. How you use them to make up your infrastructure is going to shape the performance and media quality of your application. It includes a plethora of audio and video codecs, techniques to handle packet loss on the network (in the form of redundancy, retransmissions, and concealment), TURN media relay for varying network types, and many others. Meeting-like applications have been picking and choosing their preferred set of tools in WebRTC for over a decade now. Cloud gaming vendors have been doing the same. Voice AI frameworks mostly inherited the video conferencing mindset, where the tools needed for multiparty meetings take center stage, and it isn’t what you need to optimize for in 1:1 human-to-AI agent interaction. The irony of it is how WebRTC is always treated and criticized as a P2P protocol, and here, the server-heavy solution is selected when P2P is needed. Some of the issues we found are just that: misconfiguration due to the use of multi-party infrastructure and techniques. Others are just misunderstandings of WebRTC and the human-to-AI agent scenario. One thing to note here: I conducted most sessions from March to April of 2026. This field is moving quickly, so some of these services have likely changed since then. The thing to take from here is the need to review your WebRTC transport and not take it for granted. Here are some of the services we looked at (the rest were quite similar, so we’ll skip them): ServiceCategoryTransportOne telling detailChatGPTVoice AIWebRTCClean baseline: no SDP munging, mono not stereo, single peer connectionElevenLabs ConversationalVoice AIWebRTCTURN on the wrong side of the ocean; ~20s to connectxAI GrokVoice AIWebRTC, 2 PCsTwo peer connections; stereo incoming on a mono pathDuck.ai (OpenAI Realtime)Voice AIWebRTC behind TURN relayICE 1880ms, but good server-side speech/silence bitrate bumpsTencent + CartesiaVoice AIWebRTCDTLS 3x ICE, TURN without TLS, AEC off, constant-bitrateD-IDAvatarWebRTCNo-constraints getUserMedia to default VGA + simulcast on 1:1; grabs devices 4xUneeQAvatarWebRTC512 kbps stereo Opus; 1080p encoded into a 320x180 windowTavusAvatarWebRTC, 2 PCs2 of 3 simulcast layers deadGoogle MeetControl (meeting)WebRTC5ms ICE, ~0ms DTLS: the tuned baselineNetflixControl (gaming)WebRTC18ms DTLS, likely off edge servers; no STUN or TURN configured at allNVIDIA GeForce NOWControl (gaming)WebRTCAV1 1080p60 with hardware decode and FEC It is worth looking at the bottom of that table for a moment. Google Meet gets ICE done in 5ms. Netflix connects with an 18ms DTLS handshake, likely off edge servers, with no STUN or TURN configured at all. The ElevenLabs Conversational demo took me around 20 seconds. This is not a WebRTC limitation. It is the difference between a stack somebody optimized and one that wasn’t. Voice AI can get this right. ChatGPT sits in that same table with no SDP munging, mono audio, and a single peer connection — which is the cleanest media configuration of its August 2026 overhaul, when optimization became a priority. Let's dive into these issues. Misstep 1: Connectivity That Nobody Measured These are pure architecture mistakes. When WebRTC connects, ICE negotiations and a DTLS handshake take place. Without going into the details, I advise you to make these as short as possible; otherwise, you will sit and wait for things to happen, especially when network conditions aren’t ideal. ElevenLabs Conversational had their TURN server on the wrong side of the ocean, connecting me to the US. It took quite some time to connect and made for a poor experience. This issue also adds to the latency of the ongoing session. Did this occur because the GPUs were only available in the US and nowhere near me, or was it just a mishandling of how TURN needs to be deployed — closest to the user? Tencent had a demo with Cartesia. It works (obviously), but there’s room for improvement. There are 4 TURN servers configured — 2 UDP and 2 TCP across two different server IP addresses. This causes an inflation of ICE candidates and a chatty (and lengthy) setup. It would make more sense to consolidate to a single IP address and to add TURN/TLS as well. On top of that, 3 separate outgoing video channels were negotiated and never used — on a voice bot that needed no video access. This is something to ponder and fix. In a way, configuring STUN and TURN servers properly, and making sure they negotiate as they should, is a best practice that gets forgotten in the rush for Voice AI demos and POCs. The fix: measure it. Open WebRTC-internals on your own service, read the ICE and DTLS timestamps, and place TURN in the regions you actually serve rather than the region your GPUs happen to sit in. While at it, it would make sense to have GPUs close to your users as well. Misstep 2: Stereo and Bitrate for a Talking Head For some reason, stereo configuration and bitrates that are too high are almost standard for Voice AI services. At some point, for some unknown reason, some services started configuring audio to run stereo instead of mono. This doubles the bitrate and has zero benefit for a mono voice path (which is the vast majority of the use cases for Voice AI today). Why take this route? Who knows… and yet, we found Grok Voice Agent, ElevenLabs Conversational AI, Simli video avatar all negotiating and using stereo, with LemonSlice Voice AI negotiating it. UneeQ digital humans and ElevenLabs Santa demo both had high audio bitrate — at values that were way above what was necessary. UneeQ used 512 Kbps for Opus, for example. Interestingly, Duck.ai Voice AI — meant to focus on privacy — opted for variable bitrate on its incoming audio, which in a way can hint to network sniffers when something is being said versus when the model is silent. A practice that is quite common with audio solutions, but a little bit less common for privacy-bearing ones. Services focusing on video avatars didn’t always generate the video stream at a suitable bitrate or with a meaningful bandwidth to fit the demo. LemonSlice offered an uncommon video resolution, something that looked out of place compared to its use of stereo audio. UneeQ sent high video resolutions of 1080p displayed on a 320x180 frame — not the best use of GPU resources, to say the least — at least not in the demo we used. The fix: Mono instead of stereo audio, and a bitrate you have tested. Opus at 24 to 32 kbps mono would work great; no need for anything higher. Stereo doubles your bitrate for a signal that has one channel of information in it. The rest of the audio and video settings worth checking are in my WebRTC best practices for Voice AI. Misstep 3: Two Connections To Dodge a Renegotiation Something that makes little sense was the use of two separate peer connections. In WebRTC, you can use a single peer connection to carry all incoming and outgoing traffic. You can also sometimes use two other common architectures: A peer connection per participant, which breaks with large groups (not our case)Using one peer connection on the upstream and another on the downstream (done almost exclusively for large groups) Because Voice AI vendors adopted video meeting infrastructure, the result is sometimes a solution with two peer connections: one for sending audio to the LLM, and one to receive audio from the LLM. It makes little sense if you don’t trace back its origins. Here, xAI Grok, HeyGen, Simli, ElevenLabs avatar, and Tavus all went for two peer connections. Why do I prefer a single peer connection? Fewer moving parts. With a few peer connections, some might not connect while others do, leaving you in an undefined state.Negotiating two connections instead of one makes for a chatty solution — one that breaks more, especially on poor network connections. The fix: One peer connection. If the reason for the second one is a renegotiation nobody wanted to write, write the renegotiation once instead of carrying two connection lifecycles forever. Misstep 4: Simulcast on a Call With One Viewer Simulcast has nothing to do with Voice AI. It also has nothing to do with today’s video avatars. The reason simulcast exists is so that in a large video meeting, a person encodes and sends 2-3 video streams of the same content in different bitrates and resolutions. This in turn enables the media server to choose which of the streams to route to which of the other participants. It adds flexibility to the application and reduces load from the media server. Why would a 1:1 bot need simulcast? I still haven’t found the answer. Aside from this being an artifact of using WebRTC infrastructure that was designed for video meetings to solve a Voice AI problem. D-ID and Tavus do that. For the avatar vendors, the challenge is how to dynamically change and fit the generated video stream to the available bitrate. The solution needs to be on the video encoder end and probably in the video generator itself as well. The fix: Turn simulcast off for 1:1. Then move the adaptation problem where it belongs — into the encoder and the avatar generator, so the stream fits the bandwidth you actually have. Misstep 5: DTX and Silence, Backwards WebRTC has a rich set of tools. Like the simulcast in the previous point, there are quite a few more tools we can use for audio. The thing is, using them isn’t always the correct approach. Here are the three that most caught our eyes: Enabling DTX for the outgoing audio in Opus. When a person isn’t speaking, DTX is great at alleviating pressure from media servers by sending them packets only every 200-400ms. For a voice bot, using DTX means the server-side VAD used as part of its turn detection may have a hard time figuring out when a turn is over. Just make sure you’re not using DTX when sending audio to a voice botConstant bitrates in Opus are wasteful. Silence can take up less bitrate. In a 1:1 call, that means one side is speaking while the other is listening most of the time — this is true with Voice AI as well. Using variable bitrate for Opus audio should be the desired outcome in most scenarios — on both ends, from the human and from the botOften, we noticed Voice AI services generate their own Opus audio at bitrates that are higher than what is common in video meeting services. If you think this improves audio quality, that’s great, but test and validate it before you ship. I have a feeling a lower bitrate would serve you just as well All these worsen at scale. Take care of them sooner rather than later. The fix: Turn DTX off on the audio you send to the bot, send variable bitrate in both directions, and use a bitrate you have A/B tested rather than assumed. Misstep 6: The Cargo-Cult Layer There are some additional miscellaneous areas where we noticed issues that may affect quality or may just break at some random point in the future. SDP munging is a practice where the SDP messages are modified after WebRTC creates them and before they get sent. This is how stereo gets added, for example. In many cases we noticed lines got reordered in the SDP, which is not harmful, but useless. If at some point in the future a browser becomes sensitive to the ordering it generated, it won’t end well. Better avoid doing things that are not needed at all.getUserMedia is sometimes called more than it should. Reaching out to grab devices when there’s no need, or calling multiple times, isn’t what you should be striving forTurning off echo cancellation. This is the wrong approach. We’ve seen Tencent+Cartesia do that. It may help the STT algorithm a bit, but for a user with a separate microphone and speaker, it can be detrimental The fix: Stop munging SDP unless you can name what breaks without it, call getUserMedia() once, and leave echo cancellation on. How To Catch These Yourself WebRTC is what powers Voice AI services today. It was meant for web meetings and then grew in popularity and coverage to many other use cases and scenarios, including Voice AI. As such, it is rich in tooling and capabilities — many of which aren’t needed for Voice AI — but some can prove detrimental. The way I looked at all these services was rather simple. I opened WebRTC-internals in the browser, then started one of these services, “lurked” in it, talked with the bot for a couple of minutes, and then downloaded the WebRTC-internals file. The file itself has everything you need. It is text-based and structured as JSON. It is a log of calls to the WebRTC APIs in the browser, along with the getStats() calls that collect all ongoing call metrics. Not wanting to read it directly (this is the painful part), I ran the files through a getStats visualizer. Any other dump reader will do. The file is plain JSON and every metric value is already in there. Final Thoughts Voice AI is young, about two years old. The WebRTC layer underneath it is roughly 15 years old, fully capable and fully inspectable. The missteps here are not hard problems; they are untouched defaults or toggles someone set — thinking they would benefit their use case when what they do is the complete opposite, especially at scale. Winning the Voice AI race means offering the best experience to users, and that means knowing the right knobs to turn in the WebRTC configuration and architecture.
This year alone, we had two announcements that elevated age verification from a basic app-specific check to a major part of digital interactions. In August, OpenAI released ChatGPT for Teens, which not only relies on hard checks but also extrapolates the user’s age. That alone wouldn’t have been a major call, since we already have age-specific platform versions like YouTube for Kids. But the other big announcement came from Meta and its $18bn settlement. Beyond a hefty payout, Meta agreed to implement restrictions on Facebook and Instagram, ranging from daily usage limits to automated timed blocks. Add to that, legal bases are changing to keep kids away from social media and limit smartphone use in Australia, the EU, and other countries. Meta’s restrictions signaled a global shift that will affect every layer of digital services. That means age verification has become more than a straightforward “minor-or-not” check. That’s because we now have to test not just the user’s age through date-of-birth field validation, but also how every product feature reacts to the results. That shift in scope is the reason age verification is about to become one of the most complicated issues in modern QA and software development. That’s also why staying ahead now means treating it as a decision system that spans the entire account lifecycle. Two Systems Have To Work, Not One The safety architecture in this new era, where age verification has gained in relevance and scope, contains two equally important systems: Age classification: determines whether the product identifies the user’s age correctly.Protection enforcement: verifies that after the user is identified, all relevant protections are applied properly. To a QA engineer, that immediately shows how the test matrix gets bloated because the team has to account for: New vs. existing accountsDeclared age vs. predicted ageFalse adult classificationsFalse teen classificationsUsers turning 18Multiple accounts belonging to one personShared devicesMobile vs. web experiencesAccount recoveryChanging phone numbers or email addressesApple/Google sign-inParental account linking and unlinkingParental overrideVPN and location changesCross-border travelDifferent regulatory requirements by countryFeature rollouts that reach only some accountsRecommendation feedsNotificationsDirect messagingBrowser and AI-agent features In addition, you need a separate verification scope to ensure restrictions survive account or device migration. OpenAI’s account routing from regular to teen experience is a great example of how vulnerable this complexity makes the system. They check the age on file, verified age, and run an age prediction. Simply put, this task is so big that one of the premier AI providers uses a probabilistic model to run it and forewarns that the system can get it wrong. The truth is that age verification is an unreliable science. For example, NIST’s ongoing evaluation puts the average error for facial age recognition at about three years, and that number varies by region and sex. Age Verification Scope: Look at the System, Not a Feature We handle the growth of the age verification scope by changing our approach. Instead of testing a single checkpoint, this flow now goes from end to end like this: Age signal → Classification → Account state → Feature restrictions → Parental controls → Ongoing enforcement → Transition to adulthood When running these tests, you need to account for both false positives and false negatives to verify consistency across results. However, what sets experienced QA engineers apart is their ability to build a framework for circumventing restrictions and test products against it. From my company’s experience, I suggest focusing on state and logic testing, where the quirkiest bugs live. Test the Decision, Then Everything Downstream Let’s imagine that the first layer — meaning age classification — got everything right and identified the user as a 16-year-old. After this, the solution must pass that knowledge on to content filtering, recommendations, ads, messaging, notifications, purchases, privacy defaults, search, parental controls, and your public API. Miss even one and the entire system fails because a teenager gets access to something that should have been restricted. There’s no such thing as “partial success” in the age verification era. State Handling: Core of Multiple Issues Another QA challenge is that many age checks run through third-party providers. The entire complex matrix is also compounded by integration testing. It must ensure the check results land precisely as they should in the system and trigger the correct permissions and restrictions. We’ve recently seen this pattern when testing an identity-verification app. It routes checks through two separate vendor SDKs, Onfido for standard ID and ReadID for the enhanced flow, across iOS and Android. The crux of that project was that model accuracy wasn’t what failed. Instead, most bugs hid in state and navigation. For example: one step wiped earlier entries when a new one was added; or a review screen offered no way to edit a submitted answer. Another issue was the Back button, which took the user all the way back to the beginning of the flow instead of the previous step. Now, take these examples of buggy state handling and put them over an age verification flow. It also needs to survive edits, changes, and the user going back to undo a typo or logging in from a second device. Testing Boundaries: Where Does the Failure Lie? Another area to check is the vendor boundary, which adds its own failure modes. For example, we have a case where verification completes mid-session, and the state doesn’t refresh until logout. The timeout then triggers a retry request. This leads to a duplicate delivery of the provider’s answer, usually absorbed by idempotency keys. Meanwhile, the user’s account shows different states across devices. As a result, age verification fails to trigger the correct restrictions. Changes Dictated by Location Localization adds another dimension to an already hugely complex issue. ChatGPT’s age verification in Italy, for instance, gives users 60 days to verify their age before it stops granting access to features. Custom adaptations like this, plus subsequent testing, are necessary for every country where the product runs. Support Ticket or a Day on Court? Another issue in this multi-layered check labyrinth is that the system does not treat errors equally. Simply put, a 19-year-old user who was mislabeled as a 17-year-old will only trigger a support ticket to update their status. However, the opposite situation is a security incident that can have legal consequences in some jurisdictions. So your budget must prioritize near-the-age-line tests to manage risk effectively. Passing a Law Is Not Enforcing It The reality is that QA flows for age verification and restriction enforcement are still in development. Yes, the trend is showing, and laws are being passed. However, even in the countries where social media use by children and teens is legally restricted, most kids report that those obstacles are easy to circumvent. The Meta settlement answers this with a requirement that changes the QA job. Alongside the teen restrictions, it requires an independent auditor to examine the company’s data, systems, and records. So, a business can no longer just say the age checks in their app work. You now have to prove that to an outside specialist, which shifts the burden onto security and accessibility testing. Age Assurance Is Becoming Infrastructure Age verification and age assurance have already evolved past a media story. So we need to treat this new reality as part of the growing infrastructure that will be integral to any product and service going forward. The businesses that will lead in this era are those that can prove the reliability of their verification procedures, and that the decision reaches every surface. Start treating this as a system problem now, and you’ll reduce issues and failures later.
If you built an agent on AWS in 2024, there's a decent chance you built it on Bedrock Agents. It was the obvious choice. Managed, native, announced with a keynote and a dozen launch-week blog posts. Then, on June 30, 2026, AWS gave it a new name: Bedrock Agents Classic. New customers were cut off on July 30. The recommended path forward is AgentCore. Nothing broke. Nothing paged. Existing agents kept answering questions the next morning. That's the part that should worry you. "Classic" is the quietest word in cloud computing, and it means the roadmap has moved somewhere you aren't. re:Invent 2026 runs November 30 to December 4 in Las Vegas. Within a week, your Slack will fill with "should we be using this?" threads. My answer, for almost everything: not yet. Put it on a 90-day clock, run it through five gates, and make the decision in March with real information instead of in December with keynote adrenaline. Here's the filter, the math behind the 90 days, and the exceptions where I'd move on day one. The Firehose Is the Product Start with the volume. The AWS community re:Cap for re:Invent 2025 counted 530 updates across the event window. Only 116 of them landed during conference week. The other 414 shipped before the first keynote, starting in late October (AWS re:Cap 2025). That's roughly 78% of the year's biggest launch wave arriving before anyone in Vegas has picked up a badge. Nobody reads 530 announcements. Not you, not your platform team, not the AWS account team. What actually happens is that two or three announcements get picked up by whoever happened to be in the room, and they show up as tickets in January with no scoring, no exit plan, and a senior engineer who is already emotionally invested. Your inbox isn't the problem. Your adoption reflex is. An Announcement Is the Start of a Lifecycle, Not a Product The thing announced on stage and the thing you'll run in production a year later are often different products. Same name, different price, different regions, different API surface. AgentCore is the cleanest recent example because the whole arc happened in public. Look at what moved in those 89 days. The preview launched in four regions and was free until September 16. Billing started on September 17. GA arrived on October 13 in nine regions, and it shipped Agent-to-Agent protocol support that the preview didn't have. By June 2026, the region list was at 20. A team that committed in July was committing to a moving target. Nothing wrong with the product. The problem is that "adopt" in July meant making architecture decisions against a price sheet that didn't exist yet, in a region that might not have been on the list. And lifecycles run in both directions. Here are four worth keeping on a sticky note. Table 1. Four AWS lifecycles that early adopters lived through ServiceWhat happenedLesson for early adoptersBedrock AgentCorePreview Jul 16, 2025 → GA Oct 13, 2025Pricing, regions, and protocol support all changed during the window. The GA product is the one you should evaluate.Bedrock AgentsRenamed "Classic," closed to new customers Jul 30, 2026; successor is AgentCoreA launch-week favorite can become the legacy option inside about two years. Your migration clock starts when the successor ships, not when the banner appears.CodeCommitClosed to new customers in mid-2024; returned to GA on Nov 24, 2025Teams that panic-migrated paid for a move that later turned out to be optional. Deprecation signals deserve the same 90-day patience as launches.AWS ProtonSunset announced Oct 7, 2025; support ended Oct 7, 2026Sunset means a fixed 12-month window. There's no extended-support market for a service someone else operates. CodeCommit is my favorite example, because it cuts against lazy cynicism. AWS stopped onboarding new customers in 2024, took a lot of heat, and then, in the week before re:Invent 2025, put it back into general availability. If you'd migrated off it in a panic during the summer of 2024, you burned a quarter on a move nobody ultimately required. Patience applies to bad news, too. "Classic" is the quietest word in cloud computing. It means the roadmap has moved somewhere you aren't. Why 90 Days, Specifically Ninety isn't magic. It's three things that tend to happen inside a quarter, and they're all information you can't get on announcement day. Previews convert or stall. The headline launches that are going to reach GA usually show you their trajectory within a quarter. AgentCore did it in 89 days. If a preview hasn't moved by March, that's a signal too.The first real bill arrives. Pricing pages are a model. Your Cost Explorer after 60 days of a sandbox pilot is the truth. Agentic and inference services in particular have usage curves that look nothing like the calculator once retries and context windows are involved.The ecosystem catches up, or doesn't. Terraform provider support, CDK constructs, CloudTrail events, IAM condition keys, the first re:Post threads and GitHub issues from people who hit the edges. Ninety days is enough to know whether a service is a platform or a demo. There's a fourth, more boring reason. December 4 plus 90 days lands you in early March. That's after budget season and before most teams lock Q2 roadmaps. Decisions made then actually get funded. The 90 days aren't a vacation, though. The clock only works if you spend it scoring. The Five Gates Every announcement that someone on the team wants gets scored against five gates. Each gate is worth 0 to 2 points. It takes about 15 minutes per announcement once you've done a few. Gate 1: Status GA scores 2. Public preview scores 1. Gated preview scores 0, and a zero here caps the whole announcement at "watch," no matter how good the other gates look. A gated preview has no SLA you can hold anyone to, and its API can change under you. Fine for a lab account. Not fine for anything with a pager attached. Gate 2: Region Is it available in every region your workload runs in, including your disaster recovery region? Launch-day region lists are short, and DR regions are almost never on them. If a service exists in us-east-1 but not in your failover region, you haven't adopted a service. You've adopted a single point of failure. Don't trust the blog post; AWS publishes regional availability as public SSM parameters you can query: Shell # Regions where a given service is available (AWS public SSM parameters) aws ssm get-parameters-by-path \ --path /aws/service/global-infrastructure/services/<service-code>/regions \ --query 'Parameters[].Value' --output text # Don't know the service code? List them all first aws ssm get-parameters-by-path \ --path /aws/service/global-infrastructure/services \ --query 'Parameters[].Value' --output text Two points if it's in all your regions. Zero otherwise. There's no partial credit, because there's no partial failover. Gate 3: Toolchain Can you express it in infrastructure as code, and can you audit it? I look for CloudFormation resource support, the Terraform AWS provider (or CDK constructs, if that's your stack), CloudTrail events, and IAM condition keys tight enough to scope least privilege. Two points if it's all there, one if it's CloudFormation only, zero if it's console-and-CLI. If you can't put it in a pull request and you can't see it in CloudTrail, it's a console demo. Gate 4: Exit Cost This is the gate people skip, and the one that the Bedrock Agents Classic story is really about. Ask: if this goes to maintenance mode in 18 months, what does leaving look like? Low exit cost (2 points) means open formats, standard protocols, and your state stays in your own stores. High exit cost (0) means proprietary data formats, a bespoke API that your business logic wraps around, or state that lives inside the service. The question isn't whether AWS will deprecate it. The question is whether you've made it cheap to find out. Gate 5: Displacement Is this additive, or does it replace something you already run? Additive capability scores 2. Replacing a minor component scores 1. Replacing something critical, whether that's your own system or an older AWS service, scores 0. That's not because replacements are bad. It's because a replacement is a migration project, and migration projects need a plan and a budget line, not a launch-week ticket. While you're here, check the AWS Product Lifecycle page to see whether the thing being replaced has quietly moved to maintenance. Table 2. Scoring rubric and what each total means Total (0–10)VerdictWhat you actually do9–10AdoptPilot now, plan a production rollout, write the exit plan in the same doc.6–8PilotStart the 90-day clock. Sandbox account, budget alarm, a named owner, and a decision date.3–5WatchRe-score in March. No tickets, no side projects.0–2IgnoreSay so out loud, in the channel, so nobody quietly starts building on it.Status = 0Watch (cap)A gated preview never leaves the lab, whatever the other gates say. I keep the scoring in code rather than a spreadsheet, mostly so the rules can't drift between whoever happens to fill it in. It's deliberately tiny: Python from dataclasses import dataclass STATUS = {"ga": 2, "public_preview": 1, "gated_preview": 0} @dataclass class Announcement: name: str status: str # ga | public_preview | gated_preview in_all_my_regions: bool # primary AND DR regions iac_support: int # 0 console only, 1 CFN only, 2 CFN + Terraform/CDK + CloudTrail exit_cost: int # 0 high, 1 medium, 2 low displacement: int # 0 replaces something critical, 1 minor, 2 additive def score(a: Announcement) -> tuple[int, str]: total = (STATUS[a.status] + (2 if a.in_all_my_regions else 0) + a.iac_support + a.exit_cost + a.displacement) if STATUS[a.status] == 0: return total, "WATCH" # gated preview never leaves the lab if total >= 9: return total, "ADOPT" if total >= 6: return total, "PILOT (start 90-day clock)" if total >= 3: return total, "WATCH" return total, "IGNORE" if __name__ == "__main__": backlog = [ Announcement("new-agent-runtime-feature", "public_preview", False, 0, 1, 2), Announcement("next-gen-graviton-instances", "ga", True, 2, 2, 2), Announcement("managed-replacement-for-x", "ga", True, 1, 0, 0), ] for a in backlog: print(f"{a.name:30} {score(a)}") # new-agent-runtime-feature (4, 'WATCH') # next-gen-graviton-instances (10, 'ADOPT') # managed-replacement-for-x (5, 'WATCH') Notice the third row. GA, available everywhere, and it still lands on "watch," because it replaces something critical and leaving it would be expensive. That's the case the keynote never prepares you for. A great product can still be a bad adoption decision this quarter. The Exceptions: When Waiting Costs More A rule with no exceptions is a slogan. Some announcements should be adopted the week they ship, and waiting 90 days is leaving money or security on the table. The way I separate them is two questions: how reversible is it, and how big is the blast radius if it goes wrong? The bottom-left quadrant deserves a closer look, because that's where teams lose money by being too cautious. A price reduction needs no approval process. A new instance family behind an Auto Scaling group with stateless workloads is a launch template change you can revert in an afternoon. A new GuardDuty detection type is pure upside. Holding those for a quarter is caution for its own sake, and it'll make the rule look silly to the people you need to follow it. The 90-Day Calendar Here's what the clock actually looks like. The whole point is that every week has a job, so "waiting" never turns into "forgetting." Table 3. From re:Invent week to a funded decision WhenJobOutputWeek 0 (Nov 30–Dec 4)Triage. Log every announcement anyone on the team cares about. No tickets, no spikes.One shared list, with who raised whatWeeks 1–2Score each item against the five gates. Publish the "ignore" list.Scored list; ignores announced in the channelWeeks 3–6Sandbox pilots for anything scoring 6+. Isolated account, budget alarm, named owner.Working pilot, first real cost dataWeeks 7–10Re-check status, pricing page, region list, Terraform provider changelog, re:Post and GitHub issues.Re-scored list; anything that slipped gets demotedWeeks 11–13 (early March)One-page decision memo per candidate: adopt, extend the watch, or drop.Decision, budget line, and an exit plan for every adopt The exit plan in the last row isn't optional. If someone can't write half a page on how they'd leave, they don't understand the service well enough to adopt it yet. When Not to Use This Rule I'd be lying if I said this fits every team. Skip it, or shorten it, if: Your differentiation is the new capability. If you're a startup whose pitch depends on being first to something AWS just shipped, 90 days might be your whole runway. Keep the gates. Shrink the clock to 30 days.You were a design partner. If you've been in the private beta for six months with a named AWS team, you already have the information the clock is meant to collect.It's bottom-left. Price cuts, reversible performance wins, and security detections don't need a quarter of deliberation.You're evaluating, not committing. Reading docs and running a tutorial in a sandbox is not adoption. Nobody needs permission to learn. The rule exists to stop one specific failure: production architecture decisions made on announcement-day information. If that's not the risk you're facing, use something lighter. Back to "Classic" Bedrock Agents wasn't a bad service, and the teams that adopted it weren't wrong. They just made a decision with a two-year consequence on the information available in launch week, and most of them never wrote down what leaving would cost. That's the habit this filter is built to break. The teams that will be calm next July, when the next batch of services quietly picks up a suffix, aren't the ones who adopted the least. They're the ones who wrote the exit plan before they wrote the first line of code. After re:Invent wraps, I'll run this year's headline announcements through these five gates and publish the scores, including the ones I expect to get wrong. Come back in March and hold me to it.
The Setup Our team runs a customer data platform: a single source of truth for customer profile data, serving a high-volume read application programming interface (API) and ingesting changes from hundreds of upstream systems. The storage layer is Amazon DynamoDB in an entity–attribute–value (EAV) layout: the partition key is the entity ID, the sort key is the attribute name, and each item holds an attribute value plus a source version—the upstream update timestamp carried on that event. Ingestion runs on Apache Flink — hundreds of pipelines, one per source. Some sources stream changes continuously; others are batch, publishing once a day. Because Flink handles both modes, all of them share one codebase, with JOLT (a JSON-to-JSON transformation library) handling per-source transformations declaratively, so onboarding a new source is mostly configuration. Each pipeline does a read-before-write for every incoming record: fetch the entity's stored attributes, compare versions, and discard the event if its version is older than what's stored — that's our idempotency guard. If the version is newer but the values haven't changed, discard anyway, because a write that changes nothing is a write capacity unit spent on nothing. That last rule is the irony this article is about. The check we built to save write costs is itself a read. And reads, it turned out, were where the money was going. The Problem: The Reads Weren't Coming From Where We Thought When DynamoDB read costs climbed to the point of demanding attention, everyone's first suspect was the obvious one: the read API, the thing serving thousands of requests per second. We dug through the access logs expecting to find a hot consumer or an inefficient query pattern. The API wasn't the problem. The ingestion was. Every one of those hundreds of pipelines was faithfully doing its read-before-write on every record it received — and the volume of records they received had nothing to do with how much data was actually changing. The reason was a design principle on the batch side. Batch sources build daily events from a data lake, and the natural way to do that is to emit the complete entity—a Person event carries firstName, lastName, phoneNumber, everything—for every entity, every day. A full snapshot, not a changelog. From the source's perspective, that's simple and robust. From ours, each batch snapshot triggered a DynamoDB fetch of the stored attributes, even when none of the attributes we had onboarded had actually changed. Our analysis showed how concentrated the activity was: around 90% of batch events carried changes to only about 10% of the source data. That is not the same as saying 90% of DynamoDB reads were avoidable. For our filter, the relevant question was narrower: did any of the attributes we actually onboarded change? That distinction matters when estimating how many read-before-write checks can safely be skipped. The Thought Process: Three Options, Two Rejected Option 1 — fix it upstream. The cleanest fix is for sources to publish only what changed, so we asked. Some were willing. But even a willing source couldn't fully solve it: a source entity has N attributes, and we typically onboard only a subset. The source can't tailor its change detection to our subset — so when an attribute we never onboarded changes, they still (correctly, from their view) publish an event, and we still pay to discover it's a no-op for us. Upstream cooperation helped at the margins; it couldn't be the answer. The filter had to live on our side, and it had to be aware of what we onboarded, not what the source produced. Option 2 — keep the filter state in Flink. Flink has first-class managed state, checkpoints, and savepoints. A per-entity fingerprint in managed state could avoid a remote lookup. We rejected that option for reasons specific to our operating model—not because Flink state is generally unreliable. Across hundreds of jobs, we had experienced offset resets and cases where fingerprint state was lost or had to be rebuilt. That didn't corrupt writes, but it silently returned affected pipelines to full DynamoDB read volume until their cache warmed up. We wanted the cost optimization to survive each job's lifecycle without special restoration steps. Option 3 — externalize the fingerprint to S3. For each daily batch event, compute a hash over only the attributes we've onboarded. Look up the previously stored fingerprint in S3, keyed by entity name and ID. A match can allow the pipeline to avoid the DynamoDB read; a missing fingerprint or mismatch takes the original read-before-write path. This is a batch-only pre-filter, not a replacement for the downstream version and value checks. Its safety depends on how the fingerprint is maintained relative to committed DynamoDB state. There is more to “hash the attributes” than choosing a digest function. The input needs a stable field order and value encoding, with an explicit distinction between a missing field and a null value. The projection must include every onboarded attribute and exclude source-only fields. Otherwise, equivalent events create unnecessary mismatches—or a relevant change is left out of the comparison entirely. A collision-resistant hash helps with accidental collisions, but it can't fix an inconsistent projection. Why S3, of All Things Using S3 for per-entity lookups sounds backward until you look at what the daily batch workload actually needs: It's a batch. These pipelines process daily snapshots; nobody is waiting for a sub-millisecond answer. S3 GET latency isn't free, and request volume still affects total runtime, but this workload has more room to make that trade-off than a real-time API. We left streaming pipelines untouched.It's cheap where it counts. S3 GET requests can be substantially cheaper than the DynamoDB capacity needed to fetch an entire EAV entity in this workload. But the comparison includes S3 PUTs, object storage, GET rates, and batch duration — not just one request price. The filter pays off only when the avoided DynamoDB reads outweigh those added costs.It's independent of job state. An S3 fingerprint persists across Flink restarts, redeployments, offset resets, and rescaling. That separated the cost optimization from the operational lifecycle of hundreds of individual jobs.Failure handling matters. A missing or unreadable hash can fall through to the usual DynamoDB check. A stale hash is not automatically harmless: if it matches a later event after DynamoDB's value has changed, the pipeline could discard a valid update. The safe invariant is that a fingerprint used to skip a read must correspond to a confirmed committed projection, with explicit handling for retry, replay, concurrent updates, and reconciliation. A collision-resistant hash makes accidental collisions unlikely; it does not solve S3–DynamoDB synchronization errors. The result was a substantial reduction in ingestion read pressure. A qualifying fingerprint match bypasses the DynamoDB fetch altogether, so read demand no longer has to follow every daily snapshot a source publishes. The source-data 90/10 pattern motivated the change, but it is not a measured 90% reduction in read requests or dollars saved; those outcomes depend on the actual match rate and the additional S3 request and storage costs. To evaluate the economics of this pattern, we'd compare the actual fingerprint match rate, DynamoDB read requests or consumed read capacity, S3 GET/PUT and storage charges, and total batch duration across similar daily runs. Those numbers — not the raw 90/10 input skew — determine the net benefit. The batch-only read path, before and after the pre-filter: pathwhat happens in batch ingestion Before Daily snapshot → DynamoDB entity read → version/value comparison → write or discard. After: fingerprint lookup Daily snapshot → project onboarded attributes → deterministic hash → look up S3 fingerprint. Trusted match Skip the DynamoDB read, provided the fingerprint represents confirmed committed state. Miss or mismatch Run the normal DynamoDB read-before-write checks; keep the fingerprint aligned with confirmed state. The Takeaway Three lessons we'd offer anyone running read-heavy ingestion against a pay-per-request store: Follow the bill to the actual caller. Our read costs looked like an API problem because the API was the visible reader. The logs said otherwise. Cost work that starts from assumptions optimizes the wrong component with great precision. A guard has a cost of its own. Read-before-write is a sensible idempotency and no-op-suppression pattern, but every guard evaluation is billed. When batch sources republish largely unchanged data for the attributes you actually store, the guard becomes much of the workload. The answer isn't to remove the guard; it's to put a cheaper, correctly synchronized filter in front of it—in our case, a hash over onboarded attributes, which no upstream source could tailor to our subset. Match the store to the workload's tolerance, not to reflex. S3 as a key-value lookup violates every low-latency instinct — and was exactly right for a batch path that tolerates latency and rewards durability and cost. The cheapest read is the one you never make; the second cheapest is the one you make against the cheapest store that's good enough.
Agile
Career Development
Methodologies
Team Management
Detecting Requirement Drift in Automated Test Suites Through Content Hashing and Impact Analysis
November 20, 2026 by Shashank Shandilya
Treat AI Agents Like Long-Running Background Jobs: A Production Reference Architecture
November 20, 2026 by Ido Fishman
Observability With AI SREs: A 4-Step Implementation Guide
November 20, 2026 by Frank Swain
AI/ML
Big Data
Databases
IoT
How Did We Go From ChatGPT to Autonomous AI Agents in Just Four Years?
November 24, 2026 by Dominique Pugh
Why Successful LLM Demos Fail in Production
November 24, 2026 by Md Sharique
Reusable Operational Playbooks With Agent Skills
November 24, 2026
by Daniel Oh
CORE
Cloud Architecture
Integration
Microservices
Performance
Reusable Operational Playbooks With Agent Skills
November 24, 2026
by Daniel Oh
CORE
Age Verification Is Becoming One of Tech’s Hardest QA Problems
November 24, 2026 by Konstantin Klyagin
Don't Adopt Anything Announced at re:Invent for 90 Days
November 24, 2026
by Dinesh Elumalai
CORE
Frameworks
Java
JavaScript
Languages
Tools
Voice AI Is Running on Untuned WebRTC: 20 Services To Show You Where
November 24, 2026 by Tsahi Levent-Levi
Don't Adopt Anything Announced at re:Invent for 90 Days
November 24, 2026
by Dinesh Elumalai
CORE
Five Common Time-Series Queries Made Simple With Enterprise Java
November 24, 2026
by Otavio Santana
CORE
Deployment
DevOps and CI/CD
Maintenance
Monitoring and Observability
Age Verification Is Becoming One of Tech’s Hardest QA Problems
November 24, 2026 by Konstantin Klyagin
Don't Adopt Anything Announced at re:Invent for 90 Days
November 24, 2026
by Dinesh Elumalai
CORE
AI/ML
Java
JavaScript
Open Source
How Did We Go From ChatGPT to Autonomous AI Agents in Just Four Years?
November 24, 2026 by Dominique Pugh
Why Successful LLM Demos Fail in Production
November 24, 2026 by Md Sharique
Reusable Operational Playbooks With Agent Skills
November 24, 2026
by Daniel Oh
CORE