ARMARA Course 05

Course 05 / Module 05

Prove what your agent actually did

Find a bounded run in trajectory storage, inspect its steps and outcomes, and export genuine JSONL evidence.

Level
Intermediate
Time
16 minutes
Commands
4
Finish
Two verified trajectory rows

Video / coming soon

The written lesson is complete now.

Use the graph directory identifier

The first check was empty. One bounded message on the disposable course agent then produced two genuine success rows.

Use PowerShell for file line counts.
01

Treat a trajectory as instrumentation

A trajectory records internal steps from a run. It is evidence of execution, not a route, schedule, or future plan.

02

Reuse the same identifier rule

Trajectory and graph commands both expect the directory name under the ArmaraOS agents tree.

03

List newest rows first

Run in your terminal
armaraos trajectory list <AGENT> --limit 5 --json
Real trajectory list with two success rows and search with one match
Fresh live output / two rows / one runtime match

One recorded row has zero steps. The other has three. Keep both facts visible.

04

Remember the 500-row window

List is capped at 500. Search and analyze scan at most 500. An older missing run can simply be beyond that window.

05

Search across recorded content

Run in your terminal
armaraos trajectory search <AGENT> "ainl" --scan-limit 20

Search is case-insensitive across identifiers, session values, hashes, outcomes, and step text.

06

Read the aggregate before judging

Run in your terminal
armaraos trajectory analyze <AGENT>
Real trajectory analysis with two successes and JSONL export line count
Fresh live output / three successful steps / two exported lines
07

Export one object per line

Run in your terminal
armaraos trajectory export <AGENT> -o steps.jsonl

JSONL is not one surrounding array. Each line is a complete JSON object.

08

Use time bounds when the store grows

--since-recorded-at <UNIX_SECONDS> is available on list, search, analyze, and export.

Check it / reconcile rows and steps

Explain two, three, and two.

The verified state has two trajectories, three total steps, and two JSONL lines. Point to each source.

Safety note

Trajectory step text can include prompts and tool details. Read and redact the JSONL before sharing it.

Troubleshooting for this sitting
What you seeLikely causeWhat to do
List is emptyNo runtime trajectory was recorded.Run one bounded task, then recheck.
A row has zero stepsOutcome exists without step detail.Do not call it a failure.
Old run is missingIt is outside the 500-row window.Export regularly and use time filters.
Parser rejects the export as an arrayThe format is JSONL.Parse one line at a time.

Back to Module 5.4

Next / Module 5.6

Dry-run, export, prune, in that order, always

Lesson ready