Replays troubleshooting
Errors you may see in Replays, what they mean and what to do.
Errors on the Replays pages
The pages show the backend’s message as it is for 4xx errors. A 5xx error shows only
Backend request failed (503).; its code and cause are in the backend audit line. Every refusal also writes one audit line in the
backend log (replays_setup, replay_trial or the read audit lines), without the agreement text.
Setup
| Status | Code | Message (short) | What to do |
|---|---|---|---|
| 400 | invalid_request | Write the agreement reference. | Enter 1 to 2,000 characters. |
| 400 | remove_confirmation_mismatch | The business named doesn’t match. | API callers only: confirmOrganizationId must be this business’s id. |
| 403 | replay_sign_in_required | Replays need staff sign-in. | Turn on frontend sign-in. |
| 403 | replay_staff_required | Only signed-in staff with a verified email. | Sign in with a verified @skyfall.ai email. |
| 404 | organization_not_found | This business wasn’t found. | Check the business id. |
| 404 | integration_not_found | This integration isn’t part of this business. | Reload the page. |
| 409 | history_capture_off | History capture is off on this server. | Set historyCaptureEnabled: true, then bun run stack up. Also returned in recovery mode. |
| 409 | setup_required | Turn on Replays first. | Turn Replays on before approving tools, pausing, removing or switching recording. |
| 409 | setup_conflict | What would be recorded changed. | Reload, review the new list, and try again. |
| 409 | replays_paused | Replays are paused. | Resume first. |
| 409 | removal_scheduled | History is scheduled for removal. | Cancel the removal before resuming. |
| 409 | removal_not_scheduled | No removal is scheduled. | Nothing to cancel. |
| 409 | removal_due | The removal is already due. | It can’t be cancelled. Turn Replays on again later with a new agreement. |
| 409 | integration_disabled | This integration is disconnected. | Connect it first. |
| 409 | policy_manual | The policy was written by hand or is already off. | Reload. Change a hand-written policy with history:capture. |
| 409 | policy_not_staff_off | Recording wasn’t turned off by staff. | Reload. A hand-written policy can’t be handed back from the tab. |
| 503 | replay_setup_unconfigured | Replays setup is not configured on this server. | Set replaySetupToken, then bun run stack up. |
| 503 | setup_unavailable | Shown as Backend request failed (503). | Check the backend log for the replays_setup audit line and retry. |
Trials
| Status | Code | When | What to do |
|---|---|---|---|
| 400 | invalid_request | A day outside the offered list, or an empty field. | Pick an offered day and fill every field. |
| 403 | replays_disabled | Replays are off for the business, or it is unknown or inactive. | Turn Replays on. |
| 409 | idempotency_conflict | The same form was sent again with other details. | Reload the page and start again. |
| 409 | forbidden_source | An integration the day’s recordings came from is off, or dropped a tool they used. | Re-enable the integration or tool, or pick another day. |
| 409 | missing_source | Recordings in the day’s snapshot were deleted or expired. | Pick a newer day. |
| 409 | source_changed | Something the recordings depend on changed after they were made. | Pick another day. |
| 422 | missing_history | The day lacks required data. | Pick another day. See missing data. |
| 429 | trial_limit | The business already has 3 unfinished trials. | Wait for one, or cancel one. |
| 404 | missing_source | Cancelling a trial that doesn’t exist. | Reload the trials list. |
| 409 | integrity_mismatch | The trial record didn’t match its environment. | Retry; if it repeats, check the replay_trial audit line. |
| 503 | replay_trial_unconfigured | No trial token on the frontend server. | Set replayTrialToken, then bun run stack up. |
| 503 | replay_unavailable | Anything else, including a required item that is briefly unreadable. | Retry. If it repeats, check the replay_trial audit line. |
Timeline and trial results
| Status | Code | When | What to do |
|---|---|---|---|
| 403 | replays_disabled | Replays are off for the business. | Turn Replays on. |
| 403 | forbidden_source | The source’s access changed since the entry was saved. | Expected after an integration is disabled. |
| 409 | integrity_mismatch | Saved content no longer matches its hash. | Report it; the content is not served. |
| 410 | content_expired | The content is past its retention. | Nothing to do; it is gone. |
| 413 | limit_exceeded | Range over 92 days, or content over 8 MiB. | Pick a shorter range. |
| 503 | replay_read_unconfigured | No read token on the frontend server. | Set replayReadToken, then bun run stack up. |
A backend that answers 503 with replay_read_auth_unavailable, replay_trial_auth_unavailable or
replay_setup_auth_unavailable has no such token, or one equal to another token. Fix the stack
configuration and restart.
Common problems
The replayable window is empty
Right after turning Replays on, there is no full business day yet. The first day becomes replayable once the next business day ends in UTC. While paused, the window ends the day before the pause. Organization time zone settings do not affect this window.
A trial stays queued
No replay runner is running for this business. The New trial page says “The replay runner has never
picked up a trial for this business”. Start the runner with
bun run replay:environment run --config <file> on the trusted host.
A trial is blocked during preparation
Run bun run replay:preflight --config <file> --organization <id> on the runner host first. It
names the failing prerequisite, such as a backendReachableHost the main backend can’t reach. A
failed readiness check also appears on the environment as a runtime_unavailable gap at
readiness.<check>, and the runner’s log carries the underlying error.
The environment may show a needs_configuration gap naming the setting. The most common is
prepare.codex.localAuth.stale: the runner’s Codex login is about to expire. Refresh it by using
Codex locally on the runner host, then start a new trial. See
model access.
A day shows missing_data
Its snapshot lacks required internal state: the organization, a profile or its memory had no saved
revision before the cutoff, or it expired. A day before Replays were turned on usually shows
no_history instead. Pick a later day.
A tool the business uses is not recorded
- It may be waiting for approval. Approve it on the Setup tab.
- Staff may have turned the integration’s recording off. Turn it back on.
- It may not be a reviewed read-only tool. Write tools are never recorded by the preset.
- It may be past the 200-tool limit. Status lists it as over the limit.
Steve’s calls show many missing_fixture gaps
A trial answers only calls made live that day with the same arguments. Steve asked something new. Scheduled collection does not help yet: its data is not in trial snapshots. Compare trials of the same day to see whether a change, not the gap, caused a difference.
Insights is missing in a trial
- The day is before the business’s first Insights copy.
- The copy was not taken within six hours after the day ended, so the day has none.
- Capture was paused that day.
- The integration is not in the day’s snapshot: it made no recorded calls and has no tool list that day, or the 32-integration or 50-requirement limits left it out. Insights copies are picked only for integrations in the snapshot.
An integration edit broke recording
It should not. Edits such as renames, settings, grants and credentials keep recording and keep past
recordings readable. Recording stops for a tool only when the tool is removed or the integration is
disabled. If status shows a restamp or narrow state, the next integration write or backend start
repairs it; running replays:setup --basis again also does.
Prior work in a reconstructed replay
A newly prepared reconstructed replay can show earlier initiatives, tasks, runs, chats and actions when the snapshot contains a usable dated version. They keep their recorded status but are read-only: old pending tasks do not restart. Create a new initiative for new work.
Missing records or recordings are reported as gaps. A task created before the selected date may still be missing if only its later, changed version survives. Older replay environments created before historical work import remain unchanged; prepare a new environment to use the feature.