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

compliance

command
v0.2.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: 8 Imported by: 0

Documentation

Overview

Command compliance is a worked example of the accountability stack on a KYC-shaped flow:

  1. run independent compliance checks in PARALLEL, each a durable, independently provable step;
  2. reach a GOVERNED decision whose compliance rule ("do not approve a flagged case") is enforced by compensation, so the outcome is the same regardless of the order events arrive;
  3. PROVE the whole run offline against a signed tree head.

There is no LLM or network here: the checks are stubs standing in for external screening calls, so the example runs as-is and exercises the durability + governance + audit machinery. In a real agent the checks would be tool calls or sub-agents and the governed events would be applied through govern.AttestedEventTool (which journals each one); the guarantees are identical.

Jump to

Keyboard shortcuts

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