autonomy policy eval¶
Evaluate an action against a local policy bundle (SIL harness use)
Synopsis¶
Loads a policy bundle from –bundle (directory or .tar.gz), evaluates –kind with –params against it, and exits 0 (allow) or 1 (deny).
Outputs one JSON line to stdout: {“outcome”:”allow”,”reason”:””,”kind”:”tool.echo”,”params”:{}}
Exit codes: 0=allow 1=deny 2=error
Usage¶
autonomy policy eval [flags]
Options¶
--bundle string path to policy bundle directory or .tar.gz (required)
--kind string action kind to evaluate, e.g. tool.echo (required)
--params string action params as JSON object (default: {}) (default "{}")
See also¶
autonomy policy— Manage policy bundles