Request an invite
Docs menu

osmates trajectory capture

Write one recording as a trajectory entry, with its task and outcome.

Usage
osmates trajectory capture [<options>] <recording> --task <task> --outcome <outcome>

For a session you recorded yourself: a recording of a machine set to osmates vm set <machine> --record trajectory has every input and a tree after each step; one of another level gives an entry without events. --to names a new or empty folder, ./<recording> by default. Needs OSMates Pro.

Arguments

<recording>Required

The recording, such as rec-0123456789ab.

--task <task>Required

What the agent was asked to do.

--task-id <task-id>

A name for the task in the entry.

Default: task

--outcome <outcome>Required

How the task went.

One of passed, failed, error, cancelled.

--to <folder>

The folder to write.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/trajectory/capture.json

agentobject
agent.commandarray of stringsRequired
agent.elapsedintegerRequired
agent.errorsstringRequired
agent.exitCodeinteger
agent.outputstringRequired
agent.signalinteger
agent.timedOutbooleanRequired
endedstring
eventCountintegerRequired
eventsstringRequired
filesarray of objectsRequired
files[].bytesintegerRequired

At least 0.

files[].pathstringRequired
files[].sha256stringRequired
idstringRequired
machineobject
machine.egressstring

One of open, allowlist, blocked.

machine.enginestringRequired

One of virtualization, hypervisor.

machine.heightinteger
machine.idstring (uuid)Required
machine.namestringRequired
machine.settingstringRequired

One of off, on, video, trajectory.

machine.systemstringRequired

One of linux, macOS, windows, freeBSD.

machine.widthinteger
outcomeobjectRequired
outcome.detailstring
outcome.exitCodeinteger
outcome.judgestring

One of check, agent.

outcome.resultstringRequired

One of passed, failed, error, cancelled.

outcome.scorenumber
outcome.signalinteger
outcome.timedOutboolean
problemsarray of stringsRequired
recordingstring
schemaVersionstringRequired
sessionstring
startedstring
stepsintegerRequired
taskobjectRequired
task.idstringRequired
task.instructionstringRequired
task.machinestring
trajectorystringRequired
trajectoryVersionstringRequired
videosarray of objectsRequired
videos[].beganstring
videos[].durationinteger
videos[].filestringRequired
videos[].framesinteger
videos[].heightinteger
videos[].widthinteger

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page