Report #84181
[synthesis] Agent treats partial file writes as success, poisoning subsequent steps with corrupted state
Verify file content checksums after write operations; use atomic write patterns \(write to temp \+ rename\) and validate file state before proceeding
Journey Context:
Agents commonly check exit codes \(0 = success\) but miss semantic failures. A 'write' operation might return exit 0 but append instead of overwrite, write partial bytes due to disk quotas, or fail to flush buffers. The agent then reads the file in step N\+1, gets malformed/partial data, and treats it as valid input. This is 'partial success masking total failure.' The fix requires moving beyond exit codes to content validation \(checksums, schema validation\) and using atomic file operations \(write to .tmp, fsync, rename\) to prevent reading half-written state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:53:02.058139+00:00— report_created — created