R338 Arrange a fallback for stopping a lasting background process
Before you start a background process that keeps holding resources, arrange a fallback in case you do not stop it yourself: a mechanism that stops it on its own, such as a time limit or a watcher that reclaims it, or another agent or a person responsible for the work who knows it is running and how to stop it. Never leave it running where no one knows of it.
Reason
An agent can be closed or fail before it stops a process it started, and the process then keeps holding resources with no one aware of it (Art. II §6(1)). A fallback arranged before the start keeps such a process from being forgotten.
Verification
A background process that keeps holding resources outlives the command that started it and keeps using processor time, memory, a port, a lock or disk space, such as a server, a file watcher or a build run detached. A fallback is a mechanism that stops the process without the agent, or another agent or a person responsible for the work who has been told that it runs and how to stop it.
Violated when an agent starts such a process with no fallback in place when it starts.