<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Trida AI</title>
    <description>The latest articles on DEV Community by Trida AI (tridaai).</description>
    <link>https://dev.to/tridaai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F15429%2F13a3f6a4-7cc5-4551-b109-95e2f17a742c.png</url>
      <title>DEV Community: Trida AI</title>
      <link>https://dev.to/tridaai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tridaai"/>
    <language>en</language>
    <item>
      <title>Handover Is a Deployment, Not a Document</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Tue, 01 Dec 2026 12:05:49 +0000</pubDate>
      <link>https://dev.to/tridaai/handover-is-a-deployment-not-a-document-4m9b</link>
      <guid>https://dev.to/tridaai/handover-is-a-deployment-not-a-document-4m9b</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/handover-is-a-deployment-not-a-document" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Who runs the system on the first bad morning after the builders leave?&lt;/p&gt;

&lt;p&gt;Ask that question at the end of a deployment and the room usually produces a document. A runbook, a handover pack, a recorded walkthrough, a folder of links. All of it is useful. None of it answers the question, because knowing where the instructions are is a different thing from having run the system, judged its output, and recovered it when it misbehaved, with nobody from the building team in the room to ask.&lt;/p&gt;

&lt;p&gt;We treat handover as a deployment of its own. The system being deployed in that phase is not the software. It is the client's ability to operate the software. That ability has to be built, tested, and watched failing in safe conditions, the same way the system itself was. A handover that consists of sending files is a transfer of custody, not of capability.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a document cannot carry
&lt;/h2&gt;

&lt;p&gt;A runbook carries procedures. It says what to do when the nightly job fails, which dashboard to open, which threshold means stop. What it cannot carry is judgment, because judgment lives in the cases the document does not cover.&lt;/p&gt;

&lt;p&gt;Every production system produces a steady trickle of situations its builders handled by feel: an output that is technically valid and obviously wrong, a source that is late but not late enough to trip the alert, a user request that sits exactly on the boundary the guardrails were drawn around. While the builders are present, those calls get made quietly and correctly, and nobody writes them down, because each one looked too specific to generalise. After the builders leave, those same calls land on an operator who has the document and none of the feel.&lt;/p&gt;

&lt;p&gt;That gap is not a training problem you fix with a longer document. A longer document mostly adds procedures for cases that were already procedural. The judgment cases transfer a different way: by watching them get decided, then deciding them yourself while someone who knows can still say no.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reverse the seats
&lt;/h2&gt;

&lt;p&gt;So we think the last phase of a deployment should run the seats in reverse. Up to that point the forward deployed engineer operates and the client's operator watches, asks, and learns the shape of the work. In the handover phase the operator runs the system for real, with real inputs, real outputs, and real consequences, and the engineer watches.&lt;/p&gt;

&lt;p&gt;Watching, done properly, is not passive. The engineer keeps a log of every moment they wanted to reach for the keyboard, and why. Each entry is one of three things. It is a gap in the runbook, which should be written while the case is still fresh, in the operator's words rather than the builder's. It is a gap in the operator's judgment on a boundary case, which becomes a worked example the two of them talk through while the case is still in front of them. Or it is a place where the system itself is harder to operate than it should be, which is a defect in the deployment, not in the operator, and it should go back to the builders to fix before the handover is treated as done.&lt;/p&gt;

&lt;p&gt;A good version of this phase ends with a harder test. The operator runs the system alone through a set of situations chosen in advance to include the ugly ones: a failed run to recover, a bad output to catch and hold, an escalation to make with incomplete information. The builders are reachable but silent unless the situation leaves the agreed boundaries. What this tests is not whether the operator is clever. It tests whether the deployment, as handed over, can survive an ordinary bad morning.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fouquutu8jz601xoc3jep.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fouquutu8jz601xoc3jep.webp" alt="Four duties, three stages. A duty has moved only when the operator has done it under observation, not when it has been explained." width="800" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Four duties, three stages. A duty has moved only when the operator has done it under observation, not when it has been explained.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  One handover, worked through
&lt;/h2&gt;

&lt;p&gt;Take an example we built for this piece: a support-triage agent that reads incoming tickets, drafts a classification, and routes anything it is unsure about to a person. The system itself is unremarkable. The handover is where it gets interesting.&lt;/p&gt;

&lt;p&gt;In the first reversed session, the operator runs the morning queue and the engineer only watches. Twice the engineer reaches for the keyboard. Once, the agent has classified a billing complaint as a how-to question because the customer phrased it politely; the operator nearly accepts it, and the boundary case becomes a worked example about tone not being evidence. Once, a source feed is forty minutes stale and nothing has alerted, because the alert threshold was set for an outage, not a delay; that one is a defect, and the threshold gets fixed before the next session rather than written up as something for the operator to remember.&lt;/p&gt;

&lt;p&gt;In this built example, the solo test, a few sessions later, includes a planted failure: the routing step is broken on purpose, in a way the operator has not seen. The operator catches that tickets are piling up in the wrong queue, holds the agent's output instead of releasing it, and escalates with the queue counts and the time the pile-up started. That is the whole test. Nobody needed the operator to fix the routing step. They needed the operator to notice, to hold, and to escalate with enough information for the fix to start immediately.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8zmk38l1jijjnh704tww.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8zmk38l1jijjnh704tww.webp" alt="Example handover log for a support-triage agent. Each entry is a moment the watching engineer wanted to intervene, sorted into a runbook gap, a judgment case, or a defect in the deployment." width="800" height="582"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example handover log for a support-triage agent. Each entry is a moment the watching engineer wanted to intervene, sorted into a runbook gap, a judgment case, or a defect in the deployment.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Notice what the log is for. It is not a record that training happened. It is the list of things the deployment still owed the operator, shrinking entry by entry, with each entry closed by a change (to the document, to the operator's worked examples, or to the system) rather than by a conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to hold the handover open
&lt;/h2&gt;

&lt;p&gt;Sometimes the honest answer at the end of this phase is that the system is not ready to be handed over, and it is better to say so than to sign.&lt;/p&gt;

&lt;p&gt;Hold it open when the operator has never seen a real failure, only described ones. A system that has not failed during the handover window has not been handed over; it has been demonstrated. Hold it open when every escalation during the reversed sessions still ended with the engineer deciding, because that means the decision rights were never actually transferred, whatever the document says. And hold it open when the fixes from the log keep landing on the operator: more things to remember, more checks to run by hand. That pattern means the system is asking a person to compensate for it, and a person compensating quietly is how a deployment looks healthy until the day it does not.&lt;/p&gt;

&lt;p&gt;Saying this has a cost, and the cost should be named plainly. Extending a handover delays the clean ending everyone wants to report. But the alternative is worse and more common: a signed handover, a quiet month, and then the first real failure handled by someone meeting the system for the first time under pressure. The delay is visible and small. The failure is neither.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your last AI deployment ended with a document and a hope, the handover is where we would start the next one, planned as a phase with its own test, not an afternoon at the end. Bring the system you need your own team to run to &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt; and we will talk about what its operators need to have done, rather than only read, before we leave.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Put Key Context at the Edges</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Mon, 30 Nov 2026 12:08:56 +0000</pubDate>
      <link>https://dev.to/tridaai/put-key-context-at-the-edges-534o</link>
      <guid>https://dev.to/tridaai/put-key-context-at-the-edges-534o</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/put-key-context-at-the-edges" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Most pipelines never actually decide the order of the context they send a model. The order just happens: system prompt, retrieved chunks in similarity order, history, question. Then the team debugs the model when the answer ignores a passage that was sitting in the prompt the whole time, fourteenth of sixteen, exactly where nobody would look for it either. Where a fact sits inside a long context changes whether the model uses it, and the difference is large enough that placement deserves the same engineering attention as selection.&lt;/p&gt;

&lt;p&gt;The evidence for this is not folklore. In &lt;a href="https://aclanthology.org/2024.tacl-1.9.pdf" rel="noopener noreferrer"&gt;Lost in the Middle&lt;/a&gt;, Liu and colleagues moved the one passage that answered a question through documents of different lengths and positions. Performance was often highest when the passage sat at the beginning or the end of the context and fell away when it sat in the middle, in some settings below what the model managed with no documents at all. That held even for models explicitly built for long contexts. Length was not the protection people assumed it was.&lt;/p&gt;

&lt;p&gt;So our rule for assembling a run is simple to state and easy to skip: decide which pieces of context the answer cannot afford to miss, and put those pieces at the edges. Everything else earns the middle, or doesn't get in.&lt;/p&gt;

&lt;h2&gt;
  
  
  What counts as an edge piece
&lt;/h2&gt;

&lt;p&gt;Not much. That is the discipline in it.&lt;/p&gt;

&lt;p&gt;The task itself belongs at the start, with the hard limits attached to it: the date range that bounds the answer, the customer the run is about, the action the agent is not allowed to take. These are the facts a wrong guess corrupts quietly, because the answer still reads well with the wrong customer name in it.&lt;/p&gt;

&lt;p&gt;The decisive evidence belongs at the end, close to the question the model is actually answering. In a retrieval-heavy run that is usually one or two passages, not the full result set: the clause that sets the threshold, the record that carries the current status, the figure the answer will quote. If three passages disagree, the one the answer should follow goes last, with the disagreement named rather than smoothed over.&lt;/p&gt;

&lt;p&gt;The middle is for context that helps but cannot hurt much if it is skimmed: background documents, earlier turns summarised down, tool results the agent may consult. Anthropic's guidance on &lt;a href="https://www.anthropic.com/research/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;effective context engineering&lt;/a&gt; makes the companion point about volume: a model has an attention budget, and every token added spends some of it. Placement and restraint are the same decision seen from two sides. A short context with the decisive passage buried in it can still fail; a long one with background padded around a well-placed answer usually has a different problem, which is cost.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftgxq8luuql61gl9cfxqt.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftgxq8luuql61gl9cfxqt.webp" alt="How an assembler places context: decisive pieces go to the start and end slots, background fills the middle, and a position test checks that moving a decisive piece changes the answer in the expected way." width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How an assembler places context: decisive pieces go to the start and end slots, background fills the middle, and a position test checks that moving a decisive piece changes the answer in the expected way.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Assembly is a step, not an accident
&lt;/h2&gt;

