Threshold flags
--fail-above-waste-rate <n>fails with exit code3whenstructuralWasteRateis above the threshold--fail-above-waste-usd <n>fails with exit code3when confirmedwasteSpendUsdis above the threshold
Recommended pattern
If you also want the audit recorded remotely, use one command:xerg audit pushes before threshold checks run, so the audit still gets sent even if the command ultimately exits with code 3.
Examples
Waste rate gate:Exit codes
| Exit code | Meaning |
|---|---|
0 | Success |
1 | General failure |
2 | No supported local runtime data was found |
3 | A waste threshold was exceeded |