Skip to content

Dataset

Agent failure trajectory datasets with recoveries for AI training

An agent failure trajectories dataset is a set of task sessions selected because something went wrong: the step where the error occurred, the error state the person or agent saw, the corrective steps taken, and whether the task was finally completed, abandoned or handed to someone else. SourceX sources these to a buyer's spec from established businesses, drawing on their screen sessions, agent run logs and rework records, filtered and labeled by outcome. Each dataset is de-identified and licensed for an agreed permitted use, and supply is not guaranteed.

Dataset manifest

Sourced to your spec
What it is
Task sessions chosen because a step failed, each with the error state, the recovery or the reason there was none, and the final outcome
Typical systems
Screen and browser session recorders, agent run logs and traces, RPA exception queues, ticket reopen and rework records
Typical history
As far back as the source kept failed runs; run logs and rework records are kept on different schedules, so ask for retention per source
Modality
Structured step and error records, error text and status codes, screen frames or DOM state where recorded
Delivery formats
Agreed per order; JSONL episodes, PNG frames or DOM snapshots at the error, plus failure-class and denominator tables
Preparation
Workers pseudonymized, per episode where agreed; customer data in error text and payloads replaced
Licensing
Permitted use agreed per dataset; worker consent and monitoring terms reviewed because the records show mistakes
Availability
Sourced to your spec from businesses that kept failed runs; the mix by failure class depends on the source; not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
failure_idstringPseudonymous ID for one failed attempt, linking its steps, error state and outcome.
source_typeenumHuman screen session, AI agent run, RPA job or a rework record tied back to a session.
actorobjectHuman role and tenure band, or agent and harness version, with the scope of the pseudonym.
task_refobjectTask family, the instruction as given and the end state that was intended.
error_stepobjectThe step where the wrong action or failed call happened, with its target or arguments.
error_surfaceobjectWhat the actor could see of the error: message text, status code, dialog or field highlight, or nothing at all.
failure_typeenumWrong target, stale state, validation reject, permission block, timeout or other, mapped from the raw error.
detectionobjectThe first step at which the actor noticed, the cue, the lag in steps and time, and where the label came from.
damageobjectSide effects before detection, such as records saved or messages sent, and whether each was reversible.
recovery_stepsarrayCorrective actions in order, each typed as undo, re-read, retry, alternate route, redo or ask.
restore_pointobjectThe step at which the task was back in a known-good state and how that was verified.
resolutionenumRecovered and completed, abandoned, handed off, correctly stopped, or completed incorrectly and caught later.
unrecovered_reasonobjectFor abandoned or handed-off episodes, the recorded reason, who received the work and where the reason was written.
selection_basisobjectThe rule that picked this episode and the count of all attempts in the same task family and period.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "failure_id": "ft_5b20c7",
  "source_type": "human_screen_session",
  "actor": { "kind": "human", "role": "accounts_payable_clerk", "tenure_band": "1-3y", "pseudonym_scope": "per_episode" },
  "task_ref": { "family": "vendor_master.update_payment_terms",
                "instruction": "Change payment terms for vendor [VENDOR_ID] from net 30 to net 45.",
                "intended_end_state": { "vendor": "[VENDOR_ID]", "payment_terms": "NET45" } },
  "error_step": { "index": 7, "action": "click", "target": { "role": "row", "name": "[VENDOR_NAME_B]" },
                  "note": "opened the adjacent vendor in a list filtered to similar names" },
  "error_surface": { "type": "silent", "message": null, "status_code": null,
                     "visible_cue": "record header shows a different vendor ID than the request" },
  "failure_type": "wrong_target",
  "detection": { "step": 11, "lag_steps": 4, "lag_ms": 21400, "detected_by": "self",
                 "cue": "address on the record did not match the request", "label_source": "think_aloud" },
  "damage": { "writes_before_detection": 0, "unsaved_edits": 1, "reversible": true },
  "recovery_steps": [
    { "index": 12, "kind": "undo", "action": "cancel_edit" },
    { "index": 13, "kind": "re_read_source", "action": "reopen_request_and_copy_vendor_id" },
    { "index": 14, "kind": "alternate_route", "action": "search_by_vendor_id_not_name" },
    { "index": 15, "kind": "redo", "action": "edit_payment_terms_and_save" }
  ],
  "restore_point": { "step": 12, "state": "wrong vendor record unchanged", "verified_by": "audit_log_shows_no_save" },
  "resolution": "recovered_completed",
  "unrecovered_reason": null,
  "selection_basis": { "rule": "sessions_with_cancelled_edit_or_error_dialog", "sampling": "all_matching",
                       "population": { "period": "2024-Q2", "task_family_attempts": 1840, "selected": 131 } }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train recovery behavior

Start training examples at the detection step, so a model learns the undo, the re-read and the alternate route from a state clean runs never reach.

Train error detectors and monitors

States at the detection step, paired with clean states from the same task family, train a model to flag that a run has gone wrong.

Teach when to stop

Unrecovered episodes with a recorded reason show where handing off was the right move.

Build failure-injection evaluations

Real error states become starting points: place an agent after a rejected save and score whether it reaches the restore point.

Weight reliability metrics

Shares by failure class and a count of all attempts let an evaluation weight each failure type by its real frequency.

Use-case guides: Enterprise and computer-use agents, Private evaluation sets, Coding agents, Customer support agents

What makes this data valuable

Three positions marked

Error step, detection step and restore point labeled separately on every recovered episode.

Raw error kept

The system's own message, dialog text or status code stored beside the assigned failure class.

Silent failures present

Wrong-target and stale-state cases found through rework records, not only errors the system announced.

