PermissionRequest
Interface: PermissionRequest
Defined in: src/adapters/types.ts:611
Properties
actor
readonlyactor:string
Defined in: src/adapters/types.ts:618
capability
readonlycapability:PermissionCapability
Defined in: src/adapters/types.ts:617
What kind of operation is being asked about. See PermissionCapability for which values the framework actually sends and when.
context?
readonlyoptionalcontext?:Readonly<Record<string,unknown>>
Defined in: src/adapters/types.ts:627
history?
readonlyoptionalhistory?: readonlyLLMMessage[]
Defined in: src/adapters/types.ts:640
v2.12 — Full conversation history at check time. Lets policies inspect prior assistant content / tool results without maintaining parallel state via event subscription.
identity?
readonlyoptionalidentity?:object
Defined in: src/adapters/types.ts:650
v2.12 — Caller identity from agent.run({ identity }). Permission
predicates can role-check on identity.principal / identity.tenant.
conversationId
readonlyconversationId:string
principal?
readonlyoptionalprincipal?:string
tenant?
readonlyoptionaltenant?:string
iteration?
readonlyoptionaliteration?:number
Defined in: src/adapters/types.ts:645
v2.12 — Current ReAct iteration (1-based). Lets policies fire different rules per iteration without external counters.
sequence?
readonlyoptionalsequence?: readonlyToolCallEntry[]
Defined in: src/adapters/types.ts:634
v2.12 — Sequence of tool calls already dispatched this run, in
call order. EMPTY for non-tool_call capabilities. Sequence-aware
policies (forbidden chains, idempotency limits) read this to make
decisions that single-call governance cannot.
signal?
readonlyoptionalsignal?:AbortSignal
Defined in: src/adapters/types.ts:660
v2.12 — Optional abort signal propagated from agent.run({ env: { signal } }).
Async checkers (Redis lookups, hub-backed allowlists) MUST honor this
— when the agent run is cancelled, in-flight checks should abort.
target?
readonlyoptionaltarget?:string
Defined in: src/adapters/types.ts:626
What is being asked about, in the vocabulary of the capability:
'tool_call'and every ToolCapability — the TOOL NAME.'skill_read'—skill:<id>(9.11.0). Prefixed so a skill and a tool of the same name are two different subjects to a policy that lists ids.
