sprite ai
Keep a Sprite Generation Job from Sending Two Different Reference Schemas
A studio can have two workflows that both start with approved reference images. One creates a reusable style; the other renders a single candidate. If the queue uses one shared payload builder, fields from one job can silently appear in the other.
Give the queue distinct operation records
Store jobs as CreateStyle or GenerateAsset, with their own allowed payload members. Add a third fixture for a generation request using a saved style identifier. For that job, confirm the approved identifier is present and the inline reference arrays are absent.
Prove the enqueue step distinguishes the two jobs
Run all three jobs against a local recording sender. Compare the selected endpoint and the actual object passed to that sender. Intentionally send the style-creation reference key through the single-asset builder. Expect a local validation error before any network call. If the input is valid, leave aesthetic approval to a separate visual review.
FrameSprite’s technical guide and test fixture captures Recraft style creation and inline reference generation using different fields. The queue test turns the distinction into an error message that identifies the job type rather than a vague service failure.
Prepared by the FrameSprite Workflow Team with AI assistance. Illustrative examples are labeled in the text.