Skip to content

Function: evaluateNodeDenyNetworkGuard() ​

ts
function evaluateNodeDenyNetworkGuard(
   node, 
   input, 
   _ctx
): PolicyGuardEvaluationResult;

Defined in: node/src/executors/node-guard-executors.ts:70

Evaluates a NodeDenyNetworkNode (type: 'node:deny-network') policy guard against proposed tool effects.

Blocks any ToolEffect representing outbound network access and reports the violating effects.

Parameters ​

ParameterTypeDescription
nodeNodeDenyNetworkNodePassive deny-network policy guard AST node.
inputPolicyGuardEvaluationInputTool name, proposed effects, and active capability leases.
_ctxStepExecutionContextActive step execution context.

Returns ​

PolicyGuardEvaluationResult

Guard evaluation result and any violated network effects.

Released under the MIT License.