silent failure monitoring reported success without running the command
Key points
- A shared job wrapper returned success without executing the requested command, producing both a start record and a successful end record. (Source: our own measurement, 2026-09-23)
- A misplaced
--became the program name passed toexec; without explicit failure handling, Perl exited silently withrc=0. (Source: our own measurement, 2026-09-23) - Negative tests verified timeout enforcement, missing-command failure, and rejection of overlapping runs after the correction. (Source: our own measurement, 2026-09-23)
- Follow-up checks found jobs with execution logs that neither health aggregation nor notifications discovered. Recording a run did not establish monitoring coverage. (Source: our own measurement, 2026-09-24)
The wrapper reported a successful job that never started
The shared wrapper was supposed to make scheduled jobs easier to trust. It added a time limit, protection against overlapping runs, and start and end records containing the return code. Those controls addressed failures already found in the automation surrounding small software releases and publishing.
The first draft introduced a different failure: it could report a successful run without executing the command at all.
The recorded test invoked the wrapper as follows:
guard.sh t2 3 /bin/sleep 60
The requested sleep lasted sixty seconds, while the wrapper's time limit was three seconds. The measured result was an immediate return: zero elapsed seconds and rc=0. The log contained START followed by END rc=0.
Those records looked complete. They showed that the wrapper had entered its logging path and reached its end. They did not show that the requested work had begun.
Silent failure detection is a check for work that failed or never ran despite an apparently successful status.
This case made the distinction concrete. The visible success belonged to the process reporting the result. The command whose execution mattered had never run.
The failure was found during negative testing. The record discusses distribution to thirty-three jobs as a possible consequence if that testing had been skipped; it does not establish that the defective draft was deployed to those jobs. Keeping that boundary explicit matters: the observed incident was the wrapper test, while the broader outage was the risk exposed by it.
Source: our own measurement, 2026-09-23.
Why the success records were persuasive
The wrapper matched a recently adopted operational rule: a job counted as having run when its execution log contained an end record and a zero return code. The defective draft produced exactly that evidence.
The problem was therefore larger than an incorrect exit status. The proposed definition of a healthy run depended on output from the same component that was failing. A rule intended to identify operational success would have accepted the wrapper's failure as success.
The earlier incidents explain why the wrapper existed. A release quality gate had run against one source tree while the packager assembled a different clone. Passing tests could not establish the condition of the shipped files because the tested and packaged trees differed.
Another guard existed in code but depended on an environment variable that no caller set. Its presence established that somebody had implemented a conditional branch. It did not establish that the branch protected any actual run.
The wrapper repeated that gap between an implementation and its effect. It contained timeout machinery, locking, and execution records. Yet those features did not prove that the intended command was reached.
The useful question was narrower than whether the logs looked healthy: what event did each record actually establish? Here, END rc=0 established the status returned through the wrapper's execution path. Treating it as proof of completed work added a claim that the evidence did not support.
The argument separator became the executable
The first draft used this command:
perl -e 'alarm shift; exec @ARGV' "$T" -- "$@"
The failure came from the arguments passed to the Perl program. After alarm shift consumed the timeout value, -- remained at the front of the arguments passed to exec. It was treated as the program name.
That execution attempt failed. The Perl expression had no or die branch to make the failed execution explicit, and the process exited silently with a zero return code.
This explains both parts of the observed result. The sleep did not run, so the wrapper returned immediately. The failed execution did not become a nonzero process result, so the wrapper logged success.
The start and end records were not missing or visibly malformed. They faithfully surrounded an execution path that had failed to launch its target and then returned success. Adding more confidence to those same records would not have established that the underlying command ran.
The corrected expression was:
perl -e 'alarm shift; exec @ARGV or die "exec failed: $!\n"' "$T" "$@"
The change removed the stray argument and added explicit handling for an unsuccessful exec. These addressed distinct parts of the defect: which program was requested, and what happened when execution failed.
The accompanying tests then supplied evidence that the wrapper could distinguish outcomes. A sixty-second sleep under a three-second limit was terminated with rc=142, recorded as SIGALRM. A nonexistent command returned rc=2 and placed exec failed in the log. An overlapping second invocation produced SKIP already-running.
Those results established the behavior of the tested failure paths. They did not establish that every wrapped job produced its intended artifact, or that every resulting log reached a monitoring consumer.
Source: our own measurement, 2026-09-23.
Fixing execution still left a monitoring gap
A follow-up check exposed another limit in the original audit. The audit had evaluated time limits, overlap protection, and start/end records with return codes. Jobs could satisfy all of those requirements and still remain outside the health report.
The recorded example involved three publishing jobs. They already implemented the execution controls themselves, but their logs went outside the directory consumed by monitoring. The health aggregator found no matching records, and the notification mechanism found none either.
The missing question was who would notice the result.
This was not merely a request for additional logging. Logs already existed. The missing connection was between those logs and the systems expected to read them. The record identifies that distinction as central to an earlier hang: execution had been recorded without attracting attention.
Verification therefore extended beyond inspecting the job's output file. After adding the shared wrapper, the measured healthy-job count in the aggregation tool increased from six to seven. That change demonstrated that the run had entered the aggregate view.
The same follow-up also found an opposite problem. Pointing scheduler standard output into the aggregation directory created empty files that were counted as jobs with no execution. Four such files were classified as dead jobs, adding noise around genuine failures.
The resulting rule was specific: feed the aggregator the wrapper's logs. Merely placing more files in the watched directory did not establish better coverage.
These findings separated execution reliability from monitoring visibility. A job could avoid hanging and record its result while remaining absent from health checks. Conversely, a watched directory could contain files that produced misleading health entries.
Source: our own measurement, 2026-09-24.
Lessons: verify the command, its result, and its observer
The first reproducible check is to give the wrapper work that cannot finish within its configured limit. In this case, the sleep test exposed an impossible combination: immediate completion and success. That result directed attention to execution itself rather than to the job's business logic.
Next, give the wrapper a nonexistent command. The corrected implementation returned failure and preserved an explicit execution error in the log. This tests whether inability to start work remains visible instead of becoming a successful wrapper exit.
Test overlap protection separately. A timeout test does not demonstrate that a concurrent invocation is rejected, just as a missing-command test does not demonstrate timeout enforcement. The recorded checks exercised those outcomes independently.
Then run a real job in one place and inspect its actual result before extending the wrapper to other jobs. The source record recommends checking artifacts such as a generated file, a published URL, or the deployed result. A zero return code establishes that a process returned zero; it does not independently establish those outcomes.
Finally, check the observer. Confirm that the aggregation tool discovers the run and that the log sits within the notification mechanism's input. Inspect what the aggregator counts, including empty files that can create false alarms.
The same discipline applies when writing the completion report. State what the check established and what remained outside its scope. The corrected wrapper tests established timeout behavior, execution-error reporting, and overlap rejection. Artifact inspection establishes whether the intended work appeared. Aggregation checks establish whether the recorded run is visible to monitoring.
The defect became observable when the test demanded behavior that a success record alone could not supply. That is the check to reproduce: ask the monitoring machinery to distinguish a real run from work that never started, then verify that its result reaches the place where someone will notice it.
Root Cause is written while shipping small software products — you can see them at TechAthletes.