videogen/docs/ott/ADR-0001-ott-scope.md
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

60 lines
4.7 KiB
Markdown

# ADR-0001 (OTT): Scope, names and staging of the Menivor OTT platform
**Status:** proposed. Owner default recorded; owner confirmation pending.
**Decision id:** OD-MV1 (replaces teardown OD6)
**Package:** MV0 (Wave D, docs only). Sources: `products/gtm/PARITY-MENIVOR-2026-09-29.md` sections 0, 2.2, 3 and 7; `products/WAVE-D-DISPATCH-2026-09-29.md` sections 4.3 and 12; `products/OWNER-SESSION-WAVE-D.md` item D-V1.
| Field | Value |
|---|---|
| Default recorded | 2026-09-29 (dispatch default, taken behind the flags below) |
| Owner answer | pending: owner replies "OD-MV1 default" or gives a different answer (D-V1) |
| Owner answer date | pending |
| Signed by | pending |
## Context
- Menivor today makes short-form video (reels, Autopilot series, AI video). It has no OTT layer. A grep of `apps/api/app/`, `apps/web` and `apps/mobile` finds no title/season/episode model, no HLS or DASH output (`m3u8`, `hls_time`, `.mpd`: no hits), no player and no playback access control (parity row M-5).
- The owner's core vision (2026-09-29) puts "everything video and distribution" in Menivor, including "the full Muvi-like OTT platform". The first milestone is paying users.
- Most of the Muvi AI layer already exists (faster-whisper captions, dubbing, translation, clipping, compliance scan, MN5 provenance, M7.1 C2PA credentials). The missing parts are catalog, packaging, players, access, apps, live and viewer payments.
## Decision (default)
1. **Full scope, staged by trigger.** Menivor builds the full Muvi-style OTT feature set, in this order. Nothing ships ahead of its gate.
| Wave | Packages | What |
|---|---|---|
| D | MV0 | This decision pack. No code. |
| E | MV1 to MV5 | Catalog and CMS, upload and transcode lane, CMAF packaging (HLS plus DASH), storefront and web player, protection tier 1 (tokens, AES-128 key server, limits, watermark). |
| F | MV6 to MV12, MV16 | Viewer accounts on Scribase Auth, OTT SaaS plans and meters (after ADR-0002's written Dodo reply), the Menivor TV mobile and TV apps, live passthrough, live chat, playback analytics, AI panel. |
| G | MV13 to MV15, MV17 to MV20 | Viewer monetisation with the creator as merchant, AVOD, FAST channels, Roku, Tizen and webOS, discovery, DRM tiers 2 and 3 (on trigger). |
| Trigger only | none yet | Meetings, SSAI, Gorse, Meilisearch, per-creator white-label builds, VIDAA and Astro, multi-CDN. |
2. **Names.**
- Viewer apps and the viewer-facing brand: **"Menivor TV"**. The code path planned as `apps/watch` keeps its path; "Menivor Watch" in older plan text means the same app and is not a public name.
- Creator UI: **"Channels"**.
- The existing Autopilot "channels" (`apps/api/app/domains/series/channels.py`, the `/channels` page) are renamed **"Autopilot series" in the UI only**. Code ids, routes and database names stay unchanged.
3. **Additive only.** The share page `apps/web/app/r/[token]`, `creators/[handle]`, Autopilot series, the TikTok puller, the Reddit fetch, edge-tts and the `expo-av` code stay. OTT surfaces are new routes and new domains.
4. **No second generation router.** OTT uses ffmpeg and packaging only. The AI panel reuses existing domains, and new LLM calls go through Relay on Claude credits.
5. **Superseded ids.** Teardown MC1 becomes MV4, MC2 becomes MV13, MC3 becomes MV11 and MV15. The old ids are retired, not removed from history.
6. **Licence guard.** No GPL or AGPL code in `apps/watch`, the TV builds, the Roku channel, the web player package or any page served to customers. Picks in shipped clients are MIT, Apache-2.0 or BSD. AGPL projects (MediaCMS, PeerTube, OvenMediaEngine) are design references only. FFmpeg runs server-side only.
## Flags and copy (hand-off to P-D1)
These go to the P-D1 owner of `products/gtm/policy/copy-denylist.json` and `CLAIMS-RULES.md`. MV0 does not edit those files.
| Item | Kind | Rule |
|---|---|---|
| `OTT_DRM_LIVE` | flag (per channel) | "DRM" copy is allowed only where tier 3 is live for that channel (ADR-0003). |
| `OTT_LIVE_LIVE` | flag | Live-streaming copy is allowed only after MV10 is serving. |
| "DRM" | denied phrase, `unlessFlags: ["OTT_DRM_LIVE"]` | ADR-0003 |
| "Netflix-style" | denied phrase | Comparative claim with no live source. |
| "your own Netflix" | denied phrase | Comparative claim with no live source. |
Until MV4 ships, no public page mentions OTT, "Menivor TV" or channels as available.
## Consequences
- OTT code starts in Wave E and only after MH2 and MH3 merge. `apps/api/app/router.py` is owned by MV1 in E, MV6 in F and MV13 in G.
- Public copy is gated by the flags above. Claims follow CLAIMS rule 5 (no claim without a live source).
- If the owner answers differently, this ADR is updated with the new answer and date before MV1 starts.