Data Retention

Data Retention

Seclai keeps the data your agents and content sources produce for a set period, then deletes it. Data Retention is where you see every one of those windows in one place and change them.

Retention does two jobs at once. It is a privacy control — how long your inputs, outputs and evaluated content exist on our systems — and it is a cost control, because stored data is billed daily once it passes its free period.

Where to Find It

Data Retention is in the left navigation, under the account you currently have selected. Its windows apply to that account, so an organization and your personal account each have their own.

It has three tabs:

  • Agent traces — the execution history of every agent run.
  • Governance evaluations — the stored content from policy tests, retroactive reruns and draft previews.
  • Per-resource — links to the windows that belong to an individual knowledge base, content source or memory bank.

What Each Window Covers

Agent traces — default 7 days, and the first 7 days are free. Covers, for every run:

  • the run's input and output;
  • each step's input and output;
  • tool-call arguments and results;
  • any uploaded input files;
  • the searchable copy that powers trace search.

Governance evaluations — default keep forever, with the first 30 days free. Covers the redacted content stored by observational evaluations only: policy tests, retroactive reruns and draft previews. Evaluations that ran as part of an agent run are part of that run's trace and follow the agent traces window instead — they are not governed twice.

Both accept a preset, a custom number of days, or Forever.

Deletion Is Permanent

When a record passes its window, a nightly sweep deletes its content. There is no undo, no grace period and no recovery. Support cannot restore it.

For agent traces specifically, it is worth being precise about what survives:

  • The run stays in the Traces tab, marked expired. Its status, timing, step structure, error messages and credit usage remain accurate — those are what the run list, your usage reports and your invoices read.
  • Its content is gone: inputs, outputs, tool-call arguments and results can no longer be viewed, searched or exported.

Two consequences worth planning around:

  1. Lowering a window acts retroactively. Setting agent traces to 30 days does not only affect runs from now on — the next sweep deletes the content of every run already older than 30 days. The age chart shows you exactly how many that is before you save.
  2. Export before, never after. Exporting a trace keeps a copy outside the window, but only while the content still exists. Once it has aged out there is nothing left to export.

Because of that, shortening a window asks you to confirm and tells you roughly how many records are already past the new age. Lengthening one, or switching to Forever, saves straight away — it cannot lose anything.

If you are unsure, raise the window first and lower it once you have exported what you need.

Deleting an agent deletes its trace content too, on the next nightly sweep, regardless of this window — including Forever. Keep-forever means "keep my agents' traces", not "keep traces of agents I deleted", and the storage they occupy would otherwise be billed indefinitely for an agent that no longer exists. The run rows survive with their status, timing and credits; the content does not. Export first if you need it.

Reading the Age Chart

Each editable tab shows the age distribution of what you currently have stored. Newest is on the left, oldest on the right, and the bar width adapts to how far back your history goes — daily bars for a new account, weekly or monthly once there is more history.

Two labelled lines are drawn on it:

  • free ends — everything to the left of this is inside the free period and is not being charged.
  • deleted after N days — the current window. Everything to the right of it is what the next sweep removes. Move the window left and those bars are what you stop paying for.

Hovering a bar gives that age band's record count and what it costs per day.

The chart counts only records that are still indexed, because that is what storage bills for. If you lowered the window in the past, let the searchable copies expire, then raised it again, those runs keep their content but can never be billable again — they are counted in a note under the chart instead, since lowering the window would still delete their content permanently.

What Retention Costs

The headline figure is a rate, not a bill: it is what everything currently stored draws per day once past its free period. That is the number that moves when you change the window.

  • Agent traces are billed per embedding of the searchable copy, per day. A run with a lot of content costs more than a short one, and a run that was never indexed costs nothing at any age.
  • Governance evaluations are billed 1 credit per stored evaluation per day after the free 30 days.

Charges appear on the Credits & Usage page as storage.

Who Can Change It

Any member of the account can see the retention windows — knowing how long your data survives should not require elevated access.

Changing one requires an account owner or administrator, because lowering a window schedules irreversible deletion across the whole account. Viewers see the settings but cannot save them.

Per-Resource Windows

Some resources carry their own window, set on the resource rather than centrally:

  • Content sources — how long ingested content is kept before it is deleted and stops being billed. See Content Sources.
  • Memory banks — how long entries are kept; conversation banks default to 90 days and general banks to keep-forever. See Memory Banks.

The Per-resource tab links to each of them. The Agent Traces content source also shows its window, read-only, and links back here — there is exactly one place to change it, so the two can never disagree.

API and MCP

Retention is readable and settable outside the UI:

  • MCPget_retention_settings reads both windows and the current daily cost; set_retention_settings changes the agent-trace window, and update_governance_settings changes the governance one. Both writes require an owner or administrator.
  • Agents cannot change retention. set_retention_settings is refused for calls originating from an agent run, alongside the other destructive tools. An agent that could shorten a retention window could delete the very traces you would use to see what it did.

Runs whose content has been deleted carry a trace_purged_at timestamp in the API, MCP and export payloads. Check that field rather than an empty output — a run that genuinely produced nothing looks identical otherwise.

Next Steps