You have a voice note on your phone and want to turn it into something useful like a short summary, a clearer message or a question for another model. Before building the rest of the app, there are a few things to find out. Can the phone transcribe the recording? Can a small chat model handle your prompt? What happens when you switch between them?
Those are the questions I wanted to make easier to explore with Foundry Local Lab, a Kotlin and Jetpack Compose sample in Microsoft's Foundry Local Android repository. It brings model management, text generation, speech transcription and runtime diagnostics into one place. I use it on my Samsung Galaxy S24 to try the input and model before deciding what belongs in an application.
In this walkthrough, we'll install the sample, generate a reply on the phone and turn speech into a text prompt. Along the way, we'll look at the model lifecycle that makes those steps work.
What you will build and run
The Lab has three workspaces. Models lets you browse the catalogue and download, load or unload a model. Playground lets you try text, an audio file or the microphone. Runtime shows the connection, versions, model state and recent operations.
We'll use a small Qwen chat model for text and a compatible speech model for transcription. The completed transcript can then become input to the chat model. You choose when to make that handoff, and you can edit the text first.
The sample uses the public 0.1.6 IPC SDK. Foundry Local for Android is still a preview, so this walkthrough follows that version and its integration guide. The models available to you depend on your device and the service catalogue.
How the two apps work together
There are two apps involved in this example. The Lab provides the interface. Microsoft's separately installed Foundry Local service app loads the model and performs inference. The IPC SDK connects them on the phone.
That process boundary is useful to understand. The Lab's APK does not contain the inference engine, and a disconnected service can prevent a request even when the Lab itself is open.
The SDK also offers an embedded AAR that packages the runtime inside your own application. This sample uses the IPC AAR; the two deployment modes are separate packages. If you adapt the sample, choose one mode and follow its setup instructions.
Text and audio inference run on the handset. Catalogue access and model downloads need an internet connection, so download the models before relying on the app somewhere with limited connectivity. There is no cloud model endpoint or API key to configure for this sample.
Before you start
On your Android phone, install Microsoft’s Foundry Local service from Google Play. This is the app that downloads models and runs them on the device. The walkthrough uses a separate app, Foundry Local Lab, for entering prompts and viewing results.
You’ll need a compatible Android 13 (API 33) or newer device, enough storage and memory for your model, and an internet connection to browse the catalogue and download it. Allow notifications if prompted during a download, and grant microphone access when you try live speech.
Already have both apps on your phone? Open Foundry Local Lab and skip to Generate your first text response. You can skip the SDK download and all the Gradle steps below.
Build and install the Lab from source
If you need to install the Lab or want to build your own copy, do these steps on your development computer. The .aar file is an Android library that Gradle packages into the Lab so it can talk to the service on your phone.
Use JDK 17 or newer and Android SDK Platform 36. Connect your phone with USB debugging enabled. Clone the repository and open its root directory to use its Gradle wrapper:
git clone https://github.com/microsoft/FoundryLocalAndroid.git
cd FoundryLocalAndroid
On your computer, download foundry-local-ipc-sdk-0.1.6.aar from the v0.1.6 SDK release. Verify its SHA-256 against the published checksum, then place it in:
The sample already references that filename in its Gradle dependencies. Keep the release's licence and third-party notices with the SDK.
Set your Android SDK location through ANDROID_HOME or an untracked local.properties file at the repository root. Then install the debug app on your connected device:
./gradlew :FoundryLocalLab:installDebug
On Windows, run .\gradlew.bat :FoundryLocalLab:installDebug instead.
Open Foundry Local Lab and let it connect to the service. If it cannot connect, check that the service app is installed and inspect the connection details in Runtime before trying to download a model.
Generate your first text response
In Models, select a small chat model available in your catalogue. I used qwen2.5-0.5b on my S24. Download it if needed, then select Load model.
These are separate operations. Downloading puts the weights in the cache. Loading makes the model ready to accept a request. A cached model still needs to be loaded before you can use it.
Open Playground, choose Text and enter:
What is the next number in this pattern: 2, 4, 8, 16?
Under Parameters, start with temperature 0.2 and maximum output 512 tokens, then tap Run on device. For the doubling pattern, the next number is 32. In my recorded S24 run, Qwen returned that answer and explained the pattern. Your wording and response time may differ.
A recorded text result from the Lab on my Galaxy S24.
Once a chat model is loaded, the core streaming path is small. This excerpt runs inside a coroutine, with model referring to the loaded SDK model:
val client = model.createChatClient()
val request = ChatCompletionRequest(
messages = listOf(
ChatMessage.user("What is the next number in this pattern: 2, 4, 8, 16?")
),
temperature = 0.2f,
maxTokens = 512
)
val reply = StringBuilder()
client.completeChatStreaming(request).collect { chunk ->
reply.append(chunk.delta)
}
ChatCompletionRequest and ChatMessage come from com.microsoft.foundrylocal.api. The client returns a Kotlin Flow, which lets the UI display text as chunks arrive. The Lab's ViewModel also sends the system instruction and conversation history, updates the visible response and handles cancellation.
Conversation history belongs to the application. The SDK does not automatically remember earlier messages for you, so include the history you want with each request and keep it within the selected model's context limits.
Turn speech into a prompt
Switch Playground to Microphone, then open Choose compatible model. Changing the input mode does not load another model. Select a compatible speech model and explicitly load it.
For the sample's microphone path, I used nemotron-speech-streaming-en-0.6b. It accepts English speech as 16 kHz mono, 16-bit PCM audio. After granting microphone permission, tap Run on device, speak a short sentence, then choose Stop and finalize.
While listening, the UI displays the latest partial chunk. The finalized transcript arrives after you stop, so use that result when checking what the model heard.
The microphone experiment produces a transcript that can be reused as text input.
Tap Use in text prompt to copy the completed transcript into the Text input. Edit any transcription mistakes, add an instruction such as "Rewrite this as a short message", then select and load a chat model before running it.
This gives you a useful experiment for your own app: speech model, editable transcript, chat model, response. The handoff remains visible, which helps you tell whether an unexpected result began with transcription or with the text request.
For an existing recording, choose Audio file and a compatible Whisper model instead. The sample supports complete and streaming file transcription. It copies the selected file into its private cache for SDK access, and that copy may remain after the session. Live microphone audio is streamed from memory without saving a recording.
Give model switching a clear lifecycle
On a phone, the model's memory use is part of the application design. The Lab keeps one experiment active at a time. Before switching models, it cancels active work, finalizes microphone input where necessary, unloads the current model and clears its client. It then loads the selected model and creates the appropriate client.
That sequence matters when moving from speech back to text. A completed transcript is ordinary text that the app can retain while replacing the speech model with a chat model. Both models do not need to stay loaded for that handoff.
The service may also be used by another client, and the Lab's loading path unloads other active models reported by the service. Run these experiments separately from another application that needs its model to remain loaded.
If the IPC connection drops, reconnect and reacquire the catalogue, model and client handles. The integration guide explains why handles from the earlier connection may be stale.
Use Runtime to understand a failed run
When a request does not start, I look at Runtime before changing the prompt. It shows the SDK and service versions, connection status, cache state, active model and recent lifecycle events.
What you see
What to check next
The model is downloaded, but no model is active
Load the cached model. Downloading it again will not make it active.
Text works, but Microphone is unavailable
Choose a model compatible with live speech, load it and check microphone permission.
The service is disconnected
Restore the connection and reacquire SDK handles before retrying.
A parameter is rejected
Check the model's supported controls and the highlighted validation errors.
The sample README records device validation on a Galaxy S24 with Android 17 and the public 0.1.6 SDK/service. Qwen text generation, Nemotron microphone transcription and Whisper Tiny file transcription produced results. That gives us a concrete starting point, while longer microphone sessions, interruptions and other devices still need testing for the application you intend to build.
Bring one task from your own app
Once the first response works, replace the example with an input your users would actually provide. Try a spoken product name, a short message that needs rewriting or a recording with the background noise you expect in use.
Check the transcript before sending it to the chat model. Try the same prompt in a fresh conversation, then with history. Record the phone, SDK/service version, model and whether the model was already loaded when you measured the response. Those details make the result much easier to understand and reproduce.
What I like about having a small workbench is that each part stays visible. You can see whether the model is ready, what input it received and what happened when you changed it. That gives you something concrete to learn from before building the rest of the experience.
Start with the Foundry Local Lab sample, try one text request and one speech input, and bring your own task into that same flow. I'd be interested to hear which device and model you used, and where the result needs more work.
Industrial integration projects usually begin with a deceptively simple question: what is this asset, and how do I talk to it? With OPC UA, much of that answer travels with the machine. With a Modbus power meter, a REST-enabled sensor or the older controller on line three, it often arrives as a PDF, and an engineer still has to turn that document into configuration by hand.
In April, we introduced W3C Web of Things (WoT) Thing Models as a first-class input for developer workflows in Azure IoT Operations, backed by the Protocol Compiler in the Azure IoT Operations SDKs. We can now carry that model further. A machine-readable asset description now drives onboarding and data processing.
What’s new
With the 2610 preview release now available, a WoT Thing Description can be provided by the user and, more importantly, it remains attached to the asset as it moves through Azure IoT Operations. It can be stored with the asset definition, interpreted for connectivity and processing and exchanged with compatible partner software. Thing Descriptions are used in two critical areas:
Storage: Thing Descriptions are stored with the asset definitions in Azure IoT Operations, so the description of an asset lives with the asset instead of in a document.
Data exchange: The same Thing Description can be handed to WoT-Connectivity capable industrial software from our partners, which onboards the asset on their side with no re-typing of tag names, units or types, and additionally enables automatic mapping to OPC UA.
Better together: OPC UA and Web of Things
OPC UA is at the center. Azure IoT Operations was built on open standards such as MQTT and OPC UA, and OPC UA brings structured, semantically modeled data from the shop floor for every asset that supports it. The gap is the assets that don’t natively present an OPC UA information model. WoT fills that gap with a standardized, machine-readable description of what an asset exposes and how to reach it.
The two standards are designed to work together. The OPC Foundation’s OPC UA for WoT Connectivity specification (OPC 10100-1) defines a configuration API that lets industrial connectivity software map non-OPC UA assets, for example a device with a Modbus interface, into OPC UA using a WoT Thing Description to describe the asset. The OPC UA for WoT Binding (OPC 10101) works in the other direction and describes how to express an OPC UA server’s interface in a Thing Description. Azure IoT Operations now supports both paths: OPC UA for assets that speak it, WoT for the ones that don’t, feeding one consistent data plane at the edge.
Asset
How it’s described
What happens
OPC UA-native asset
OPC UA information model
Azure IoT Operations connects through its OPC UA connector and publishes structured data and its semantics to the built-in MQTT broker.
Non-OPC UA asset (e.g., Modbus, LoRaWAN, Siemens S7Comm, Ethernet/IP, ...)
W3C WoT Thing Description
Azure IoT Operations stores and processes the Thing Description to onboard the asset and maps its data to OPC UA via OPC 10100-1 and Partner software.
An ecosystem on the receiving side
A specification becomes useful when independent products can exchange the same description without proprietary translation. Two partners have implemented, or are implementing, the receiving side of OPC UA WoT-Connectivity, plus we contributed an open-source reference version called UA-EdgeTranslator to the OPC Foundation.
Prosys OPC UA Forge, an industrial DataOps and IT/OT integration platform, built around an OPC UA server, added WoT connectivity in version 1.4, including Modbus, BACnet, Siemens S7Comm and Ethernet/IP device onboarding through WoT.
“Configuring connectivity has been the part of an industrial data pipeline that still depended on each vendor’s own tools and APIs. With WoT-Connectivity, Azure IoT Operations can onboard assets into Prosys OPC UA Forge using OPC UA itself, starting from a machine-readable asset description. For our customers, this means an asset is described once and that description works across the edge and the cloud, whichever vendor’s software they choose.”, said Pyry Grönholm, CEO, Prosys OPC.
COPA-DATA is implementing the receiving side of OPC UA WoT-Connectivity in its zenon software platform, so an asset described once in WoT can be brought into zenon without manual mapping. COPA-DATA will show an early version at SPS 2026.
"Open standards are the foundation of Industrial AI: only when machine and plant data is accessible in a consistent, vendor-neutral way can AI deliver real value on the shop floor. With W3C Web of Things support in zenon, COPA-DATA makes industrial assets directly consumable by modern AI services, so customers can scale from pilot to production without proprietary lock-in.", said Juergen Mayrbaeurl, AI & Transformation Lead, COPA-DATA.
The important point for the OPC UA community is that a WoT Thing Description can move between Azure IoT Operations and independent industrial software without being manually recreated for each system.
”Web of Things fills the large brownfield asset onboarding gap. With this W3C standard, we have created a vendor-neutral asset description language which can be used with AI agents to fully automatically onboard any asset. The engineering effort to integrate WoT-Connectivity is also small, making it an ideal candidate for retrofitting existing industrial connectivity software”., said Erich Barnstedt, Chair, OPC Foundation WoT working groups and OPC Foundation Cloud Initiative.
What it looks like in practice
Start with a WoT Thing Description for the asset, from the vendor, a partner or authored in-house with the help of agentic AI. Eclipse ediTDor, an open-source web-based editor, can create and validate one (https://eclipse-editdor.github.io/editdor).
Azure IoT Operations processes the description to configure connectivity and publish the asset’s data to the MQTT broker, ready for dataflows to the cloud, e.g. to Microsoft Fabric.
Running on Arm64
Azure IoT Operations now also supports Arm64, so it can run on compact, Arm-based industrial gateways, for example ones based on the lost-cost, industrial-grade Raspberry Pi 5 Compute Module. Combined with WoT-based onboarding, you can bring new assets online from an industrial gateway that fits in the palm of your hand.
See it live at SPS 2026
We’ll be showcasing Web of Things and OPC UA working together in Azure IoT Operations at Smart Production Solutions 2026 in Nuremberg, Germany, 24–26 November 2026, at the OPC Foundation booth in hall 5, booth 140. Stop by to see our demo!
Learn how EF Core loads related data and how to avoid N+1 queries, oversized joins, and unnecessary entity loading with eager loading, projection, and identity resolution.
This production readiness checklist covers what to verify before vector search and AI agents go live, and what to monitor after. Unlike a general site-reliability production readiness review, this review is specific to vector search and AI agent workloads. Vector search finds data by meaning, and AI agents use a large language model (LLM) to plan steps and call tools.
The checklist has 24 numbered checks in two phases, before go-live and after go-live. Most checks name the Couchbase service they apply to and link to that service’s documentation. Because vector search and agents run on the same Couchbase platform, one checklist covers both. The full list is repeated in a summary table at the end of this post.
How do you use this checklist?
The checklist is for a platform lead who is moving vector search or AI agents from pilot to production. Work through it as a production readiness review:
Assign one owner to each check. Suggested owners are platform, data, application, or security.
Mark each check as required or optional for your deployment. By default, we’ve checked all but one as required.
Record a status for each check. The status options are pass, fail, or N/A, and a fail status blocks your launch. If a check doesn’t apply to your deployment, mark it N/A.
Copy the summary tableinto your own tracker. Keep it as the record of your review.
Is your vector index ready for production?
A vector index is a data structure that stores embeddings (numeric representations of meaning) so the database can quickly find similar items. These four checks confirm the index will hold up at production scale.
V1. Choose the vector index type deliberately and record why
Required · Phase: before go-live · Owner: platform · Service: Couchbase Server Index Service or Search Service
Couchbase offers three vector index types:
A Hyperscale Vector index is recommended for most cases.
Use a Composite Vector index when scalar filters must exclude vectors before the vector search runs, such as for compliance.
Use a Search Vector index when queries combine vector search with full-text or geospatial search and the dataset will stay under about 100 million documents.
Hyperscale and Composite Vector indexes require Couchbase Server 8.0 or later. Search Vector indexes require 7.6 or later. Record the reason for your choice, and revisit it when filter selectivity or corpus size changes.
V2. Record the embedding model and version with the index definition, and confirm dimension and distance metric match requirements
Required · Phase: before go-live · Owner: data · Service: Index Service or Search Service
The index dimensions must match the embedding model’s output, and the distance metric must match the one used by your queries. Set the metric explicitly rather than relying on a default. Record the embedding model and version alongside the index definition, for example in the index name or your deployment configuration, so you can track which model produced the vectors. This is important because switching models requires re-embedding the data and rebuilding the index, not just changing a setting.
V3. Measure recall@k and p95 latency against a test query set at production data volume
Required · Phase: before go-live · Owner: data · Service: Query Service with the Index Service or Search Service
Recall@k is the share of the true nearest neighbors that appear in the top k results. p95 latency is the response time that 95% of queries beat. Build a representative set of test queries and set targets for both numbers. To get the true nearest neighbors, run each test query as an exact search with the SQL++ VECTOR_DISTANCE function, then compare those results with your index-backed query. Exact search scans every vector, so the Couchbase docs recommend running it on a test system. Measure p95 latency at production data volume. Without a target, index tuning has no stop condition.
V4. Test index capacity, rebalance, and node failure with indexes in place, and record rebuild time
Required · Phase: before go-live · Owner: platform · Service: Couchbase Server or Couchbase Capella cluster
Size index memory and storage to your vector count and dimension. Rebalance redistributes data and indexes when nodes are added or removed. Run rebalance and node-failure drills with your vector indexes in place before launch. Establish your recovery estimate by recording how long it takes to do an index build and rebuild.
Is your query path ready for failures and fresh data?
These five checks confirm that vector queries fail safely and return current data.
Q1. Test each query failure mode separately
Required · Phase: before go-live · Owner: application · Service: Query Service or Search Service
Separately test and confirm the application returns no wrong answers for each of these failure modes:
Dimension mismatch between query and index
Reads against an index that’s still building
Filtered vector queries that return fewer than k results
Empty results
Query timeout
Q2. Document the scan consistency for each query path
Required · Phase: before go-live · Owner: application · Service: Query Service
Scan consistency determines whether a query waits for the index to reflect the latest writes before returning results. The default, not_bounded, returns whatever the index has; request_plus waits for all writes made before the query. Document the setting for each query path, and identify which paths can tolerate slightly outdated results in exchange for lower latency.
Q3. Confirm vectors update and delete when source documents change
Required · Phase: before go-live · Owner: data · Service: Index Service or Search Service
Define how embeddings are updated when source documents change and how they’re deleted when source documents are removed. Vectors linked to deleted records can return invalid results and undermine retrieval accuracy. If embeddings live in the source document, the index updates when the document changes or is deleted, but the embedding itself is only as current as your embedding pipeline. Embeddings stored in separate documents need their own delete path.
Q4. Test full backup and recovery, and record the time it takes
Required · Phase: before go-live · Owner: platform · Service: Couchbase Server or Couchbase Capella backup
Confirm which data, index definitions, and index contents are restored from backup and which are rebuilt afterward. Test the full recovery process end to end, and record the time required.
Q5. Set alerts for query error rate, p95 latency, and zero-result rate
Required · Phase: before go-live · Owner: platform · Service: Couchbase Capella or Couchbase Server monitoring
Set alert thresholds for all three signals before launch. A rising zero-result rate often signals an indexing or embedding problem before users report it. Capella’s built-in alerts cover cluster conditions such as a low index resident ratio, not these three signals, so collect them from your application or monitoring stack and alert there.
The Couchbase Agent Catalog manages the tools and prompts your agents use. Publish them to the catalog and pin versions for each deployment. Agent Catalog versions tools and prompts through Git, and by default the SDK serves the latest catalog version. Set the AGENT_CATALOG_SNAPSHOT environment variable to pin a deployment to a specific version. This keeps untested prompt changes out of production.
A2. Type and validate every tool’s inputs and outputs
Define typed input and output models for every tool, and validate them at runtime. The Agent Tracer helps diagnose tool schema mismatches, while typed models prevent many of these errors.
A3. Review memory scoping for users, sessions, and agents
Couchbase Agent Memory stores session memory that’s scoped to one conversation, and long-term memory that spans sessions. Confirm that users and sessions are isolated, and list which agents hold Agent Memory keys or tokens at each access level (read, write, or admin). Agent Memory has no per-agent permissions: access applies to the whole server, and annotations only filter search results. Where agents must not share memory, give them separate Agent Memory deployments.
A4. Set guardrails for steps, timeouts, and retries, and add a kill switch
Required · Phase: before go-live · Owner: application · Service: Your agent framework
Set a maximum number of steps per run, a timeout per call, and a retry budget. Add a kill switch that stops agents immediately, and test that it works.
A5. Define fallback behavior for tool failure and model unavailability
Required · Phase: before go-live · Owner: application · Service: Your agent framework and Capella Model Service
Define how the agent handles tool failures and model outages. Specify when it should retry, switch to a fallback model, hand off to a person, or return a clear error. Document the expected behavior for each scenario.
What is AI agent observability, and how do you set it up?
AI agent observability uses recorded traces to let you reconstruct what an agent did, in what order, and with which inputs. It helps you understand not just when an agent fails, but why. Configure tracing and alerts before launch, then use them to monitor agent activity in production.
The Couchbase Agent Tracer records agent activity as spans, which are units of work similar to OpenTelemetry spans. Each application run starts with a root span that contains child spans for individual operations such as LLM calls, tool executions, and document retrievals.
The Agent Tracer captures eight message types: user messages, internal messages, LLM responses, tool calls and their arguments, tool results, handoffs between agents, system messages, and the final assistant response. When a Capella operational cluster is configured, the Agent Tracer automatically forwards traces to it. You can then query them using the Query Service or Couchbase Operational Insights.
These three checks help you monitor agent execution, detect failures and performance issues, and use trace data to diagnose problems before they affect users.
Add a root span for the application and child spans for each LLM call, tool call, and retrieval. Log agent handoffs as Hand-off messages, which record the source and destination spans, so every handoff appears in the trace. Tool results only appear if you add ToolNode callbacks or custom logging, so check for those too. Confirm traces reach your Capella operational cluster before launch.
O2. Alert on failed tool calls, loops, slow runs, incomplete handoffs, and empty retrievals
Required · Phase: before go-live · Owner: platform · Service: Agent Tracer data queried with the Query Service or Couchbase Operational Insights
Set alerts for five signals: failed tool calls, runs that hit the step ceiling (usually a loop), p95 run latency, handoffs that never complete, and retrievals that return nothing. Test each alert before launch. Agent Tracer stores the data, and the Query Service or Operational Insights queries it, but the alerts themselves run in your monitoring or BI tool, fed by scheduled queries.
O3. Review traces and investigate failed runs on a set schedule
Review a sample of traces every week and investigate every failed run. The Agent Tracer docs map common symptoms to what to check: for unpredictable behavior, the exact prompts sent and the LLM’s reasoning; for a wrong tool call, similar tool names or overlapping descriptions; for a schema mismatch, the tool inputs against your expected schema; for a loop, repeated calls to the same tools; and for an inter-agent coordination failure, the context handed off between agents. For more on this practice, read What Are My AI Agents Doing? How to Gain Insight and Control.
How do you monitor cost and usage after go-live?
A single agent task can trigger multiple LLM and embedding calls, so costs can add up quickly even when the number of user requests stays low. Track these three metrics to understand how much each task costs and whether that spending produces useful results.
C1. Track token spend, embedding calls, retrieval volume, and index storage growth per run and tenant
Required · Phase: after go-live · Owner: platform · Service: Agent Tracer data with Couchbase Operational Insights
Record usage per run and per tenant, where a tenant is a customer or business unit sharing the deployment. Storing usage with your traces in Capella lets you aggregate it with Couchbase Operational Insights alongside the rest of your agent data.
C2. Use cost per successful task as the headline cost metric, with budget and week-over-week alerts
Cost per call hides retries and failed runs, while cost per successful task shows what the business actually pays for each result. Set alerts for budget thresholds and unusual week-over-week increases, which often point to a runaway loop or a prompt change.
C3. Review the top three cost drivers monthly and record the decision
Every month, identify the three biggest cost drivers, then record whether you want to accept, optimize, or cap each of them.
How do you keep the audit trail, access, and retention in check?
Establish audit logging, access controls, redaction, and retention policies before launch, then use the following four checks to confirm they stay effective after go-live.
S1. Trace every tool call and handoff to a run, agent, user, and timestamp
Required · Phase: before and after go-live · Owner: security · Service: Couchbase Agent Tracer
An AI agent audit trail must identify the user who initiated the request, what they asked the agent to do, which agent handled it, which tools the agent called and with what arguments, and when each action occurred. Retain these records for as long as your investigation and compliance requirements dictate. Agent Tracer records tool calls, handoffs, and timestamps by session. Add the user and agent identity as tags so each record traces back to a person.
S2. Review memory scopes on a schedule and confirm no cross-tenant reads
Required · Phase: before and after go-live · Owner: security · Service: Couchbase Agent Memory
Review Agent Memory scopes on a fixed schedule (such as quarterly), and confirm that no agent can read another tenant’s data. Self-managed Agent Memory uses OpenID Connect (OIDC) and OAuth2 tokens from your identity provider for access control, and Managed Agent Memory on Capella uses API keys with read, write, or admin access plus an IP allow list. Include database roles in the review: anyone who can read the bucket’s agentmemory scope can read stored memory directly, without going through the API.
S3. Redact sensitive data before it reaches traces or memory
Required · Phase: before and after go-live · Owner: security · Service: Couchbase Agent Tracer and Couchbase Agent Memory
Decide which fields, such as personal or payment data, are redacted before traces and memories are stored. Verify the redactions in sampled traces after launch.
S4. Make deletion requests cover memory, traces, and derived embeddings
Required · Phase: before and after go-live · Owner: security · Service: Couchbase Agent Memory and Couchbase Agent Tracer
A deletion request must remove the source records along with a user’s memories, traces, and any embeddings derived from their data. Agent Memory supports time-to-live (TTL) settings, so memories can expire automatically to match retention policy. Deleting a user removes all of that user’s sessions and memory blocks in one call.
A production readiness checklist for vector and agent workloads covers what to verify before launch and what to monitor after, unlike a general site-reliability review.
Start vector search with a Hyperscale Vector index in most cases, and record why you chose the index type.
Measure recall@k and p95 latency against a test query set before launch so tuning has a target.
Pin tool and prompt versions, validate tool inputs and outputs, and set step, timeout, and retry guardrails for every agent.
AI agent observability means you can reconstruct any agent run from traces. The Couchbase Agent Tracer records these as spans.
Measure cost per successful task rather than cost per call to keep LLM spend tied to outcomes.
Deletion requests must cover agent memory, traces, and derived embeddings, not only the source data.
Production readiness FAQ
What is a production readiness checklist? A production readiness checklist is a list of checks a workload must pass before launch, plus the signals to monitor it after it goes live. For vector and agent workloads, the checklist covers index choice, query behavior, agent guardrails, observability, cost, and audit trail.
What should you check before putting vector search into production? Check the index type and parameters, recall and latency against a test query set, capacity and rebalance behavior, query failure modes, data freshness, and backup and recovery times. On Couchbase, the documentation recommends testing with a Hyperscale Vector index first.
What is AI agent observability? AI agent observability lets you reconstruct an agent run from recorded traces, including user messages, LLM calls, tool calls, tool results, and handoffs. The Couchbase Agent Tracer records these as spans that can be queried with the Query Service or Couchbase Operational Insights.
How do you monitor AI agents in production? Trace every run, then alert on failed tool calls, runs that hit the step limit, slow runs, incomplete handoffs, and retrievals that return nothing. Track cost per successful task, and review a sample of traces on a set schedule.
What should an AI agent audit trail contain? An AI agent audit trail should contain the run and agent identity, the user context, every tool call with its arguments, the results, any handoffs, and timestamps. Retain records for as long as your investigation and compliance requirements demand.
How do you control LLM cost for agent workloads? Cap the steps and retries each run can take, monitor token spend per tenant, and measure cost per successful task. Alert on budget thresholds and week-over-week increases, which often reveal runaway loops.
Jade Rubick and I had a great conversation about the leadership implications of AI on his “Decoding Leadership” podcast. The focus was on what I’m calling The CTO Squeeze: pressure from boards and investors to embrace AI, but also demands from CFOs that they justify their spending on it. We talked about where the CTO squeeze comes from, how it affects organizational decision-making, and what engineering leaders can do about it.