# Session transcripts and artifacts

> For the complete documentation index, see [llms.txt](https://docs-stg.ringleader.dev/llms.txt).


> Ringleader keeps the transcripts of agent sessions and the files people upload, in a bucket you choose or for 30 days.


Ringleader keeps the transcripts of agent sessions, the files people upload with `rl artifact upload`, and the files workstations publish. A namespace sends them to a bucket in your own cloud account by creating a Storage. This page says what happens to them with and without one, and how an upload or a session picks a Storage.

## Transcript contents

A transcript holds whatever was typed or pasted into a session, sometimes a credential pasted by accident. That is why most teams want transcripts in a bucket they control. There they decide the location, how long old data is kept and which key encrypts it. [Storage](https://docs-stg.ringleader.dev/reference/resources/storage/) has the fields. [OWASP lists](https://docs-stg.ringleader.dev/security/model/owasp/) says what a transcript records, in the row for MCP08.

## Files without a Storage

On a deployment Ringleader hosts, a namespace with no Storage cannot upload files. Ringleader deletes its session transcripts 30 days after each session's last activity. To keep them longer, create a Storage. When you use Ringleader on your own computer, with no Ringleader deployment, it keeps these files on that computer.

## Storage choice for an upload or a session

A namespace's default Storage takes every file that does not name one. An upload or a session can name another Storage in the namespace. [Several buckets and the default](https://docs-stg.ringleader.dev/cloud-accounts/storage-buckets/#several-buckets-and-the-default) says how the default is picked.

Anyone who can write the upload or the session can name any Storage in the namespace. To narrow that, an administrator writes a policy with a `storages` rule, as [Storage entries](https://docs-stg.ringleader.dev/reference/resources/policy/#storage-entries) describes. [Namespace and organization policies](https://docs-stg.ringleader.dev/organizations-teams/policies-identities/policies/) says how policies work.

## Keep transcripts longer

An administrator creates a Storage for the namespace. [Create a bucket and use it](https://docs-stg.ringleader.dev/cloud-accounts/storage-buckets/#create-a-bucket-and-use-it) shows the object and the commands. Once the Storage is reachable, every new file in the namespace goes to its bucket.

## Choose a Storage for one upload or session

An upload names a Storage with `--storage`:

```sh
rl artifact upload release-notes -f notes.txt --storage transcripts-eu
```

The choice is fixed when the upload first creates the artifact, so a later upload of the same artifact must pass the same `--storage`. Naming a Storage the namespace does not have is refused.

An agent session names one with `spec.lifecycle.transcriptStorageRef`, on the session itself or on an `AgentSessionConfig` that applies to it. The session records its Storage once, when it decides where to keep its transcript, and keeps using it after the default moves. A session that names a Storage the namespace does not have keeps no transcript there, and its status says so. It is never sent to the default instead.

## Next steps

- [Storage buckets](https://docs-stg.ringleader.dev/cloud-accounts/storage-buckets/): create a Storage, switch buckets and delete one.
- [Storage entries](https://docs-stg.ringleader.dev/reference/resources/policy/#storage-entries): limit which Storage an upload or a session may name.
- [Agent sessions](https://docs-stg.ringleader.dev/reference/cli/commands/usage/#agent-sessions): what each agent session reported about its own use.
- [Agent sessions guide](https://docs-stg.ringleader.dev/workstations/sessions/agent-sessions/): start, follow, share and read the transcript of an agent session.

