Making a generative model behave like a deterministic pipeline
The problem
An image model asked to improve a photo will happily reinterpret it. For a listing photo that is not an improvement, it is a misrepresentation: invented scenery behind a window, a redrawn house number, a straightened wall that was never straight. The constraint is not make it look good, it is change exactly these things and nothing else, across fourteen features that can be combined in any order on the same frame.
What we did
We rebuilt the prompt layer as one universal base with a single slot for active feature instructions, composed per render from individual feature modules. The base carries the hard rules: object integrity, text preserved character for character, geometry untouched unless perspective correction is active, mirrors explicitly not windows, and every feature scoped so that if its target is not visible it does nothing at all.
The outcome
Feature behaviour is defined in one file per feature instead of in variants of a monolithic prompt, so a rule fix applies to every combination at once. The refactor was cut against a tagged rollback point.














