PermissionRequest
Interface: PermissionRequest
Defined in: src/adapters/types.ts:325
Properties
actor
readonlyactor:string
Defined in: src/adapters/types.ts:327
capability
readonlycapability:"tool_call"|"memory_read"|"memory_write"|"external_net"|"user_data"
Defined in: src/adapters/types.ts:326
context?
readonlyoptionalcontext?:Readonly<Record<string,unknown>>
Defined in: src/adapters/types.ts:329
history?
readonlyoptionalhistory?: readonlyLLMMessage[]
Defined in: src/adapters/types.ts:342
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:352
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:347
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:336
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:362
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:328
