From cb85a6566da9778d52a26df748688feb48317e21 Mon Sep 17 00:00:00 2001 From: Cian Brennan Date: Tue, 13 Oct 2026 21:55:39 +0530 Subject: [PATCH] docs: sketch the exit-code contract --- docs/exit-codes.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/exit-codes.md diff --git a/docs/exit-codes.md b/docs/exit-codes.md new file mode 100644 index 00000000..23657685 --- /dev/null +++ b/docs/exit-codes.md @@ -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"?