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

16 KiB
Raw Permalink Blame History

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 in docs/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 in app/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, …) mirroring catalog/seed_data.py.
  • First worker images + deploy plumbing (just-in-time infra): external/workers/_contract shim libs + external/workers/comfyui-runtime; infra/render-workers (capability registry.yaml, cosign publish, RunPod endpoint descriptors, license-gate); infra/docker hardened bases (base-python, base-cuda, base-node, ffmpeg); infra/queues/topology.yaml extending 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+web features/templates (genre picker + burn preview); mobile features/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 workers external/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/queues with publish,ingest,captions queues + KEDA scalers; infra/observability MVP (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; mobile src/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/_meta pins/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/captions HTTP facade.
  • Watermark double-win: watermark-clean masters (default) + watermark-on-free-export removal as paid trigger (in domains/publishing re-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/captions styles.

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 via external/workers/wan22-* + checkpoints/LoRAs store.
  • 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 over film/ncp Narrative Context Protocol store, film/agents) + workers/tasks_film; OTIO/FCPXML/Resolve-MCP export via external/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: film queue in infra/queues; render-render externals external/render/{revideo,remotion,opencut-edl} for data-driven animatic/preview.
  • Client surfaces: mobile+web features/film(+/shots), features/series scaffolding, 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}.


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 by external/ingest/{tiktok-trending-actions,ogohogo-trending,hashtag-analysis} and external/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 .reelforge bundle (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 MCP devd; apps/desktop/packaging/{macos,windows,linux}. electron-legacy frozen.
  • Client surfaces: mobile+web features/clipfarm (automation control room + channel mode), features/trends (feed + create-from-trend), features/series, features/repurpose; mobile src/shared/{net upload-queue,cache,lifecycle}.
  • Infra: batch queue + backpressure; infra/observability throughput/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_policy on price_versions, tiered plans, white-label reseller, success-only billing, deprecation-aware routing, Lago bridge (real-time pre-block gating stays in-house). Reference ports external/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 (in apps/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/studio navigational hub.
  • Infra: infra/cdn (signed-URL Worker, reseller custom-domain routing, R2 lifecycle), infra/dns/zones, infra/secrets + infra/env matrix, 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}); finalize infra/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/workflows suite (~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 existing reelforge-release-gate.sh; infra/deploy (release-manifest schema, migrations, runbooks); infra/secrets/external-secrets; infra/scripts.
  • App polish/GA: desktop rf-plugins Extism WASM host + on-device MCP devd finalize; mobile features/notifications; web parity pass; contract-check across packages/{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