Tool, Retrieval, and Memory Poisoning › Follow the record across boundaries
Language AI HandbookAll chapters Here, poisoning means that a record used by the agent has lost integrity and is still treated as acceptable input or state. A record can be inaccurate or unauthorized even when its shape is valid. The previous chapter considered how instructions can appear in supplied content. Here we focus on the records that survive beyond their creation: tool definitions, index snapshots, and stored memory.
Provenance describes where a record came from and how it was produced. The W3C PROV data model represents entities, activities, and the parties involved in producing them. In the catalog example, the source document is one entity, indexing is an activity, and the index snapshot is a derived entity. The service approving the release has a separate role from the process that created the snapshot. W3C PROV-DM
Give every boundary an explicit question.
| Surface | Admission question | Evidence to retain |
|---|---|---|
| Tool definition | Is this the approved definition for this server and operation? | Server identity, tool name, contract revision |
| Retrieval | May this request use this record from this snapshot? | Source identifier, revision, index snapshot, access decision |
| Durable memory | Who authorized this kind of record to persist for this subject and purpose? | Write origin, confirmation, scope, retention status |
In this chapter, a boundary can admit a record for a specific purpose. A reviewed definition can describe an available operation. An eligible index record can be provided as evidence for a particular request. A confirmed preference can be saved under the patron's own namespace. The decision applies to that use. The host keeps authority in its own policy when checking a new use.
Suppose the index snapshot changed shortly before a disputed answer. The snapshot identifier tells the investigator which collection was queried. The supplied record identifier and revision identify the passage used in the answer. An ingestion receipt can identify which source revision and approved process generated that snapshot. A separate admission decision explains why its records were eligible for the particular request. Both are useful when following a record through the system. A record that passed one checkpoint still needs any evidence required by the next boundary.
The following exercises keep their effects in memory. A gate checks that an object is usable for the intended purpose. An independent observer would be needed to verify that an operation produced the intended result. The fixtures exercise the first of those questions. They also show what an operator can conclude when a record is excluded from normal reads but retained for audit.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!