Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneesstack72

Relationships

#1767 serve: vault audit repository not wired up — audit trail always empty

Opened by stack72 · 8/21/2026· Shipped 8/21/2026

Problem

The vault audit trail is never recorded in serve mode because VaultService.setAuditRepository() is never called during serve startup. The auditRepository is null so recordAuditEntry returns early on line 284 of src/domain/vaults/vault_service.ts.

#1745 correctly added recordAuditEntry calls for put, delete, and annotate operations, but those calls are no-ops in serve because the audit repository isn't wired up.

Root Cause

setAuditRepository is only called in the CLI vault command path (in VaultServiceFactory.create at src/domain/vaults/vault_service.ts:189), which runs when CLI commands directly use the vault service. The serve instance creates its own VaultService but doesn't set the audit repository.

Fix

During serve startup, after creating the vault service, call vaultService.setAuditRepository(new JsonlVaultAuditRepository(repoDir)) to enable audit recording for all vault operations through serve.

Impact

All vault operations through serve (put, delete, annotate, get) produce no audit trail entries. The dashboard's vault audit trail panel is always empty.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

8/21/2026, 11:19:01 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack728/21/2026, 9:50:45 PM

Sign in to post a ripple.