This guide shows a minimal posture policy with work and quarantine states.
version: "1.2.0"
name: Team Posture Policy
extends: clawdstrike:defaultposture:
initial: work
states:
work:
capabilities: [file_access, file_write, egress, mcp_tool]
budgets:
file_writes: 100
egress_calls: 50
mcp_tool_calls: 200
quarantine:
capabilities: []
budgets: {}posture:
transitions:
- { from: "*", to: quarantine, on: critical_violation }
- { from: "*", to: quarantine, on: budget_exhausted }clawdstrike policy validate ./policy.yaml
clawdstrike policy lint ./policy.yaml --strictclawdstrike policy simulate ./policy.yaml ./events.jsonl --json --track-postureUse posture.state, posture.budgets, and posture.transition in output entries to verify expected behavior.
examples/policies/minimal-posture.yamlexamples/policies/enterprise-posture.yaml