Documentation
¶
Overview ¶
Package escalation names the subject of the escalation gate instance of a tool call (docs/design/ untrusted-content-and-amount-caps.md, section 5.3), for the packages of this module that must tell it from the call itself: the agent engine, which asks the instance, and the approvals intake, which must not decide it under the tool's own gate. It is internal so that no new exported name is needed.
Index ¶
Constants ¶
const Suffix = "#taint"
Suffix turns a call's ID into the subject of its escalation instance. A real tool-use ID never carries it: a model turn with a '#' in an ID is refused (agent.ErrToolUseIDInvalid).
Variables ¶
This section is empty.
Functions ¶
func Base ¶
Base is the call a gate subject belongs to, and whether the subject is an escalation instance. Only the subject of a tool call is one: a plan flow node's key ("node:..." in agent.planNodePrefix) may carry any characters, '#' included (the plan builder does not refuse it), so a node named foo#taint is a node, not the escalation instance of a node foo. Flows have no taint rule yet.
Types ¶
This section is empty.