How Should a Crew Handle an Image That Fails Visual Review?

Suppose a crew prepares a campaign image and a human reviewer rejects it: the requested mug color changed, but so did the book beside it. I am considering how to model that rejection without turning every failed review into another unrestricted generation task. This is a design question, not a report of a running integration.

My proposed flow is: candidate awaiting review, structured rejection, bounded retry, then pause if the attempt budget is exhausted. A rejection would record the artifact ID, failed requirement, protected detail that changed, and whether another attempt is appropriate. Approval would apply to that exact artifact, not its prompt or filename.

The candidate could be created manually in Grok Image 2.0 and handed back as a file. That step would remain outside the crew until a supported integration is verified; I am not assuming a website API or official CrewAI connector.

For a retry, the task would retain the original reference and editing brief, include the specific rejection reason, and require fresh human review. A missing review, timeout, or exhausted budget should leave the asset unapproved. Changing the brief would require an explicit decision rather than silently widening what is allowed.

For a CrewAI implementation, would you keep this review-and-retry boundary in a Flow with persisted state, or make a separate review task return a structured decision to the controller? I am especially interested in how you prevent resume logic from treating an old approval as approval of a new candidate.

I’d keep it in a Flow with persisted state and treat the review as a structured decision the Flow consumes. Store the artifact ID (or a content hash) alongside the approval, and on resume only accept an approval whose ID matches the current candidate. That way an old approval can never carry over to a new image. Keeping the attempt counter in the same state also makes the bounded-retry pause easy to enforce.

I think I’d keep the approval state in the Flow itself, not inside the review agent.

The part that worries me a bit is what happens when a workflow resumes after a failed attempt. If the image changes but the old approval is still sitting in the state somewhere, that could get messy pretty quickly.

Maybe each generated image should have its own ID and content hash, and the approval should only be valid for that exact version. Any retry would automatically need a new review, even if the prompt barely changed.

I’m not entirely sure a separate review task would make this safer on its own. It probably comes down to how strictly the Flow checks the artifact version before moving forward.