Skip to content

ApprovalOutcomeCallback

ApprovalOutcomeCallback = (outcome) => void

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:474

[[EXT-150]] — callback the GthAgentRunner invokes once per human-answered approval, after it has recorded the answer, so a surface can render what HAPPENED rather than what was asked for.

Separate from ToolApprovalCallback because it is a separate question asked at a separate moment, the same reason AttackHaltCallback is its own seam: the approval callback is consulted before anything is recorded and cannot see the outcome of its own answer.

Wiring it is optional and its absence is safe in the only direction that matters — a surface that never wires it learns nothing, which is where every surface already was. It may not be used to decide anything: by the time it fires the decision is made and the record is written.

ApprovalOutcome

void