R67 Count what is left after a cleanup

On by default

After cleaning up processes or other resources, count what is left, and report the cleanup as done only when the count is zero.

Reason

A claim that a cleanup is done needs grounds someone else can check (Art. VII §1(1)); having run the commands that should clean up is not one, since they can miss things. The count is a check, and it has to catch a leftover when there is one (Art. VII §2).

Verification

The count matches what was meant to be cleaned up and nothing else: a pattern that also matches the command running the count, for example the shell running a process search, is not a count. A zero shows only that moment; where what was cleaned up can come back, such as a process a supervisor restarts or a child started late, the agent counts again after a while.

Violated when an agent reports a cleanup as done without a count of what is left, with a count above zero, or, where what was cleaned up can come back, without counting again after a while.

Provisions of the constitution it cites

Relations

Parent
R15 Verification
Requires
none
Conflicts with
none

Metadata

ID
67
Revision
3
Kind
rule
Status
trial
Slug
cleanup-counts-leftovers
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh