Docs Index
audit service.md

Proof Card: Audit Service

Status: production Last verified: 2026-05-03 · PR 4A2 local verification

Claim

AuditService persists AI orchestration, governance, and data-access audit events to the audit_logs table with non-null tenant attribution. Before audit event details are stored, OutboundGovernanceService.validateAuditLogPayload() redacts or omits unsafe details so audit persistence does not become a PII exfiltration path.

Source

Tests

Live vs Fixture

Known Gaps

Verification

npm run typecheck
npx jest --config=jest.ci.config.cjs tests/unit/database/migrations/audit-logs-persistence.test.ts tests/unit/database/repositories/AuditLogRepository.auditPersistence.test.ts tests/unit/services/ai/AuditService.persistence.test.ts --runInBand
npm run audit-proof-cards