Skip to content

Interface: ScopedHumanTargetNode<TResponse> ​

Defined in: ast/scoped-human-target-node.ts:12

Passive AST node representing a role-aliased bidirectional human decision target with a bound output schema (human.withName(alias).output(schema)).

Used by P.lane.maxCostUsd and structured human approval gates where the human channel must validate its response against a specific Zod schema outputSchema.

Type Parameters ​

Type ParameterDefault typeDescription
TResponseunknownValidated human decision response type.

Properties ​

PropertyModifierTypeDescriptionDefined in
aliasreadonlystringRole alias displayed in decision requests and audit logs.ast/scoped-human-target-node.ts:18
humanreadonlyHumanNode<"bidirectional">Underlying bidirectional HumanNode authority.ast/scoped-human-target-node.ts:16
outputSchemareadonlyZodType<TResponse>Zod schema validating the human's decision response.ast/scoped-human-target-node.ts:20
typereadonly"harness:scoped-human"Discriminant identifying a scoped human target AST node.ast/scoped-human-target-node.ts:14

Released under the MIT License.