Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/server / / DeliveryCommentarySink

Interface: DeliveryCommentarySink ​

Defined in: packages/server/src/commentary/types.ts:100

Stable

Single audit + counter sink consumed by the sanitizer when a decision fires. Wiring is optional - operators that do not need audit telemetry can skip the sink and the sanitizer becomes a pure transform.

Extended by ​

Methods ​

onDecision() ​

ts
onDecision(decision): void;

Defined in: packages/server/src/commentary/types.ts:106

Called once per applied decision. Implementations should be non-throwing; the sanitizer wraps the call in try/catch so a misbehaving sink never blocks the wire.

Parameters ​

ParameterType
decisionDeliveryCommentaryDecision

Returns ​

void