Reports & Status JSON
Squeal messages are designed for both agents and humans to parse reliably without guessing.
Push message anatomy
Section titled “Push message anatomy”SQUEAL · 1 check changed at revision 12Revision 12 (changed src/auth.ts): 3 of the 5 test files your edits affect have not run.
FAIL tests/auth.test.ts > login > expired token PASS -> FAIL, seen by Squeal's run at revision 12 expected 401, received 500 at src/auth.ts:42:7 its imports include files changed here since this session started: src/auth.ts
Full output: squeal why 'tests/auth.test.ts > login > expired token'Reading header lines
Section titled “Reading header lines”Revision N (changed ...): names files modified since your last report (includinggit-ignored <path>when a watched test reads an ignored file). These are edits made in the worktree since your last report — not necessarily the root cause of a failure.Known failures: 0; 40 of 43 test files are current: appears on session registration and at Stop so you always know how much of the suite is verified at the current bytes.- Late / caught-up notices: if affected results take more than twice the usual wait, Squeal sends one
SQUEAL · results for your edits are late at revision Nnotice, followed by oneSQUEAL · caught up at revision Monce everything completes with no new failure. - Many recoveries: up to five recovered checks are listed individually; above five, Squeal summarizes counts and shows the shorter of remaining failures or grouped recoveries. New failures are always listed in full.
- Dependency install notices: Squeal notes when no dependencies are installed (
No dependencies are installed in this worktree) beside failures, and notes when results immediately follow a lockfile install.
Machine-readable Status JSON
Section titled “Machine-readable Status JSON”Both squeal status --json <path>... and squeal status --json --wait <ms> <path>... write a versioned JSON snapshot to stdout (human lines go to stderr).
Always gate automation on selection.code or selection.result — never on stderr text or on a file’s state alone (current means up-to-date, not passing).
Exit codes & selection.result
Section titled “Exit codes & selection.result”selection.code |
selection.result |
Meaning |
|---|---|---|
0 |
"pass" |
Every selected test file is current and passes, and no named path is unmatched or uncovered. |
1 |
"fail" |
A selected test file (or global setup, or --check run) has a known failure at the current revision. |
3 |
"none" |
No verdict yet; read selection.reason to see why. |
2 |
(no JSON) | Usage error. |
selection.reason values (when result is "none")
Section titled “selection.reason values (when result is "none")”Checked in priority order:
no-daemon— no daemon validates this worktree (runsqueal start).lapsed— daemon heartbeat lapsed or a daemon upgrade handoff is under way.on-hold— worktree validation is held viasqueal hold.paused— only slow files were selected and they wait for a pause orsqueal run --slow.focused— a--checksubset passed, which is not a verdict for the whole test file.unmatched/not-run— no named path selects a Squeal-covered test file.unsynced— the daemon had not yet stored its pass over your latest edits before the deadline.unlisted— the runner has not yet listed test files for the current revision.pending— selected test files are still queued or running.not-current— a selected file is stale or unknown.not-run— one named path is a test file Squeal does not run (run it with the project’s own command).unmatched— one named path selected nothing while other paths passed.
Example passing payload
Section titled “Example passing payload”{ "selection": { "outcome": "settled", "code": 0, "result": "pass", "complete": true, "testFiles": [ { "project": "", "path": "test/auth/login.test.ts", "state": "current", "verdict": "pass" } ], "paths": [ { "path": "test/auth/login.test.ts", "kind": "test-file", "selects": 1 } ], "verdict": { "revision": 187, "testFiles": 1, "unlisted": false } }}