SynapCores v1.12.0 — Encrypt the audit ledger at rest, and prove it was never touched
A compliance reviewer looking at an autonomous agent asks three questions:
- What did it do?
- Can you prove that record wasn't altered?
- Was it ever readable at rest?
SynapCores already answered the first two — every agent run is recorded automatically and hash-chained, so an edit is detectable. v1.12.0 answers the third, and hardens the second.
Encrypt the ledger
Immutable audit tables can now be encrypted at rest with AES-256-GCM:
CREATE IMMUTABLE TABLE agent_decisions (
decision_id INTEGER PRIMARY KEY,
ts TIMESTAMP,
file TEXT,
action TEXT,
rationale TEXT
) WITH (ENCRYPTION='AES256GCM');
Both copies are encrypted — the row-engine table that serves your SELECTs and the
append-only block chain behind VERIFY. Grep the data directory and your plaintext isn't
there. The master key comes from the environment (AIDB_IMMUTABLE_MASTER_KEY), never the
disk and never the binary.
And it's fail-closed: a missing key, a wrong or omitted ENCRYPTION algorithm, or a
CREATE IMMUTABLE ... AS SELECT are rejected — never silently downgraded to a plaintext
table. You cannot accidentally ship an unencrypted audit log.
Prove it wasn't touched — for real
VERIFY TABLE and VERIFY RECORD now walk the actual chain — per-record checksum,
per-block checksum and merkle root, and every block-to-block link — and cross-check the
chained record count against what's in storage:
VERIFY TABLE agent_decisions;
-- is_valid=true | chain verified: N records, per-record lineage anchored (tamper-evident)
Edit a single byte on disk and is_valid flips to false. And the standing nightly control
is one query:
SELECT COUNT(*) FROM _system_agent_runs WHERE verified = false; -- expect 0
(WHERE on the system tables is now honored in the projection path, so that filter returns
the right answer instead of every row.)