Model Every Retry Before You Automate
Automation is reviewable when scripts expose guarded states, bounded retries, explicit response policy, measured timing, and staged evidence collection before an action reaches production systems.
Automation should represent a workflow as a guarded state graph. The packet’s Prodtest example chains dependent checks, aborts after a failed prerequisite, and records graph state and verbose test output. Its responsible-automation guidance adds a second requirement: a failure posture must be explicit when integrity or access-control configuration is uncertain. A script that returns zero cannot prove readiness if dependencies, exceptions, or policy state remain unknown. Store state, guard, evidence identifier, timestamp, and failure reason so another engineer can reconstruct why the workflow advanced, stopped, degraded, or stayed untested.
Retries and instrumentation change what the system can claim. The packet separates intermittent completion from apparent recovery, latency from jitter, and low-cost API logging from CPU-intensive binary instrumentation. Those distinctions support a staged detector: validate prerequisites, run within a deadline, classify the outcome, escalate only across a named evidence gap, and preserve the original record. The result is not complete visibility. It is bounded automation with explicit unknown states, predictable degradation, and regression tests that keep known failure paths represented after the implementation changes.