&lt;p&gt;Most pipelines have no assembly step to speak of. The system prompt goes first because the framework puts it there, retrieved chunks follow in similarity order, the conversation history accumulates behind them, and the user's latest message lands wherever the template leaves it. Nobody chose that order. It is the residue of three components each doing something reasonable on their own.&lt;/p&gt;

&lt;p&gt;We would rather see the order chosen in one place, by code that knows the run. An assembler takes the candidate pieces, classifies each as decisive or background, and lays the window out deliberately: task and limits at the start, background compressed in the middle, decisive evidence and a restated question at the end. Classification can start crude. A retrieved passage that the answer will quote is decisive; a passage included because it ranked fourth is background until something promotes it.&lt;/p&gt;

&lt;p&gt;That one place is also where the other context decisions become visible. If the decisive set keeps growing past a handful of pieces, the run probably has a selection problem that placement cannot fix. If the background cannot be compressed without losing something the answer needs, that is worth knowing before the run, not after a bad answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  One run, assembled two ways
&lt;/h2&gt;

&lt;p&gt;Take an example we built for this piece, an order-support agent answering whether a returned item above a value threshold can be refunded without a manager code. Fourteen retrieved passages go in: the returns policy, two warehouse notices, last quarter's policy summary, carrier guidance, and more. One sentence in the current policy sets the threshold. It is the only sentence the answer turns on.&lt;/p&gt;

&lt;p&gt;In the first assembly the passages sit in retrieval order and that sentence lands ninth, between a carrier notice and a superseded summary that names a different threshold. In the second, nothing is added or removed. The task and the no-code limit open the window, the background passages sit in the middle with the superseded summary labelled as superseded, and the current policy passage closes the window next to the question.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm6umw41yvjl18rtkpdf4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm6umw41yvjl18rtkpdf4.webp" alt="Example assemblies of one run, same fourteen passages in both. The second changes only the order, and labels the superseded summary instead of leaving two thresholds unmarked." width="800" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example assemblies of one run, same fourteen passages in both. The second changes only the order, and labels the superseded summary instead of leaving two thresholds unmarked.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We are not claiming the second assembly guarantees the right answer. Models vary, and a passage at the end can still be misread. The claim is narrower: the second assembly is testable in a way the first is not. Move the threshold sentence to the middle of your own eval set and watch what happens to the answers. If nothing changes, your context is short enough, or your model robust enough, that placement is not your problem today. If answers degrade, you have found a cheap fix that no model upgrade was going to give you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this stops helping
&lt;/h2&gt;

&lt;p&gt;Placement is a weak tool against bad selection. If the decisive passage was never retrieved, no ordering rescues the run, and edge placement can make a retrieval gap harder to spot because the answers get more confident on the evidence that did arrive.&lt;/p&gt;

&lt;p&gt;It also decays inside a long run. An agent that works for forty turns assembles its context again at every step, and tool results pile into the middle whether anyone planned it or not. The edge rule has to be re-applied as the window is rebuilt, which is an argument for the assembler being code that runs each turn, not a template someone arranged once.&lt;/p&gt;

&lt;p&gt;And there is a real tension with caching and with honesty about the middle. Compressing background to protect the edges can strip the qualifications attached to a claim, and a team that learns to game position may start demoting inconvenient evidence to the middle rather than answering it. Placement should follow how much the answer depends on a piece of context. The moment it follows how much the team likes the piece, it has become a way to steer the model past its own evidence, and the evals will eventually say so.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your agents read everything you give them and still miss the one clause the answer turned on, the fix may be in how the context is assembled rather than in a larger window. Bring the run to &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt; and we will look at what your assembler is doing with the pieces that matter most.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Filter Permissions Before Retrieval</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Sun, 29 Nov 2026 12:08:36 +0000</pubDate>
      <link>https://dev.to/tridaai/filter-permissions-before-retrieval-2d72</link>
      <guid>https://dev.to/tridaai/filter-permissions-before-retrieval-2d72</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/filter-permissions-before-retrieval" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Picture the control many teams ship first: a line in the system prompt warning the model that some retrieved material is confidential and must not be quoted to unauthorised staff. It feels tidy. It is also backwards. The warning and the confidential material arrive in the same context, the material first in every way that matters — the model has already read the salary band and the unreleased price before it reaches the sentence asking it to be careful. Compliance then depends on the model choosing the warning over the content, every time, against follow-up questions, summarising tasks, and documents that argue the opposite.&lt;/p&gt;

&lt;p&gt;Retrieval-augmented generation, RAG for short, widens the door your permissions were guarding. The source systems had it right: a file in a shared drive opens only for the people on its access list. Index that file into a vector store without carrying the list with it, and similarity search becomes a way around the list. The user never opens the document. They ask a question, the retriever finds the document is relevant, and the model hands over its contents in prose. No permission was broken on paper. The answer broke it.&lt;/p&gt;

&lt;p&gt;Our position is plain: a chunk outside the caller's access list should never be retrieved for that caller. Not retrieved and hidden. Not retrieved and summarised carefully. Never retrieved. Everything downstream of retrieval, the prompt, the trace, the cache, the answer, is built from what retrieval returned.&lt;/p&gt;

&lt;h2&gt;
  
  
  Permission belongs on the chunk
&lt;/h2&gt;

&lt;p&gt;Access control in a RAG system starts at indexing, not at query time. When a document is split into chunks, every chunk inherits the document's access list: the users and groups who may read the source. A chunk that loses that list during chunking is a defect, and the safe default for a chunk with no list is closed, not open.&lt;/p&gt;

&lt;p&gt;Microsoft's guidance for &lt;a href="https://learn.microsoft.com/en-gb/azure/search/search-document-level-access-overview" rel="noopener noreferrer"&gt;document-level access control&lt;/a&gt; in Azure AI Search is explicit that where a pipeline splits secured documents, the permission metadata has to be populated on every resulting chunk, rather than only on the parent. Our rule for the platforms that support an explicit deny entry: the deny wins over an allow. An exception that only sometimes applies is not an exception.&lt;/p&gt;

&lt;p&gt;Groups do most of the work here. A list built from group memberships — finance, plant managers, one client's deal team — survives people joining and leaving far better than a list of individual names, and it matches how the source systems already express access. Individual entries stay available for the genuinely one-off grant, and deny stays available for the exception that has to win.&lt;/p&gt;

&lt;h2&gt;
  
  
  The filter is built by the server, from the login
&lt;/h2&gt;

&lt;p&gt;At query time, the caller's identity becomes a filter on the search itself. The application takes the authenticated user, resolves their groups, and hands the index a condition: return chunks whose access list contains this user or one of these groups. Azure AI Search describes its security filters in exactly those terms: the application passes a user or group identity, the query carries it as a filter, and documents that do not match are excluded. Amazon Bedrock Knowledge Bases, for ACL-enabled custom data sources, applies its lists during &lt;a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-managed-ds-custom-acl.html" rel="noopener noreferrer"&gt;pre-retrieval filtering&lt;/a&gt;, returning only documents the querying user is permitted to access.&lt;/p&gt;

&lt;p&gt;Two details decide whether this holds up.&lt;/p&gt;

&lt;p&gt;First, the filter comes from the authenticated session, built by server code the caller does not control. It never comes from a field in the request body, and it is never assembled by the model. A filter the caller can edit is a suggestion. A filter the model can rewrite is worse, because the model reads untrusted documents for a living.&lt;/p&gt;

&lt;p&gt;Second, filtering is not the same job as authentication, and the vendors say so themselves. AWS warns, in the same Bedrock documentation, that ACL-aware filtering is not authorization: the knowledge base does not authenticate end users, the application does, and the filter is only as trustworthy as the identity the application verified and passed in. Teams that skip that distinction end up with a well-filtered index behind a login nobody checked.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbmcc1fmmkysyv80ht15k.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbmcc1fmmkysyv80ht15k.webp" alt="Permission check at retrieval. The filter is built from the verified login, and the search runs only over chunks the caller may read." width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Permission check at retrieval. The filter is built from the verified login, and the search runs only over chunks the caller may read.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What this looks like on one question
&lt;/h2&gt;

&lt;p&gt;Take a routine question, labelled here as an example: "What changed in the supplier payment terms this quarter?" Two people ask it on the same morning, in the same system.&lt;/p&gt;

&lt;p&gt;The operations lead gets an answer drawn from the current terms sheet and the procurement bulletin — both open to her groups. The restricted annex, which holds the negotiated rates for one supplier, is not in her results, so it is not in her answer, her trace, or her follow-up questions' context either.&lt;/p&gt;

&lt;p&gt;A finance manager asks the identical question and gets a fuller answer, because the annex is open to finance. Same index, same question, different searchable set. The difference was decided before either search ran, by the lists copied onto the chunks when the documents were indexed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F068v56kiwys5v9tcl08h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F068v56kiwys5v9tcl08h.webp" alt="Retrieval log — example. One question, two callers. The annex enters the finance manager's search and never enters the operations lead's." width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Retrieval log — example. One question, two callers. The annex enters the finance manager's search and never enters the operations lead's.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it strains
&lt;/h2&gt;

&lt;p&gt;Permissions change faster than indexes do. Someone leaves a deal team on Friday; the source drive updates in minutes, while the copy of the access list sitting on your chunks is only as fresh as your last sync. Treat permission changes as an indexing event, not a housekeeping job. A revocation should trigger re-indexing of the affected documents the way a content edit does, and a revocation that waits for the weekly job is a week of access you meant to end.&lt;/p&gt;

&lt;p&gt;Misconfiguration fails quietly, too. AWS notes that when its ACL settings are wrong, retrieval does not error — the affected documents are silently omitted, and users just get thinner answers. That is the safe direction to fail, but it means a broken permission sync looks exactly like a retrieval-quality problem. The test that separates the two is unglamorous: a small set of accounts, one per role, asking questions with known answers, run after every index change. If the restricted account starts seeing the annex, the run is red. If the finance account stops seeing it, the run is also red.&lt;/p&gt;

