Check Groups & Moments
When fast vs. slow tiers aren’t granular enough, checks in squeal.config.json lets you split your suite and linters into named check groups, each bound to the exact lifecycle moment it should run.
Configuring checks
Section titled “Configuring checks”{ "checks": [ { "name": "unit", "runner": "vitest", "tests": ["test/unit/**"], "at": "edit" }, { "name": "integration", "runner": "vitest", "tests": ["test/integration/**"], "at": "stop", "after": ["unit"], "limits": { "maxParallel": 2, "maxWorkers": 2, "priority": "low" } }, { "name": "lint", "lint": true, "at": "commit", "description": "Runs configured lint tools on committed files." }, { "name": "contract", "runner": "vitest", "tests": ["test/contract/**"], "at": "manual", "description": "Validates invoice JSON against the billing API schema." } ]}Available moments (at)
Section titled “Available moments (at)”| Moment | When it runs | Stop behavior |
|---|---|---|
"edit" |
Automatically after each edit (optionally waiting quietMs). |
Fast feedback during work. |
"pause" |
When the agent pauses between turns. | Does not hold Stop. |
"stop" |
When the agent pauses, and Stop waits up to stop.slowWaitMs for it. |
Holds the agent on failure or timeout (up to stop.maxHolds per turn). |
"commit" |
When you commit; reports committed files once per commit without blocking the commit. | Does not hold Stop. |
"manual" |
Only on explicit squeal run <group> or squeal run --all. |
Never waited for at Stop; excluded from squeal code --base by default. |
Ownership and precedence
Section titled “Ownership and precedence”- A check group selects only among test files its runner already covers — it never adds excluded files.
- First match wins: the first group whose
runner,project, andtestsmatch a file owns that file. Put narrower groups above broader ones. - Files matched by no group keep default scheduling (after each edit, or the slow tier when marked slow).
- Names
testsandsloware reserved for the default groups.
Running check groups explicitly
Section titled “Running check groups explicitly”Inspect all configured groups and when each runs:
squeal checksRun an entire group now, regardless of its configured moment:
squeal run contract --wait 60000Run only the files in a group affected by specific paths (useful for "manual" or "pause" groups during development):
squeal run integration src/billing/invoice.ts --wait 60000Before opening a pull request, run a manual group’s narrow branch set against your base branch:
squeal run contract --base origin/main --waitLint groups
Section titled “Lint groups”A lint group specifies name, lint (true for all configured lint.tools, or an array of tool names), at ("pause", "stop", "commit", or "manual"), and an optional description.
After a commit, Squeal reports lint findings alongside committed test results (for example, Commit abc1234: 0 known failures; lint (oxlint): 2 findings in 7 of 7 files). Lint groups cover only the configured tools — run any additional repository lint scripts (such as ast-grep or custom scripts) yourself.