The exit statuses of a headless program, one table for every program (commons headless 0002-headless-governanceFR-009). A run's own verdicts are 0 to 4 (the statuses of a tool that reports: Ok, Findings, Usage, Environment, and Pending, which is kept apart from a failure); a program that cannot start at all uses the range of sysexits.h (64 and up), which a launcher, a service manager and a shell already know; a signal is 128 plus its number.
Sources reconciled here: ergonex returned 0 to 3; erga's launcher gave its startup failures 4 to 11; stolos returned 0 or 1 and never made pending a status. The run's verdicts keep ergonex's numbers (a script that tests $? -eq 1 for findings keeps working), the launcher's failures move above 63 so that 4 is free for Pending, and nothing below 64 but 0 to 4 is used.
What a run does with what is only pending: it is a success (ok, the default of an action), or its own status (pending, for a report that is asked to check).
The status of a run from what it found: findings where anything failed; else pending where the policy says pending is its own status and something is pending; else ok. A warning and a step for the person are not failures and never change the status.
The status of a run from what it found and the exit its command named (0008-exit-style-consentFR-001): no name, or ok, is the status of exitOfRun; pending is 4 unless something failed; findings, usage and environment are their own statuses, however little was found. The same status is what the JSON envelope carries, so that the code and the document agree.
What a run does with what is only pending: it is a success (ok, the default of an action), or its own status (pending, for a report that is asked to check).
The status of a run from what it found: findings where anything failed; else pending where the policy says pending is its own status and something is pending; else ok. A warning and a step for the person are not failures and never change the status.
The status of a run from what it found and the exit its command named (0008-exit-style-consentFR-001): no name, or ok, is the status of exitOfRun; pending is 4 unless something failed; findings, usage and environment are their own statuses, however little was found. The same status is what the JSON envelope carries, so that the code and the document agree.