caelum0x 2a425b7e21 fix(toolgate): repoint Menivor adapters to the real /api/v1/jobs surface, drop menivor.tts.speak
Menivor's legacy /videos, /audio and /tasks/{id} routes are hidden under
MENIVOR_API_SURFACE=allowlist in production (confirmed live, 404 for every
caller). The real product surface is POST /api/v1/jobs + GET
/api/v1/jobs/{job_id}.

- menivor.video.render now POSTs /api/v1/jobs with layout fixed to
  captions_only, so it never needs a paid HeyGen avatar plan (every other
  layout is gated 402 sku_locked on the shared service account's free tier,
  confirmed live against api.menivor.com).
- menivor.video.status now polls GET /api/v1/jobs/{job_id}, the same id
  space render creates, and maps the new result_url field.
- menivor.tts.speak removed from the catalog (own.yaml + its capability
  entry): there is no standalone TTS job on /api/v1/jobs, and the separate
  POST /api/v1/media/audio gateway's flagship elevenlabs model can never
  take a caller voice_id (AudioBody has no such field — confirmed by
  reading app/domains/routing/providers/voice_gen.py), so it is a permanent
  elevenlabs requires a voice_id failure for every caller regardless of
  balance. The self-hosted tts/kokoro|chatterbox fallback's real
  availability is unverifiable from Toolgate; shipping it would be exactly
  the broken-tool-left-in-the-catalog outcome this fix exists to avoid.

Updated fixtures/contract tests for the new endpoints and response shape;
cargo test --workspace: 0 failures.
2026-11-18 01:46:51 +03:00
..