truss action

Manage action records — log agent actions, inspect records, detect anomalies, and track chain of custody.

Subcommands

truss action list

List action records.

OptionDescription
-l, --limit <n>Page size (default: 50)
-p, --page <n>Page number (default: 1)
-m, --mandate-id <id>Filter by mandate ID
--from <iso-date>Filter records from this date onward (ISO 8601)
--jsonOutput as JSON
truss action list
truss action list -l 100
truss action list -m mnd_abc123
truss action list --from 2025-01-01T00:00:00Z
truss action list --json

truss action get <action-id>

Get action details — ID, type, agent, mandate, chain position, within_mandate flag, timestamp, HalluCase anomaly flags, and anomaly score.

OptionDescription
--jsonOutput as JSON
truss action get act_abc123
truss action get act_abc123 --json

truss action anomalies

List anomalous actions detected by HalluCase.

OptionDescription
-l, --limit <n>Page size (default: 50)
--jsonOutput as JSON
truss action anomalies
truss action anomalies -l 20
truss action anomalies --json

truss action record

Record an action against a mandate. Provide options inline or pipe full JSON via --stdin.

OptionDescription
--mandate-idMandate ID the action belongs to
--action-typeType of action (e.g. read, write, query, execute)
--input-hashSHA-256 hash of the action input
--output-hashSHA-256 hash of the action output
--timestampISO 8601 timestamp (default: now)
--stdinPipe full JSON payload via stdin
truss action record \
  --mandate-id mnd_abc123 \
  --action-type query \
  --input-hash abcdef... \
  --output-hash 123456...

echo '{
  "mandate_id": "mnd_abc123",
  "action_type": "write",
  "input_hash": "abcdef...",
  "output_hash": "123456..."
}' | truss action record --stdin