&lt;p&gt;There is a cost we will not pretend away. Every chunk now carries permission metadata that has to be copied at indexing, kept current afterwards, and tested after every change, and coarse group lists will occasionally hide a document from someone who could legitimately have read it in the source. We accept both. A missed document is a support ticket. A leaked one is an incident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your assistant can answer questions from documents some of its users may not open, the fix is in the retrieval layer, not in a sterner prompt. Bring us the corpus and its permission model through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt;, and we will design the indexing and filtering so each caller searches only what they are allowed to read.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Batch Jobs Are Not Slow Chat</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Sat, 28 Nov 2026 12:05:23 +0000</pubDate>
      <link>https://dev.to/tridaai/batch-jobs-are-not-slow-chat-2afc</link>
      <guid>https://dev.to/tridaai/batch-jobs-are-not-slow-chat-2afc</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/batch-jobs-are-not-slow-chat" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Plenty of production work has nobody waiting for it. The overnight classification run. The eval set replayed after a prompt change. Ten thousand documents that need extracting before Monday, not before lunch. Teams often run that work through the same synchronous endpoint as their live product, one request at a time, and pay full price for an answer they will not read for hours.&lt;/p&gt;

&lt;p&gt;The batch APIs exist for exactly this work, and the discount is the least interesting thing about them. OpenAI's &lt;a href="https://developers.openai.com/api/docs/guides/batch" rel="noopener noreferrer"&gt;Batch API&lt;/a&gt; charges 50% less than its synchronous endpoints, Anthropic's &lt;a href="https://docs.claude.com/en/docs/build-with-claude/batch-processing" rel="noopener noreferrer"&gt;Message Batches API&lt;/a&gt; charges 50 percent of standard prices, and Google's &lt;a href="https://docs.cloud.google.com/vertex-ai/generative-ai/docs/multimodal/batch-prediction-gemini" rel="noopener noreferrer"&gt;batch inference for Gemini&lt;/a&gt; on Vertex AI is also priced at a 50% discount to real-time inference. Three competitors landing on the same number tells you what the trade is. You give the provider your work as a job and let it choose when the work runs. In return the price halves.&lt;/p&gt;

&lt;p&gt;What changes is not the model. It is the contract around the call, and teams that treat a batch as a slower chat request discover the differences in the wrong order.&lt;/p&gt;

&lt;h2&gt;
  
  
  A job, not a conversation
&lt;/h2&gt;

&lt;p&gt;A synchronous call is a conversation with a deadline measured in seconds. You send a request, you hold a connection, you get one answer or one error, and the code that asked is still standing there to deal with it.&lt;/p&gt;

&lt;p&gt;A batch removes the person holding the connection. You assemble every request up front, each with your own identifier, and submit the set as one file or one request list. OpenAI takes a JSONL file of up to 50,000 requests; Anthropic takes up to 100,000 requests or 256 MB, whichever comes first. The provider runs them when capacity allows. OpenAI's completion window is 24 hours, often much faster in practice; Anthropic says most batches finish in under an hour, and any request still unprocessed after 24 hours expires.&lt;/p&gt;

&lt;p&gt;That shape rules some work out immediately. A batch request can't depend on the answer to the previous one. There is no turn two informed by turn one, no tool result fed back mid-job, no person approving a step before the next step runs. Anthropic doesn't accept streaming inside a batch, because the result is a file, not a stream. If your workflow needs a loop, the loop has to live outside the batch: one batch per stage, with your own code reading the stage's output before assembling the next stage's input.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdxah0kpqnjmqn0cd0fr3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdxah0kpqnjmqn0cd0fr3.webp" alt="The batch job contract, in the OpenAI shape. One input file goes in, the provider runs it on its own schedule, and the results come back as a file, with errors recorded per request." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The batch job contract, in the OpenAI shape. One input file goes in, the provider runs it on its own schedule, and the results come back as a file, with errors recorded per request.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The results file is the interface
&lt;/h2&gt;

&lt;p&gt;Here is the part that catches people. Results do not come back in the order you sent them. Both OpenAI and Anthropic say so plainly, and both give the same instruction: match every result to its request by the identifier you assigned, never by position.&lt;/p&gt;

&lt;p&gt;That sounds like a footnote. It is the design. A batch job needs a reconciliation step that a synchronous call never does, because a synchronous caller knows which request its answer belongs to. Your batch code has to join the output file back to the input list, count what came back, and account for everything that did not.&lt;/p&gt;

&lt;p&gt;And some of it will not come back clean. A finished batch can hand you two kinds of remainder. Requests that errored, with the error recorded per request rather than raised in your process. Requests that expired because the window closed before they ran — OpenAI writes those to the error file as expired, and completed requests are still returned and still charged. Then there is the count itself, which is your job rather than the provider's: reconcile the identifiers that went in against the ones that came back, because a file that parses isn't proof that every line in it was answered.&lt;/p&gt;

&lt;p&gt;So the deliverable of a batch integration is not the submission call. It is the ledger you keep around it: which identifiers went in, which came back succeeded, which errored and why, which expired, and which of those get resubmitted. Resubmission is where batches bite teams that skipped the ledger. Send the whole job again because ninety lines failed and you have now paid twice for the nine thousand that succeeded, and in a workflow with side effects you may have applied them twice too. Resubmit by identifier, from the ledger, and the retry is a small job. Resubmit from memory and it is a second incident.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6304n9aakoe2cih8df2i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6304n9aakoe2cih8df2i.webp" alt="Example reconciliation sheet for one batch, built from ordinary parts. Six requests matched by their own identifiers; the invalid one is held for a fix, the expired one is cleared to resubmit on its own." width="800" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example reconciliation sheet for one batch, built from ordinary parts. Six requests matched by their own identifiers; the invalid one is held for a fix, the expired one is cleared to resubmit on its own.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the discount actually buys
&lt;/h2&gt;

&lt;p&gt;The separate capacity is worth naming, because it is easy to overlook next to the price. OpenAI states that batch jobs do not count toward the standard per-model request and token rate limits, and Anthropic likewise keeps batch usage under its own limits rather than the Messages API's. A large overnight job therefore does not compete with your live traffic for the same headroom. For teams whose bulk work currently runs at 2 a.m. precisely to avoid starving the product, that separation can matter as much as the halved bill.&lt;/p&gt;

&lt;p&gt;There is also a deadline honesty to it. A synchronous integration pretends every request matters now, and then queues, retries and times out its way to finishing sometime tonight anyway. A batch states the deadline up front — inside a day, and under an hour for most Anthropic batches — and prices the work accordingly. If the honest deadline for a job is tomorrow morning, saying so in the API you call isn't a compromise. It's the accurate description of the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where batching stops
&lt;/h2&gt;

&lt;p&gt;Batch is the wrong tool the moment a person is waiting. Support answers, search, anything inside an interactive session: a job that finishes sometime in the next day is not a slow version of those products, it is a broken one.&lt;/p&gt;

&lt;p&gt;It is also wrong for work you cannot enumerate in advance. If the request list depends on what a person does next, or on live state that will change while the job sits in the queue, the input file is stale before it runs. And expiry is a real outcome, not a theoretical one: a job that expires returns partial results, so a workflow that cannot tolerate a partial set needs its own completion check before anything downstream consumes the output.&lt;/p&gt;

&lt;p&gt;One more limit is quieter. Results aren't kept forever. Anthropic makes batch results downloadable for 29 days after creation; OpenAI's output and error files expire 30 days after creation by default. The provider's file is a delivery mechanism, not your archive. Download it, reconcile it, and store your own copy, or the record of what the job produced disappears on a schedule you did not set.&lt;/p&gt;

&lt;p&gt;Our rule is simple to state and worth applying before the invoice argument starts. If the work is independent, enumerable now, and honestly due in hours, submit it as a job and build the ledger. If any one of those three fails, keep it synchronous and pay for the conversation. The discount follows from the shape of the work. It was never the reason.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your overnight and bulk model work is still running as thousands of one-at-a-time calls through your live endpoint, we can help you separate the jobs from the conversations and build the reconciliation around them. Tell us about the workload through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt; and we will start with which of it can honestly wait.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>The Integration List Is the Real Scope</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Fri, 27 Nov 2026 12:03:51 +0000</pubDate>
      <link>https://dev.to/tridaai/the-integration-list-is-the-real-scope-3ck4</link>
      <guid>https://dev.to/tridaai/the-integration-list-is-the-real-scope-3ck4</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/the-integration-list-is-the-real-scope" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A deployment plan usually opens with what the agent will do. Read the requests, check the records, draft the reply, update the system. That list fits on one slide, and it is the least useful page in the plan, because none of those verbs happen until something else gives permission, data, or a place to write the result.&lt;/p&gt;

&lt;p&gt;We scope deployments the other way round. Before we argue about features, we write down every integration the workflow touches, in the order a single request would meet them. Identity first: who is asking, and how does the system know? Then the source the agent reads, the second source it checks against, the place its output lands, and the log someone will open when a user says the answer was wrong. If an item on that list has no owner, no test environment, or no way to prove it works, the deployment does not have a schedule yet. It has dates pinned to assumptions nobody has tested.&lt;/p&gt;

&lt;p&gt;This sounds like bookkeeping. It is actually the scope. A feature is a sentence; an integration is a relationship with a team you do not control, a change window you did not set, and a test environment that behaves differently from production in ways nobody wrote down.&lt;/p&gt;

&lt;h2&gt;
  
  
  What belongs on the list
&lt;/h2&gt;

&lt;p&gt;Five kinds of connection show up in almost every deployment, and teams routinely count only two of them.&lt;/p&gt;

&lt;p&gt;The read is the obvious one: the records, documents, or queue the agent works from. Next to it sits the check — the second system consulted before acting, such as an inventory, a price list, or an eligibility record. Teams forget the check because it demos well without it; the agent just answers from the first source and sounds confident.&lt;/p&gt;

&lt;p&gt;The write-back is where output becomes real. A draft in a chat window is a suggestion. The same text written into the system of record is a commitment other people will act on, so the write-back deserves its own line, its own permissions, and its own failure plan.&lt;/p&gt;

