PolicyEvalHandlerContext
Defined in: src/policies/sdk/define-policy.ts:52
Context injected into definePolicy evaluate handlers.
Parallel to PolicyHandlerContext but protocol-agnostic - no Hono types. Extends the runtime-facing PolicyEvalContext with the fully-merged, typed config.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”TConfig
Section titled “TConfig”TConfig
Properties
Section titled “Properties”adapter?
Section titled “adapter?”
optionaladapter:GatewayAdapter
Defined in: src/core/protocol.ts:277
Runtime adapter (stores, waitUntil, etc.).
Inherited from
Section titled “Inherited from”config
Section titled “config”config:
TConfig
Defined in: src/policies/sdk/define-policy.ts:54
Fully merged config (defaults + user overrides).
debug:
DebugLogger
Defined in: src/core/protocol.ts:269
Debug logger pre-namespaced to stoma:policy:{name}. Always callable.
Inherited from
Section titled “Inherited from”requestId
Section titled “requestId”requestId:
string
Defined in: src/core/protocol.ts:273
Unique request ID for correlation.
Inherited from
Section titled “Inherited from”trace:
TraceReporter
Defined in: src/core/protocol.ts:271
Trace reporter - always callable, no-op when tracing is not active.
Inherited from
Section titled “Inherited from”traceId
Section titled “traceId”traceId:
string
Defined in: src/core/protocol.ts:275
W3C trace ID (32-hex).