System

Audit

Every action in SOVEREIGN is recorded to a tamper-evident, hash-chained audit log. Verify integrity on-premise at any time.

Tamper-Evident Audit Chain

Each event is hashed (SHA-256) and chained to the previous event's hash. Any modification to a historical entry invalidates every subsequent hash, making tampering immediately detectable. The chain is stored locally on the same machine as the workbench — no data leaves your premises.

SHA-256 chainedOn-premise storageVerifiable offline

Verify the Chain

Run this command on the SOVEREIGN host to validate integrity.

bash — sovereign@workbench
$ sovereign audit verify --chain /var/lib/sovereign/audit.chain  \
  --since "$(date -u -d '24 hours ago' +%Y-%m-%dT%H:%M:%SZ)"

# ✓ Chain intact · 1,284 events verified · 0 tampered
# ✓ Latest hash: 7a3f…b9c2 matches stored head

Event Categories

Every action is recorded with one of the following event types.

Document Operations

document.uploadeddocument.deleteddocument.indexed

Queries & Retrieval

search.executedrag.queryrag.answered

Agent Activity

agent.startedagent.stepagent.completedagent.failed

Deliverables

deliverable.createddeliverable.exported

System

system.startupsystem.healthconfig.changed

Audit Entry Shape

Each entry in the chain contains these fields.

FieldTypeDescription
timestampISO 8601 UTCWhen the event occurred
eventstringDotted event identifier
actorstringUser or system that triggered it
resource_idstringID of the affected resource
hashsha256Content hash of the event payload
prev_hashsha256Hash of the previous entry
Note: The audit chain is append-only and replicated to local disk. For maximum assurance, mirror the chain file to a separate write-once storage system or WORM media on a regular cadence.