&lt;p&gt;Then come the two nobody puts on the slide. Identity: the agent acts for someone, and the receiving system needs to know whether that is the user, a service account, or the deployment team — because the audit trail and the permission boundary both depend on the answer. And the record: where the run is logged so that a disagreement next month can be settled from evidence instead of memory.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F87ohdq2or6fqyix6e9e9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F87ohdq2or6fqyix6e9e9.webp" alt="Integration board for one workflow: five connections, what flows on each, and the proof required before build." width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Integration board for one workflow: five connections, what flows on each, and the proof required before build.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Proof, not access
&lt;/h2&gt;

&lt;p&gt;An integration is not done when someone grants access. Access is a credential. Done means a test request travelled the whole path, in, through the agent, and back out, and left the right trace at the far end.&lt;/p&gt;

&lt;p&gt;That distinction matters because the failures live at the far end. The read works, but returns a field in a format the source team changed last quarter. The write succeeds, but lands in a queue nobody monitors. The identity provider authenticates the user and passes no group claim, so the agent cannot tell a supervisor's request from anyone else's. Each of these passes a demo. Each of them stops a deployment.&lt;/p&gt;

&lt;p&gt;So every line on the list carries a proof, stated before the build starts: a named test case, run against the real connection, with the expected result written down in advance. "Connected" is not a proof. A screenshot of one request arriving, with the right values in the right fields and a log line to match, is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cutting scope means cutting integrations
&lt;/h2&gt;

&lt;p&gt;When a timeline slips, teams cut features. The demo gets smaller, the announcement gets quieter, and the date still moves — because the integrations underneath the surviving features are the same integrations that were late.&lt;/p&gt;

&lt;p&gt;Cut the list instead. A first release that reads from two systems and writes to none is a smaller deployment than one that reads from one system and writes back to it, even if the second sounds like the simpler product. Writes carry permissions, review, and reversal. Notifications carry an audience that can complain. Each connection you remove removes an owner you were waiting on, a test cycle you did not control, and a failure mode you would have met in production.&lt;/p&gt;

&lt;p&gt;The honest version of a phased launch is a phased integration list: these connections are proven, these are read-only for now, this one is deliberately absent and the workflow is designed so a person does that step by hand. Users forgive a workflow that hands them a prepared decision to confirm. They do not forgive one that silently writes the wrong thing, or one that was announced for March and arrives in June because a connection nobody listed was waiting on a security review.&lt;/p&gt;

&lt;p&gt;Here is what that looks like on one workflow, an example built from ordinary parts. A dispatch assistant for a field-service team reads incoming work orders, checks parts availability, and proposes a schedule for the day.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmsvvx3cumxvwxypoekdv.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmsvvx3cumxvwxypoekdv.webp" alt="Example integration list for a dispatch assistant. The write-back is the blocked connection, so the first release proposes the schedule and a person confirms it." width="800" height="590"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example integration list for a dispatch assistant. The write-back is the blocked connection, so the first release proposes the schedule and a person confirms it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Four of the five connections could be proven quickly. The write-back could not: the dispatch board's test environment accepted writes that production rejected, and nobody could say why before the launch date. So the first release proposes the schedule inside the team's existing tool and a dispatcher confirms it with one click. That is not a reduced version of the plan. It is the plan, once the list was read honestly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this stops working
&lt;/h2&gt;

&lt;p&gt;The list has limits, and pretending otherwise would make it another piece of scope theatre.&lt;/p&gt;

&lt;p&gt;It cannot price a connection nobody has built before. If the source system has no API and the vendor's export arrives as a weekly file, the integration line is really a small project of its own, and the list's job is only to surface that early. The estimate still has to come from whoever will do that work.&lt;/p&gt;

&lt;p&gt;It also decays. Systems change owners, endpoints move, a permission granted in design gets tightened before launch. A list written at kickoff and never re-read is a historical document. We treat it as a living one: every status on it has a date, and a connection is only as proven as its most recent test.&lt;/p&gt;

&lt;p&gt;And there is a size where this stops being a list and becomes a programme. A workflow touching twenty systems is not one deployment with twenty integrations; it is several deployments sharing a name, and it should be split before it is scheduled.&lt;/p&gt;

&lt;p&gt;None of that argues for skipping the list. It argues for writing it while it is still short enough to change the plan.&lt;/p&gt;

&lt;p&gt;Count the connections before you promise the date. The model work is rarely what a deployment is waiting on. It is waiting on a group claim, a test environment that lies, a write nobody approved — ordinary things, all of them visible on day one if someone writes them down.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your deployment plan names the features but not the connections underneath them, we can help you build the integration list first and scope the work from what it shows. Tell us about the workflow through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt; and we will start with the systems it has to touch.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Clearing Context Spends the Cache</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Thu, 26 Nov 2026 12:13:59 +0000</pubDate>
      <link>https://dev.to/tridaai/clearing-context-spends-the-cache-4lnb</link>
      <guid>https://dev.to/tridaai/clearing-context-spends-the-cache-4lnb</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/clearing-context-spends-the-cache" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Turn on tool-result clearing for a long-running agent and two numbers move in opposite directions. The context window gets smaller, which is the number everyone watches. The cache-write column in the usage report gets bigger, which is the number almost nobody watches. A team can ship the first change, celebrate the headroom, and never notice that the run got more expensive while it got leaner.&lt;/p&gt;

&lt;p&gt;The two settings are usually owned as separate features. Caching is a cost optimisation someone enabled in the spring. Clearing is a context fix someone enables in the autumn, when runs start bumping into the window limit. They are not separate. They act on the same prefix, and the second one spends what the first one saved.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a clear actually removes
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://platform.claude.com/docs/en/build-with-claude/context-editing" rel="noopener noreferrer"&gt;Claude's context editing&lt;/a&gt; works server-side, before the prompt reaches the model. When the conversation passes a trigger you set, the API removes the oldest tool results first and replaces each one with a placeholder saying the content was removed. The tool calls themselves stay visible, so the model can still see what it did; it just can't see what came back. Your client keeps the full, unmodified history. The edit exists only in what the model is shown.&lt;/p&gt;

&lt;p&gt;The defaults tell you the intended shape of the thing. Clearing starts at 100,000 input tokens and keeps the three most recent tool use/result pairs. This is a mechanism for long, tool-heavy runs, not a tidy-up for ordinary conversations. Most of the results it removes are file reads, search returns and query output: bulk the model has already used, which is exactly why it can usually be dropped. Usually is doing real work in that sentence, and we'll come back to it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnmy73tdjjw0f8jebjwo5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnmy73tdjjw0f8jebjwo5.webp" alt="The context window as one run assembles it. Clearing removes blocks from the history zone; everything after the earliest removed block has to be written to the cache again." width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The context window as one run assembles it. Clearing removes blocks from the history zone; everything after the earliest removed block has to be written to the cache again.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Price the clear before you schedule it
&lt;/h2&gt;

&lt;p&gt;Prompt caching works on prefixes. On the Claude API the cached prefix runs tools, then system, then messages, and a &lt;a href="https://platform.claude.com/docs/en/build-with-claude/prompt-caching" rel="noopener noreferrer"&gt;cache read costs 10 percent&lt;/a&gt; of the ordinary input price at the standard multiplier, while writing the cache costs 25 percent more than ordinary input for the 5-minute TTL. That asymmetry is the whole game: a stable prefix is read cheaply turn after turn, and the write premium is paid once.&lt;/p&gt;

&lt;p&gt;Clearing breaks the prefix at the point where content is removed. Everything before the earliest cleared block still matches. Everything after it is a new prefix, and the next request pays a cache write on it. Clear a few hundred tokens every couple of turns and you pay that write premium again and again to save almost nothing; the documentation's own advice is to clear enough each time to make the invalidation worthwhile. That is what the &lt;code&gt;clear_at_least&lt;/code&gt; setting is for. It sets a floor, in the same unit as your trigger: if a clearing pass cannot free at least that much, it does not run at all.&lt;/p&gt;

&lt;p&gt;So set the policy the way you'd set any budget. Clear rarely and in large batches: a high trigger, a &lt;code&gt;clear_at_least&lt;/code&gt; floor sized to the run's real results, not to a round number. Keep the recent results the current line of work still leans on. And exclude the tools whose results are expensive or impossible to fetch again. A cleared result the model still needs doesn't vanish politely; the model re-issues the call, and you pay for the fetch, the tokens and the turn. Some tools should never be eligible at all: the one that fetches the approval record, the one whose query takes forty seconds to run. Paired with the memory tool, Claude receives an automatic warning when the conversation approaches the clearing threshold, so it can write what matters into its memory files before the clear takes the originals. That warning only helps if the run is set up to act on it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64o8vmhwpu1owsjn6nir.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F64o8vmhwpu1owsjn6nir.webp" alt="Example clearing receipt, illustrative: one clearing event on one run, as reported back in the response's context management fields." width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example clearing receipt, illustrative: one clearing event on one run, as reported back in the response's context management fields.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this stops helping
&lt;/h2&gt;

&lt;p&gt;Short runs never reach the trigger, and for them all of this is configuration that never fires. Fine. The failure to avoid is the opposite: tuning clearing on a run whose problem is not history at all. If the tool definitions and system instructions already fill a third of the window before the first user message, the baseline is the problem, and clearing history will not fix a baseline. That material sits in front of the history zone; it is priced and attended to on every turn, and it needs its own decision: fewer tools loaded up front, tighter instructions, retrieval at the point of need instead of preloading.&lt;/p&gt;

&lt;p&gt;There is also a debugging cost that arrives quietly. Once editing is on, your stored transcript is no longer what the model saw. When a run goes wrong three hours in, the local log shows results the model never received, or received and lost. The honest record is the one the API reports back: each response carries the edits that were applied and the tokens they cleared, and the token counting endpoint will show you the count before and after editing for the same prompt. Read those two numbers after any policy change. If the after number fell and the cache writes climbed by more than the fall is worth, the policy is wrong, whatever the window graph says.&lt;/p&gt;

