---
title: "Agent event data retention: keep the outcome"
description: "Agent event data retention keeps the outcome, the surface, and the time. Leave secrets, payment data, and prompt bodies out."
canonical: "https://www.agentrail.co/blog/agent-event-data-retention?h=DH4X657PZXAJE00X"
author: "Sidhant Goyal"
published: "2026-12-02T06:30+00:00"
last_updated: "2026-12-02T04:19:26.861Z"
---

# Agent event data retention: keep the outcome

Decide which agent-task fields a review needs, and which fields you drop. Keep the outcome, the surface, and the time. Leave secrets, payment data, and prompt bodies out by default.

Agent event data retention is a field decision. A task review needs the outcome, the surface where the task stopped, and the time of that step. Secrets, payment data, and the prompt body stay out of the default row.

The MCP call record, including its redaction default, stays on [MCP observability](https://www.agentrail.co/blog/mcp-observability?h=DH4X657PZXAJE01V).

> **Key Takeaways**
>
> • Keep the outcome, the surface, and a timestamp. Those three fields can support a review.
>
> • Drop secrets and payment data from the default row. A token or a card number is not a review field.
>
> • Tool argument values and request bodies are opt-in. Names, types, and size can stay.
>
> • The prompt body is opt-in as well. The outcome already says whether the task finished.
>
> • Write an end date you can say out loud. This page does not publish an Agentrail retention window.

## You need the outcome more than the prompt

A task row is the stored result of one agent attempt. The result says whether the attempt finished, and it names the last step you can point at. That is the review.

Take a task called create-customer. The last step is a refused API response. The outcome is unfinished. The surface is the API. A reviewer can see where the attempt stopped without reading the instructions the model was given.

The prompt is how the agent was told to work. It often carries the customer's record, a pasted token, or a block of instructions copied from a private ticket. The outcome does not require that text. Store the task name, the outcome, and the last step. Leave the prompt body out until someone names a reason and an end date.

You will be asked for the prompt the first time a task looks strange. The ask is reasonable, and the default is still to decline it. Pull the prompt for one named task, for a window you date on the ticket, and drop it when the date arrives. A standing copy of every prompt is a second database of customer text.

The product concept of the task, across the website, the docs, the API, the SDK, and MCP, stays on [agent journey analytics](https://www.agentrail.co/blog/agent-journey-analytics?h=DH4X657PZXAJE02S). This page decides what of that task you are willing to keep.

## Secrets and payment data do not belong in the row

A secret in an analytics row is a credential with a second life. API keys, tokens, and passwords show up in headers, in query strings, and in JSON bodies. The review needs to know that authentication was attempted. It needs the status. It does not need the secret that was sent.

Payment data has the same shape. A card number, an expiry, and a security code can ride inside a request the agent assembled. The outcome of a payment step is a status and an id you minted. The card number teaches the reviewer nothing about whether the task finished.

On MCP revision 2026-07-28, server authors are told not to mark sensitive parameters for header mirroring. The list in the security guidance covers passwords, API keys, tokens, and PII. Header values are visible to intermediaries. The extension property on this revision is `x-mcp-header`. The tools page states that rule: [MCP tools](https://modelcontextprotocol.io/specification/2026-07-28/server/tools). If a parameter is sensitive enough to keep out of a header, it is sensitive enough to keep out of the default analytics row.

Apply the same cut to your HTTP API and your CLI audit. Store that a credential was present or absent. Store the status code. Skip a second copy of the key. Store that a payment step ran. Skip the card.

When a secret does land in a row, treat the row as something you can delete, not as something you can redact later in a dashboard filter. Filters hide text from one screen. Exports and backups keep it. The schedule in a later section is how you limit that window. The default is to avoid the write.

## Tool arguments are opt-in

Tool arguments tell you what the agent asked a tool to do. They also carry account ids, queries, and tokens. A default that stores every value stores the secret class from the previous section under a different name.

The default that belongs on a task review is small. Keep the tool name. Keep the argument names, the JSON types, and the size. Keep the outcome of the call. A reviewer can see that `get_invoice` was called with one string argument and that the call failed validation. The invoice id, if you decide you need it, is an opt-in value.

The field list for an MCP `tools/call`, and the rule that argument values are opt-in, stays on the observability article linked above. Use that list when the surface is MCP. Use the same posture when the surface is an HTTP body or a CLI flag. The name of the flag can sit on the row. The value waits for an explicit opt-in.

Opt in for a named tool, or a named route, and write the end date before you turn the capture on. "All tools, until we remember to stop" is how argument values become permanent. A short capture for `create_customer` while you fix a refused call is a different decision. End it on the date you wrote down.

Which signals grouped those calls into one task stays on [agent fingerprinting](https://www.agentrail.co/blog/agent-fingerprinting?h=DH4X657PZXAJE03Q). The classes are request, behavioural, temporal, and product-level. You can keep the grouping and still drop the secret that rode inside one request. The fingerprint article owns how the group is decided. It does not ask you to archive raw credentials.

## A clock on the row

A timestamp is part of the default row. Without it, the outcome floats. Two unfinished tasks in different weeks become one pile, and the review cannot say which change came first.

Store the time of the step you kept. Store it in one zone, and label the zone. A row that says the API refused the call can sit in a week you name. A row with no time cannot.

This clock is the time the step happened. It is not the rule that closes an unfinished task when the agent goes silent. That close rule stays on [when to close an unfinished journey](https://www.agentrail.co/blog/agent-journey-timeout?h=DH4X657PZXAJE04N). Silence can end the task. Retention decides when the stored row is deleted. Put both sentences on the ticket so a short close rule is not copied into a short delete rule, and a long keep is not read as an open task.

The agent-user board reads outcomes inside a window you label. Which counts belong on that board stays on [what belongs on an agent-user dashboard](https://www.agentrail.co/blog/agent-user-analytics?h=DH4X657PZXAJE05K). Align the timestamp you keep with the window that board already shows. A review that mixes an unlabeled month of rows with a labeled week of tiles will argue about the window instead of the task.

## Delete on a schedule you can name

A schedule you can name is a sentence another person can repeat. It lists the field, the default, and the end date. An end date of "later" is not a schedule.

No Agentrail retention window is published. This page will not guess a number of days. The dates below are yours.

| Field on the task row | Default | Your end date |
| --- | --- | --- |
| Outcome, finished or unfinished, plus the last step | Keep | Write the date |
| Surface of that step | Keep | Write the date |
| Timestamp of the step | Keep | Write the date |
| Prompt body | Drop | Opt in only with a date |
| Tool argument values and request bodies | Opt-in | Write the date before you enable |
| Secrets and payment data | Drop | No date, because you do not write them |

Copy the table into the ticket for the store you run. Fill the date column before the collector starts. A blank date means the field stays on the default. The default for a prompt, a secret, and a card number is to leave it out.

Say the schedule in the review invite. Outcomes stay through the date on the ticket. Prompt bodies stay out. People can audit those two sentences. A cluster setting nobody wrote down cannot be audited.

When the date arrives, delete the opt-in values. A job that marks them expired and leaves them in the table has not finished. If a backup keeps the value, the schedule names the backup too, or the backup is outside the sentence you told the reviewer.

## A review that cannot name the body is not ready

A review is ready when the reviewer can point at the fields in the row. If they cannot say whether the prompt is present, the review is a guess about data you might be holding.

Start from one unfinished task. Read the outcome, the surface, and the time. If those three are missing, fix the collector before you debate retention. If a secret is present, stop the review and delete the write path. The rest of the meeting can wait.

The board that shows unfinished tasks, and the tiles that belong there, stays on the dashboard article linked above. Bring the outcome to that board. Leave the prompt body in the opt-in store, or leave it uncollected. A dashboard full of prompt text is a transcript viewer. The task review is a smaller record.

Write the field list where the on-call notes live. A new teammate should be able to answer, from that note, what a task row contains on a normal day. Until that note exists, you are not ready to widen the row.

## Frequently Asked Questions

### How long does Agentrail keep agent events?

No Agentrail retention window is published. This article will not invent a number of days. You name the schedule for the fields you store.

### Should the prompt be stored with the task?

Store the outcome, the surface, and the time by default. The prompt body is opt-in for a named task, with an end date you write down before collection starts. The outcome already tells you whether the attempt finished.

### Are raw tool arguments required to review a task?

The review can use the tool name, the argument names, the types, and the size, plus the outcome. Values are opt-in. On MCP, the call record and that redaction default stay on the observability article linked above.

### What is the difference between closing a journey and deleting a row?

Closing a journey decides when silence counts as unfinished. That rule stays on the journey-timeout article linked above. Deleting a row is the retention schedule you name for the fields you kept. The two clocks answer different questions.

Name the fields on one unfinished task before the next review. Keep the outcome, the surface, and the time. Drop the secret, and read the task on [what belongs on an agent-user dashboard](https://www.agentrail.co/blog/agent-user-analytics?h=DH4X657PZXAJE05K).
