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

authority

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Command authority shows authority-as-governed-state: a principal's delegated limit is a state variable, so the compliance invariant is scoped to whoever is acting, "exposure must not exceed THIS desk's limit," and one machine-checked policy covers every possible limit at once. The limit is seeded at run start from the identity/authority the deployment binds (agent.WithIdentity), and every governed action's leaf commits to who acted, on whose behalf, under what authority, and the resulting state.

No LLM or network: the "agent" here just calls the governed buy tool in a loop, so the example runs offline and exercises the governance + identity + audit machinery. Swap the loop for a real agent and the guarantees are identical.

Jump to

Keyboard shortcuts

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