Exit codes
Status: stub. Day 3 deliverable.
The exit code contract is stable: scripts wired against wos today
will continue to interpret these the same way through every minor
release.
| Command | 0 | 1 | 2 |
|---|---|---|---|
wos lint | valid | errors present | usage / parse / I-O |
wos simulate | PASS | REJECT or ESCALATE_TO_HUMAN | could not decide |
wos deploy | committed | server-side reject | network / I-O |
Wiring into CI
# pre-commit: refuse a commit that introduces an invalid policy.
wos lint policy.yaml || exit 1
# regression test: simulate must PASS on the golden fixture.
wos simulate policy.yaml fixtures/golden.json --json > /tmp/got.json
diff -u fixtures/golden-decision.json /tmp/got.json