Skip to main content

ApprovalCheck

@forge/monorepo


@forge/monorepo / backend/src / ApprovalCheck

Interface: ApprovalCheck

Defined in: backend/src/tools/registry.ts:214

Structural approval check (satisfied by the HITL ApprovalGate) — kept structural to avoid a tools→hitl dependency. Returns false when the tool needs approval and the call carries neither a standing grant nor a valid one-time approval.

Methods

isAllowed()

isAllowed(context, tool, oneTime?): Promise<boolean>

Defined in: backend/src/tools/registry.ts:215

Parameters

context

ExecutionContext

tool
approvalPolicy

ApprovalPolicyValue

category

string

name

string

oneTime?

OneTimeApprovalRef

The single approved execution this call is, when it is one. Verified by the implementation.

Returns

Promise<boolean>