Oblive Docs
Replays

Turn on Replays

Enable history capture for an install, turn Replays on for a business, and control what it records.

Turning on Replays has two levels. An operator enables history capture once for the install. Then staff turn Replays on for each business that has agreed to it.

1. Enable history capture for the install

History capture is off by default. Nothing is recorded for any business until it is on.

For a source install, set these in config/local-stack.json:

{
  "historyCaptureEnabled": true,
  "replayReadToken": "<at least 32 random characters>",
  "replayTrialToken": "<at least 32 random characters>",
  "replaySetupToken": "<at least 32 random characters>"
}

Then run bun run stack up. It writes HISTORY_CAPTURE_ENABLED to the backend only, and the three tokens to the backend and the frontend server only. Agents never receive them.

For a deployed install that manages its own environment, set HISTORY_CAPTURE_ENABLED=true, REPLAY_READ_TOKEN, REPLAY_TRIAL_TOKEN and REPLAY_SETUP_TOKEN on the backend, and the three tokens on the frontend server.

Each token must be different from every other token, including agentServiceToken and executionCaptureReadToken. The stack and the backend refuse a token that repeats another.

TokenLets the frontend server
replayReadTokenRead the Timeline, saved entries and trial results
replayTrialTokenStart and cancel trials
replaySetupTokenRead and change Replays setup

Saved history is encrypted with INTEGRATION_CREDENTIAL_KEY. Keep that key for as long as history is kept; without it, history cannot be read. History is stored in the private S3 bucket set by the historyArchiveS3 object (bucket, region and credentials) when present, otherwise in the install’s own object store. See historical data preservation for bucket rules.

The Replays pages need staff sign-in. With Clerk sign-in off, the pages read nothing and change nothing. Turn sign-in on as described in frontend sign-in. Staff currently means a signed-in user with a verified @skyfall.ai email, so on your own install the pages stay read-only for everyone else. Without such an account, do every setup step with replays:setup and the per-integration API call below.

2. Turn Replays on for a business

Before you start:

  • Get the business’s written agreement. You will be asked for a reference to it.
  • Replays use UTC days, including when the business has no time zone configured.

From the Setup tab

  1. Click Replays in the business sidebar. While Replays are off it opens Setup directly.
  2. Read Turning Replays on records. It lists every tool that will be recorded.
  3. Turn the page switch on, enter the agreement reference, and confirm.

Recording starts at once. The first replayable day is the next full business day, once it ends.

From the command line

Run from the repository root. Check what will be recorded first: the command line does not ask you to review it. Each integration’s pending list in the status is what turning on will record.

bun run replays:setup --organization <organization-id> --status
bun run replays:setup --organization <organization-id> --basis "<agreement reference>"

The command reads apps/backend/.env, which bun run stack writes from config/local-stack.json. A variable already set in your shell wins. It prints the setup status as JSON.

Turning Replays on:

  • writes the Standard preset (see concepts);
  • saves a starting copy of the organization, every profile, task spec and profile memory that has none yet;
  • records the agreement, who gave it and when;
  • turns the business’s Replays switch on.

Running it again is safe. It changes only what is not current.

3. Choose what each integration records

The Setup tab shows one card per connected integration, with its name, provider, departments, a Recording switch and the tools it records. Disconnected integrations are listed on one line.

  • Turn recording off: its tool calls stop being recorded. Recordings made before stay replayable. Integration edits and later setup runs leave it off.
  • Turn recording on: the integration goes back to the Standard preset. The confirmation lists every tool it will record, including tools enabled while it was off.

The command line has no flag for this. Use the Setup tab, or call the backend directly.

Without staff sign-in

The backend accepts the same change with the setup token (REPLAY_SETUP_TOKEN). Send it from a machine that can reach the private backend:

curl -X POST "$BACKEND_URL/organizations/<organization-id>/replays/setup" \
  -H "Authorization: Bearer $REPLAY_SETUP_TOKEN" -H "Content-Type: application/json" \
  -d '{"action":"recording_off","integrationId":"<integration-id>","basis":"<reason>","actor":"you@example.com"}'

To turn it back on, first read GET /organizations/<organization-id>/replays/setup and send "action":"recording_on" with a reviewed list naming the tools you accept, as the Setup tab does. The organization and integration ids are in the backend’s organizations and integrations tables, and replays:setup --status lists each integration’s id.

A policy written by hand (with history:capture observation-configure) is never changed by the preset or by these switches.

4. Approve new tools

When an integration gains a read-only tool, or a new integration is connected, its new tools wait for approval. Existing tools keep recording.

On the Setup tab, use Approve on the waiting tools. From the command line:

bun run replays:setup --organization <organization-id> --confirm --basis "<agreement reference>"

Approving records every waiting tool for the whole business.

5. Pause and resume

Pause stops all new capture for the business: tool call recordings, run inputs, internal state, scheduled collection and Insights copies. Everything already kept stays readable and can still be used by trials until it expires.

bun run replays:setup --organization <organization-id> --pause --basis "<reason>"
bun run replays:setup --organization <organization-id> --resume --basis "<reason>"

On the Setup tab, turn the page switch off to pause and on to resume.

Resume follows integration edits made while paused, but never starts recording a new tool: those still wait for approval. It also saves a new copy of any internal state that changed while paused.

Do not pause or remove history while a new backend version is deploying.

6. Remove history

Removing history is separate from pausing and needs confirmation.

On the Setup tab, use Remove history and type the business’s name. From the command line, repeat the organization id:

bun run replays:setup --organization <organization-id> --remove-history --confirm-remove <organization-id> --basis "<reason>"

Removal pauses capture at once, then waits 7 days. Until then you can cancel it:

bun run replays:setup --organization <organization-id> --cancel-removal --basis "<reason>"

When the 7 days pass, recordings, internal state and run captures expire and are deleted, and Replays turn off. Saved archives (such as frozen snapshots and Insights copies) cannot be changed, so they are deleted on their own expiry date. Status shows how many are left and when the last one expires.

To use Replays again after a removal, resume and turn Replays on again with a new agreement. Kept archives that have not expired yet become visible again.

7. Check status

bun run replays:setup --organization <organization-id> --status

Status changes nothing. It shows each integration’s recording state, tools waiting for approval, unfinished setup runs, the replayable window, whether capture is recording, paused or scheduled for removal, paused periods, and archives left after a removal. The Setup tab shows the same.