policies (command)
List named run policy presets. Policies bundle common gform run flag combinations so you don't memorize them.
For preset philosophy and override rules, see policies.md.
list presets
bash
gform policies
gform pol # short alias
gform policies --jsonShows each preset with description, default repeat, and concurrency.
the four presets
| name | summary |
|---|---|
safe | 1× headless, --once, --skip-duplicates, --strict |
demo | 1× headed — soft walls can assist on TTY |
load | 10× headless, concurrency 5, skip-duplicates, continue-on-error |
watch | 1× headed + --keep-open |
bash
gform run <form> --policy safe
gform run <form> --policy demo
gform run <form> --policy load
gform run <form> --policy watchCLI overrides policy
Flags you pass on the command line always win:
bash
gform run <form> --policy load --repeat 3 --concurrency 2
gform run <form> --policy safe --headed # overrides headless defaultload policy needs pools
load assumes step pool: values exist so repeats produce distinct fingerprints. Without pools, --skip-duplicates skips most runs. Add pools via edit.md. See repeat.md.
inspect flags vs run policy
gform list --policy fetches live risk flags per form — unrelated to run presets. Don't confuse the two.
gotchas
safesets--strict— aborts on invisible captcha flag at preflight.demoandwatchare headed — need a display (or X forwarding) for the browser window.loaduses concurrency 5 by default —-Ccan go higher (up to the worker max of 16).- Unknown policy name errors at parse time.
related
- policies.md — full preset reference
- run.md — execute with
--policy - repeat.md — pools for load runs
- limitations.md — soft walls with demo/watch