gate
Edition: community ragraf_gate
P3-1 (§3.2). Gate decision on a tool call: allow / ask / deny
Parameters
| Name | Type | Default |
|---|---|---|
| payload | dict | str | None | None |
| mode | str | None | None |
Call example
ragraf -p config/ragraf.yaml query gate
Angle brackets mark a required parameter; defaults may be omitted.
What it returns
counters, hook, note
When it refuses
An empty result is exit code 0 with found=false, not an error. Code 3 is returned only when the operation cannot run right now: for example slice when capability is not full. The reason is always named in the note field.