taint

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package taint stops a reference to a note from reaching a tool that has an effect (control M3).

Input: the name of a tool and its raw arguments, after the schema check. Output: nil, or the gateway's tainted_sink error (internal/rpcerr).

A "sink" is a tool whose call changes something outside the gateway. The agent holds note references ($note_N) instead of partner text; a reference in the arguments of a sink means the agent is passing partner-controlled text toward an effect, so the call is refused. Values from edi.extract_note are closed values and are not references, so they pass.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSink

func CheckSink(tool string, args json.RawMessage) error

CheckSink returns tainted_sink when tool is a sink and any string in args, at any depth and including object keys, holds something that looks like a note reference. For any other tool it does nothing.

func IsSink

func IsSink(tool string) bool

IsSink reports whether the tool has an effect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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