Skip to main content
rootsign export writes one session as a folder of files: JSON documents a program can check, and reports a person can read. This page describes each file and field, for anyone building tooling that reads bundles. Export an evidence bundle covers making and checking one.
evidence-<session_id>
manifest.json
verification.json
timeline.json
redaction.json
sync-receipt.json
report.md
report.html
All JSON files are UTF-8, indented with two spaces, and end with a newline.

How a bundle is anchored

manifest.json holds the SHA-256 of every other file in the bundle, computed over the file’s exact bytes. The manifest cannot list its own hash, so rootsign export prints it instead, and you record it somewhere outside the bundle. To check a bundle you received:
  1. Run rootsign export --check <folder>. It re-hashes every file against manifest.json and prints the manifest’s own SHA-256.
  2. Compare that SHA-256 with the one recorded at export. If they differ, the bundle is not the one that was exported, whatever the file checks say: someone who edits a file and also updates its hash in the manifest passes the file checks.
Each export has its own manifest hash, because the manifest records when it was generated.

manifest.json

string
The format version, 1.0. See Versioning.
string
The RootSign that wrote the bundle, such as rootsign 0.3.1.
string
When the bundle was written, ISO 8601 with a timezone.
string
The session’s UUID. The folder is named evidence-<session_id>.
object
The agent that recorded the session. From a JSONL file it holds only agent_id. From PostgreSQL it also holds name, owner, environment, risk_tier, framework, model_version and regulatory_categories. When the source records no agent, it holds a detail string saying so.
object
Where the session was read from: backend (jsonl or postgres) and location, the session file’s path, or database for PostgreSQL.
VALID | TAMPERED | INCOMPLETE
The same verdict as verification.json, so a reader sees it without opening another file.
object
Every other file in the bundle, mapped to the SHA-256 of its bytes, as lowercase hex, sorted by name.
object
Reserved, and empty. It exists so that a later mapping of sessions to regulations can be added without a new bundle version.

verification.json

The result of verifying the session’s hash chain, with one entry per action record.
VALID | TAMPERED | INCOMPLETE
VALID: every record is present and every hash matches. TAMPERED: a record was altered. INCOMPLETE: the records present are intact, but some are missing.
boolean
true only for VALID.
string
One line, as rootsign verify prints it.
integer
The number of action records checked.
integer | null
The sequence number of the first altered or missing record.
array
Missing sequence numbers, as inclusive [start, end] pairs.
string | null
Why the chain failed.
object
How the chain was checked: algorithm (sha256), canonical_spec (ADR-001, the design record that fixes what each hash covers) and a one-sentence note.
array
One entry per action record, in sequence order:
object
Present only when the bundle carries a sync receipt. A summary of the latest upload attempt; the full history is in sync-receipt.json. Holds attempts, latest_attempt_id, latest_disposition, finished_at, endpoint, spool_file_sha256, record_count, halted_at_sequence, observed_and_rejected and not_attempted.

timeline.json

The session as it happened, in three parts: session, previews and events.
object
session_id, agent_id, objective, user_id, status (running, completed or failed), start_time, end_time, and the counts action_count, decision_count and approval_count.
object
Whether stored content is included:
array
Every event in time order, with the session’s opening first and its close last. Each has a type and a timestamp.
An action that a person rejected:
With --redact-previews, six fields are removed from every event: input_preview, output_preview, context_presented, reasoning_summary, inputs_summary and alternatives_considered. Hashes, IDs, timings and statuses stay.
alternatives_considered was added to the withheld fields after RootSign 0.3.1. In 0.3.1 and earlier, --redact-previews kept it.

redaction.json

Where redaction happened in the stored payloads.
string
The value that replaces redacted data, [REDACTED].
object
name is always null: RootSign does not record which redaction rules were active, so the bundle does not guess. provenance says so.
object
actions_with_redactions and redacted_fields, across the session.
array
One entry per action that has at least one redacted value: sequence_number, action_id, input_paths and output_paths. A path names one field, with dots for keys and brackets for list positions: args[0] is the first positional argument, kwargs.phone the phone keyword argument, result.contact.email a field inside the returned value.

sync-receipt.json

Present when the session was recorded to the spool and uploaded with rootsign-admin sync. It is the receipt sync writes, copied unchanged: session_id, and attempts, one entry per upload attempt, oldest first. The receipt’s design is in ADR-015.

report.md and report.html

The same facts as the JSON documents, written for a person: the verdict first, then the session, the chain verification, the timeline, the redaction summary and the list of files, ending with how to check the bundle. report.html is a single file with its styles inline and no scripts, so it opens the same from an email attachment, a file share or an offline machine. Programs should read the JSON documents instead.

Versioning

bundle_version is 1.0. The fields on this page are fixed for that version.
  • Adding a file or an optional field keeps 1.0. sync-receipt.json and the replay block were added this way: a bundle without a sync receipt is byte-for-byte what it was before they existed.
  • Renaming or removing a field changes bundle_version.
  • compliance is reserved, so filling it later is not a format change.
Tools that read bundles should ignore fields they do not know.

Export an evidence bundle

Make a bundle, record its hash, and check one you receive.

rootsign export

Every option and error of the export command.