Skip to main content

Delegation gate

The pre-tool gate for every host.

┌────────────────────────────────────────────────────────────┐
│ INPUT LAYER │
│ ┌────────────────────────────────────────────────────┐ │
│ │ a tool call │ │
│ └──────────────────────────┬─────────────────────────┘ │
└──────────────────────────────┼─────────────────────────────┘
v
┌────────────┼───────────────────────────────────────────────┐
│ PROCESSING LAYER │
│ ┌────────────────────────────────────────────────────┐ │
│ │ constitution, then the spawn plan │ │
│ └──────────────────────────┬─────────────────────────┘ │
└──────────────────────────────┼─────────────────────────────┘
v
┌──────────────────────────────┼─────────────────────────────┐
│ OUTPUT LAYER v │
│ ┌────────────────────────────────────────────────────┐ │
│ │ allow, or deny │ │
│ └────────────────────────────────────────────────────┘ │
└────────────────────────────────────────────────────────────┘

Hosts call evaluatePreToolGate through src/integrations/hooks/delegation-gate-runtime.cjs. Codex 11, 29, 69, and 70 live in src/nucleus/delegation-gate.ts. A spawn with no plan follows the host temperament.

stamped · 0xray 4.1.0