Set LLM content retention by customer

Design customer retention settings around explicit storage boundaries, useful request metadata, and tests for every content writer.

A customer retention setting works when every content writer within its stated scope follows it. Start by specifying which copies the setting controls, which request metadata you keep, and what happens when a customer shortens the retention period. Then exercise the setting on a real request path with synthetic content.

Define the storage boundary

List each place that can persist prompts, retrieved passages, attachments, tool results and model responses. Include application history, debugging samples, exports, provider application state and log sinks. For each store, record who controls it, whether it writes synchronously, when expiry starts and what a retention change does to existing records. If the setting covers only your inference gateway, say so in the customer-facing description.

Provider controls and your own storage settings can differ by feature and endpoint. OpenAI distinguishes application state from abuse monitoring logs and documents feature-specific behaviour. Amazon Bedrock model invocation logging can write input and output data for supported runtime calls to CloudWatch Logs or S3 when enabled. Turning off one application writer cannot enforce the retention behaviour of these separate destinations. OpenAI API data controls and Amazon Bedrock invocation logging

Describe whether the customer's selection applies to future writes, earlier copies or both. For earlier copies, identify the deletion process and when you can confirm it completed. A policy change can take effect for new requests before the cleanup of older objects finishes. Report those as separate states so support can answer accurately.

Test a change while work is in progress

Suppose a customer selects no inference content retention at noon after using seven-day diagnostic capture. Your product promises to disable new diagnostic writes immediately. Existing samples expire on their original schedule under this hypothetical product contract.

Event Expected result
Request starts after noon The diagnostic writer skips the body.
A request started before noon and its buffered sample reaches the writer after noon The writer checks the current policy before persisting the sample.
A delayed retry of a sample write runs after noon The retry observes the same setting and does not write the body.
Support opens a sample stored before noon Access follows the old object's expiry and the assigned support permissions.

Put a unique synthetic marker in the request and in its expected response. Search the stores in scope after the request and after delayed jobs run. Include the error path as well as the success path. Some frameworks record exception details or upstream response bodies through a different logger. Check that a queue message used to schedule cleanup contains an object identifier and the required control data, with no copy of the payload.

Test the change for two customer organizations on the same deployment. A cached decision scoped only to a feature or worker could disable retention for both organizations or let one keep writing. Compare each record's organization and policy version with the customer setting you expected at the time of the write.

Keep enough evidence to explain a request

Support can often diagnose a failure with a request ID, model, provider connection, region, policy version, verdict, and usage counters. Keep those fields structured. A free-text diagnostic field or a tag carrying the user's question can recreate prompt retention in your analytics. Constrain identifiers and tags at the point your application writes them.

Give support a way to reproduce a suspected issue using a synthetic request under the same policy version. Check that the reproduction uses the same model and connection settings. If support needs the customer's original text, treat that as a separate collection with its own authorization and expiry.

Alectura provides per-customer inference content retention, including none, with separate request records that retain operational metadata under that setting. Review models and retention alongside your own storage inventory. If the customer also requires provider-side retention controls, use the provider retention review by feature to check the exact endpoint and configuration separately.

Source documents (2)

Trace a request through Alectura.

Bring a sample prompt and a customer policy. See what reaches the model and which decisions appear in the request record.

Try the quickstart

Keep reading

Track realtime voice AI costs by customer ↗Isolate semantic LLM caches by tenant ↗Track LLM web search costs by customer ↗