V Vant Docs

Audit & Compliance

NEW in v0.8.6: See Audit Ledger below for new append-only ledger.

Logging and compliance for Vant.

Audit Logging

Audit logging for compliance - two real surfaces, both always on.

Enable Audit

Nothing to flip: logging is on by default (verified against lib/audit.js).

const audit = require('./lib/audit');
audit.setOutput(fs.createWriteStream('.log/my-audit.log'));

Events Logged

What you can actually hook (verified signatures on both surfaces):

Event Where
audit:info / audit:warn / audit:error event system, every logger line
island:hydrate / stego:snapshot / raid:sync ledger actions (logHydrate/logStego/logSync)
webhook:registered / webhook:<eventType> inbound webhook intake (lib/webhooks.js)

Compliance

Meet compliance requirements with audit logs.

Data Retention

Data Retention Location
Audit ledger 10,000 entries cap - newest kept, overflow archived .audit.json under the models path
Brain history Indefinite GitHub
Rate limits Reset per window In-memory counters

Access Control

Who may approve what is governed by the succession trust levels (high / medium / low / none - see Trust & Succession), not by a role table. Agent autonomy scales with trust; none waits for instructions before anything acts.

Audit Trail

All changes tracked via Git:

# View history
git log

# View specific file
git log models/private/vant/identity.md

Reporting

Generate reports from audit data.

Generate Report

Create audit reports.

# Generate markdown report to stdout
vant audit

# Write to a file
vant audit --out AUDIT.md

# JSON output for tooling
vant audit --json

Report Contents

SIEM Integration

Connect to external monitoring systems.

Export Logs

Export audit logs for analysis.

# JSON format
vant audit --json

# Markdown format
vant audit

Integration Example

Example integration code.

# Splunk
[indexer]
type = syslog
host = splunk.example.com
port = 514

Compliance Checklist


Audit Ledger (v0.8.6+)

Append-only, tamper-proof ledger for system actions

What It Logs

Action Description
island:hydrate Island hydrated
stego:snapshot Stego image captured
raid:sync Sync to provider

Usage

const vant = require('./lib/vant');
const audit = vant.audit;

// Log action
audit.log('island:hydrate', { island: 'github' });

// Log specific types
audit.logHydrate('github');
audit.logStego('manifest.png');
audit.logSync('github');

// Get ledger
const entries = audit.getLedger();

// Health check
const health = audit.healthCheck();
// { status: 'ok', entries: 50 }

CLI

vant validate --ledger  # Show entries
vant validate --check   # Full check

Hash Chain

Each entry’s hash covers the full serialized entry (timestamp, action, data):

Integration

Used automatically in:

const vant = require('./lib/vant');
const audit = vant.audit;

// After hydration
audit.logHydrate('github');

// After sync: lib/sync already logs in pushAll()