Gates
Gates are checks that run after a step completes. They can be deterministic (your project’s build tools) or non-deterministic (a workflow validator backed by an agent).Declaring gates
Built-in gates
Shell aliases
These resolve automatically based on your project type, or you can override them ingump.toml.
Resolution cascade: heuristic (project markers) →
gump.toml → inline bash: gate.
compile and test are required — they fail if they can’t be resolved. lint and coverage are optional — skipped with a warning if the tool isn’t available.
Structural gates
Globs match on the basename, not the full path.
"*_test.*" matches pkg/auth/middleware_test.go.
Custom gates
Workflow validators
A workflow withtype: validate (output = bool) can be used as a gate. This is how agent-backed reviews work in v0.0.4:
{gate.review.comments} on retry. See Workflow Composition for details.
Combining gates
Gates are a list. Use as many as you need:Overriding detection
If auto-detection picks the wrong commands, override ingump.toml: