AllowOutcome<T>
Interface: AllowOutcome<T>
Defined in: src/core/agent/middleware/types.ts:86
Let the call through — optionally with a replacement for what the chain carries forward.
allow() passes the value along untouched. allow(value, why) replaces
it and says why; the why is not decoration, it is the row the ledger
shows a person asking "who changed this, and what did it look like
before?".
Type Parameters
T
T
Properties
from?
readonlyoptionalfrom?:Readonly<Record<string,"person"|"default"|"app">>
Defined in: src/core/agent/middleware/types.ts:100
WHERE the rewritten arguments' values came from, per argument name — the
middleware's own declaration (allow(args, why, { from })), recorded on
the decision row. Read by the answer's standing for an argument a tool's
askOrAssume rules (honesty layer 2): a rewrite with no declared origin,
or with 'default', reads as ASSUMED; 'person' and 'app' do not.
Declared, never inferred. Present only when the middleware declared it.
kind
readonlykind:"allow"
Defined in: src/core/agent/middleware/types.ts:87
value?
readonlyoptionalvalue?:T
Defined in: src/core/agent/middleware/types.ts:89
The replacement value. Absent = pass through unchanged.
why?
readonlyoptionalwhy?:string
Defined in: src/core/agent/middleware/types.ts:91
Why the value changed. Present whenever value is.
