1
Copy the default policy
signatures map.2
Edit thresholds, mode, and per-signature overrides
Open
~/.inferwall/policies/my-policy.yaml and modify the values you want to change:3
Point InferenceWall at your policy
Drop the file into
~/.inferwall/policies/ and InferenceWall will auto-discover it on the next startup. To explicitly select a specific file, set IW_POLICY_PATH:IW_POLICY_PATH is useful in CI/CD pipelines or container deployments where you want deterministic policy selection rather than auto-discovery.Policy YAML fields
Top-level fields
Thresholds
Enforcement modes
Per-signature overrides
Override individual signatures within thesignatures map:
Override precedence
When multiple sources could set a signature’s action, InferenceWall resolves them in this order (highest wins):- Per-signature override —
signatures.<ID>.actionin the policy file - Global policy mode — the top-level
modefield - Signature default action —
tuning.default_actionin the signature YAML
Environment variable
.yaml files in ~/.inferwall/policies/.
Auto-discovery
Drop any.yaml file into ~/.inferwall/policies/ and InferenceWall will pick it up on the next startup. Use this when managing multiple policy profiles (e.g., strict.yaml, permissive.yaml) and switching between them by setting IW_POLICY_PATH.
Further reading
Policy concepts
How InferenceWall resolves policies, applies overrides, and manages the policy lifecycle.
Scoring concepts
The anomaly scoring model: confidence weighting, diminishing corroboration, and threshold math.