R350 Find out why a command failed before trying again

On by default

When a command fails, read its whole error, and then the logs, files and state that the error points to, before you run it again or change anything to get past it.

Reason

Without the error and what it points to, a retry or a fix is a guess, and a cause given for the failure has no grounds (Art. VII §1(1)). Diagnosing a failure is the agent’s own to do (Art. V §2(5)); reading the machine changes nothing on it.

Verification

The whole error is every error message and failure report the run printed, each in full with the lines around it, not only the last lines of the output; the lines of steps that passed are not part of it. What it points to is the log files, configuration, files and process or service state that the error names or the failing step uses. Running the command again only to see more of its output, with a verbose flag or on a single case, is reading. This rule asks for reading only and allows no change that another provision does not allow.

Violated when, after a command fails, an agent runs it again or changes code, configuration or state to get past the failure without having read the whole error, or without having read what the error points to.

Provisions of the constitution it cites

Relations

Parent
R15 Verification
Requires
none
Conflicts with
none

Metadata

ID
350
Revision
1
Kind
rule
Status
trial
Slug
find-out-why-a-command-failed
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh