passport run
sbo3l passport run --request-hash <HASH> [OPTIONS]Materialises a Passport capsule from a previously-recorded decision. The capsule embeds the policy snapshot, audit segment, and signed receipt — everything needed for offline replay.
Flags
| Flag | Default | Effect |
|---|---|---|
--request-hash <HEX> | required | which decision to capsule |
--out <FILE> | stdout | write the capsule JSON to a file |
--include-execution | on | include execution_ref + executor_evidence if present |
--pretty | off | indent the output (4-space); off for JCS canonical |
--quiet | off | suppress info messages on stderr |
The default output is JCS-canonical (sorted keys, no insignificant whitespace) so downstream consumers can hash for golden-file comparisons.
Exit codes
| Code | Meaning |
|---|---|
0 | OK — capsule emitted |
1 | IO error — daemon unreachable, request hash missing from local audit |
2 | semantic — request hash exists but decision is incomplete (no signed receipt yet) |
3 | nothing-to-do — --request-hash matches no event; nothing to emit |
Examples
Emit and verify in one shot
sbo3l passport run --request-hash 0xe044f1... | tee capsule.json | sbo3l passport verify --strictRound-trip across machines
# Producersbo3l passport run --request-hash 0xe044f1... --out capsule.jsonscp capsule.json reviewer@host:/tmp/
# Reviewersbo3l passport verify --strict --path /tmp/capsule.jsonCI golden-file diff
sbo3l passport run --request-hash 0xe044f1... > current.jsondiff <(jq -S . current.json) <(jq -S . tests/fixtures/golden-capsule.json)Pitfalls
- Stale audit DB — if the daemon and the audit DB live on different paths and you point
passport runat the wrong one, you’ll getrc=3(nothing-to-do).--configchooses an alternate config path; default reads~/.sbo3l/config.toml. --prettybreaks hashes — pretty-printed output is whitespace-different from JCS canonical. Don’t pipe a pretty capsule into a hash function expecting it to match a JCS hash.
See also
passport verify— the matching consumer.- Audit replay — what consumers do with the output.