function bridgeCommentaryToAudit(db, onWriteError?): CommentaryAuditSink;
Defined in: packages/server/src/commentary/audit-bridge.ts:72
Stable
Build a commentary sink that appends each sanitization decision to the audit log. Writes serialise through appendAudit so concurrent decisions never race on seq; a failed write is isolated from the wire - onWriteError (default: a console warning) runs instead of throwing.
Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/server / commentary / bridgeCommentaryToAudit
Function: bridgeCommentaryToAudit()
Defined in: packages/server/src/commentary/audit-bridge.ts:72
StableBuild a commentary sink that appends each sanitization decision to the audit log. Writes serialise through
appendAuditso concurrent decisions never race onseq; a failed write is isolated from the wire -onWriteError(default: a console warning) runs instead of throwing.Parameters
dbAuditDbundefinedonWriteErrordecision,error) =>voiddefaultOnWriteErrorReturns
CommentaryAuditSink