Validate headless requests and repair hosted creative contracts
Headless runs reject malformed parts-based AI SDK UIMessage payloads before provisioning sessions, keys or workflows. Creative validators translate supported legacy image references and reject obsolete semantic controls before paid generation; image aspect_ratio remains supported, while direct video uses integer duration, resolution and first/last-frame inputs.
A bounded audio-driven lipsync endpoint restores the existing hosted preset's worker integration with a fixed supported model, rate limiting and credit preflight/accounting. Research responses preserve nested generic artist/track IDs without dropping raw metadata; blank or non-string values cannot mask valid nested IDs, and milestones retain the adapter's activity feed instead of returning an empty list.
Validation: 102 focused tests passed, including seven published-doc examples and 18 research adapter tests with no provider calls. The earlier full suite passed 6,348 tests with 12 skipped; the production build and scoped lint passed. After merging current main, the sidebar and adapter tests passed (14). Marketing's contract CI checks the example fixture and specification hashes against this pinned API commit.
Release API before Tasks #157. Then inspect a real selected-clip lipsync artifact for audio and perceptual alignment; local tests do not establish that customer outcome. OAuth host discovery and live headless verification remain separate. Keep acceptance tickets open until deployed verification.
Coordinates epic #318, packages 1, 4–7; mono#334, mono#348, mono#325 and mono#360.