&lt;p&gt;Context is a finite resource with an &lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;attention budget&lt;/a&gt; attached, and clearing is one of the few tools that genuinely returns space to it. We're not arguing against clearing. We're arguing against treating it as free. Every clear is a purchase: window space, bought with a cache rewrite and occasionally with a re-fetch. Purchases get budgets, thresholds and receipts. Give it all three and it earns its place in the run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your long-running agents are getting leaner and more expensive at the same time, the clearing policy and the cache are probably fighting each other. Send the run to &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt; and we'll set the context budget with you: what gets cleared, what never does, and what the receipts should show.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>An Embedding Change Is a Reindex</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Wed, 25 Nov 2026 12:13:50 +0000</pubDate>
      <link>https://dev.to/tridaai/an-embedding-change-is-a-reindex-416f</link>
      <guid>https://dev.to/tridaai/an-embedding-change-is-a-reindex-416f</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/an-embedding-change-is-a-reindex" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The most expensive line in a RAG upgrade is the one that looks like a config change.&lt;/p&gt;

&lt;p&gt;Somewhere in the settings there is a model name for embeddings. A newer model scores better on the public benchmarks, costs less per million tokens, or the old one has a retirement date attached. Swapping the name feels like swapping any other dependency: change it, redeploy, watch the dashboards. With a generation model that is roughly true. With an embedding model it is the start of a data migration, and treating it as anything less is how a search system quietly gets worse while every health check stays green.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two spaces, no translation between them
&lt;/h2&gt;

&lt;p&gt;An embedding model does not describe your documents. It places them. Every chunk in the index is a point in a space whose geometry that one model defined: which passages sit near each other, and how near, is a property of the model that encoded them. Encode the same sentence with a different model and you get a point in a different space. The dimensions may even match. The coordinates still mean nothing across the boundary, because similarity is only defined inside one space.&lt;/p&gt;

&lt;p&gt;That is why a half-migrated index is worse than either model on its own. Re-encode a third of the corpus in place and queries embedded with the new model will rank that third against the rest using numbers that do not compare. Nothing errors. Results come back in the usual shape, plausible and wrong, and the failure looks like a quality wobble instead of what it is: two populations sharing a ranking they cannot both belong to.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://qdrant.tech/documentation/tutorials-operations/embedding-model-migration/" rel="noopener noreferrer"&gt;Qdrant's migration tutorial&lt;/a&gt; puts the operational consequence plainly: switching models requires re-embedding all vectors in your collection. All of them. There is no supported setting that converts the old vectors, because there is nothing to convert them with: the information about where the new model would place a passage lives in the passage, not in its old coordinates.&lt;/p&gt;

&lt;p&gt;People keep looking for the shortcut anyway, and the research on it is now fairly direct. A recent study, &lt;a href="https://arxiv.org/html/2611.20702v1" rel="noopener noreferrer"&gt;When the Bill Falls&lt;/a&gt;, tested the reuse strategies proposed for exactly this problem, adapters that translate new-model queries into the old space, and window re-ranking, where the old index nominates candidates for the new model to re-score, across sixteen model pairs and more. Its first finding is the one to plan around: reuse never avoids re-encoding. Once the migration has to finish, every strategy encodes every document. Reuse changes when the work is paid and how much quality is lost in the meantime. It does not change the bill.&lt;/p&gt;

&lt;p&gt;The adapter result is sharper. Judged against the right baseline, not how close an adapter gets to the new model, but whether it beats the old model you could have kept, the result is narrow: of the five adapter families tested, only bridges between two LLM embedders from the same family cleared that bar, on a single model pair, by a margin the authors describe as too small to count as an improvement. A bridge that serves worse than staying put is not a migration strategy. It is a way to pay for a migration and not get one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc9e5f2a2x21pu5rmypzk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc9e5f2a2x21pu5rmypzk.webp" alt="The cutover as a timeline: the old index keeps serving while the new space is built beside it: dual writes first, then the backfill, a comparison gate on your own queries, and the switch only after the gate passes, with the old space held through the rollback window." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The cutover as a timeline: the old index keeps serving while the new space is built beside it: dual writes first, then the backfill, a comparison gate on your own queries, and the switch only after the gate passes, with the old space held through the rollback window.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it as a migration, in this order
&lt;/h2&gt;

&lt;p&gt;Once the change is treated as a migration, the shape is familiar from database work, and the order matters more than the tooling.&lt;/p&gt;

&lt;p&gt;First, confirm you still have the source text. Re-embedding requires the original data, from the primary store, or from the payloads stored alongside the vectors, as Qdrant's tutorial assumes. Teams that kept only vectors discover, at this moment, that they do not have an index so much as a one-way function of a corpus they no longer hold. Storing the chunk text with each vector feels redundant right up until the day it is the migration.&lt;/p&gt;

&lt;p&gt;Second, stand the new space up beside the old one and write to both. Qdrant's tutorial lays out two routes: a blue-green migration, with a second collection that works for any collection type, and, for collections already using named vectors on version 1.18 or later, adding the new model as an additional named vector inside the same collection. Either way, live writes go to both spaces from the moment the migration starts, and a background pass re-encodes the existing corpus into the new space. Writes that land in only one space are divergence you will meet later as missing documents.&lt;/p&gt;

&lt;p&gt;Third, give the backfill a revision to check against. A document edited while the backfill is running can be re-encoded from its older revision and quietly resurrect the previous text in the new index. The write into the new space should carry the source revision it was encoded from, and be dropped if the source has moved on. This is the same stale-write problem any dual-write migration has; the embedding setting does not exempt anyone from it.&lt;/p&gt;

&lt;p&gt;Fourth, compare before you cut over, on your own queries. The tutorial's flow does this explicitly: run the same questions against both spaces and read the differences before any traffic moves. A frozen set of real questions with known good answers is what makes that comparison a gate instead of a vibe. Newer on a benchmark is a claim about somebody else's corpus. Your corpus, your chunking, your queries. The new model has to win there, or the migration is a downgrade with a project plan.&lt;/p&gt;

&lt;p&gt;Only then flip the pointer (the alias, the routing config, whichever indirection your reads go through) and keep the old space intact through a rollback window. Deleting it at cutover turns a reversible decision into a commitment for no saving worth having.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuengj9ec369n9ob0r7dq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuengj9ec369n9ob0r7dq.webp" alt="Example migration ledger, illustrative: one document traced through the backfill: re-encoded from its current revision, an older-revision write discarded, and its comparison result recorded before cutover." width="800" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example migration ledger, illustrative: one document traced through the backfill: re-encoded from its current revision, an older-revision write discarded, and its comparison result recorded before cutover.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this stops applying
&lt;/h2&gt;

&lt;p&gt;Three qualifications, because the rule has edges.&lt;/p&gt;

&lt;p&gt;Some model families share a space on purpose. &lt;a href="https://docs.cohere.com/docs/cohere-embed" rel="noopener noreferrer"&gt;Cohere's Embed models&lt;/a&gt; include a current pair, Pro and Fast, that share an embedding space, so a corpus indexed with one can be queried with the other. Cohere recommends indexing with Pro and querying with Fast. If your provider documents a shared space for the two models in question, switching between them is genuinely a config change. The operative word is documents. Assume incompatibility until the vendor says otherwise, in writing, for those two models.&lt;/p&gt;

&lt;p&gt;Scale cuts both ways. A small corpus, tens of thousands of chunks on a quiet write path, can be rebuilt over a weekend with none of the machinery above, and building dual-write infrastructure for it would be theatre. At the other end, the study above notes that re-encoding hundreds of millions of documents takes days of accelerator time, which is why the migration has to be planned like capacity work, not fitted around it. The rule (every vector, one space) does not scale up or down. The ceremony around it should.&lt;/p&gt;

&lt;p&gt;And a bridge can still be the right temporary answer. If the old model is being retired on a date you do not control and the full re-encode cannot finish in time, window re-ranking buys a serving path while the background work runs. The study's point is that it defers the encoding, priced in advance, not that it is useless. What it cannot be is the end state. A migration that never finishes leaves you serving from a space you meant to leave, with the bill still outstanding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If an embedding model change is sitting in your backlog as a one-line ticket, that is the moment to re-scope it, before the swap, while the old index is still the only one you have to keep honest. Bring the corpus and the model you are moving to, through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt;, and we will plan the re-encode, the comparison gate, and the cutover as the migration it actually is.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Model Routing Is a Policy Decision</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Tue, 24 Nov 2026 12:07:45 +0000</pubDate>
      <link>https://dev.to/tridaai/model-routing-is-a-policy-decision-3j5g</link>
      <guid>https://dev.to/tridaai/model-routing-is-a-policy-decision-3j5g</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/model-routing-is-a-policy-decision" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Who chose the model that answered your last production request?&lt;/p&gt;

&lt;p&gt;If you run a single model, the answer is boring, and boring is good. You chose it, your evals cover it, and a bad answer has one place to look. Add a router and the answer gets murkier. Now a piece of software you did not write predicts, request by request, which model in a family will answer well enough, and sends the work there. The savings are real. So is the thing you gave up: you no longer know, in advance, which system your users are actually talking to.&lt;/p&gt;

&lt;p&gt;That trade can be worth making. It should be made on purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a managed router actually decides
&lt;/h2&gt;

&lt;p&gt;Take the clearest managed version on offer. &lt;a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-routing.html" rel="noopener noreferrer"&gt;Amazon Bedrock&lt;/a&gt; intelligent prompt routing gives you one serverless endpoint and routes each request between models in the same family, predicting the response quality of each model for that request and forwarding it to the one it judges best on quality and cost. You pick between a default router, which ships preconfigured, and a configured router, where you set the terms yourself.&lt;/p&gt;

&lt;p&gt;The configured terms are few, and that is the honest part of the design. You choose two models from one family. You name one of them the fallback model, the reliable baseline. And you set a single number, the response quality difference: how much better the other model's predicted response has to be before the router switches to it. AWS works the example plainly: set a 10% difference with Amazon Nova Lite as the fallback, and the router switches to Amazon Nova Pro only when its predicted response quality is more than 10% better than Nova Lite's.&lt;/p&gt;

