How We Taught AI to Check, and Fix, Its Own Product Photos
A step-by-step walk through the loop we built at ShopOS that judges AI-made catalogue images, repairs the bad ones, proves each fix, and learns from what reviewers still catch.
This is my plain-language version, written for someone new to the topic. The formal one was first published on the ShopOS research blog.
AI can make the photo. Who checks it?
Have you ever ordered a t-shirt online, and what arrived was not quite what the photo promised? The print was smaller, or the colour was a shade off.
Now flip it around. Imagine you are the brand, and it is the photo that is wrong. That is the problem I have been working on at ShopOS.
Here is what we do. A clothing brand sends us a few plain photos of a product. Our AI workflows turn them into catalogue images: the same garment on a model, in a few poses, ready for the brand’s website. We produce tens of thousands of these every month.
Generating an image with AI is easy. Generating a set of images a brand can actually use is hard, because everything has to be right at once: the garment, how it is constructed, the colour, the print, the accessories, the model’s face, the poses and the background.
Two words I will use a lot, so let me define them now:
- A SKU is one product. One specific tee in one colour is one SKU.
- A set is the group of images we generate for one SKU. In the examples here, that is five images.
Meet the cream tee
I will carry one real product through this whole article. It is a cream t-shirt. On the front it has three small embroidered characters. On the back it has one large illustration. The client sent us seven photos of it.
We generated five images. Four were fine. One took the large illustration from the back and printed it across the front chest.
Look at that third image again. The lighting is good and the model looks natural. If you had never seen the real tee, you would say it is a great photo.
It is also useless to the brand, because that tee does not exist. This is the whole problem in one picture: an image can look good and still be wrong.
And the tee is not a rare accident. These are the mistakes we see all the time:
- a back graphic appears on the front;
- a hoodie gains a pocket that does not exist;
- a ribbed waistband becomes a flat hem;
- a logo changes by one character;
- a print is partially removed;
- a sleeve or the whole garment gets longer or shorter;
- the trousers worn with a top change from one image to the next;
- the same model becomes a slightly different person;
- accessories change between views;
- a detail that was supposed to be fixed disappears because the new angle hides it.
These are not edge cases. This is how image models normally fail when you use them for catalogue work.
How humans were catching these
Before any of this was automated, people did the checking. A reviewer looked at the client’s photos, the generated set, the moodboard and the brand’s rules. When they spotted a defect, they marked it and sent it to an editor. The editor knew which photo to trust, made the correction and sent it back. The reviewer checked it again.
Watch the diagram below. A SKU enters on the left and moves through the pipeline. Notice the two places where it can get sent backwards.
What you just saw is an assembly line with people at the quality gates. It worked. But it had an obvious problem: every new customer meant more reviewers and more editors. The generation part scaled like software. The checking part scaled like a services business.
Our first instinct was simple: automate the reviewer. But a reviewer only finds problems. Someone still has to fix them and check the fix. So the unit of work we had to automate was bigger:
- look at the whole set;
- check it against a written checklist;
- pin each defect to one image and one area of that image;
- decide whether it can be fixed at all;
- pick the right picture to copy the truth from;
- make the edit;
- check again, and prove the fix is really there;
- save the result, try again, or give up;
- learn from the cases where humans disagreed.
Those nine steps form a loop. The code that runs the loop is what I will call a harness.
Think of the AI model as a very talented new intern. The harness is the office process around the intern: the checklist they follow, the notebook where everything gets written down, the rule that nothing ships without a second look, and the rule that says when to stop trying and ask for help. The model brings the judgment. The harness makes that judgment reliable.
In production, this system has increased our direct-delivery rate by roughly 20%. Direct delivery means the reviewer approves a set as it is and it goes straight to the client, with no retouching round in between. Just as important, it changed where our people spend their time. They do less spotting of common defects, and more of the work that needs a human: ambiguous cases, approving changes to the checklist, and the failures that image models still cannot repair.
The rest of this article builds that loop one step at a time, starting from zero.
Why not just ask a model “is this good?”
There are AI models that can look at images and answer in text. I will call one a vision model. So the obvious first idea is this: show the vision model the client’s photos and our five images, and ask “are these good?”
We tried a version of that. It fails, for three reasons.
First, “good” is not a useful test. You saw it with the tee. The bad image looks good. What the brand needs is “correct”, and correct is made of many small, boring facts.
Second, the model jumps to a conclusion. Our early evaluator wrote smooth sentences like “the garment is consistent across all images” on sets where a human had already written up a defect. The model could see the defect. It was skipping the comparison and going straight to an answer that sounded right.
It is like asking a friend “does my essay look fine?” They skim it and say yes. Ask them “check every date in this essay against this list” and you get a very different level of attention.
Third, nobody had written down what “correct” means. We started by reading our old QA comments, hoping to learn from them. They were less useful than we expected. Many were things like “fix this”, “CC” or “wrong”. The reviewers and editors sat in the same office and shared the context. A machine does not.
So the first real step was not tuning a model. It was writing down, clearly, how a set gets checked.
Step 1: Write down how to look
A rubric is a checklist for grading. If you have ever seen a teacher’s marking scheme (“2 marks for the formula, 3 marks for the working”), that is a rubric. Each line in ours is called a check.
To build it, we added structured labels for QA and asked reviewers how they actually check a set. Then we turned that unwritten habit into checks. Today there are eighteen checks that run on generated images, plus six more that check the client’s own photos before anything is generated.
Taken together, those checks are our evaluation policy: the written rules for what counts as correct.
A check says how to look, not what to feel
Here is the kind of check we stopped writing:
Garment length should match.
It sounds right. But it does not tell anyone how to check. It is “does my essay look fine?” all over again. Here is the better version:
Identify where the garment hem falls relative to a stable body landmark in the input. Record the landmark for each relevant output. Fail the check when the landmark materially differs.
In plain words: find where the bottom edge of the garment sits on the body in the client’s photo (mid-thigh, say). Write down where it sits in each generated image. If they differ in a way that matters, fail.
Another one. The check called construction_details does not say “construction should match”. It says: count the buttons and pockets in the client’s photo, state the number, then count them in each generated image.
See the difference? The first style asks for an opinion. The second gives a procedure, a small program for the eyes. Hold on to that idea. It shows up again and again.
The rubric has versions, like code
Nobody edits the rubric in place. Every edit creates a new version and archives the old one. Each rubric can also be exported as a markdown file, so an admin can hand a check to a language model along with our authoring guide, and paste the improved text back as a new version. Keep this in mind. It comes back in Step 6, when the system starts drafting its own improvements.
Step 2: A judge that checks the set twice
A checklist does nothing until someone runs it. The judge is a vision model that we hand the rubric and the images. For every check it answers pass, fail or na (not applicable).
The judge looks at the whole set at once, not one image at a time. And it asks two different questions, in two passes that run side by side on the same images.
Question one: do the images agree with each other?
This is the consistency pass. Same model, same garment, same accessories, same background, same colour grading and styling across all five images. Same paired garment too, which is the other piece of clothing the model wears with the product. It also checks that no pose is duplicated and that each output is a single photograph.
Question two: do the images match what the client sent?
This is the fidelity pass. The client’s photographs are the truth. Does the garment match? Its length? The colour, the print and pattern, the logo, the construction details? Is there anything extra that should not be there? Is the paired garment right? Are there rendering glitches?
Watch the two passes run in the diagram below. One compares the generated images with the client’s photos. The other compares the generated images with each other.
You just saw both passes finish with a list: which checks failed, on which images, and where on each image.
Our tee failed one check in each pass. The consistency pass failed garment_consistency, because one image showed a different front from the rest. The fidelity pass failed print_pattern_match, because that front does not match the client’s photos.
Why two passes? Because agreeing is not the same as being right
Imagine five students who copied from each other. All five answers match. All five can still be wrong. Only the answer key tells you.
One failure taught us this the hard way. On one SKU, all five generated images missed the print on a pair of shorts. The consistency pass looked only at the generated images, decided the majority must be right, and flagged the one detail that did match the client’s photos as an “extra graphic”. The loop then tried to “fix” the only correct thing in the set.
So the rule became:
When the client’s photographs are in context, the inputs arbitrate truth. An output that matches the inputs is never the deviant, however many siblings disagree with it.
The client’s photos are the answer key. The majority only gets a say when there are no client photos to compare against. And the first generated image is used to break ties, never to decide what is true.
Make it describe before it decides
Remember the judge that said “the garment is consistent across all images” when it was not? The biggest improvement to the judge came from fixing that. We did not change the model. We changed the shape of its answer.
The judge now has to fill in a field called observation before it is allowed to fill in verdict. And the prompt bans verdict words inside the observation:
Never write a verdict word (“matches”, “consistent”, “identical”) in the observation. A verdict of pass means you compared and found no difference, not that nothing caught your eye.
It is the “show your working” rule from school maths. Here is the working the judge wrote for the tee’s print check:
Input features three small separated characters on the front chest and a large grouped illustration on the back. Outputs 1, 2, 3, and 5 show correct placement. Output 4 applies the large back illustration onto the front chest.
No “looks consistent”. Just what is where. Once that is written down, the verdict is obvious.
We measured this on 100 production SKUs. The older rubric covered roughly 32% of what human reviewers complained about. The describe-first version covers roughly 39%.
The model did not get better eyesight. We just made it compare before it concluded.
A finding points at exactly one image
When a check fails, the judge also has to say which images need to be redone. That list is called affected[]. Each entry can carry a region: a box drawn around the problem area, written as fractions of the image’s width and height instead of pixels.
Say four images show sandals and one shows sneakers. The judge compares all five, but only the sneaker image goes on the list. For the tee, only image 4 was listed.
The harness then splits the result into findings. One finding is one check on one image. If a workspace (a brand’s account with us) has switched a check off, findings for that check are dropped here.
And if the judge could not pin a problem to a single image? That finding stays visible in the record, but the system is never allowed to edit because of it. I would rather the loop fail honestly than quietly turn a vague complaint into an edit.
Step 3: Decide if it can be fixed, then fix it
So far we have a list of findings. For the tee: image 4, wrong print on the front chest. Good. But finding a problem is only half the job. Somebody has to fix it.
You might think the judge should also say how to fix it. We keep those two jobs apart. The judge says what is wrong. A second model call, the planner, decides what to do about it.
For each image that needs work, the planner gets:
- the rubric text of the checks that failed;
- what the judge observed, and the region, for each finding;
- up to four labelled client photos;
- the image to be repaired;
- the first generated image, when a consistency check is involved.
It sends back an assessment, a yes or no on “is this fixable?” with a reason, and one small, precise edit per finding.
First question: is this even fixable?
Some images are beyond saving. If you ordered a pizza and got a burger, no amount of extra cheese fixes it. The planner’s prompt sets the bar like this:
Set fixable=false only when no targeted edit can rescue the image (fundamentally wrong garment, wrong product category, unusable composition).
In our offline tests, the planner declared roughly 30–45% of target images unfixable before any image model was called. A wrong bag. A wrong garment category. A photo on a model when the brand wanted a packshot, which is the product alone on a plain background.
The edits we make are inpaints: the image model repaints one small area and leaves the rest alone. An inpaint cannot fix a wrong bag. Spending three rounds trying only gets you an image that is wrong with more confidence.
So those findings are recorded as unfixable with the planner’s reason, no edit is sent, and the SKU goes to a human with the reason attached.
Second question: which picture holds the truth?
When a human editor fixes a print, they keep the client’s photo open next to the image. The image model needs the same thing: a reference image to copy from. Which reference is right depends on the kind of flaw.
Watch how three kinds of flaw get routed to three different references.
What you just saw, in words:
- A fidelity flaw (the image does not match the client’s product) gets one or two client photos. The planner picks the ones that show the affected area most clearly. A close-up beats a full-body shot.
- A consistency flaw (the image does not match its siblings) gets the first generated image.
- An artifact (a rendering glitch) gets no reference at all. There is nothing to copy.
Take the tee’s print finding. It is a fidelity flaw, so the truth lives in the client’s photos of the front.
The planner makes that choice. Then plain code enforces hard limits, whatever the planner said: never more than two references per edit, never more than three per call, no duplicates. References are shrunk so their longer side is 1024 pixels. The image being edited is always sent at full resolution.
We did not design those limits up front. We found them by testing: more references make the edit worse.
Here is what an edit request looks like
Our retouching team already had a tool for this. They tap a spot on an image, type what to change, and the same image model does it. That request format already works, so we copied it. The centre of the judge’s region stands in for the spot a human would have tapped.
Here is a real excerpt. It is from a different product, a green crop top that came out with three front ties where the client’s had two:
Reference image instructions:
The first attached image after this prompt is the original source image to edit.
- Reference image 1 (input photo 1) applies only to edit 1.
- Reference image 2 (input photo 4) applies only to edit 1.
For edit 1, the target area is centered at normalized coordinates x=0.500, y=0.370
(pixel px=559, py=518) ... Target the single visible instance nearest that point.
Remove the lowest front tie closure on the green printed crop top nearest that
point, leaving only two ties along the placket.
Keep unchanged: model body, pants, background.
The person in the output must remain the EXACT same individual as in the source
image ...Read the middle part again. It is one instruction. It names one target and one change, and says what must not change. Every extra instruction is one more thing the edit can get wrong.
Step 4: Prove the fix worked
The image model sends back a repaired image. I will call it a draft, because nothing is final yet. How do we know the draft is actually fixed?
Our first answer was simple. Run the judge again. If the original finding is gone, mark it fixed.
It broke on a wrong front print, the same kind of flaw as our tee. The image model returned a photo of the model’s back. The judge no longer reported the front print problem, because the front was not visible any more.
If you write code, you know this one. It is like fixing a failing test by deleting the test. The red mark goes away and nothing is actually fixed. Our checker was treating “I see no problem” as “the problem is solved”. We had built a machine for false passes: things marked as passing that should not be.
So now every fix has to be proven with evidence. We call the step crop-verify. Watch it zoom into the same spot on the reference and on the draft.
Here are the four steps you just watched:
- Locate. Find the problem area on the clearest reference and on the draft. Say whether the feature is visible in the draft at all.
- Crop. Cut out both areas with 6% padding. The cut-out area is called a bounding box, which is just a rectangle around the thing we care about. A box smaller than 24 pixels counts as a failed detection.
- Compare. Show the model only the two crops, with an instruction that fits the check: letter by letter for text, a count for construction.
- Decide in code. The result is
confirmed_fixed,still_failingorcannot_verify. Code works it out from the model’s answers to specific fields, never from a free-text sentence.
Notice cannot_verify. It is a proper outcome, not an error. If the feature is hidden or out of frame, we do not get to call it fixed. Anything that is not confirmed goes back into the round as a failing finding.
There is a bonus. A small zoomed crop lets the model see print and stitching detail far better than a single call with ten images in it.
How we stop a fix from breaking something else
An edit can fix the logo and quietly change the sleeve on the way. Developers call this a regression: a fix that breaks something that used to work.
Our guard is the commit rule. To commit an image means to save it as the new official version, the one a reviewer and then the client will see. The rule:
An image is committed only when it has zero failing findings in the round.
If the logo was fixed but the sleeve length is still wrong, that image is not committed. No partial credit.
This is why our count of “checks fixed” is always higher than “images committed”. I am fine with that gap. A system that counts fixes attempted can look busy while shipping regressions.
The tee’s draft passed everything, so it was committed and replaced the bad image. You can see the other outcome in the fourth example further down: on a pair of cargo jeans, one flagged image was regenerated, the draft was not committed, and the original was kept.
Step 5: Know when to stop, and never break the product
A loop that repairs things needs clear exits. Otherwise it keeps trying forever, or worse, keeps spending money forever.
One trip through the loop for one SKU is called a run. One cycle of “judge, then edit” inside it is a round. Watch a run move between scoring and editing below, and notice the three ways out.
Every run ends in one of these three ways:
- Done. Every check passes. The fixed images are committed.
- Exhausted. The run hits its round limit (three by default) with checks still failing, or the planner finds nothing fixable. Anything that passed is committed. The rest is marked
gave_uporunfixable, and the SKU goes to a human with the record of what was tried. - Force-released. There is a 45-minute deadline. A background job checks every five minutes for runs that have passed it. A run that gets force-released commits nothing. This is the safety net for a stuck edit or a judge outage.
A half-finished round counts for nothing
Remember that the judge has two passes. What if one comes back and the other one errors?
Then nothing is recorded, and the run stays on the same round. Here is why. If the harness accepted only the consistency pass, every fidelity check that was failing before would simply be missing. A careless program would read “missing” as “fixed” and ship the image.
It is the deleted test again. And notice that no model made a mistake here. This is a harness problem, not a model problem.
Retries that learn from the “no”
In our experiment setup, when the verifier rejects a draft, the rejection is pasted into the next planner call: a previous fix was rejected, plan a different or more precise edit.
Remember the crop top with three ties instead of two? Round one removed two ties and left one. Rejected. Round two, still one tie. Rejected, with a sharper note. Round three produced exactly two ties, with the same model and the same scene. Two honest rejections, then the right answer.
Production does not do this yet. Each round plans again from the original generated image, without the previous rejection. Bringing rejection feedback into production, and carrying the best draft forward between rounds, is next on our list.
Where the loop sits
Now that you know what the loop does, here is where it lives. It does not replace the human pipeline you saw at the start. It sits in front of it.
Watch a SKU leave generation and get caught by the loop before it reaches the human reviewer (that review step is called pre-QA).
When a SKU finishes generation and is about to move into pre-QA, a gate catches it. The SKU is parked at a hidden step called loop_fixes, which no human can be assigned to, and a run is created. There is at most one active run per SKU and stage.
Three design choices keep the loop from doing damage.
The gate fails open. If scoring is off for the workspace, or the workspace already has its maximum number of runs going, or anything errors, the SKU goes to pre-QA exactly as it did before the loop existed. If our system is down, nobody is blocked.
The product is never written to while the loop runs. Every judgment, plan, draft and verdict goes into a separate run record, which is the loop’s notebook. The product itself is written once, at the exit, as one new stage called autofix. A crash, a timeout or someone switching the policy off leaves the product exactly as it was.
The human review is still there. After the loop, the committed set goes to pre-QA and is scored again. If the reviewer approves, it goes to the client. If not, it follows the old path: retouching, final QA, delivery.
There is no trial run and no approval step in between. Every run fixes automatically, and a repaired image that passes the full policy is committed directly.
Each workspace has a few controls: a master on/off switch, which steps the gate watches (pre-QA by default, final QA if they want), the maximum number of rounds, which checks to skip, and a cap on how many runs can be active at once. Round limits and skipped checks are read live, so switching a policy off in the middle of a run winds it down immediately.
What goes in the notebook
Every run keeps one record. It holds:
- the original set and a fingerprint (a hash) of it;
- the round number;
- a status for every check on every image;
- every draft, with its prompt, its references and its verdict;
- counters for what was spent on the judge, the planner and the edits.
Fixed findings also show up as resolved notes on the committed images. A reviewer can see what was wrong and that it was handled.
That record is what lets us review a change to the rubric and roll it back. Without it, every claim that the system got better would be a story, not a measurement.
One last thing before moving on. Notice that no single model call owns the whole decision. The harness controls what evidence each call gets, which source is allowed to settle the truth, which failures can cause an edit, which edits can be committed, and how many rounds and how much time a run gets. The model supplies judgment inside those limits.
Step 6: Learn from what humans still catch
Here is the part that makes the system “self-improving”. Even with everything above, human reviewers still catch things the judge missed. And sometimes the judge flags something a human is happy with. Each of those is a disagreement, and each one is a free lesson.
Remember that the rubric has versions, like code. That is what makes learning safe. Every evaluation records which rubric version judged it. So a question like “did we catch more after the version 4 wording?” is a database query, not detective work.
One more detail about rubrics. They exist at three levels: one global rubric, one per workspace, and one per workflow. The most specific one wins. A brand with unusual rules gets its own rubric without changing anyone else’s.
Watch a week of disagreements turn into a new draft of the rubric.
Here is what happened in that animation, step by step:
- Every Monday at 03:30 IST, a job collects the past week’s disagreements between the judge and the humans. They come from pre-QA, final QA, QA edits and retouching.
- It adds evidence about how things were fixed, pulled out of the reviewers’ QA comments.
- If a rubric has at least five disagreements, a model rewrites the affected checks, with examples grouped under each check.
- The result is saved as a draft that is not active. The reasoning behind it is posted to our Slack.
- A human reads it. Nothing takes effect until that human promotes the draft. Promoting an older version is also how we roll back.
Why a human still presses the button
A system that rewrites its own exam can also learn to cheat on it.
Think about it. If you reward an automated system for a higher pass rate, or for needing humans less, the easiest way to win is to make the rubric weaker. Fewer rules, more passes.
To rule that out, the drafting step is boxed in. It can change how a check is carried out and its examples. It cannot activate a version, change the shape of the judge’s answer, or touch the commit rule.
We plan to automate more of this: a second judge that grades each draft by replaying recent sets, and an automatic rollback or alert if results get worse in the first days after a promotion.
See it on four real products
Enough theory. Here are four real SKUs from one production batch. The first is our cream tee. Click through the tabs. For each product you can see the before and after, or click a client photo to compare against it.
Each example shows the input photos, then every generated output and what the autofix agent changed. A heavier border marks the image the agent replaced.
Example 1
Back graphic printed on the front chest
1 of 5 outputs replacedA cream tee with three small embroidered characters on the front and one large illustration on the back. One of five outputs put the back illustration across the front chest. The agent caught it on garment consistency and print placement, and regenerated that single image.
Inputs · 7 client photos
click to compare
Outputs · catalogue_generation → autofix
Output 4 · 443405572_cream_model2
agent replaced this imageJudge findings · 2
show three small embroidered characters on the front chest, and shows a large graphic on the back. show the correct three small characters on the front, and shows the correct large graphic on the back. incorrectly displays the large back graphic printed across the front chest.
Input features three small separated characters on the front chest and a large grouped illustration on the back. show correct placement. applies the large back illustration onto the front chest.
The fourth example is worth a second look. Two images were fixed and replaced. A third was flagged, but its regenerated image was not committed, so the original was kept and left for a human. That is the cautious behaviour I want: when a fix is not proven, keep the original.
Results, and what it costs
After running this in production, we have seen three practical effects.
- More defects are caught before a human looks. Describe-first checks moved coverage of past reviewer complaints from roughly 32% to 39%. That came from changing the harness, not from a better model.
- Fewer hopeless edits are attempted. The planner refuses a meaningful share of images before the image model is ever called.
- Direct delivery has improved by roughly 20%. I treat that as an operational result, not as proof that visual QA is solved.
So what does a run cost?
Models bill by tokens, which are small chunks of text or image. At high image resolution, one judge evaluation uses roughly 24,300 input tokens, 89% of them from images, and about 8,900 billable output tokens.
A tip if you ever cost something like this. Do not count only the answer you can see. The model’s hidden reasoning is billed at the output rate too. Costing from the visible answer alone understates the bill by around four times.
Per SKU, it works out to:
- Passes straight away: about $0.01.
- One or two targeted repairs: about $0.09.
- Five images failing across three rounds: about $0.62.
That is small next to a human round-trip. And even in the worst case, the judge is a small part of the spend. The expensive question is rarely “should we check again?” It is “should we pay for another image edit?” That is why the planner saying “not fixable” early matters for cost as well as quality.
What still fails, and what I would do differently
Three kinds of problem are still hard for us.
Exact studio backgrounds
Image models make believable backgrounds, but they miss exact colours. If a brand needs its studio background in one precise hex code, a better approach is ordinary graphics code: generate the background exactly, cut the subject out, place it on top and add the shadow. This is where a model should hand work to code instead of insisting on generating everything.
Exact product positioning
Some brands need the product at an exact position or size in the frame. That is geometry. A vision model can find the object. Plain, predictable code should enforce the layout.
Denim and subtle fabric detail
Jeans are unusually hard. Small changes in wash, weave, distressing or seams matter a lot commercially, and they are hard for both the image model and the judge. We are exploring difference masks and checks that focus on one region.
Not every visual problem should be solved by adding another LLM call.
If I were starting again
Looking back, here is what I would do from day one:
- Write the rubric first. We began by digging through old QA comments and got “fix this” and “CC”. Asking reviewers how they check, and writing it down, is what moved things.
- Demand proof for every fix. Our first verifier treated “no complaint” as “fixed”, and it passed things that were not fixed. Crop-verify should have been there from the start.
- Feed rejections back into the next attempt. It worked in our experiments on the crop top. It is still not in production, and it is next on the list, together with carrying the best draft forward.
- Use plain code where the answer is exact. Backgrounds and positioning need a deterministic finishing stage, not another model call. We also want a commit rule that looks at the whole set, not one image at a time.
Why I keep saying “harness”
A prompt asks a model to behave a certain way. A harness is the environment that makes that behaviour reliable. Ours owns the state, the rubric versions, the rule about which source is the truth, the choice of references, the structured answers, the verification, the round and time limits, the exits, the run record, the cost counters, the hand-off to humans and the rubric drafts.
The model is one part inside that environment.
For this kind of work, that changes the question from:
Which model is best at looking at images?
to:
What execution environment lets a strong model make reliable, auditable visual decisions over many steps?
The second question has led to far more of our improvements.
Wrapping up
What holds back AI images for commerce is not a lack of beautiful pictures. It is reliability. A product image is useful only when the product in it is right.
Our biggest gains did not come from asking the model to “judge better”. They came from making the environment around the model harder to cheat, harder to misunderstand and easier to learn from.
I think the next generation of production AI systems will not be defined only by stronger generators. They will be defined by the harnesses that can tell when those generators are wrong.
That’s it. I hope you learnt something new.
Related work and a note on the numbers
This work follows a wider shift toward systems built around a harness: lasting state, steps run by code, explicit verification, limits on long-running loops, and improvements that a human reviews. A useful recent reference is Prime Agent: A Self-Improving RLM Harness by Karten et al. (2026). It describes the harness as the layer that manages information, computation, persistence, verification and refinement around a fixed model. We apply the same approach to checking and repairing images at high volume, instead of coding or interactive reasoning.
The closest production system I know of is Uber’s, described in Building Closed-Loop Evals for a Multimodal Agent at Scale. Uber Eats uses an agent to improve food photos for independent merchants: better lighting, composition and colour, while keeping the merchant’s brand and staying true to the real dish. The shape will look familiar by now:
- a routing agent decides whether a photo needs work or passes through as it is;
- an edit and QA loop gives feedback on things like portion size and plating, until the image is good enough or hits an iteration limit;
- a diagnoser agent samples production data, compares the agent’s outputs with human labels, and triggers prompt optimization as the data drifts;
- a “Swiss cheese” stack of overlapping QA gates, with a final policy and safety check before anything reaches the menu.
Catalogue images have more moving parts. A food photo is one image of one dish, judged against itself. A catalogue SKU is a set: several client photos as the truth, five or more outputs that must agree on model, garment, paired garment, accessories and background, and many separate checks, each with its own method. That is why our harness has things a single-image loop can skip: two judge passes that keep consistency apart from truth, a choice of reference for every edit, proof on zoomed crops, and rubric versions that a human has to promote.
About the numbers. All percentages and costs here are production or offline measurements from the version of the system described in this article. The 30–45% unfixable figure comes from offline evaluations. The 32% to 39% figure is coverage of reviewer complaints on 100 production SKUs, not strict recall. Model versions, image pricing, rubric coverage, customer mix and workflow difficulty can change these numbers a lot.



