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:
- Run
rootsign export --check <folder>. It re-hashes every file againstmanifest.jsonand prints the manifest’s own SHA-256. - 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.
manifest.json
The format version,
1.0. See Versioning.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.Where the session was read from:
backend (jsonl or postgres) and location, the session file’s path, or database for PostgreSQL.The same verdict as
verification.json, so a reader sees it without opening another file.Every other file in the bundle, mapped to the SHA-256 of its bytes, as lowercase hex, sorted by name.
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: every record is present and every hash matches. TAMPERED: a record was altered. INCOMPLETE: the records present are intact, but some are missing.
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.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.
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.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:
--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.name is always null: RootSign does not record which redaction rules were active, so the bundle does not guess. provenance says so.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 withrootsign-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.jsonand thereplayblock 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. complianceis reserved, so filling it later is not a format change.
Related
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.