&lt;p&gt;Read that number for what it is. It is not a tuning knob in the abstract. It is a written statement of how much predicted quality you will trade away, on every request, without asking anyone. Set the difference high and the router stays on the fallback unless the predicted gain is large. Set it low and it switches on a much smaller predicted gain, and the threshold is mostly decoration. Either decision can be right for a given workload. Neither should happen because a default shipped that way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F58orzehm1afkcefv9dhh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F58orzehm1afkcefv9dhh.webp" alt="How a configured router decides: a request is scored against both models in one family, the predicted quality difference is compared with the threshold you set, and the fallback model answers unless the other model clears it." width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How a configured router decides: a request is scored against both models in one family, the predicted quality difference is compared with the threshold you set, and the fallback model answers unless the other model clears it.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The fallback is the real default
&lt;/h2&gt;

&lt;p&gt;Teams talk about routing as if the interesting moment is the switch to the strong model. It runs the other way. The fallback model is the anchor: the router starts there, in effect, and needs a reason to leave. So the fallback is the model to plan around: whenever the other model does not clear the threshold you set, the fallback is the one that answers. Choose it the way you would choose a sole model, because on a quiet Tuesday that is what it becomes.&lt;/p&gt;

&lt;p&gt;That framing changes the eval question. You do not only need an eval set for the strong model, the one in the launch announcement. You need one for the fallback, run on the requests the router is likely to send it, which are precisely the requests somebody judged easy. Easy is a prediction, not a property of the request. A short prompt can carry a hard edge case, a compliance-sensitive phrase, a customer who writes badly about a serious problem. If your eval set is built from the requests you found interesting, it will under-sample exactly the traffic the fallback lives on.&lt;/p&gt;

&lt;p&gt;There is a second, quieter point. A routed response should carry its routing with it. Bedrock's flow returns information about which model processed the request, and that record is the minimum a routed system owes you. Extend it: log the predicted difference that drove the choice, the threshold in force, and the router version. Six months later, when answer quality drifts and someone asks what changed, "the router decided" is not an answer. A log line that says which model, under which threshold, for which predicted gain, is.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw3rk4n218z6tly3ftxhy.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw3rk4n218z6tly3ftxhy.webp" alt="Example routing log, illustrative: three support requests, the model each was sent to, and the reason recorded for the choice." width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example routing log, illustrative: three support requests, the model each was sent to, and the reason recorded for the choice.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the managed version stops
&lt;/h2&gt;

&lt;p&gt;The limits are stated in AWS's own documentation, and they are the useful part. Routing there works within one model family, so it cannot arbitrate between vendors. It is, in the documentation's words, only optimized for English prompts. And it cannot adjust its decisions based on your application's own performance data: the router has never seen your eval results, your complaint queue, or the cases your reviewers keep flagging. Its predictions were not trained on your application's data, and they do not adjust to it.&lt;/p&gt;

&lt;p&gt;None of that makes it a bad tool. It makes it a bounded one. A managed router is a sensible answer to a narrow question: within this family, on ordinary English traffic, is the strong model worth its price for this request? Your harder questions sit outside it. Which tasks may never be downgraded, whatever the prediction says? Which requests carry regulatory or contractual weight, so the model choice itself has to be defensible later? Which failures cost enough that saving on the call was never the point? A router that cannot see your data cannot answer those, and should not be allowed to by default.&lt;/p&gt;

&lt;p&gt;So put a policy layer in front of the prediction, owned by you. Some request classes bypass routing entirely and go straight to the named model. Some get routed, inside the threshold you set. Some are held to the fallback only, because the work is mechanical and the strong model adds nothing you can measure. The router then does the one job it is good at, inside boundaries it did not choose.&lt;/p&gt;

&lt;p&gt;An example, invented but ordinary. A support operation routes its traffic three ways. Password resets and address changes never leave the smaller model; the answers are templated and checked downstream. Billing disputes bypass the router and go to the strong model every time, because a mishandled dispute costs more than the tokens ever will. Everything else is routed, at a threshold the team set after running both models over its own past tickets. The router still saves money. It just no longer decides what the company cares about.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If a router is choosing models inside your product today, the useful exercise is a short one: name the fallback, read the threshold, and check whether either was ever a decision your team made. If they were defaults, they are still decisions, just not yours. Bring the workload you are routing, through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt;, and we will help you set the policy before the platform sets it for you.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Shadow Mode Before Go-Live</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Mon, 23 Nov 2026 12:06:15 +0000</pubDate>
      <link>https://dev.to/tridaai/shadow-mode-before-go-live-3l01</link>
      <guid>https://dev.to/tridaai/shadow-mode-before-go-live-3l01</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/shadow-mode-before-go-live" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The most useful week of a deployment may be the one where the new system is not allowed to do anything.&lt;/p&gt;

&lt;p&gt;That sounds like a delay tactic. It isn't. An eval runs the agent against cases somebody selected last month. A demo runs it against cases somebody selected that morning. Real work arrives unselected: the malformed record, the customer who writes in paragraphs, the approval that depends on a rule nobody wrote down. Shadow mode is how you meet that traffic before the traffic meets your agent. A copy of each real request goes to the new system. The current process (a person, an older system, a mix) still makes every decision and still does the work. The agent reads, reasons and proposes. It sends nothing, writes nothing, approves nothing. Its proposals are logged next to what actually happened, and the comparison is the deliverable.&lt;/p&gt;

&lt;p&gt;The pattern is borrowed, and the borrowing is the point. In model serving, &lt;a href="https://docs.aws.amazon.com/sagemaker/latest/dg/shadow-tests.html" rel="noopener noreferrer"&gt;Amazon SageMaker AI&lt;/a&gt; runs a candidate variant in shadow mode: it receives a copy of live inference requests in real time, only the production variant's responses go back to the caller, and the shadow's responses are logged or discarded for offline comparison. Teams use it to catch configuration errors and performance problems before end users feel them. An agent deployment needs the same discipline with one harder twist. A model returns a prediction. An agent reaches for tools. Shadowing the prediction is easy; shadowing the reaching is the design work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tying its hands is the design work
&lt;/h2&gt;

&lt;p&gt;A shadow agent that can act is not in shadow mode, whatever the slide says. So the run is built in two halves. Read access is real: the agent queries the same systems, retrieves the same documents and sees the same record the current process sees, because sanitized copies teach it a tidier world than the one it will work in. Write access is replaced. Every side-effecting tool (send, post, update, approve) is swapped for a stub with the same interface that records the call it would have made: the arguments, the target, the moment in the run. The agent cannot tell the difference from inside. From outside, the difference is total.&lt;/p&gt;

&lt;p&gt;What gets logged per case matters more than how much. You want the input reference, the proposal in full (the draft message, the intended update, the chosen route), the live outcome when it lands, and a plain agree-or-disagree mark between the two. Not a score. A join. Scores tell you the shadow period went well or badly; the joined record tells you where, and on what kind of case, and that is what a go-live decision is actually made of.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgeiqp7w23r0dtbzmk9jr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgeiqp7w23r0dtbzmk9jr.webp" alt="How a shadow run is wired: real requests go to the current process, a copy goes to the new agent, its read tools stay real and its write tools are replaced by stubs that record the call it would have made." width="800" height="520"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How a shadow run is wired: real requests go to the current process, a copy goes to the new agent, its read tools stay real and its write tools are replaced by stubs that record the call it would have made.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Run it long enough to see the work change shape. A shadow week that covers only quiet midweek traffic has tested the agent against the easiest slice of the job. Month-end, the weekly batch, the day the upstream system sends its corrections: the calendar is part of the test set, and a deployment that has not shadowed through at least one full cycle of its workflow's calendar has a known hole in its evidence, whether or not anyone says so out loud.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the disagreements, not the agreement rate
&lt;/h2&gt;

&lt;p&gt;Agreement is the seductive number and the weaker one. If the agent agrees with the current process 94% of the time, you have learned that it resembles the current process. Where the current process is wrong, and every process has a drawer of cases it handles badly, agreement is the agent faithfully learning the flaw. So sample the agreements as well as the fights. Two sides can be wrong together, in the same direction, and a case with no disagreement on it looks exactly like a correct one until somebody checks.&lt;/p&gt;

&lt;p&gt;The disagreements are where the information sits. Worked through one by one, they sort into three piles, and the piles have different owners. Cases where the agent was wrong: a missing rule, a misread document, a retrieval that found the policy and not its exception. Cases where the agent was right and the live decision was the error the team already suspected but could never catch in the act. And cases where neither was wrong, because the workflow quietly allows two defensible answers and nobody had ever had to pick one and write it down. That third pile is the sleeper. Shadow mode forces the undocumented judgment calls into the open while they are still cheap to settle, argued over a logged case instead of a live incident.&lt;/p&gt;

&lt;p&gt;Take an example, invented but built from ordinary parts. An agent shadows an invoice-exception queue. The live clerk escalates an invoice priced 4% above its purchase order. The shadow proposes approving it, citing the tolerance clause it retrieved. Both read the same contract. What the clerk knows, and the clause does not say, is that the tolerance was suspended for that supplier during a dispute the previous quarter, a fact living in an email thread, not in any system the agent can read. That single disagreement is worth more than the week's agreement rate. It names a source that has to be connected, or a rule that has to be written, before go-live, and it was found without a wrong approval reaching the supplier.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F633288e2q3njgsphgady.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F633288e2q3njgsphgady.webp" alt="Example shadow log, illustrative: four invoice-exception cases joined against the live decision. Three proposals agree with what the clerk did; the fourth disagreement is the finding." width="800" height="540"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example shadow log, illustrative: four invoice-exception cases joined against the live decision. Three proposals agree with what the clerk did; the fourth disagreement is the finding.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What shadow mode cannot tell you
&lt;/h2&gt;

&lt;p&gt;It cannot tell you how people react. Nobody works with the shadow's output, so there is no evidence about trust, override habits or the alert fatigue a chatty agent creates. It cannot validate decisions whose ground truth arrives weeks later (a credit call, a churn save) because the live outcome it joins against is itself provisional. And it costs real money and real care: a second inference pass over live traffic, on data that now sits in one more log, with retention and access rules that need deciding before the shadow starts, not after it ends.&lt;/p&gt;

