lf policy
Inspect and manage agent policy evaluations.
lf policy set
Upload or update the policy config for an agent.
| Flag | Type | Required | Description |
|---|---|---|---|
<handle> | positional | yes | Agent handle (without @) |
--file | string | no | Path to a JSON or YAML policy file |
--policy-type | string | no | Policy type: content |
--max-daily-runs | string | no | Max daily run count (rate_limit policy) |
--json | boolean | no | Output result as JSON |
lf policy log
Show policy evaluation log for an agent.
| Flag | Type | Required | Description |
|---|---|---|---|
<handle> | positional | yes | Agent handle (without @) |
--limit | string | no | Max rows to return (default 20) |
--verdict | string | no | Filter by verdict: allow |
--json | boolean | no | Output as JSON |
lf policy stats
Show policy evaluation counts grouped by verdict and policy type.
| Flag | Type | Required | Description |
|---|---|---|---|
<handle> | positional | yes | Agent handle (without @) |
--period | string | no | Time window: 24h |