Reasons on unrecovered cases

Abandoned and handed-off episodes carry a reason written at the time, not added by an annotator.

A denominator

Counts of all attempts for the same task families and dates, so failure shares mean something.

Natural, not staged

Failures that happened in normal work, flagged apart from any induced for collection.

Agent run

Agent failure trajectories

This page covers failed task and recovery trajectories.Illustrative

What a success-only filter removes

Most trajectory sets are cleaned before anyone sees them, in three places. Collection instructions say to redo a botched run, a QA pass drops sessions that missed the goal, and agent logs are filtered to runs that passed their check. Each filter is sensible for imitation and each deletes something different: the redo removes the recovery, the QA pass removes the abandoned attempt, and the pass filter removes the failed call with its error text. The states that follow a mistake go with them. A failure set is selected the other way round, so its selection rule is part of the data.

Failure is too coarse a word to buy by. Five classes cover most of what business software produces. A wrong target is an action that worked on the wrong thing, such as the adjacent row or a similarly named customer, and the system reports nothing. Stale state is acting on a view that is no longer true: an API answers with a conflict, browser automation with a stale element reference. A validation reject is the system refusing the input, loudly and in its own words. A permission block is a missing right, where the correct recovery is usually to stop and route the work. A timeout is no answer in time, where the danger is a retry that submits twice.

Ask for the mix by share. A sample pulled from error logs leans toward validation rejects, because the system announces them and writes the message down. Wrong-target cases, and stale views the system did not catch, are thin in logs because nothing flags them. They surface later as rework: a reopened ticket, a reversing entry, a credit and rebill. Getting them takes a source whose rework records link back to the session. Ask too for the raw message, status code or exception type beside each class label, because source systems keep their own split. UiPath Orchestrator, for one, records a failed queue item as a business exception or an application exception.

The recovery point is the label that matters

A failed episode has three positions on its timeline, and a single failed flag hides all of them. The error step is where the wrong action was taken. The detection step is the first moment the worker showed they knew: a pause, a scroll back, a reopened source document. The restore point is where the task was back in a known-good state, with the edit cancelled or the duplicate deleted. The recovery point to ask for is the last two together: where the worker noticed, and where the task was whole again. Everything between error and detection is work built on a mistake, and some of it has side effects.

Detection is the hardest of the three to label and the most useful. For an error the system raises it is the same step. For a silent one it has to be inferred from behavior, taken from the worker's narration or set by a reviewer. With it you can mask the error step and the lag from an imitation loss while keeping the recovery, train a monitor on the state at detection, and compare an agent's detection lag with a person's on the same task family.

Unrecovered failures are data only when they carry a reason. An abandoned session with none looks the same as a break or a recorder crash. With a reason written at the time (no authority above the limit, so sent to a supervisor; upstream system down, so parked with a note; request out of policy, so declined) they become examples of stopping and handing off, which a set of completed runs cannot contain. Ask where each reason came from: a handoff note, a transfer field, an exception category or a later guess.

What to check before licensing

  • Check that failure records cannot be tied back to named employees or totaled per person. Ask whether pseudonyms are per episode or per worker.
  • Read the consent wording workers agreed to. It should say that mistakes and corrections are recorded and licensed, and counsel should check workplace monitoring rules for the region.
  • Ask how episodes were selected and get the denominator, all attempts in the same task families and period, to tell a full census from a hand-picked sample.
  • On the sample, find the error step, the detection step and the restore point yourself and compare them with the labels. Ask who set the detection step and from what evidence.
  • Ask for the raw error text or status code beside each failure class, and the rule that maps one to the other.
  • Count how many unrecovered episodes carry a reason, and whether it was written at the time or added later.
  • For agent run logs, ask which model and harness versions produced them and whether the source may license them, including customer data inside tool outputs.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Why would we train on failed trajectories at all?

Because recovery is a skill clean runs cannot show. You do not train a model to repeat the failed action. You mask it and keep what followed: how the worker noticed, what they undid and which route worked. Failed episodes also give verifiers and reward models their negative examples, and give evaluations realistic starting states.

Where do failure trajectories come from?

From the same sources as other trajectories, filtered for trouble. Screen and browser sessions contain cancelled edits and error dialogs. Agent and automation run logs contain failed tool calls, retries and exception queues. Rework records such as reopened tickets, reversing entries and QA rejections point back to sessions that looked fine at the time. Each source catches different failure types.

Which failure types can we ask for?

A workable set is wrong target, stale state, validation reject, permission block and timeout, plus an other class. Ask for a share of each, not a total, because a sample drawn from logged errors leans toward the failures a system announces, such as validation rejects. Silent classes such as wrong target usually need rework records to find. The mix depends on the source's systems, so a requested split is not guaranteed.

What is a recovery point and who labels it?

It is the step at which the worker first noticed the problem, paired with the step where the task was back in a good state. For errors the system raises, it is read from the log. For silent errors it is inferred from behavior, taken from the worker's narration or set by a reviewer. Ask which method was used and check a sample.

Are human and AI agent failures both included?

They can be, flagged apart by source type. Human sessions show slips such as the wrong row or a misread figure, and how an experienced worker gets back. Agent run logs show failures such as acting on a stale view, repeating a rejected call or sending a field the schema does not have. State the split you want. Agent logs also raise rights questions about the tool vendor's terms.

Could these records be used to judge individual employees?

They should not be, and the dataset should be prepared so they cannot. Failure records are close to performance data. Check that pseudonyms do not let errors be totaled per person, that consent covered the recording of mistakes, and that small teams do not make someone identifiable. Workplace monitoring rules vary by state and country, so have counsel review the program's region.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies