videogen/docs/reelforge/GENERATION_ENGINE.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

39 lines
2.1 KiB
Markdown

# Backend-owned generation engine
The licensed Pixelle engine is part of `apps/api`, not a separately deployed
HTTP sidecar. Its flattened Python packages live in `apps/api/engine`; API
compatibility code lives in `apps/api/app/generation`; bundled assets are in
`apps/api/assets`.
The API mounts canonical generation routes at `/api/v1/generation/*`. Existing
Pixelle `/api/*` routes remain mounted as a compatibility surface during the
migration window. New product clients must use the canonical namespace.
All mutable engine data is written to `apps/api/runtime/storage` (`data`,
`output`, and `temp`). Mount that directory as a writable volume for API and
workers. Configure `REELFORGE_BACKEND_ROOT`, `REELFORGE_ENGINE_ROOT`,
`REELFORGE_ASSETS_ROOT`, and `REELFORGE_RUNTIME_ROOT` only when overriding the
default backend layout.
Run normal work with `make -f Makefile.reelforge worker`; run generation with
`make -f Makefile.reelforge generation-worker`. The latter consumes the
`generation` Celery queue and is the only service that needs GPU access.
## Product runtime boundary
`reelforge_engine.runtime` now composes an auditable `managed-video` profile
from all four engine layers: `acceleration`, `pipelines`, `k_diffusion`, and
`models`. Their lightweight `product_runtime.py` declarations are imported only
after the GPU worker configures the engine path; they do not load torch, model
weights, or optional media dependencies in API replicas. The typed facade then
dispatches the approved pipeline. This keeps the layers actively owned by the
product without exposing a generic model/checkpoint/sampler API.
Web, Expo, and Rust/GPUI desktop consume the server's capability document and
submit only canonical B-roll `t2v`/`i2v` requests plus approved workflow IDs.
They never select or import engine internals.
The former Streamlit/WebUI is intentionally not retained. The remaining
operator interfaces are explicit tools under `apps/api/tools/{gradio,gradios}`;
they are not part of the product web stack. `external/` is excluded from runtime
images and is not an engine dependency.