DEV Community

Cover image for Run a Regression Check on a Prompted Image Edit
AI iWeaver
AI iWeaver

Posted on

Run a Regression Check on a Prompted Image Edit

When a design brief says “replace the shade on the desk lamp,” a pleasing render can still fail the task. The lamp may migrate across the desk or the new shade may throw light from the opposite side. Treat the source image as a fixture and the edit as a change request.

Define the Expected Result

Pick three checks before generating anything. For a lamp, compare the base position against the back corner of the desk, check where the window shadow falls and inspect the wires near the wall. Keep the checks visible beside the brief so a reviewer can reproduce the decision.

Change: swap the flared shade for a straight ivory linen shade.
Preserve: camera position, lamp base, desk and window lighting.
Check: base aligns with desk corner, window shadow retains angle,
       cord still reaches the same socket.
Enter fullscreen mode Exit fullscreen mode

Isolate the Follow Up

Submit the source and brief in XPT's image editing workspace. Save the result alongside the original with a version label that names the changed variable. If the shade passes but the cord fails, retry from the original and make the socket constraint more explicit. Branching from the source keeps a shifted lamp from becoming the new baseline.

In review, check the frame at page size and zoom in on the changed region. Record accepted deviations in the handoff. A different linen weave can be acceptable when the cord and shadow are part of the required continuity.

Top comments (0)