{"uid":"cap_u-b0Yi5qIo2a08RrV2qLy","slug":"memory-write-guard-efe4a0f1","name":"Memory Write Guard","description":"Screen persistent agent-memory writes for poisoning, missing provenance, secret requests and unsafe instructions","url":"https://phion.systems/v1/paid/trust/memory-write-guard","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema"},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SxXpwhjW100J8q7wSNOGg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Screens proposed persistent agent-memory writes for poisoning attempts, missing provenance, secret leakage, and unsafe instructions before committing them","exampleAgentPrompt":"Before I write this new memory entry to my persistent store, screen it for poisoning, missing provenance, and any hidden secrets or unsafe instructions — the payload is the summarized context I just received from a third-party tool.","exampleUseCases":[{"title":"Guarding RAG memory from injected content","prompt":"I'm about to store a chunk of text retrieved from an external website into my long-term memory — can you check it first for prompt injection, missing provenance tags, or any embedded secrets before I commit it?"},{"title":"Blocking untrusted task-handoff from corrupting memory","prompt":"Another agent just handed me a task summary and I want to write it to my memory store — screen it for poisoning attempts or unsafe instructions that might hijack my future behavior."},{"title":"Enforcing provenance policy on memory updates","prompt":"My policy requires all memory writes to have declared source provenance — check this payload and tell me if provenance is missing or forged before I allow the write to go through."}],"resultDescription":"Returns a safety verdict indicating whether the memory write is safe to proceed, along with detected threat categories (poisoning, missing provenance, secret leakage, unsafe instructions), specific flagged content or fields, and a recommended action (allow, block, or redact-then-write).","failureModes":["Malformed or empty payload body returns a validation error","Missing required schema fields causes rejection with field-level error detail","Ambiguous provenance metadata may produce a low-confidence flag rather than a hard block","Very large memory payloads may hit size limits and require chunking","Novel obfuscation techniques for prompt injection may evade detection and return a false safe verdict"],"whenToPreferThis":"Choose this endpoint when an autonomous agent is about to commit content to persistent memory and that content originates from untrusted or external sources — such as tool outputs, web retrievals, user-supplied data, or inter-agent handoffs. It is especially valuable in multi-agent pipelines where one agent's memory can influence another's future behavior, and in RAG systems where retrieved content could carry adversarial payloads. Prefer it over generic input-validation tools because it is specifically tuned for agent memory semantics including provenance integrity, secret indicators, and instruction-hijacking patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:46:39.557Z","isFirstParty":false}