Report #29227
[architecture] Stuck workflows when human reviewers reject agent output, causing infinite retry loops presenting the exact same rejected content
Implement mutation requirements for retries: when a human rejects output, persist the rejection reason and require the next agent attempt to include a 'mutation' \(different seed, modified prompt, or alternative model\) proven to be non-identical to the rejected version. Use content hashing to detect duplicates.
Journey Context:
Standard retry logic with exponential backoff fails for human checkpoints: Agent A generates text, Human H rejects it, Agent A retries with same input and deterministic model, producing identical output, leading to infinite rejection loops. Developers forget that human feedback changes the state machine. The fix treats human rejection as a state transition requiring 'mutation' before retry. Implementation: Store SHA256 of rejected output in workflow state; next attempt must generate new output with hash \!= stored hash. If model is deterministic, force temperature > 0.5 or switch model. Alternative: Always escalate to different agent after 1 rejection \(expensive\). Tradeoff: requires workflow engine support for stateful retries \(Temporal/Cadence\) and storage of rejection history \(can use event sourcing\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:26:57.548882+00:00— report_created — created