Policies
SoftStop enforces a deterministic pressure policy pack (no ML). Your app chooses actionType; the server applies cooldowns, caps, and stacking rules from JSON.
Load order
SOFTSTOP_POLICY_FILE/GOVERNOR_POLICY_FILE— path to any JSON fileSOFTSTOP_POLICY/GOVERNOR_POLICY— preset:default|strict|lenient|anon-aggressive- Built-in defaults (same as
policies/default.json)
bash
SOFTSTOP_POLICY=strict pnpm dev
SOFTSTOP_POLICY_FILE=./policies/lenient.json pnpm dev
curl -s http://localhost:3000/v1/policyPreset files live in the repo under policies/.
Do not invent per-touchpoint rules
Integrators map content → actionType (built-ins or policy-defined custom types). Tuning belongs in the policy JSON, not scattered if-statements in email/SMS/UI code.
Pages
- Default pack — numbers and presets
- Action types — how to label escalations