Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/exit-codes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Exit-code contract (sketch)

| Code | Meaning | Caller should |
|---|---|---|
| 0 | gate passed | ship it |
| 1 | gate failed on findings | look at the report |
| 2 | policy failed to parse | fix the config, do not retry |
| 3 | input unreadable | fix the path |

## Open questions

- Should 2 and 3 collapse into one, or stay apart for CI dashboards?
- Do we ever need a distinct code for "passed with warnings"?
Loading