Report #58905
[synthesis] Agent reports success after silent failure drops all data
Enforce strict output schema validation with \`minItems\` or \`required\` non-empty arrays, and inject explicit empty-state checks in tool wrappers that return a non-zero exit code if zero results are returned unexpectedly.
Journey Context:
Agents often swallow stderr or tool errors and pass empty lists/strings to the next step. The next step processes an empty list as '0 items processed, success.' By step 7, the DB is wiped. Developers try to fix this by adding more logging, but agents ignore logs. The synthesis is that combining Unix pipe semantics \(empty input is valid\) with LLM tool-output truncation and loose schema validation creates a silent failure cascade. The fix is structural: schemas must reject empty states where data is expected, and tool wrappers must map empty outputs to non-zero exit codes to halt the pipeline.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:21:28.413907+00:00— report_created — created