Gate Reference
Complete reference for all gate types, their behavior, and resolution.Shell alias gates
Resolution cascade: heuristic (project markers) → config (gump.toml) → inline (bash: gate).
compile
| Marker | Command |
|---|---|
go.mod | go build ./... |
package.json | npm run build |
Cargo.toml | cargo build |
test
| Marker | Command |
|---|---|
go.mod | go test ./... |
package.json | npm test |
Cargo.toml | cargo test |
lint
| Marker | Command |
|---|---|
go.mod | golangci-lint run |
package.json | npm run lint |
Cargo.toml | cargo clippy |
coverage: N
Runs tests with coverage and checks against threshold N. Behavior: optional. Skipped if tooling not available.Structural gates
schema
Validates split output: JSON array, each item hasname (string) and description (string), files optional array of strings.
touched: “glob”
At least one file matching the glob was modified. Glob matches on basename. Uses Go’sfilepath.Match.
untouched: “glob”
No file matching the glob was modified. The inverse oftouched.
tests_found
The test runner finds and recognizes tests. Different fromtest — doesn’t care if tests pass, only that they exist.
Custom gates
bash: “command”
Exit 0 = pass. Stderr captured as error context.Workflow validator gates
validate: path/to/workflow
Invokes a workflow withtype: validate. The workflow executes its own GET → RUN → GATE cycle and returns a bool. Inputs are provided inline:
{gate.review.comments} on retry.