Help us shape the future of Go! Take the 2026 Go Developer Survey

escalation

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

View Source
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

func Base(subject string) (string, bool)

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.

func ID

func ID(call string) string

ID is the subject of the escalation gate instance of the call.

func IsSubject

func IsSubject(subject string) bool

IsSubject reports whether subject is an escalation instance, not a call.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL