Skip to main content

Interface: ActionAuditSink

Defined in: packages/agentos/src/safety/runtime/GovernedTool.ts:64

Where a host writes its audit records.

Methods​

begin()​

begin(record): Promise<void>

Defined in: packages/agentos/src/safety/runtime/GovernedTool.ts:66

Written before the action runs. A throw refuses the action.

Parameters​

record​

ActionAuditRecord

Returns​

Promise<void>


finish()​

finish(recordId, end): Promise<void>

Defined in: packages/agentos/src/safety/runtime/GovernedTool.ts:72

Written when it has ended. A throw is written as an event; the action's result stands. reversalRef is the key the library minted for this call and handed to the tool (GovernedActionIds), present only when the tool said it filed its reversal record under that key; never a value the tool returned.

Parameters​

recordId​

string

end​
code?​

string

endedAt​

string

outcome​

ActionOutcome

reversalRef?​

string

Returns​

Promise<void>