Documentation Index
Fetch the complete documentation index at: https://parmanasystems.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
@parmanasystems/audit-db is the PostgreSQL persistence layer for Parmana Systems governance decisions, verification records, and security events. It provides the durable audit trail required for regulatory compliance.
Install
pg client.
Setup
Recording decisions
Persist anExecutionAttestation immediately after execution:
signature field in the stored row is the cryptographic proof that the record has not been modified since execution. Any modification to the stored decision data would cause signature verification to fail.
Querying
Recording verification events
Audit verification attempts as well as execution decisions:Migrations
The package ships migrations that create the required tables. Run them at startup:Schema
The primarydecisions table stores:
| Column | Type | Description |
|---|---|---|
execution_id | TEXT PRIMARY KEY | SHA-256 execution identity |
policy_id | TEXT | Policy identifier |
policy_version | TEXT | Policy version |
decision_action | TEXT | "approve" or "reject" |
requires_override | BOOLEAN | Escalation required |
execution_state | TEXT | "completed" / "blocked" / "pending_override" |
signals_hash | TEXT | SHA-256 of canonical input signals |
signature | TEXT | Ed25519 attestation signature |
runtime_hash | TEXT | Runtime binary state hash |
runtime_version | TEXT | Parmana Systems runtime version |
created_at | TIMESTAMPTZ | Insertion timestamp |
The
signature column is the integrity anchor. Always include it when exporting decisions for compliance review — it is what allows independent verification.