PendingApproval
@forge/monorepo / backend/src / PendingApproval
Type Alias: PendingApproval
PendingApproval =
object
Defined in: backend/src/hitl/index.ts:43
The pending approval stores the exact normalized tool name and input. Resumption executes the stored input — never a model-regenerated version.
Properties
consumedAt?
readonlyoptionalconsumedAt?:string
Defined in: backend/src/hitl/index.ts:65
When the single execution this approval authorizes was claimed.
This is where allow-once gets its "once". A grant would have been the easy mechanism and the
wrong one — a grant is standing by definition, so issuing one for a one-time decision would
silently broaden the authority the human actually gave. The interaction carries its own
at-most-once counter instead, claimed atomically by the store, so a resumed run executes the
approved call exactly once and a second attempt finds nothing left to claim.
decidedAt?
readonlyoptionaldecidedAt?:string
Defined in: backend/src/hitl/index.ts:54
decision?
readonlyoptionaldecision?:ApprovalDecision
Defined in: backend/src/hitl/index.ts:55
estimatedCostMinorUnits?
readonlyoptionalestimatedCostMinorUnits?:number
Defined in: backend/src/hitl/index.ts:51
expiresAt
readonlyexpiresAt:string
Defined in: backend/src/hitl/index.ts:52
id
readonlyid:InteractionId
Defined in: backend/src/hitl/index.ts:44
idempotencyKey
readonlyidempotencyKey:string
Defined in: backend/src/hitl/index.ts:53
normalizedInput
readonlynormalizedInput:unknown
Defined in: backend/src/hitl/index.ts:48
riskCategory
readonlyriskCategory:string
Defined in: backend/src/hitl/index.ts:49
runId
readonlyrunId:RunId
Defined in: backend/src/hitl/index.ts:46
summary
readonlysummary:string
Defined in: backend/src/hitl/index.ts:50
tenantId
readonlytenantId:TenantId
Defined in: backend/src/hitl/index.ts:45
toolName
readonlytoolName:string
Defined in: backend/src/hitl/index.ts:47