Documentation
¶
Overview ¶
Package invariants checks the invariants in AGENTS.md that can be read off the sources: deterministic workflow code (1), declared tool effects (3) and no secrets in the tree (6). The behavioural invariants (no double effects, resume) are checked by the crash tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientImports ¶
ClientImports lists the non-test files of clientPackages under root that import internal/runtime.
func Commands ¶
Commands reports, in the non-test Go files under root, every way to start a command outside the sandbox: exec.Command, exec.CommandContext or an exec.Cmd literal outside commandStarters, os.StartProcess anywhere, and sandbox.FullAccess outside fullAccessUsers.
func ToolEffects ¶
ToolEffects reports every tools.Def literal under dir that does not set Effect explicitly. The zero value means Real, which is safe, but a tool's effect is a decision the author has to make and write down.
func Workflows ¶
Workflows reports every place in the non-test Go files under dir (the workflow packages) that would make a workflow behave differently when it is replayed: imports outside the allow list, clock calls, goroutines, select, and ranging over a map (or over maps.Keys/Values/All) whose order Go randomises.
Types ¶
This section is empty.