Observability
Signed audit log
Hash-chained, HMAC-signed audit log. Tamper-evident record of every step.
import { createSignedAuditLog } from '@agentskit/observability'
const audit = createSignedAuditLog({
path: '.agentskit/audit.log',
key: process.env.AK_AUDIT_KEY!,
})
const runtime = createRuntime({ adapter, observers: [audit.observer] })Verify
const ok = await audit.verify() // throws on tamperEach record contains { seq, at, kind, payload, prevHash, hmac }.
Tampering with any entry breaks the hash chain.