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

4.6 KiB
Raw Permalink Blame History

RocketRide runtime target

ReelForge exposes RocketRide through the existing RenderBackend and RenderJob lifecycle. The backend accepts a target selector, not connection configuration. Operators own both target profiles and one visual-editor pipeline artifact.

Configuration

Install the optional official Python SDK in the API runtime, then configure:

[rocketride]
pipeline_root = "pipelines/rocketride"
pipeline_file = "reelforge-render.pipe"
local_uri = "http://localhost:<extension-selected-port>"
local_api_key = ""
managed_uri = "https://api.rocketride.ai"
managed_api_key = "server-only credential"
ttl_seconds = 3600
connect_timeout_seconds = 60
pipeline_trace_level = ""

Environment variables can supply the URI, credential, root, and file values; see .env.example. The VS Code extension chooses the local URI dynamically, so do not assume a fixed port.

pipeline_file must be a relative .pipe path under pipeline_root. ReelForge resolves both paths, rejects traversal and absolute file values, and requires an existing regular file. Both targets use that exact file. Do not hand-author or rewrite its JSON.

Render request

{
  "backend": "rocketride",
  "max_cost_micros": 500000,
  "workflow_version": "reelforge-rocketride-1",
  "spec": {
    "rocketride_target": "local",
    "prompt": "A product close-up with a slow orbit"
  }
}

The only accepted target values are local and managed. A request cannot override the pipeline path, URI, API key, timeout, TTL, or trace setting.

The official-SDK bridge performs this sequence:

  1. connect to the configured target;
  2. call use(filepath=...) on the editor artifact;
  3. send the render spec as application/json;
  4. retain the task token only in the private provider-reference field;
  5. reconnect to poll with get_task_status(token) or cancel with terminate(token).

The HTTP response never returns the provider reference or task token. Submit failure releases the reservation. Failed, cancelled, malformed, and cost-cap violating terminal results release the full reservation.

Output receipt v1

The editor-authored pipeline must put this object in either status.receipt, status.result.receipt, or status.result when status.state reports success:

{
  "version": "reelforge.render.receipt.v1",
  "output_refs": ["https://media.example/render.mp4"],
  "actual_cost_micros": 184200
}

The adapter intentionally does not persist the immediate value returned by send(). The pipeline must therefore surface the final receipt through get_task_status() in one of those locations before reporting a successful state. A receipt returned only by send() cannot settle a wallet hold.

output_refs must contain 1–16 bounded, non-empty strings without control-line characters. actual_cost_micros must be a nonnegative integer; zero is a valid measured cost. Missing or malformed receipt fields turn terminal success into FAILED, which triggers a full wallet refund. A reported cost above the held maximum also fails closed and refunds the hold.

The public completed envelope adds the same normalized contract plus the target:

{
  "output_receipt": {
    "version": "reelforge.render.receipt.v1",
    "target": "local",
    "output_refs": ["https://media.example/render.mp4"],
    "actual_cost_micros": 184200
  }
}

ReelForge reads RocketRide status only from a mapping or an object's model_dump() result and treats state as authoritative. It accepts a bounded set of queued, running, successful, failed, and cancelled states. Any missing or unknown state fails closed. It does not derive billing from SDK status counters or transport metadata. This defensive boundary is intentional while the official get_task_status() return annotation and payload remain under discussion in rocketride-server issue #1989.

Local/managed parity procedure

After the official editor artifact and both target profiles exist:

  1. submit the same render spec with rocketride_target: local;
  2. advance it until terminal and save its output_receipt;
  3. submit the unchanged spec with rocketride_target: managed;
  4. compare receipt version, output-ref semantics, and actual-cost field type;
  5. cancel one job on each target and confirm the wallet hold is fully released;
  6. force one pipeline failure on each target and confirm the same full refund.

Live parity is not yet verified. The repository does not contain an official visual-editor-produced ReelForge .pipe, and no runtime endpoint or credential was available for this implementation cycle.