&lt;p&gt;So shadow is a stage, not a destination. The step after it exposes real users to the new system on a small slice of traffic. Google's SRE workbook describes it as &lt;a href="https://sre.google/workbook/canarying-releases/" rel="noopener noreferrer"&gt;canarying releases&lt;/a&gt;, a partial, time-limited deployment whose evaluation decides whether the rollout proceeds. The order matters. Canary answers "does it hold up when it acts?" Shadow answers the earlier question — "does it even see the work the way the work actually is?" — and it answers it at a price of zero wrong actions. Skipping straight to canary means paying for that first answer with real mistakes on real cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your agent is headed for production on the strength of a demo and an eval set, there is a cheaper week available first: one where it does the real work on paper and the disagreements get read before customers read them. Bring us the workflow you are about to hand over, through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt;, and we will help you run it in shadow before it runs for real.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Pin the Context Behind Every Run</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Sun, 22 Nov 2026 12:14:58 +0000</pubDate>
      <link>https://dev.to/tridaai/pin-the-context-behind-every-run-3afh</link>
      <guid>https://dev.to/tridaai/pin-the-context-behind-every-run-3afh</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/pin-the-context-behind-every-run" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Two runs of the same agent, three days apart, answer the same question differently. The code did not change. The model ID did not change. The trace shows the same tools called in the same order, and it is still not enough to explain the difference, because the trace recorded the actions and not the inputs that shaped them. Somewhere between the two runs, something the agent read had quietly become a different version of itself.&lt;/p&gt;

&lt;p&gt;That gap is easy to miss because context feels like one thing. It isn't. Anthropic's guide to context engineering describes the job as managing the &lt;a href="https://www.anthropic.com/research/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;entire context state&lt;/a&gt; — system instructions, tools, external data and message history, all competing for the same finite attention budget. Each of those pieces has its own owner, its own edit path and its own clock. The instructions were edited in a console on Tuesday. The tool catalogue gained a field on Wednesday. The policy document the agent retrieves was republished on Thursday, and the memory it carries between sessions was rewritten by the agent itself overnight. A run is a product of all of those versions at one moment. Record only the run, and you have kept the conclusion and thrown away the evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a manifest actually lists
&lt;/h2&gt;

&lt;p&gt;The fix is unglamorous: at the start of every run, write down what the run is about to see, in a form you can diff later. A context manifest. Ours would list the model ID and its settings, the version or hash of the instruction set, the tool catalogue version, the identifiers and versions of the documents pulled in before the first step, the memory snapshot the run opened with, and a pointer to the checkpoint or summary the run resumed from, if it resumed at all. One record, written before the model is called, stored next to the trace, carrying the run's ID.&lt;/p&gt;

&lt;p&gt;None of the pieces is exotic. Platforms already version the parts they control. Every change to a Claude Managed Agents memory, for instance, creates an &lt;a href="https://platform.claude.com/docs/en/managed-agents/memory" rel="noopener noreferrer"&gt;immutable memory version&lt;/a&gt;, so a later reader can audit who changed what and when, and inspect or restore a prior snapshot. LangGraph's persistence layer does the same for run state: a checkpoint is a &lt;a href="https://reference.langchain.com/python/langgraph.checkpoint" rel="noopener noreferrer"&gt;snapshot of the graph state&lt;/a&gt; at a given point, filed under a thread you can return to. And when OpenAI deprecated its hosted prompt objects, its migration guidance told teams to &lt;a href="https://developers.openai.com/api/docs/guides/prompting/migrate-from-prompt-object" rel="noopener noreferrer"&gt;move versioning to your repo&lt;/a&gt;: prompts in source code, changed through the same review process as product logic. The pattern is consistent. What is usually missing is not versioning inside each store. It is the single record that says which version from each store met in this particular run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl4rqmu8ckoruj2imtgmm.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl4rqmu8ckoruj2imtgmm.webp" alt="How a context manifest is assembled: versioned sources feed the assembler, which writes one manifest record before the run starts and appends retrieval versions as they land." width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;How a context manifest is assembled: versioned sources feed the assembler, which writes one manifest record before the run starts and appends retrieval versions as they land.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The returns agent that changed its mind
&lt;/h2&gt;

&lt;p&gt;Take an example, invented but built from ordinary parts. A retailer's returns agent answers questions about the return window. On Monday it says thirty days, which matches the published policy. On Wednesday it says fourteen. Support escalates, engineering opens the trace, and the trace is clean: same retrieval call, same document title returned, same reasoning shape. Without versions, the investigation stalls at "the model was inconsistent that day," which is sometimes true and always convenient.&lt;/p&gt;

&lt;p&gt;With a manifest on each run, the same investigation takes minutes. Monday's manifest names policy document version 41. Wednesday's names version 42, published Tuesday evening, in which the general window really had been cut to fourteen days for a promotion, and a line scoping that cut to promotional items had been dropped in the edit. The agent was right about the document it saw. The document was wrong. That is a different bug, owned by a different team, with a different fix, and it is invisible until the two manifests are laid side by side.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9uxio6plt07ovffffahh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9uxio6plt07ovffffahh.webp" alt="Example manifests, illustrative: the same returns question on Monday and Wednesday. The only differing line is the policy document version — which is where the investigation should start." width="800" height="545"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example manifests, illustrative: the same returns question on Monday and Wednesday. The only differing line is the policy document version — which is where the investigation should start.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Notice what the manifest did not do. It did not make the agent more accurate, and it did not stop a bad edit from shipping. It shortened the distance between "something changed" and "this changed." Most production debugging is exactly that distance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where pinning stops helping
&lt;/h2&gt;

&lt;p&gt;A manifest records versions, not content, and that choice has a cost. If the underlying store does not keep old versions — a document store that overwrites in place, a memory that edits without history — then the manifest names a version you can no longer open. It proves something changed without letting you see what. Pinning is only as good as the retention underneath it, which is why the versioned stores matter: a manifest pointing at immutable snapshots can rebuild a run; a manifest pointing at mutable documents can only accuse them.&lt;/p&gt;

&lt;p&gt;There is a second limit, and it is the honest one. Some context is assembled during the run, not before it. An agent that retrieves just in time, following references as it works, decides part of its own context after the manifest would naturally be written. The answer is not to abandon the record but to extend it: log each retrieval's document version as it lands, so the manifest grows with the run instead of pretending the whole context existed at the start. What you cannot do is reconstruct those mid-run reads afterwards from the final answer. If they were not written down when they happened, they are gone.&lt;/p&gt;

&lt;p&gt;And a manifest can become its own clutter. Hashes for every fragment, snapshots of every intermediate state, retention forever — the record swells until nobody reads it. Keep it to the components that can change behaviour: instructions, tools, retrieved material, memory, the resume point, and the model. That list is short on purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your agents behave differently on Wednesday and nobody can say what changed, the gap is rarely the model. It is the unrecorded context around it. Tell us where your runs lose their evidence, through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt;, and we will help you pin the context down before the next unexplained answer.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Deleted Documents Still Answer</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Sat, 21 Nov 2026 12:16:40 +0000</pubDate>
      <link>https://dev.to/tridaai/deleted-documents-still-answer-5foe</link>
      <guid>https://dev.to/tridaai/deleted-documents-still-answer-5foe</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/deleted-documents-still-answer" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You delete the file. The assistant keeps quoting it.&lt;/p&gt;

&lt;p&gt;That is not a model failure, and it is not a retrieval failure either. Retrieval did what it was asked to do: it searched an index. The index still held the document, because nobody told the index the document was gone. A retrieval-augmented generation (RAG) system has at least two copies of every document: the source, where people edit and delete, and the index, where the chunks and embeddings actually get read at query time. Keeping those two copies in agreement is a separate piece of engineering, and in a lot of first builds it is the piece nobody wrote.&lt;/p&gt;

&lt;p&gt;The launch version usually handles one event well: adding documents. A folder gets loaded, split, embedded and stored. Edits arrive later and are harder. Deletions arrive last of all, if they arrive at all, because a deletion is an absence. There is nothing left to scan, nothing with a newer timestamp to notice. A sync process that works by looking at what is there will walk straight past what is not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Change is visible. Deletion is not.
&lt;/h2&gt;

&lt;p&gt;Platform documentation is unusually blunt about this asymmetry. Microsoft's guidance for &lt;a href="https://learn.microsoft.com/vi-vn/azure/search/search-howto-index-changed-deleted-blobs" rel="noopener noreferrer"&gt;Azure AI Search indexers&lt;/a&gt; says change detection for Azure Storage happens automatically, from built-in timestamps, and then, in the same breath, that deletion detection isn't a given: an indexer doesn't track object deletion in its data sources. The remedy is a soft-delete strategy, and it has to be in place from the very first indexer run. Documents deleted before the policy existed stay in the index even if you add the policy later and reset.&lt;/p&gt;

&lt;p&gt;Read that timing rule slowly, because it generalises beyond one platform. Deletion handling is not a setting you retrofit after the first embarrassing answer. The mechanism that notices a removal has to exist before the removal happens, or the index has no record that anything is missing. Creating a new index, with the policy in place from the start, can clean it up. But a new index is a recovery operation, not a sync strategy, and teams that rely on it tend to discover how stale their index was only after a user does.&lt;/p&gt;

&lt;p&gt;Edits cause a quieter version of the same problem. Suppose a policy document shrinks. The paragraph that set a warranty period at twenty-four months is cut, and the document now runs to ten chunks instead of twelve. If ingestion adds the new chunks by position and never retires the old ones, chunks eleven and twelve stay searchable. Nothing in them looks wrong on its own. They are fluent, on-topic, and superseded, which makes them worse than an obvious error, because a reviewer scanning the answer sees plausible text and moves on.&lt;/p&gt;

&lt;p&gt;Permission changes belong in this list too, even though they rarely get discussed with deletions. A document that moves from a public folder to a restricted one has, from the index's point of view, been edited. If the access label attached to its chunks does not move with it, the document has effectively been deleted for some readers and not for the system that serves them. That is no longer a quality problem.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkpdk05qaya1mxpow0ldy.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkpdk05qaya1mxpow0ldy.webp" alt="Five document events and what each one needs from the index before it can be trusted." width="800" height="540"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Five document events and what each one needs from the index before it can be trusted.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Treat a document as a unit, not as loose chunks
&lt;/h2&gt;

