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.
16 KiB
ReelForge Vision 2026 — Phased Build Plan
ReelForge Vision 2026 — PHASES (P6 → P12)
Phases continue from the already-shipped baseline (treated as P0–P5). Each phase lands infra just-in-time ahead of the product track it enables, follows the API doc's thin-router→service→repository→policy convention, and ships with 80%+ TDD coverage per the repo testing rules. Gated (NC/territorial) worker endpoints stay deferred behind review across all phases.
Cross-track dependency spine (must be built in this order): async-GPU envelope → event bus → templates compiler → publishing loop → routing depth → consistency → automation → gateway/monetization → scale hardening.
P6 — Foundation: async-GPU envelope, event bus, and the Templates crown jewel
Goal: stand up the two load-bearing contracts and ship the fastest-ROI product surface.
Scope & deliverables
- Author
docs/reelforge/vision2026/architecture/apps-web.md(closes the known gap) + fix the vision2026 doc IA:docs/_meta,docs/adr(ADR-0001 wallet-authoritative, ADR-0002 Lago-observe-only),docs/reelforge/vision2026/{specs,data,api,diagrams,phasing,ops},redirects.yaml. - Unified async-GPU job envelope in
apps/api/app/services/render(IN_QUEUE/IN_PROGRESS/COMPLETED, poll + webhook, pluggable backends) + versioned ComfyUI workflow registry (apps/api/assets/workflows/manifests). Contract spec indocs/reelforge/vision2026/specs/async-envelope. - Internal events/outbox bus + DAG runner —
apps/api/app/events,apps/api/app/events/workers(job DAG), on top of existing Celery/telemetry. - Templates domain —
apps/api/app/domains/templates(ShotTemplate/Version/Slot/Instance ORM inapp/models/db, pure template→RenderSpec compiler feeding existing compose) + 15 seeded genre presets (Minecraft-Split, ASMR-Loop, Brainrot, Anime-Edit, Movie-Recap, Fake-Podcast, Gameplay-Story, …) mirroringcatalog/seed_data.py. - First worker images + deploy plumbing (just-in-time infra):
external/workers/_contractshim libs +external/workers/comfyui-runtime;infra/render-workers(capabilityregistry.yaml, cosign publish, RunPod endpoint descriptors,license-gate);infra/dockerhardened bases (base-python,base-cuda,base-node,ffmpeg);infra/queues/topology.yamlextending existing celery/render/generation queues; core.github/workflows(per-app CI, image build+sign+SBOM) +.github/actions/build-sign-image. - Client surfaces: mobile
src/shared/{ui,net,api,api/resources,telemetry}design-system + typed Zod clients foundation; mobile+webfeatures/templates(genre picker + burn preview); mobilefeatures/onboarding(empty-screen killer, <5min first reel).
Dependencies: existing compose, wallet, routing, catalog. None external.
Dirs/files touched: apps/api/app/{services/render,events,domains/templates,models/db}, apps/api/assets/workflows, external/workers/_contract+comfyui-runtime, infra/{render-workers,docker,queues}, .github/{workflows,actions}, apps/mobile/src/{shared/*,features/templates,features/onboarding}, docs/_meta, docs/adr, docs/reelforge/vision2026/*.
P7 — Close the loop: Publishing hub + retention + 1-body/N-hooks A/B
Goal: the create→publish→measure→regenerate flywheel end to end.
Scope & deliverables
- Publishing hub replacing the 5-line stub —
apps/api/app/domains/publishing: per-platform OAuth connectors (TikTok/IG/YouTube/X + aggregator fallback), DB-backed self-hosted scheduler (publishing/scheduler: backoff, daily-cap, cannibalization/best-time guards), watermark-safe per-platform re-encode, retention-curve ingestion (publishing/analytics), closed-loop 1-body/N-hooks A/B with retention-weighted winner feedback into the event bus. - Event handlers wiring
JobCompleted → publish → RetentionIngested → WinnerSelected → regenerate. - New worker task modules:
apps/api/app/workers/tasks_publish. - Captions + loops + audio services feeding hook-gate:
services/captions(WhisperX two-stage → Hormozi/keyword-SEO),services/loops(seamless-loop + beat-cut + hook-strength predictor, 70% viral gate),services/audio(TTS tiers + auto-duck) with backing workersexternal/workers/{whisperx,faster-whisper,mmaudio}. - Publish/automation externals (just-in-time):
external/services/{postiz,mixpost,n8n,activepieces}+external/ingest/{yt-dlp,tiktok-api}for retention pull. - Infra: extend
infra/queueswithpublish,ingest,captionsqueues + KEDA scalers;infra/observabilityMVP (OTel collector → Prometheus/Grafana/Loki/Tempo/Sentry, SLO catalog, wallet success-only-billing invariant alert). - Client surfaces: mobile+web
features/review(hook-score + retention predictor + approve),features/publishing(+/oauth),features/scheduler,features/experiments,features/retention; mobilesrc/shared/push+ deep-link routing for approve/reschedule from notifications.
Dependencies: P6 envelope + event bus + templates.
Dirs/files touched: apps/api/app/domains/publishing/*, apps/api/app/services/{captions,loops,audio}, apps/api/app/workers/tasks_publish, external/services/*, external/ingest/{yt-dlp,tiktok-api}, external/workers/{whisperx,faster-whisper,mmaudio}, infra/{queues,observability}, mobile/web features/{review,publishing,scheduler,experiments,retention}.
P8 — Routing depth: 22 real adapters, per-shot cost-cap, transparent burn, watermark loop
Goal: survive Sora shutdown, kill pay-double, license-clean by default.
Scope & deliverables
- 22 real provider adapters in
apps/api/app/domains/routing/providers: Sora2 (sunset metadata), Kling, Veo, Runway, Luma, Seedance, Wan local + FLF2V, Hunyuan (territorial-flag), CogVideoX, LTX, Flux, Suno, AIVA, MuseTalk, LatentSync, InfiniteTalk, Chatterbox, Kokoro — sharing license-class + deprecation helpers for sunset-aware, license-clean routing. - Backing worker images:
external/workers/{wan22-t2v,wan22-i2v,wan22-flf2v,wan-camera,ltx-video,cogvideox,hunyuanvideo,framepack,chatterbox,kokoro,coqui-xtts,f5-tts,musetalk,latentsync,sadtalker,infinitetalk,frame-interp,video-helper};external/_metapins/licenses/SBOM/vuln scripts. - License-clean enforcement: hard-exclude NC weights (Wav2Lip, XTTS, F5-TTS, Hunyuan) for paying users at route time and at deploy time via
infra/render-workers/license-gate+endpoints/gated. - Two-host podcast + Foley finalize
services/audio(MMAudio Foley),domains/captionsHTTP facade. - Watermark double-win: watermark-clean masters (default) + watermark-on-free-export removal as paid trigger (in
domains/publishingre-encode + growth flag). - Infra:
infra/gpu-autoscale(queue-depth × wallet-held-budget controller, costguard breaker, predictive pre-warm) +infra/render-workers/{endpoints/runpod,health}; image-security + license-scan workflows in.github/workflows. - Client surfaces: mobile+web
features/wallet(balance/burn/topup + per-model burn preview), model/provider pickers;features/captionsstyles.
Dependencies: P6 envelope, P7 audio/captions services.
Dirs/files touched: apps/api/app/domains/routing/providers/*, external/workers/*, external/_meta, infra/{gpu-autoscale,render-workers}, .github/workflows, mobile/web features/{wallet,captions}.
P9 — Consistency & AI-Film: character/style lock, storyboard, multi-agent orchestrator
Goal: the retention/audience moat one-off viral tools cannot match.
Scope & deliverables
- Characters/style lock —
apps/api/app/domains/characters(Soul-ID-like reference-image + optional Wan 2.2 LoRA training + cross-model identity), reused across shots/episodes/projects. Worker: LoRA training path viaexternal/workers/wan22-*+checkpoints/LoRAsstore. - Storyboard pipeline —
apps/api/app/domains/storyboard(+/shots): screenplay → shotlist → first-frame → animatic. - AI-film orchestrator —
apps/api/app/domains/film(ViMax-style multi-agent Director/Screenwriter/Producer/Editor/Composer/VoiceDirector overfilm/ncpNarrative Context Protocol store,film/agents) +workers/tasks_film; OTIO/FCPXML/Resolve-MCP export viaexternal/timeline/{opentimelineio,davinci-resolve-mcp}. - Blueprints (reference ports):
external/film-blueprints/{vimax,micro-drama-generator,open-source-cinema}. - Presets marketplace —
apps/api/app/domains/presets(shot-template + ComfyUI-graph preset market);apps/api/app/domains/assets(asset library + tagged gameplay B-roll). - Infra:
filmqueue ininfra/queues; render-render externalsexternal/render/{revideo,remotion,opencut-edl}for data-driven animatic/preview. - Client surfaces: mobile+web
features/film(+/shots),features/seriesscaffolding, review-lite for screenplay/shot/character.
Dependencies: P6–P8 (envelope, routing, audio).
Dirs/files touched: apps/api/app/domains/{characters,storyboard,film,presets,assets}, apps/api/app/workers/tasks_film, external/{film-blueprints,timeline,render}, infra/queues, mobile/web features/{film,series}.
P10 — Clipfarm automation + trends + series + desktop local render farm
Goal: unattended 150+ videos/mo for faceless operators; $0-wallet local scale.
Scope & deliverables
- Series/clipfarm engine —
apps/api/app/domains/series(episodic series/batch/cadence automation) +workers/tasks_series;apps/api/app/domains/trends(trend + sound ingestion, saturation/decay scoring) backed byexternal/ingest/{tiktok-trending-actions,ogohogo-trending,hashtag-analysis}andexternal/story-bots/{reddit-video-maker-bot,fully-automated-reddit,thread-2-tok,ai-youtube-shorts}. - Desktop internal Cargo workspace promoting engine crates (UI-free, reused by GUI + headless binaries):
apps/desktop/crates/{rf-jobs,rf-render,rf-encode,rf-comfy,rf-capture,rf-assets,rf-project,rf-clipfarm,rf-sync,rf-hardware,rf-ffmpeg,rf-devproto,rf-plugins,rf-testkit}.- Local render farm (
rf-render+rf-encode): VideoToolbox/NVENC/QSV hwaccel, watermark-safe per-platform masters, seamless-loop exporter, coordinator/node/lease scheduler → machine + LAN = $0-wallet pool. - ComfyUI local bridge (
rf-comfy): local/LAN ComfyUI+Wan2.2 as first-class routed provider, pinned workflows, VRAM budgeting, warm-pool. - Native capture (
rf-capture) + CAS asset store (rf-assets) + offline.reelforgebundle (rf-project) + cloud reconcile (rf-sync, wallet pre-flight). - Bulk operator console (
rf-clipfarm): body×hooks×templates×aspects×accounts fan-out from CSV/Sheet/Reddit/RSS, spec-hash dedupe, self-cannibalization pacing. - GUI glue
apps/desktop/src/{runtime,ipc,ui/console,ui/batch,ui/capture,ui/comfy,ui/assets,ui/sync,ui/projects,ui/export,ui/plugins,bin}; on-device MCPdevd;apps/desktop/packaging/{macos,windows,linux}.electron-legacyfrozen.
- Local render farm (
- Client surfaces: mobile+web
features/clipfarm(automation control room + channel mode),features/trends(feed + create-from-trend),features/series,features/repurpose; mobilesrc/shared/{net upload-queue,cache,lifecycle}. - Infra:
batchqueue + backpressure;infra/observabilitythroughput/cost-saved dashboards.
Dependencies: P6–P9 (envelope, templates, routing, characters).
Dirs/files touched: apps/api/app/domains/{series,trends}, apps/api/app/workers/tasks_series, external/{ingest,story-bots}, apps/desktop/crates/*, apps/desktop/src/*, apps/desktop/packaging/*, mobile/web features/{clipfarm,trends,series,repurpose}, infra/{queues,observability}.
P11 — Monetization platform: gateway resell, clipmarket, growth, affiliate
Goal: turn the wallet into a two-sided, resellable revenue engine.
Scope & deliverables
- Gateway subsystem —
apps/api/app/domains/gateway: OpenRouter-style provisioning/management keys (per-customer spend caps, midnight-UTC resets),markup_policyon price_versions, tiered plans, white-label reseller, success-only billing, deprecation-aware routing, Lago bridge (real-time pre-block gating stays in-house). Reference portsexternal/gateway-refs/{openrouter-key-manager,class-key-provisioner,go-openrouter};external/services/{lago,openmeter}metering with wallet-authoritative bridge;apps/api/app/services/lago. - Clipping marketplace —
apps/api/app/domains/clipmarket: brands set CPM, API-verified views, 72h approval, viewbot fraud detection (inapps/api/app/domains/moderation: watermark detection + license gating + consent audit). Payouts via existing ledger. - Growth engine —
apps/api/app/domains/growth: empty-screen onboarding funnels, free micro-tools, Sora-shutdown migration onboarding onto routed Veo/Kling/Seedance;external/services/{posthog,listmonk,calcom}. - Client surfaces: mobile+web
features/marketplace(campaigns + earnings),features/affiliate(lifetime-recurring),features/gateway/features/plans(provisioning keys + tiers),features/studionavigational hub. - Infra:
infra/cdn(signed-URL Worker, reseller custom-domain routing, R2 lifecycle),infra/dns/zones,infra/secrets+infra/envmatrix,infra/policy(OPA guardrails).
Dependencies: P6–P8 (wallet routing + envelope), P10 (clipfarm supply for marketplace).
Dirs/files touched: apps/api/app/domains/{gateway,clipmarket,moderation,growth}, apps/api/app/services/lago, external/{gateway-refs,services}, infra/{cdn,dns,secrets,env,policy}, mobile/web features/{marketplace,affiliate,gateway,plans,studio}.
P12 — Scale hardening + GA: full infra planes, blue-green, canaries, polish
Goal: production-grade reliability, security, and cost governance; GA.
Scope & deliverables
- Provisioning plane —
infra/terraform(+modules/{cloudflare-dns,cloudflare-pages,cloudflare-tunnel,cloudflare-waf,neon,network,object-cdn,observability,queue-scaler-iam,r2,redis,registry,runpod,billing-lago,k8s-cluster,secrets},envs/{dev,staging,prod}). - Runtime plane —
infra/k8s(base/{api,beat,worker-cpu,worker-gpu,comfy-runtime,redis,migrations},overlays/{dev,staging,prod},charts/{reelforge-api,gpu-worker},addons/{keda,nvidia-device-plugin,cert-manager,external-secrets}); finalizeinfra/gpu-autoscale+infra/queues/{redis,dlq,ratelimits}. - Observability plane — complete
infra/observability/{otel,prometheus/rules,grafana/dashboards,loki,tempo,sentry,slo,alerts,synthetics,status-page}with error budgets. - Policy/deploy plane — full
.github/workflowssuite (~29 workflows + 7 composite actions): matrix image build+cosign-sign+SBOM, license/secret/IaC/image scans, terraform plan/apply gates, blue-green deploy + canary gate + digest-pinned rollback, migration safety-class gate, ephemeral per-PR preview envs (Neon branch), release-please invoking existingreelforge-release-gate.sh;infra/deploy(release-manifest schema,migrations,runbooks);infra/secrets/external-secrets;infra/scripts. - App polish/GA: desktop
rf-pluginsExtism WASM host + on-device MCPdevdfinalize; mobilefeatures/notifications; web parity pass; contract-check acrosspackages/{api-contract,sdk-python,sdk-typescript}.
Dependencies: all prior phases (deploys everything they produced).
Dirs/files touched: infra/{terraform,k8s,gpu-autoscale,queues,observability,deploy,secrets,scripts}, .github/{workflows,actions}, apps/desktop/crates/rf-plugins, apps/desktop/src/{ipc,bin}, mobile/web polish, packages/* contract sync.
Phasing summary
| Phase | Theme | Primary track | Gates |
|---|---|---|---|
| P6 | Envelope + event bus + Templates | apps/api, external/workers, infra base | template→RenderSpec compiler passes; first image signed |
| P7 | Full loop (publish/retention/A/B) | apps/api/domains/publishing, mobile/web | loop-completion event fires end-to-end |
| P8 | Routing depth + watermark loop | routing/providers, external/workers, gpu-autoscale | license-gate blocks NC for paid; burn-preview accurate |
| P9 | Consistency + AI-film | characters/storyboard/film | identity holds across re-entry; OTIO export |
| P10 | Clipfarm + desktop farm | series/trends, desktop crates | 150+ videos/mo unattended; $0-wallet local render |
| P11 | Monetization platform | gateway/clipmarket/growth | reseller sub-key spend-cap reset; CPM payout + fraud block |
| P12 | Scale hardening + GA | infra all planes, .github | blue-green canary + rollback; SLOs green |