kosa8 docs

Commands / kosa8 evidence export

kosa8 evidence export

Write a signed evidence package for a sandbox, snapshot, approval or time range

Selects the audit entries that name a --sandbox, --snapshot or --approval (any of them), narrowed by --since/--until or --from/--to, or selects a time or sequence range on its own. The package carries every entry from the first selected to the last — the chain cannot be checked across a gap — plus the seals and signed approvals those entries name.

--out ending in .tar writes a tar; anything else, a directory. Signed with --signer-key (one line of base64 Ed25519, as kosa8 policy keygen writes), or this machine's own key, which attests "this machine exported it" rather than a person's signature.

Reads the local state directly, so it works with the daemon stopped.

Options

FlagTypeWhat it doesDefault
--ai-bomboolinclude a CycloneDX AI bill of materials for each sandbox, session and model in scope (on by default with --session or --model)—
--approvalstringArrayentries about this approval request id, full or 8+ characters (repeatable)[]
--fromint64only entries from this sequence number0
--modelstringArrayentries naming this model, by sha256:<digest> or local name (repeatable)[]
--no-complianceboolleave out the machine's doctor --compliance report—
-o, --outstringpackage path: .tar for a tar, else a directory (default kosa8-evidence-<time>.tar)—
--rangestringArrayentries about this cyber range: its bring-up and every trainee's scores and results (repeatable)[]
--sandboxstringArrayentries about this sandbox (repeatable)[]
--sessionstringArrayentries of this AI session: its model exchanges and MCP decisions (repeatable)[]
--signerstringprinted name of the signer, recorded in the manifest—
--signer-keystringsign with this Ed25519 key file instead of the machine's key—
--sincestringonly entries at or after this time (RFC 3339, or a date)—
--snapshotstringArrayentries about this snapshot, and its seal (repeatable)[]
--toint64only entries up to this sequence number0
--untilstringonly entries at or before this time—