&lt;p&gt;The fix starts with identity. Every chunk needs to know which document it came from, which version of that document, and what happened to that document since. With that in place, an edit stops being "add some new chunks" and becomes "replace this document": the new version's chunks go in, the previous version's chunks come out, and the swap is the smallest unit the sync is allowed to complete. If the swap fails halfway, the document should read as unavailable or as its old self — never as a blend of both, which is the one state where an answer can combine a new rule with a limit the new rule removed.&lt;/p&gt;

&lt;p&gt;Frameworks give you parts of this. The &lt;a href="https://developers.llamaindex.ai/python/framework-api-reference/ingestion/" rel="noopener noreferrer"&gt;LlamaIndex ingestion pipeline&lt;/a&gt; keeps a document store alongside the vector store and offers a strategy, UPSERTS_AND_DELETE, that, alongside upserts, deletes stored documents whose IDs are missing from the current run. That last clause carries the catch: it can only notice a missing document if the run is given the complete current collection. Feed it a partial batch and the same logic would treat documents that are still valid as deleted. Deletion by absence is powerful and dangerous in the same breath, so it needs a complete inventory to be safe.&lt;/p&gt;

&lt;p&gt;Managed services make a different trade. &lt;a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-data-source-sync-ingest.html" rel="noopener noreferrer"&gt;Amazon Bedrock sync&lt;/a&gt; is incremental: it processes only documents added, modified or deleted since the last sync, re-ingesting a changed document and removing a deleted one from the vector store. You give up some control over how the replacement happens, and in return the lifecycle is somebody's explicit job rather than an assumption inside your ingestion script. Either way, the question to ask of any stack is the same, and it is worth asking before the first load, not after: for each source, how does a deletion reach the index, and how long does it take?&lt;/p&gt;

&lt;p&gt;Then test it the unfriendly way. Delete a real document from a staging corpus, ask the question it used to answer, and watch what comes back. Shorten a document and check that its tail is gone. Move a document behind a stricter permission and query as a reader who should no longer see it. These are cheap tests. They are also the tests that almost never appear in a launch checklist, because the demo corpus does not change while anyone is watching it.&lt;/p&gt;

&lt;h2&gt;
  
  
  One warranty policy, before and after an edit
&lt;/h2&gt;

&lt;p&gt;Here is the shape of the failure in a single document, labelled as an example so nobody mistakes it for a customer story. A warranty policy says twenty-four months in version three. Version four cuts that to twelve and deletes the paragraph about buying an extended warranty entirely. The sync upserts the new chunks and leaves two old ones behind. A week later a customer asks about the extended warranty, and the assistant answers from a paragraph that no longer exists anywhere in the source.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu42l4taemlo4qu41atqt.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu42l4taemlo4qu41atqt.webp" alt="An example warranty policy after an edit: the new chunks are in, two old chunks remain, and a question about an extended warranty is answered from a deleted paragraph." width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;An example warranty policy after an edit: the new chunks are in, two old chunks remain, and a question about an extended warranty is answered from a deleted paragraph.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Notice what would not have caught this. A better embedding model would not. A reranker would not — the stale chunk is genuinely relevant to the question; that is the problem. Even a citation check passes, after a fashion: the answer can point to a chunk that really is in the index. What fails is a question nobody asked the chunk: are you still true? Version and source checks answer that question. Similarity cannot.&lt;/p&gt;

&lt;p&gt;There are limits to how far this goes. Some corpora are archives, where nothing should ever leave and a deletion really is an error. Some sources cannot emit deletion events at all, and the honest option there is a scheduled full reconciliation — comparing the index's document list against the source's — with the lag stated plainly instead of hidden. And a hard delete is not always the right response to a withdrawal: regulated work may need the index copy removed while a separate, access-controlled record keeps the fact that the document existed. Those are design decisions. The failure is not choosing one of them; it is never noticing there was a choice.&lt;/p&gt;

&lt;p&gt;So before a RAG system goes live, write down five events for every source it reads: created, edited, deleted, moved, and permission-changed. Next to each, write how the index learns about it and how long that takes. If any row says "manual" or is blank, you have found the document that will still be answering in six months. It will not announce itself. It will just be quoted, correctly, from a file that no longer exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If your assistant is answering from documents your team has already revised or withdrawn, the problem is not the model — it is the lifecycle between your source and your index, and that lifecycle can be mapped event by event before it embarrasses you in front of a customer. Send the corpus through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt; and we will work through the five events for each source with you: what reaches the index, what never does, and how you would know.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
    <item>
      <title>Managed Agents Move Inside Your Perimeter</title>
      <dc:creator>FDE at Trida AI</dc:creator>
      <pubDate>Fri, 20 Nov 2026 12:04:40 +0000</pubDate>
      <link>https://dev.to/tridaai/managed-agents-move-inside-your-perimeter-1e69</link>
      <guid>https://dev.to/tridaai/managed-agents-move-inside-your-perimeter-1e69</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://trida.ai/blog/managed-agents-move-inside-your-perimeter" rel="noopener noreferrer"&gt;Trida AI&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Picture the security review for an agent that works unattended. It reads your code, opens your internal systems, fixes a broken build at an hour when nobody is watching. The reviewer's question is not whether the model is good. It is where all of this runs, who holds the credentials it uses, and where the record of what it did ends up. Until recently, the managed answer stopped partway. You could host the sandbox an agent's tools ran in, but the service around it — the loop, the credentials, the session history — stayed on the vendor's infrastructure. That is starting to change.&lt;/p&gt;

&lt;p&gt;On 12 November, Anthropic opened &lt;a href="https://claude.com/resources/articles/self-hosted-claude-managed-agents" rel="noopener noreferrer"&gt;self-hosted Claude Managed Agents&lt;/a&gt; in private beta. The offer is broader than it may sound. This is not a sandbox you host while the vendor keeps the rest. Every part of the service runs in your own cloud or on-premise: the harness that drives the agent, the sandboxes where its tools run, credential handling, and session history. You operate the Managed Agents server, its database, and the workers where agents run their shell and file tools. Your developers build against the same core APIs as the hosted service.&lt;/p&gt;

&lt;p&gt;That last detail matters more than the hosting itself. The API staying the same means the choice of where an agent runs is becoming a deployment decision, taken per workload, rather than a platform decision taken once. An agent that summarises public documents can stay hosted. An agent that touches the build system and the alert queue can move inside. The work of choosing moves to you, which is where it belonged anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  What moved, and what stayed outside
&lt;/h2&gt;

&lt;p&gt;It helps to be precise about the split, because "self-hosted" invites a misunderstanding. The model did not move. Model requests go where you choose: Anthropic directly, Amazon Bedrock, Google's Agent Platform, Microsoft Foundry, or your own gateway. What moved is everything around the model: the loop that decides what to do next, the place where code executes, the vault the credentials sit in, and the history of the session.&lt;/p&gt;

&lt;p&gt;Anthropic's design keeps two of those pieces apart even inside your perimeter. The harness, the brain, calls the model. The sandbox, the hands, is where the agent's code actually runs. Credentials stay out of the sandbox: for MCP tools and supported API calls, a proxy outside it adds the credential to the request, and in the self-hosted setup you can also store credentials in your own secrets manager. Network access can be limited to a list of allowed hosts — for a build-fixing agent, perhaps just your git host and your package registry. And every session leaves a full record of the steps the agent took, exportable over OpenTelemetry into the monitoring tools you already run.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvwiwd5ftpw10sy7tauy9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvwiwd5ftpw10sy7tauy9.webp" alt="What the self-hosted setup moves into your environment, what stays outside it, and the operating work that comes with the move." width="800" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What the self-hosted setup moves into your environment, what stays outside it, and the operating work that comes with the move.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Read that inventory as a trade, not a gift. In exchange for keeping credentials and session history inside your own boundary, you take on a server, a database and a fleet of workers. Somebody on your side patches them, watches them, and answers when a worker dies mid-run at an awkward hour. The hosted service existed precisely to make that somebody the vendor's problem. Self-hosting does not remove the operating work. It repatriates it, and a team should price that honestly before it celebrates the control it just gained.&lt;/p&gt;

&lt;h2&gt;
  
  
  One run, traced across the line
&lt;/h2&gt;

&lt;p&gt;Take an illustrative run: an agent triaging an overnight alert, reading the failing service's recent changes and opening a fix. Traced step by step, the perimeter line cuts through the middle of the work, not around it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy6919nsuz7qr9n87ag1w.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy6919nsuz7qr9n87ag1w.webp" alt="One illustrative alert-triage run traced step by step: which parts run inside your environment, and the one step where a request leaves for the model." width="800" height="625"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;One illustrative alert-triage run traced step by step: which parts run inside your environment, and the one step where a request leaves for the model.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Two things stand out in the trace. The code stays in the sandbox, the credentials stay in the vault, and the session record stays in your database. And the thing that does leave, the model request, leaves whenever the harness calls the model. Prompts carry context, and context is often the sensitive part: the diff, the error, the fragment of the internal document the agent is reasoning over. Anthropic notes that where you have zero data retention in place with it, that arrangement applies to the requests sent to the model in the same way as any other Messages API call. That is a real protection, and it is also the boundary of the claim. A self-hosted agent is not an offline agent, and any review that treats it as one has misunderstood what was bought.&lt;/p&gt;

&lt;p&gt;There is a second limit, easier to miss. A private beta is a promise about direction, not a finished platform, and access runs through an account team. The right first questions are the operational ones: who patches the server, what happens when a worker dies mid-run, how the record reaches your monitoring. None of that argues against the direction. It argues for putting the first self-hosted agent on work that is important enough to justify the operating cost and contained enough to survive a beta.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work with us
&lt;/h2&gt;

&lt;p&gt;If an agent you want to run keeps failing its security review on where it lives — where its credentials sit, where its session history lands — that is now a design question with more than one answer, and the operating cost of each answer deserves a clear-eyed count before you choose. Send the workload through &lt;a href="https://trida.ai/intake" rel="noopener noreferrer"&gt;Trida AI's intake&lt;/a&gt; and we will work through the split with you: what has to stay inside, what can stay hosted, and who operates what.&lt;/p&gt;

</description>
      <category>tridaai</category>
      <category>fieldnotes</category>
    </item>
  </channel>
</rss>
