Run a trial
Start a trial on a past business day, read its result, and run the replay runner that carries it.
A trial runs Steve once from the end of a past business day, in a fresh replay environment. Steve gets historical business evidence from that day. Standard trials plan without sending provider writes.
A trial needs three things:
- Replays turned on for the business (see Turn on Replays).
- A past day with history: inside the replayable window.
- The replay runner running on a trusted host. Without it, trials wait in the queue.
Start a trial
- Open the business, then Replays → Trials → New trial.
- Pick a day. The page lists today and the 13 days before it, in UTC. Today has not ended, so only the 13 earlier days can run. Each day shows its state.
- Continue to the file editor. The candidate starts from the pinned current harness. Snapshot files remain available for reference. Optionally edit agent files, or leave them unchanged.
- Choose Review candidate. Write the initiative: a title (up to 200 characters) and an objective (up to 4,000). Steve gets them word for word, as a live initiative.
- Write a purpose (why you run it, up to 500 characters), and optionally an experiment label (up to 200) to group trials you want to compare.
- Save candidate version, then Run candidate. See the editor details below.
After a full recording day ends, Oblive prepares its snapshot in the background. The first trial for an unfrozen day prepares the snapshot before queueing. A trial reuses a suitable frozen snapshot. The runner separately prepares the isolated stack for each trial. Day options list anything the snapshot omitted.
A business can have at most 3 unfinished trials. Running a saved candidate uses one slot. Model calls use the replay runner’s Codex login and count against it.
The existing single-trial API is still available for tools that want to queue one trial directly:
POST /organizations/{organizationId}/replay-trials
Authorization: Bearer <REPLAY_TRIAL_TOKEN>
Content-Type: application/json
{
"day": "2026-10-30",
"initiative": { "title": "Review yesterday's churn", "objective": "Find the accounts that churned and why." },
"purpose": "Check the new churn skill",
"experiment": "churn-skill",
"harnessMode": "current",
"idempotencyKey": "churn-skill-2026-10-30-a"
}The answer is 202 with the trial id, its environment id and snapshot. Sending the same body with the
same idempotencyKey (8 to 200 characters of letters, digits, _, ., : or -) returns the same
trial. In normal use only the frontend server calls this
route, after checking staff sign-in.
What happens next
trial queued (environment preparing)
→ runner prepares an isolated stack from the snapshot
→ runner sends the initiative once the stack is ready
→ the Operator delegates planning and departments return written plans
→ initiative done, failed or cancelled, or time limit reached
→ runner exports the evidence and releases the stack
→ trial finished, with outcome, usage, gaps and trajectoryThe default time limit is 60 minutes; the outcome is then timed_out. If preparation is blocked, the
trial is released at once. You can cancel a trial from its page at any time; cancelling asks the
runner to release its environment. The page shows “Cancel requested” until the evidence is exported,
even after a reload, and the outcome is then stopped.
Nobody answers inside a replay, so the stack takes the default for anything that would wait on a
person. A question Steve or the platform asks gets a standing answer: go with the recommendation,
note the assumptions and finish. Those answers are recorded as decided by replay-default, with
at most two automatic answers per task. Planning trials reject provider writes and action requests.
Read a trial
Replays → Trials lists trials with their initiative, cutoff day, status, outcome, runs, tool calls, tokens, gaps and scores, 25 at a time (or 50 or 100), with First, Previous and Next and the position, such as “26–50 of 63”. The page, the page size and the filters are in the address, so a link or a reload keeps them. A trial’s page shows:
- its progress: queued, preparing the environment, Steve working, releasing the environment, finished. Each step the runner or the stack takes is listed with its time, such as a preparation attempt that failed and when it retries, the initiative being sent, its task’s status changing, or why release was requested. While the trial is unfinished the page refreshes itself every few seconds. Runs and steps appear once release stores the trial’s evidence;
- the initiative given to Steve, the day, the snapshot and the agent build;
- each run, its sessions and sub-agent sessions, and every step of Steve’s trajectory, 50 steps a page. Search and filters cover the steps on the page you are on; use Next to reach the rest. Long lists of proposed writes, scores and progress events page the same way, 25 to a page;
- the files each run wrote under
outputs/, such as a plan or a brief, opened from the trial’s evidence (text up to 1 MB; Markdown is rendered). Links to them in a run’s output open the same stored copy; - historical action proposals for earlier trials that recorded them;
- usage, gaps and any answers the cutoff guard refused.
The same data is readable with REPLAY_READ_TOKEN:
GET /organizations/{organizationId}/eval-runs?experiment=churn-skill&limit=25
GET /organizations/{organizationId}/eval-runs/{trialId}
GET /organizations/{organizationId}/eval-runs/{trialId}/trajectoryA list answer carries nextCursor and previousCursor (send them back as cursor and before,
never both), the total for your filters and the offset of the page. A trajectory answer pages
one session’s steps with cursor (the step offset) and limit.
Read gaps
A gap means Steve asked for something the trial could not answer faithfully. Common gaps:
| Gap | Meaning |
|---|---|
missing_fixture | Steve called a tool with arguments nobody called live that day. |
missing_history | The data was never kept, or was omitted from the snapshot. |
post_cutoff_evidence | An answer held a record dated at or after the cutoff, so it was refused. |
limit_exceeded | The data was larger than a replay limit allows. Nothing is truncated. |
A trial with gaps still tells you something, but compare like with like. Two trials of the same day and snapshot start from the same missing data, but they can hit different gaps: Steve only meets a gap when it asks for that data, so a trial that behaves differently can ask for more of it. The gap count lists each distinct gap once, including gaps found during preparation. It doesn’t count how many tool calls a gap affected, so don’t read it as a rate.
Edit and run a versioned candidate
Open Replays → Trials → New trial to use the full-page candidate editor.
- Choose a completed business day. Oblive pins its exact snapshot and loads the recorded harness files as an editor reference. This does not execute a baseline.
- The candidate starts with the currently assigned instructions and skills, pinned when you open the editor. Leave everything unedited to run the current harness on that historical snapshot.
- Select the Operator or departments to customize. Browse their
AGENTS.md, instructions, skills, scripts and reference files. Use Edit, Diff, or Preview. Diff shows candidate files against the snapshot reference; Revert restores the pinned current file. Unchecking an agent discards its custom edits and restores its current configuration. - Save draft preserves your work. Review candidate lets you set its initiative, objective, purpose and experiment label. Save candidate version creates an immutable numbered version with a content hash. Open Drafts & versions later to resume a draft or inspect a version.
- Run candidate queues exactly one trial in a fresh environment on the pinned snapshot. It opens the normal trial page for progress, outputs and evidence. Retrying the same submission returns the same trial. Existing baseline runs and their recorded results are left unchanged.
This flow prepares and executes the candidate only. Selecting or linking an existing baseline result, comparing outcomes, scoring improvements and accepting/promoting changes are outside its scope.
Use New iteration on a saved version to create a child draft. It retains its parent’s source pins and edits. Choose New from current harness to pick up later changes to the live harness. Saving versions and running candidates do not update live profiles.
AGENTS.md, skills/ and prompts/task-run.json are actual agent-pack resources. The task prompt
file contains the existing mode directives, communication and evidence instructions as JSON text.
Normal tasks and trials load the selected pack and use the same prompt builder. Mode selection,
objective placement and replay isolation instructions remain in the builder. The model’s built-in
system prompt is not an editable Oblive source file.
The prompt file appears only when the pinned pack declares and contains it. Older packs retain the
installed runtime’s default wording. Publish/sync the updated catalog and use New from current
harness after profile pins advance to edit the prompt resource; existing versions keep their pins.
New skills need a SKILL.md with matching name and description frontmatter. Edits apply per agent,
including shared skills and task prompts, and hydrate only in the replay store. File patches are
limited to 500 KiB total, files to 128,000 characters and task-prompt JSON to 128,000 UTF-8 bytes.
Versions authored with the earlier virtual prompt fields remain inspectable, but cannot execute or become child drafts. Create a fresh candidate from the current harness and edit its real resources.
Historical snapshots retain authored instructions and skills, but not the model’s built-in system prompt text or old executable images. The candidate uses the current replay runtime and historical model settings. Oblive still supplies task directives and enforces planning and data-access controls.
Saved versions remain inspectable after the snapshot expires. A new run must still pass retention and current authorization checks. An open draft keeps its original source pins when the current harness advances. Concurrent draft edits are rejected instead of overwriting newer work.
Each trial links back to its saved candidate version. That version retains the authored task-prompt, AGENTS.md and skill edits, together with the exact source pack revisions and parent version. The run also records the effective pack hashes, runtime image digests and model settings. Once recorded, this build information cannot be replaced by a retry with different settings.
After execution, output files and evidence are archived before the environment is removed. The trial’s artifact hashes identify those retained bytes; opening an old trial continues to read its own outputs after a later candidate version is saved. Runtime defaults are identified by the image digests; model-exchange traces are best-effort and redacted, not a promise of complete transcript capture.
API and existing CLI workflow
The staff Trial API provides the editor workflow below
/organizations/{organizationId}/replay-trials:
POST /candidateswith a completeddayandidempotencyKey, or a savedparentIdfor an iteration.GET /candidatesandGET /candidates/{candidateId}for history and exact version readback.POST /candidates/{candidateId}withexpectedRevision, name, initiative, purpose, optional experiment, per-agenteditsandpublish(falsefor a draft,truefor an immutable version).POST /candidates/{candidateId}/runwithidempotencyKeyto run that saved candidate. The response includestrialId,environmentId,candidateIdand the pinned snapshot. No baseline identifier is required.
For example, edits may contain:
{
"operator": { "AGENTS.md": "# Operator\n\nCompare two feasible plans before assigning work.\n" },
"growth": { "AGENTS.md": "# Growth\n\nPrioritize retained funnel evidence.\n" }
}The explicit baseline-referenced API accepts published packRevision substitutions only; inline
developer/model instructions are rejected. It is separate from this candidate editor. Existing Git-based candidate publication is also available from a trusted
operator shell:
bun run --cwd apps/backend agent-packs:sync /path/to/candidate/packages/agent-packs/catalog --revision-only--revision-only leaves the live catalog pointer in place. UI-authored candidates require no CLI
publication or pasted revision hash.
Run the replay runner
For versioned candidate runs, update the control backend, frontend, replay runner and both replay application images together. The runner is a separate trusted process. It owns Docker, prepares environments, sends each trial’s initiative and releases environments. Never mount its Docker socket into the backend or agents.
Load the backend environment first (see before running commands), then:
bun run replay:environment run --config /private/replay-runner.jsonAdd --organization <organization-id> --once for one pass over one business. Without --once it
loops every few seconds until stopped.
The runner configuration is a private 0600 JSON file outside Git. It names the pinned image digests,
the private working directory, how the runner reaches the backend, and optionally
trialTimeLimitMinutes (5 to 1,440; default 60). Model access comes from the codex section of
config/local-stack.json, as for live agents. The full format, model access and Docker requirements
are in prepare replay environments.
The New trial page shows when the runner last touched this business. “The replay runner has never picked up a trial for this business” means no runner has run for it yet.