Oblive Docs
Replays

Add more history

Daily collection, Insights copies and the daily S3 sync, and how each reaches Replays.

The Standard preset keeps what the agent actually did. Some businesses also want data the agent never asked for, kept every day. That is scheduled collection. It is opt-in per integration, because it makes new provider calls and copies more data.

Scheduled collection is set up by an engineer with the history:capture command. The Setup tab says so and does not switch it on yet.

Collection seeds

A seed writes a disabled collection policy proposal from what an integration already selects. It makes no provider calls and changes nothing in the database.

Seeds exist for MongoDB, Upstash Redis, Lemon Squeezy, GitHub, PostHog, Stripe, Crisp, Paddle, Google Analytics and Google Workspace. The Stripe, Crisp, Paddle and Google Analytics seeds also turn on the integration’s daily Insights copy (insights: true).

Write a private configuration file outside Git:

{
  "organizationId": "<organization-id>",
  "integrationId": "<integration-id>",
  "filePath": "/private/collection-policy.json"
}

Then, with the backend environment loaded (see before running commands):

bun run history:capture seed /private/seed.json

seed creates the output file with mode 0600 and refuses to overwrite one. The file holds organizationId, integrationId and a disabled policy, so the next commands take it as it is. It prints coverage gaps, for example a Google Analytics integration without its report and property tools enabled.

Turn on daily collection

  1. Review the proposed policy. Keep only resources the business agreed to.
  2. Store it, still disabled: bun run history:capture configure /private/collection-policy.json.
  3. Check it: bun run history:capture readiness /private/collection-policy.json. Readiness reads configuration only; it does not call the provider.
  4. Set "enabled": true inside policy and run configure again.

The background scheduler then collects once a day, by default in a five-minute slot between 02:00 and 02:55 UTC, and keeps data 90 days. Pausing Replays for the business stops collection too.

Google Workspace

Workspace collection keeps changes, not daily copies. The seed proposes one change feed per enabled service: Gmail’s INBOX label, the primary calendar, and every task list. Drive needs the folders to keep, so the seed reports a needs_configuration gap for it; add a resource like this to the policy before configure:

{
  "id": "drive/<folder-id>",
  "operation": "workspace_drive_changes",
  "arguments": { "folderIds": ["<folder-id>"] }
}

The first run keeps the selected folders, label, calendar and task lists as they are. Each later run keeps only what changed since the last complete run, including edits and deletions. If Google no longer accepts the saved position (Gmail keeps history for about a week), that run starts again from a fresh copy, and a fresh copy is also taken every 30 days. A trial on a past day sees Workspace as it was at the end of that day, rebuilt from those changes; nothing is fetched from Google during a trial.

Recordings of the agent’s own Workspace calls are separate: the Standard preset records its reads; what it sends or edits is only recorded with a <service>:write binding.

The full policy contract, connector limits and every history:capture subcommand are in historical data preservation.

Collected data shows on the Timeline, but a trial’s generated snapshot does not include it yet. A trial answers only calls that were made and recorded live. Declaring collected data in snapshots is planned.

Daily Insights copies

Insights is Oblive’s own output, and a missed day cannot be rebuilt. So every business that turned Replays on gets one Insights copy per business day for each enabled integration that feeds Insights. No collection policy is needed.

  • The copy is taken within six hours after the business day ends, in UTC. After six hours the day has no copy; it is never taken later.
  • A collection job with insights: true that starts after the day ends takes the day’s copy instead, so there is never a second one.
  • In a trial, Insights answers from the newest copy confirmed before the cutoff. A day before copies began has no Insights.

Copies need history capture on and stop while the business is paused or the install is in recovery mode.

Daily S3 sync

The daily S3 sync is a host timer: collection from 00:15 UTC, then one full snapshot of the installation uploaded to S3. It interacts with Replays in three ways:

  • historyDailyPreservation: true turns off the backend’s own scheduled collection, because the sync takes it over. Tool call recording, Insights copies, expiry and history removal keep running.
  • A restored snapshot holds all history up to that night. Running trials on it without activating it is not built yet.
  • A trial reads only what the backend holds. It never reads a snapshot or export.

What is not built yet

  • Switching daily collection on from the Setup tab.
  • Declaring collected data in a trial’s snapshot.
  • Seeds for the remaining connectors.
  • A Replays row on the Integrations page.
  • Pinning the items a trial used, so they outlive the 90-day expiry.
  • Recording health on the Setup tab (skipped recordings and budget counts).