Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
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.
747 lines
48 KiB
Markdown
747 lines
48 KiB
Markdown
# ReelForge Vision 2026 — `docs/` Information Architecture (Additive)
|
||
|
||
> **Scope.** This document is the *additive* build plan for the **entire `docs/` tree** the
|
||
> ReelForge platform needs to ship, sell, run, and be contributed to. It is the documentation-layer
|
||
> complement to the `apps-*`, `external`, `packages`, and `infra-docs` architecture tracks. Those
|
||
> tracks design *code*; **this** designs the **specs, references, runbooks, ADRs, onboarding guides,
|
||
> CODEMAPS, and contributor docs** that describe, govern, and teach that code — for four distinct
|
||
> readers: **product/eng builders**, **operators/on-call**, **the target creator audiences**
|
||
> (TikTok creators, YouTube AI channels, agencies, startups/API resellers), and **external
|
||
> contributors**.
|
||
>
|
||
> **Relationship to `infra-docs.md`.** `infra-docs.md` §3 sketches a *minimal* `docs/` skeleton for
|
||
> infra concerns. This document **supersedes and expands** that skeleton into the full platform
|
||
> documentation IA. Where they overlap (e.g. `docs/runbooks/`, `docs/adr/`), this file is
|
||
> authoritative for structure and naming; `infra-docs.md` remains authoritative for the *infra*
|
||
> content that lands inside those folders.
|
||
>
|
||
> **Non-goals.** This does NOT rewrite the existing `docs/reelforge/*.md` planning corpus
|
||
> (`ARCHITECTURE.md`, `DATA_MODEL.md`, `FEATURES.md`, roadmaps, research). Those stay as the
|
||
> historical "how we decided" record. This plan adds the **living, versioned product & engineering
|
||
> documentation** that ships alongside the code and is kept green in CI.
|
||
|
||
---
|
||
|
||
## 0. Governing principles (constraints every file below obeys)
|
||
|
||
1. **Docs live next to the surface they describe, discoverable from one index.** Every domain has a
|
||
product spec, an API reference page, a data-model page, and a CODEMAP — cross-linked. A single
|
||
`docs/README.md` + `docs/_meta/nav.yml` is the source of truth for navigation.
|
||
2. **One page = one responsibility, 200–400 lines.** Same file-size discipline as code. Large
|
||
subjects are split into a folder with an `index.md` overview and focused children.
|
||
3. **Docs are generated where a machine can be authoritative.** API reference pages are
|
||
scaffolded from the OpenAPI spec + `@reelforge/api-contract`; ERD diagrams from SQLAlchemy
|
||
models; CODEMAPS from a repo walker. Hand-written prose wraps generated blocks between
|
||
`<!-- gen:start -->/<!-- gen:end -->` markers so CI can refresh them without clobbering prose.
|
||
4. **Audience-segmented onboarding.** Creator-facing guides (`docs/guides/`) never assume code
|
||
literacy; contributor docs (`docs/contributing/`) never re-explain the product. A reader lands
|
||
in exactly one lane.
|
||
5. **Every doc has front-matter.** `title`, `audience`, `status` (draft|review|stable|deprecated),
|
||
`owner`, `last_reviewed`, `related`. CI fails a doc missing front-matter or past its
|
||
`review_by` date (docs rot check).
|
||
6. **ADRs are immutable; specs are living.** Decisions are append-only records; specs are updated in
|
||
place and versioned via git. Superseding an ADR adds a new one that links back.
|
||
7. **Diagrams are text-first.** Mermaid / PlantUML committed as source so they diff and render in
|
||
the portal; exported SVGs are build artifacts, never committed by hand.
|
||
|
||
---
|
||
|
||
## 1. Top-level `docs/` tree (overview)
|
||
|
||
```
|
||
docs/
|
||
README.md # master index: pick your lane (build | run | create | contribute)
|
||
_meta/ # docs-about-docs: nav, templates, style, tooling, CI checks
|
||
overview/ # what ReelForge is: product, personas, glossary, pricing model
|
||
product/ # PRD-grade product specs, one folder per domain
|
||
api/ # HTTP + SDK + MCP + webhook reference, one folder per domain
|
||
data-model/ # ERDs, per-table dictionaries, migration + retention policy
|
||
architecture/ # (this vision2026/architecture set is symlinked/indexed here)
|
||
runbooks/ # operator + on-call procedures, per subsystem
|
||
adr/ # Architecture Decision Records (immutable, numbered)
|
||
rfcs/ # proposals in-flight before they become ADRs/specs
|
||
guides/ # audience onboarding: creators, channels, agencies, resellers
|
||
developer-portal/ # external developer / API-reseller docs (public site source)
|
||
security/ # trust, compliance, moderation, data-handling, abuse
|
||
operations/ # SLOs, cost, capacity, incident, release, on-call rotations
|
||
contributing/ # contributor handbook, local dev, testing, review, style
|
||
reference/ # cross-cutting reference: config, env, errors, limits, events
|
||
release-notes/ # changelog + per-release notes + migration guides
|
||
CODEMAPS/ -> ../CODEMAPS/ # pointer; the real tree lives at docs/CODEMAPS/ (see §14)
|
||
```
|
||
|
||
Sections §2–§16 below enumerate every file with a one-line purpose. Target: 150+ files.
|
||
|
||
---
|
||
|
||
## 2. `docs/_meta/` — docs-about-docs (tooling & governance)
|
||
|
||
The machinery that keeps the docs tree consistent, navigable, and green in CI.
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/_meta/nav.yml` | Single source of truth for portal navigation tree + ordering. |
|
||
| `docs/_meta/audiences.yml` | Canonical audience tags (builder, operator, creator, channel, agency, reseller, contributor). |
|
||
| `docs/_meta/style-guide.md` | Voice, terminology, capitalization, "microdollar" spelling, diagram rules. |
|
||
| `docs/_meta/frontmatter-schema.json` | JSON Schema every doc's YAML front-matter is validated against. |
|
||
| `docs/_meta/templates/product-spec.md` | Skeleton for a domain product spec (problem→personas→flows→edge cases). |
|
||
| `docs/_meta/templates/api-reference.md` | Skeleton for an API reference page (auth→endpoints→errors→examples). |
|
||
| `docs/_meta/templates/runbook.md` | Skeleton for an operational runbook (symptom→diagnose→remediate→verify). |
|
||
| `docs/_meta/templates/adr.md` | ADR template (context→decision→consequences→alternatives). |
|
||
| `docs/_meta/templates/rfc.md` | RFC template (summary→motivation→design→drawbacks→unresolved). |
|
||
| `docs/_meta/templates/codemap.md` | CODEMAP template (module tree→responsibilities→seams→entrypoints). |
|
||
| `docs/_meta/templates/guide.md` | Creator-guide template (goal→prereqs→steps→troubleshooting). |
|
||
| `docs/_meta/glossary-source.yml` | Machine-readable term→definition list rendered into the glossary. |
|
||
| `docs/_meta/linkcheck.config.json` | Config for the internal/external link checker CI job. |
|
||
| `docs/_meta/rot-check.md` | Policy + tooling for the "docs past review_by date" failing check. |
|
||
| `docs/_meta/generation.md` | How generated blocks (OpenAPI, ERD, CODEMAP) are refreshed and gated. |
|
||
| `docs/_meta/ownership.md` | CODEOWNERS-style map of doc folders → owning team/person. |
|
||
| `docs/_meta/portal.md` | How the docs site is built (static generator, theme, search index, deploy). |
|
||
| `docs/_meta/contributing-to-docs.md` | How to add/edit a doc, run checks locally, preview the portal. |
|
||
|
||
---
|
||
|
||
## 3. `docs/overview/` — what ReelForge is
|
||
|
||
The shared context every lane starts from. Audience-neutral, product-level.
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/overview/index.md` | One-paragraph product definition + map to the four reader lanes. |
|
||
| `docs/overview/what-is-reelforge.md` | The product story: creation × clipfarm × publishing × growth. |
|
||
| `docs/overview/personas.md` | The five buyer personas + their jobs-to-be-done and success metrics. |
|
||
| `docs/overview/value-props.md` | Per-persona value propositions and competitive differentiators. |
|
||
| `docs/overview/pricing-and-wallet.md` | The microdollar wallet, success-only billing, plans, markup model. |
|
||
| `docs/overview/glossary.md` | Rendered glossary of ReelForge terms (reel, shot, animatic, NCP, clipfarm…). |
|
||
| `docs/overview/domain-map.md` | Map of all product domains and how they compose end-to-end. |
|
||
| `docs/overview/lifecycle-of-a-reel.md` | Narrative walkthrough: idea → storyboard → render → caption → publish → insight. |
|
||
| `docs/overview/system-context-diagram.md` | C4 level-1 context diagram (users, apps, providers, billing). |
|
||
| `docs/overview/faq.md` | Cross-cutting FAQ spanning product, billing, providers, and limits. |
|
||
| `docs/overview/comparison-vs-competitors.md` | Positioning vs Higgsfield, CapCut, OpusClip, invideo, etc. |
|
||
|
||
---
|
||
|
||
## 4. `docs/product/` — PRD-grade product specs (one folder per domain)
|
||
|
||
Each domain gets a folder mirroring `apps/api/app/domains/<name>/`. Every folder has an
|
||
`index.md` (problem, personas, KPIs, flows), plus focused children for entities, flows, edge cases,
|
||
and acceptance criteria. This is the "what & why"; §5 is the "how to call it".
|
||
|
||
### 4.1 `docs/product/templates/` — genre shot-template engine (crown jewel)
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/templates/index.md` | Product spec: what a template is and why it's the core differentiator. |
|
||
| `docs/product/templates/template-anatomy.md` | Anatomy of a template: shots, beats, slots, style, pacing. |
|
||
| `docs/product/templates/genre-catalog.md` | The launch genre catalog (talking-head, listicle, ASMR, meme, etc.). |
|
||
| `docs/product/templates/authoring-flow.md` | How a creator/curator authors and versions a template. |
|
||
| `docs/product/templates/parameterization.md` | User-fillable slots, constraints, and validation rules. |
|
||
| `docs/product/templates/marketplace-listing.md` | How templates become sellable marketplace items. |
|
||
| `docs/product/templates/acceptance-criteria.md` | Testable acceptance criteria for template rendering. |
|
||
| `docs/product/templates/edge-cases.md` | Failure modes: missing slots, over-length beats, style clash. |
|
||
|
||
### 4.2 `docs/product/storyboard/` — screenplay → shot-list → first-frame → animatic
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/storyboard/index.md` | Product spec for the storyboard domain and its four stages. |
|
||
| `docs/product/storyboard/screenplay-input.md` | Accepted script formats and idea-to-script assistance. |
|
||
| `docs/product/storyboard/shot-list.md` | Shot decomposition model: shot, angle, duration, dialogue. |
|
||
| `docs/product/storyboard/first-frame.md` | First-frame keyframe generation and approval loop. |
|
||
| `docs/product/storyboard/animatic.md` | Animatic assembly, timing, and preview semantics. |
|
||
| `docs/product/storyboard/revision-loop.md` | Human-in-the-loop edits and regeneration cost accounting. |
|
||
| `docs/product/storyboard/acceptance-criteria.md` | Acceptance criteria per stage. |
|
||
|
||
### 4.3 `docs/product/film/` — multi-agent AI-movie orchestration + NCP
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/film/index.md` | Product spec for long-form / multi-scene AI film assembly. |
|
||
| `docs/product/film/agent-roles.md` | The agent roster (director, writer, cinematographer, editor). |
|
||
| `docs/product/film/narrative-context-protocol.md` | NCP: how narrative state/continuity flows between agents. |
|
||
| `docs/product/film/scene-graph.md` | Scene/sequence graph model and dependency resolution. |
|
||
| `docs/product/film/continuity-and-consistency.md` | Character/style/world continuity guarantees across scenes. |
|
||
| `docs/product/film/orchestration-flow.md` | End-to-end orchestration flow and checkpointing. |
|
||
| `docs/product/film/cost-and-limits.md` | Cost ceilings, per-scene budgets, and abort semantics. |
|
||
| `docs/product/film/acceptance-criteria.md` | Acceptance criteria for a completed film job. |
|
||
|
||
### 4.4 `docs/product/characters/` — Character/Style lock + LoRA training
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/characters/index.md` | Product spec for persistent characters and style locks (Soul-ID-like). |
|
||
| `docs/product/characters/character-entity.md` | The character entity: identity, appearance, voice, references. |
|
||
| `docs/product/characters/style-lock.md` | Style-lock entity and how it constrains generation. |
|
||
| `docs/product/characters/lora-training.md` | LoRA training flow, dataset requirements, and cost. |
|
||
| `docs/product/characters/consistency-guarantees.md` | What "locked" guarantees across shots/scenes/episodes. |
|
||
| `docs/product/characters/rights-and-consent.md` | Likeness rights, consent capture, and moderation ties. |
|
||
| `docs/product/characters/acceptance-criteria.md` | Acceptance criteria for a usable locked character. |
|
||
|
||
### 4.5 `docs/product/series/` — clipfarm: episodic series, batch runs, cadence
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/series/index.md` | Product spec for the clipfarm: series, seasons, and batch generation. |
|
||
| `docs/product/series/series-model.md` | Series/season/episode entity model and templating. |
|
||
| `docs/product/series/batch-runs.md` | Batch run semantics: fan-out, partial failure, resume. |
|
||
| `docs/product/series/cadence-and-scheduling.md` | Posting cadence, calendars, and queue depth planning. |
|
||
| `docs/product/series/variation-strategies.md` | Programmatic variation (hooks, topics, seeds) for volume. |
|
||
| `docs/product/series/cost-controls.md` | Per-series budgets and spend caps for high-volume operators. |
|
||
| `docs/product/series/acceptance-criteria.md` | Acceptance criteria for a completed batch run. |
|
||
|
||
### 4.6 `docs/product/publishing/` — OAuth connectors, scheduler, retention, A/B
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/publishing/index.md` | Product spec for cross-platform publishing and distribution. |
|
||
| `docs/product/publishing/platform-connectors.md` | Supported platforms (TikTok, YT Shorts, IG Reels) and OAuth scopes. |
|
||
| `docs/product/publishing/scheduler.md` | Scheduling model: slots, timezones, best-time recommendations. |
|
||
| `docs/product/publishing/retention-analytics.md` | Retention curve ingestion and per-video insight surfacing. |
|
||
| `docs/product/publishing/ab-testing.md` | A/B experiments on hooks/thumbnails/captions and readout. |
|
||
| `docs/product/publishing/publish-safety.md` | Rate limits, duplicate detection, and platform ToS guardrails. |
|
||
| `docs/product/publishing/acceptance-criteria.md` | Acceptance criteria for a scheduled + published post. |
|
||
|
||
### 4.7 `docs/product/trends/` — trend + sound ingestion and scoring
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/trends/index.md` | Product spec for trend and trending-sound discovery. |
|
||
| `docs/product/trends/ingestion-sources.md` | Where trend/sound signals come from and refresh cadence. |
|
||
| `docs/product/trends/scoring-model.md` | Trend scoring, freshness decay, and niche relevance. |
|
||
| `docs/product/trends/sound-library.md` | Trending-sound catalog, licensing flags, and usage. |
|
||
| `docs/product/trends/trend-to-template.md` | Turning a trend into a ready-to-fill template. |
|
||
| `docs/product/trends/acceptance-criteria.md` | Acceptance criteria for a surfaced, actionable trend. |
|
||
|
||
### 4.8 `docs/product/marketplace/` — templates, clips, providers, affiliate
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/marketplace/index.md` | Product spec for the multi-sided marketplace. |
|
||
| `docs/product/marketplace/template-marketplace.md` | Buying/selling shot templates and revenue share. |
|
||
| `docs/product/marketplace/clipmarket.md` | Pay-per-view clipping marketplace (clipmarket domain). |
|
||
| `docs/product/marketplace/provider-marketplace.md` | Third-party model/provider listing and routing integration. |
|
||
| `docs/product/marketplace/affiliate-program.md` | Affiliate/referral mechanics and attribution. |
|
||
| `docs/product/marketplace/payouts-and-revshare.md` | Payout ledger, revenue split, and settlement timing. |
|
||
| `docs/product/marketplace/trust-and-quality.md` | Listing review, ratings, fraud, and takedown. |
|
||
| `docs/product/marketplace/acceptance-criteria.md` | Acceptance criteria for a live, purchasable listing. |
|
||
|
||
### 4.9 `docs/product/growth/` — growth loops, analytics, gateway/reseller
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/growth/index.md` | Product spec for growth: loops, analytics, and API gateway. |
|
||
| `docs/product/growth/growth-loops.md` | Referral, watermark, and content-flywheel loops. |
|
||
| `docs/product/growth/creator-analytics.md` | Cross-platform analytics dashboard for creators. |
|
||
| `docs/product/growth/gateway-and-plans.md` | Provisioning keys, tiered plans, and metered billing (Lago bridge). |
|
||
| `docs/product/growth/reseller-program.md` | API-reseller model: sub-accounts, markup, quota. |
|
||
| `docs/product/growth/acceptance-criteria.md` | Acceptance criteria for growth-surface features. |
|
||
|
||
### 4.10 Supporting product specs (cross-domain)
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/product/captions/index.md` | Caption/subtitle styling, karaoke timing, and language support. |
|
||
| `docs/product/assets/index.md` | Asset library: uploads, generated media, rights metadata. |
|
||
| `docs/product/presets/index.md` | Camera-move / VFX preset library product spec. |
|
||
| `docs/product/moderation/index.md` | Content moderation product surface and creator-facing appeals. |
|
||
| `docs/product/wallet/index.md` | Wallet UX: top-up, holds, refunds, spend visibility. |
|
||
| `docs/product/repurpose/index.md` | Long-form → clips repurposing product spec. |
|
||
| `docs/product/studio/index.md` | Timeline/EDL editor product spec. |
|
||
| `docs/product/onboarding/index.md` | In-product onboarding and activation flows per persona. |
|
||
|
||
---
|
||
|
||
## 5. `docs/api/` — HTTP + SDK + MCP + webhook reference (per domain)
|
||
|
||
Each domain has an API reference page whose endpoint tables are generated from the OpenAPI spec /
|
||
`@reelforge/api-contract` between `gen` markers, with hand-written auth, examples, and error notes.
|
||
|
||
### 5.1 API reference conventions
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/api/index.md` | API surface map + how to read a reference page. |
|
||
| `docs/api/authentication.md` | API keys, OAuth, principal/workspace scoping, key rotation. |
|
||
| `docs/api/conventions.md` | Response envelope, pagination, idempotency keys, versioning. |
|
||
| `docs/api/errors.md` | Canonical error codes, HTTP mapping, and retry guidance. |
|
||
| `docs/api/rate-limits.md` | Per-plan rate limits, quotas, and 429 handling. |
|
||
| `docs/api/webhooks.md` | Webhook event catalog, signing, delivery, and replay. |
|
||
| `docs/api/idempotency.md` | Idempotency-key semantics for job-creating endpoints. |
|
||
| `docs/api/openapi.md` | How the OpenAPI spec is produced, hosted, and versioned. |
|
||
|
||
### 5.2 Per-domain endpoint references
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/api/domains/templates.md` | Template CRUD, versioning, render-from-template endpoints. |
|
||
| `docs/api/domains/storyboard.md` | Screenplay/shot-list/first-frame/animatic endpoints. |
|
||
| `docs/api/domains/film.md` | Film job creation, agent status, scene-graph endpoints. |
|
||
| `docs/api/domains/characters.md` | Character/style-lock CRUD + LoRA training endpoints. |
|
||
| `docs/api/domains/series.md` | Series/season/episode + batch-run endpoints. |
|
||
| `docs/api/domains/publishing.md` | Connector OAuth, schedule, publish, retention endpoints. |
|
||
| `docs/api/domains/trends.md` | Trend/sound query and trend-to-template endpoints. |
|
||
| `docs/api/domains/marketplace.md` | Listing, purchase, payout, and affiliate endpoints. |
|
||
| `docs/api/domains/clipmarket.md` | Pay-per-view clipping marketplace endpoints. |
|
||
| `docs/api/domains/growth.md` | Analytics, gateway provisioning, reseller sub-account endpoints. |
|
||
| `docs/api/domains/wallet.md` | Balance, top-up, holds, refunds, ledger read endpoints. |
|
||
| `docs/api/domains/routing.md` | Provider routing hints, cost-cap, and usage-record endpoints. |
|
||
| `docs/api/domains/catalog.md` | Model/provider catalog and price-version endpoints. |
|
||
| `docs/api/domains/captions.md` | Caption generation and styling endpoints. |
|
||
| `docs/api/domains/assets.md` | Asset upload, list, and rights-metadata endpoints. |
|
||
| `docs/api/domains/presets.md` | Camera-move / VFX preset endpoints. |
|
||
| `docs/api/domains/moderation.md` | Moderation status, appeals, and takedown endpoints. |
|
||
| `docs/api/domains/jobs.md` | Job status, events stream, and progress polling endpoints. |
|
||
| `docs/api/domains/compose.md` | Render/compose spec submission endpoints. |
|
||
| `docs/api/domains/repurpose.md` | Long→clips repurposing endpoints. |
|
||
|
||
### 5.3 SDK & MCP reference
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/api/sdk/typescript.md` | `@reelforge/sdk` install, auth, resource methods, examples. |
|
||
| `docs/api/sdk/python.md` | `reelforge-sdk` install, auth, resource methods, examples. |
|
||
| `docs/api/sdk/versioning-and-compat.md` | SDK semver policy and API-contract sync. |
|
||
| `docs/api/mcp/index.md` | ReelForge MCP server: tools exposed and how agents call them. |
|
||
| `docs/api/mcp/tool-reference.md` | Per-tool MCP reference (inputs, outputs, cost side-effects). |
|
||
| `docs/api/webhooks/event-catalog.md` | Full generated catalog of webhook event payloads. |
|
||
| `docs/api/webhooks/security.md` | Signature verification and replay-protection guide. |
|
||
|
||
---
|
||
|
||
## 6. `docs/data-model/` — ERDs, dictionaries, migration & retention
|
||
|
||
ERD Mermaid blocks and per-table column dictionaries are generated from SQLAlchemy models between
|
||
`gen` markers; retention and migration prose is hand-written.
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/data-model/index.md` | How to read the ERDs; module-per-file model layout (`app/models/db/*`). |
|
||
| `docs/data-model/erd-overview.md` | Whole-platform ERD (Mermaid) with domain clustering. |
|
||
| `docs/data-model/conventions.md` | PK/uuid, timestamp, microdollar, append-only ledger conventions. |
|
||
| `docs/data-model/domains/templates.md` | Template/version/slot tables + relationships. |
|
||
| `docs/data-model/domains/storyboard.md` | Screenplay/shot/keyframe/animatic tables. |
|
||
| `docs/data-model/domains/film.md` | Film job / scene-graph / agent-state / NCP tables. |
|
||
| `docs/data-model/domains/characters.md` | Character/style-lock/LoRA-artifact tables. |
|
||
| `docs/data-model/domains/series.md` | Series/season/episode/batch-run tables. |
|
||
| `docs/data-model/domains/publishing.md` | Connector/token/schedule/post/retention tables. |
|
||
| `docs/data-model/domains/trends.md` | Trend/sound/score tables. |
|
||
| `docs/data-model/domains/marketplace.md` | Listing/purchase/payout/revshare tables. |
|
||
| `docs/data-model/domains/clipmarket.md` | Clip listing / view / affiliate tables. |
|
||
| `docs/data-model/domains/growth.md` | Analytics rollup / gateway-key / reseller-account tables. |
|
||
| `docs/data-model/domains/wallet.md` | Wallet/ledger/hold/refund tables (append-only). |
|
||
| `docs/data-model/domains/routing.md` | Provider/route/usage-record tables. |
|
||
| `docs/data-model/domains/catalog.md` | Catalog/price-version/license tables. |
|
||
| `docs/data-model/domains/jobs.md` | Job/job-event/progress tables. |
|
||
| `docs/data-model/domains/moderation.md` | Moderation-case/appeal/decision tables. |
|
||
| `docs/data-model/domains/assets.md` | Asset/rights-metadata/derivative tables. |
|
||
| `docs/data-model/migrations.md` | Alembic workflow, naming, and review checklist. |
|
||
| `docs/data-model/retention-policy.md` | Per-table retention, PII classification, purge jobs. |
|
||
| `docs/data-model/indexing-and-perf.md` | Index strategy, hot-path queries, materialized balances. |
|
||
| `docs/data-model/data-lineage.md` | How data flows across domains (source → derived → analytics). |
|
||
|
||
---
|
||
|
||
## 7. `docs/runbooks/` — operator & on-call procedures
|
||
|
||
Symptom → diagnose → remediate → verify. One file per operable subsystem. (Infra-specific runbooks
|
||
authored under `infra-docs.md` land here too.)
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/runbooks/index.md` | Runbook index + severity/escalation conventions. |
|
||
| `docs/runbooks/gpu-render-workers.md` | Diagnosing stuck/failed GPU render jobs and worker restarts. |
|
||
| `docs/runbooks/gpu-autoscale.md` | Scaling GPU pool on queue depth + wallet-holds; warm-pool cost. |
|
||
| `docs/runbooks/celery-queues.md` | `celery/render/generation` queue backlog and stuck-task triage. |
|
||
| `docs/runbooks/wallet-ledger.md` | Reconciling wallet balances; handling stuck holds/refunds. |
|
||
| `docs/runbooks/billing-lago.md` | Lago invoicing sync failures and reconciliation. |
|
||
| `docs/runbooks/provider-outage.md` | Detecting a provider outage; failover routing; cost containment. |
|
||
| `docs/runbooks/publishing-oauth.md` | Refreshing/repairing platform OAuth tokens at scale. |
|
||
| `docs/runbooks/publishing-failures.md` | Failed/duplicate posts, platform rate-limit recovery. |
|
||
| `docs/runbooks/lora-training.md` | Failed LoRA training jobs and dataset issues. |
|
||
| `docs/runbooks/film-orchestration.md` | Stuck film jobs, agent deadlocks, checkpoint resume. |
|
||
| `docs/runbooks/series-batch.md` | Partial batch-run failures and safe resume. |
|
||
| `docs/runbooks/trends-ingestion.md` | Trend/sound ingestion pipeline stalls and stale data. |
|
||
| `docs/runbooks/moderation-queue.md` | Moderation backlog, appeals SLA, and takedown execution. |
|
||
| `docs/runbooks/marketplace-payouts.md` | Payout run failures and settlement disputes. |
|
||
| `docs/runbooks/database.md` | Neon failover, migration rollback, long-lock resolution. |
|
||
| `docs/runbooks/object-storage.md` | R2 asset access failures and lifecycle issues. |
|
||
| `docs/runbooks/api-latency.md` | Diagnosing p95 latency spikes across domains. |
|
||
| `docs/runbooks/webhooks-delivery.md` | Webhook delivery backlog and replay procedures. |
|
||
| `docs/runbooks/secrets-rotation.md` | Rotating BYOK/Fernet keys and provider credentials. |
|
||
| `docs/runbooks/incident-template.md` | Live-incident scratchpad template for on-call. |
|
||
| `docs/runbooks/dr-restore.md` | Disaster-recovery restore drill and RPO/RTO verification. |
|
||
|
||
---
|
||
|
||
## 8. `docs/adr/` — Architecture Decision Records (immutable)
|
||
|
||
Numbered, append-only. Each supersession adds a new ADR linking back. Only illustrative seeds shown;
|
||
`0000-template.md` governs new entries.
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/adr/index.md` | ADR log index (status column: proposed/accepted/superseded). |
|
||
| `docs/adr/0000-record-architecture-decisions.md` | Why we keep ADRs and the process. |
|
||
| `docs/adr/0001-microdollar-integer-money.md` | Decision to represent all money as integer microdollars. |
|
||
| `docs/adr/0002-domain-package-layout.md` | `domains/<name>/{router,service,schemas,repository,policy}` layout. |
|
||
| `docs/adr/0003-success-only-billing.md` | Charge only on confirmed provider success. |
|
||
| `docs/adr/0004-append-only-ledgers.md` | Append-only wallet/ledger with materialized balances. |
|
||
| `docs/adr/0005-routing-engine-abstraction.md` | OpenRouter-style provider routing abstraction. |
|
||
| `docs/adr/0006-byok-fernet-encryption.md` | BYOK credential storage via Fernet. |
|
||
| `docs/adr/0007-async-gpu-job-envelope.md` | Single async GPU job envelope + telemetry schema. |
|
||
| `docs/adr/0008-narrative-context-protocol.md` | NCP as the film-agent continuity contract. |
|
||
| `docs/adr/0009-shared-render-spec.md` | One declarative render spec across Python + JS previews. |
|
||
| `docs/adr/0010-schema-package-codegen.md` | Canonical-schema → dual-language codegen pattern. |
|
||
| `docs/adr/0011-character-style-lock-model.md` | Character/style-lock entity approach for consistency. |
|
||
| `docs/adr/0012-lago-for-invoicing-only.md` | Lago is invoicing-only; wallet stays billing truth. |
|
||
| `docs/adr/0013-webhook-signing-scheme.md` | Webhook signing and replay-protection scheme. |
|
||
| `docs/adr/0014-mcp-server-surface.md` | Exposing ReelForge as an MCP tool server. |
|
||
| `docs/adr/0015-moderation-pipeline.md` | Moderation placement and human-appeal design. |
|
||
| `docs/adr/0016-docs-generation-strategy.md` | Generated doc blocks + rot-check policy (this IA). |
|
||
| `docs/adr/0017-multitenant-workspace-scoping.md` | Principal/workspace scoping for resellers/sub-accounts. |
|
||
| `docs/adr/0000-template.md` | Blank ADR template for new decisions. |
|
||
|
||
---
|
||
|
||
## 9. `docs/rfcs/` — proposals in-flight
|
||
|
||
Design proposals before they harden into ADRs/specs. Numbered per year.
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/rfcs/index.md` | RFC log + lifecycle (draft → review → accepted → ADR). |
|
||
| `docs/rfcs/0000-template.md` | RFC template. |
|
||
| `docs/rfcs/2026-0001-realtime-preview-protocol.md` | Proposal for live collaborative render preview. |
|
||
| `docs/rfcs/2026-0002-multi-region-gpu.md` | Proposal for multi-region GPU render placement. |
|
||
| `docs/rfcs/2026-0003-creator-payout-v2.md` | Proposal for revised marketplace payout mechanics. |
|
||
| `docs/rfcs/2026-0004-agent-tool-marketplace.md` | Proposal for third-party agent tools in film orchestration. |
|
||
|
||
---
|
||
|
||
## 10. `docs/guides/` — audience onboarding (creator-facing, no code literacy)
|
||
|
||
Task-oriented guides segmented by persona. Each lane has a `start-here.md` funnel and focused
|
||
how-tos. Written for creators/operators, not engineers.
|
||
|
||
### 10.1 `docs/guides/tiktok-creators/`
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/guides/tiktok-creators/start-here.md` | First-15-minutes path for a solo TikTok creator. |
|
||
| `docs/guides/tiktok-creators/first-reel.md` | Make your first reel from a template. |
|
||
| `docs/guides/tiktok-creators/hooks-that-convert.md` | Using trends + A/B hooks to lift retention. |
|
||
| `docs/guides/tiktok-creators/captions-and-style.md` | Karaoke captions and on-brand styling. |
|
||
| `docs/guides/tiktok-creators/publish-to-tiktok.md` | Connect TikTok and schedule posts. |
|
||
| `docs/guides/tiktok-creators/reading-your-analytics.md` | Interpreting retention curves and iterating. |
|
||
| `docs/guides/tiktok-creators/wallet-and-costs.md` | Understanding microdollar costs and top-ups. |
|
||
|
||
### 10.2 `docs/guides/youtube-ai-channels/` (faceless-content operators)
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/guides/youtube-ai-channels/start-here.md` | Path for a faceless / AI-narrated channel operator. |
|
||
| `docs/guides/youtube-ai-channels/build-a-series.md` | Set up an episodic series in the clipfarm. |
|
||
| `docs/guides/youtube-ai-channels/batch-production.md` | Run high-volume batch generation safely. |
|
||
| `docs/guides/youtube-ai-channels/character-consistency.md` | Lock recurring characters/voices across episodes. |
|
||
| `docs/guides/youtube-ai-channels/scheduling-cadence.md` | Plan a posting cadence and calendar. |
|
||
| `docs/guides/youtube-ai-channels/repurpose-long-form.md` | Turn long videos into Shorts automatically. |
|
||
| `docs/guides/youtube-ai-channels/cost-at-scale.md` | Budgeting and spend caps for volume operations. |
|
||
|
||
### 10.3 `docs/guides/agencies/`
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/guides/agencies/start-here.md` | Path for an agency managing many client accounts. |
|
||
| `docs/guides/agencies/workspaces-and-clients.md` | Organizing workspaces, seats, and client separation. |
|
||
| `docs/guides/agencies/brand-kits-and-presets.md` | Reusable brand kits, presets, and templates per client. |
|
||
| `docs/guides/agencies/approval-workflows.md` | Review/approval loops before client publishing. |
|
||
| `docs/guides/agencies/reporting-to-clients.md` | Exporting cross-platform analytics for client reports. |
|
||
| `docs/guides/agencies/team-roles-and-permissions.md` | Roles, permissions, and audit for agency teams. |
|
||
| `docs/guides/agencies/white-label.md` | White-labeling ReelForge output and portals. |
|
||
|
||
### 10.4 `docs/guides/startups-api-resellers/`
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/guides/startups-api-resellers/start-here.md` | Path for startups building on / reselling the API. |
|
||
| `docs/guides/startups-api-resellers/quickstart.md` | First API call to first rendered reel in 10 minutes. |
|
||
| `docs/guides/startups-api-resellers/provisioning-keys.md` | Creating and scoping gateway API keys. |
|
||
| `docs/guides/startups-api-resellers/sub-accounts-and-markup.md` | Reseller sub-accounts, markup, and quotas. |
|
||
| `docs/guides/startups-api-resellers/metered-billing.md` | Metered billing via the Lago bridge. |
|
||
| `docs/guides/startups-api-resellers/webhooks-integration.md` | Consuming job/publish webhooks reliably. |
|
||
| `docs/guides/startups-api-resellers/going-to-production.md` | Rate limits, retries, idempotency, and scaling checklist. |
|
||
|
||
### 10.5 Cross-audience how-tos
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/guides/how-to/create-a-template.md` | Author a reusable shot template. |
|
||
| `docs/guides/how-to/storyboard-a-script.md` | Go from script to animatic. |
|
||
| `docs/guides/how-to/train-a-character.md` | Train and use a locked character. |
|
||
| `docs/guides/how-to/sell-on-marketplace.md` | List templates/clips for sale. |
|
||
| `docs/guides/how-to/set-up-affiliate.md` | Enroll in and share affiliate links. |
|
||
| `docs/guides/how-to/connect-a-platform.md` | OAuth-connect a publishing destination. |
|
||
| `docs/guides/how-to/troubleshooting.md` | Common creator errors and fixes. |
|
||
| `docs/guides/how-to/glossary-for-creators.md` | Plain-language glossary for non-technical users. |
|
||
|
||
---
|
||
|
||
## 11. `docs/developer-portal/` — public developer & API-reseller site source
|
||
|
||
Source for the externally-hosted developer portal (built by `_meta/portal.md` tooling). Aimed at
|
||
startups/API resellers; deeper than `guides/startups-api-resellers/`.
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/developer-portal/index.md` | Portal landing: what you can build on ReelForge. |
|
||
| `docs/developer-portal/getting-started.md` | Sign up, get keys, make your first authenticated call. |
|
||
| `docs/developer-portal/concepts.md` | Core concepts: reels, jobs, wallet, routing, webhooks. |
|
||
| `docs/developer-portal/authentication.md` | Key types, scopes, and OAuth for reseller sub-accounts. |
|
||
| `docs/developer-portal/quickstarts/node.md` | Node/TypeScript quickstart with `@reelforge/sdk`. |
|
||
| `docs/developer-portal/quickstarts/python.md` | Python quickstart with `reelforge-sdk`. |
|
||
| `docs/developer-portal/quickstarts/curl.md` | Raw-HTTP quickstart with curl. |
|
||
| `docs/developer-portal/recipes/generate-and-poll.md` | Create a job and poll/stream to completion. |
|
||
| `docs/developer-portal/recipes/webhook-consumer.md` | Build a reliable webhook consumer. |
|
||
| `docs/developer-portal/recipes/reseller-onboarding.md` | Provision a customer sub-account end-to-end. |
|
||
| `docs/developer-portal/recipes/cost-estimation.md` | Estimate cost before running a job. |
|
||
| `docs/developer-portal/pricing-and-quotas.md` | Public pricing, plans, quotas, and overage. |
|
||
| `docs/developer-portal/errors-and-retries.md` | Error reference and safe retry patterns. |
|
||
| `docs/developer-portal/status-and-sla.md` | Status page, uptime SLA, and support channels. |
|
||
| `docs/developer-portal/changelog.md` | Public API changelog (generated from release-notes). |
|
||
| `docs/developer-portal/terms-and-acceptable-use.md` | Developer ToS and acceptable-use policy. |
|
||
| `docs/developer-portal/migration-guides.md` | Breaking-change migration guides index. |
|
||
|
||
---
|
||
|
||
## 12. `docs/security/` — trust, compliance, moderation, abuse
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/security/index.md` | Security posture overview and reporting contact. |
|
||
| `docs/security/threat-model.md` | STRIDE threat model across the platform surfaces. |
|
||
| `docs/security/data-handling.md` | Data classification, PII, encryption at rest/in transit. |
|
||
| `docs/security/byok-and-secrets.md` | BYOK/Fernet handling and secret lifecycle. |
|
||
| `docs/security/authn-authz.md` | Authentication, authorization, and workspace isolation. |
|
||
| `docs/security/tenant-isolation.md` | Multi-tenant isolation guarantees for resellers/agencies. |
|
||
| `docs/security/content-moderation-policy.md` | Prohibited content, likeness/consent, and enforcement. |
|
||
| `docs/security/abuse-and-fraud.md` | Marketplace fraud, payout abuse, and rate abuse controls. |
|
||
| `docs/security/compliance.md` | GDPR/CCPA, DSAR handling, and data-residency notes. |
|
||
| `docs/security/vulnerability-disclosure.md` | Responsible-disclosure process and scope. |
|
||
| `docs/security/dependency-supply-chain.md` | Dependency scanning and vendored-OSS (external/) risk. |
|
||
| `docs/security/audit-logging.md` | What is audit-logged and how logs are protected. |
|
||
| `docs/security/incident-response.md` | Security incident response playbook. |
|
||
|
||
---
|
||
|
||
## 13. `docs/operations/` — SLOs, cost, capacity, release, on-call
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/operations/index.md` | Operations handbook overview. |
|
||
| `docs/operations/slos.md` | Platform SLOs/SLIs incl. success-only-billing SLI. |
|
||
| `docs/operations/cost-and-margin.md` | GPU/provider cost model, warm-pool cost, margin dashboards. |
|
||
| `docs/operations/capacity-planning.md` | Queue-depth + wallet-hold driven capacity planning. |
|
||
| `docs/operations/observability.md` | Metrics, traces, logs, and dashboard catalog. |
|
||
| `docs/operations/alerting.md` | Alert catalog, thresholds, and routing. |
|
||
| `docs/operations/on-call.md` | On-call rotation, escalation, and handoff. |
|
||
| `docs/operations/release-process.md` | Cut, stage, canary, promote, rollback flow. |
|
||
| `docs/operations/deployment-environments.md` | dev/staging/prod topology and promotion gates. |
|
||
| `docs/operations/feature-flags.md` | Flag lifecycle and safe rollout policy. |
|
||
| `docs/operations/backup-and-dr.md` | Backup schedule, DR strategy, RPO/RTO targets. |
|
||
| `docs/operations/incident-postmortems/index.md` | Blameless postmortem log + template. |
|
||
| `docs/operations/incident-postmortems/template.md` | Postmortem template. |
|
||
| `docs/operations/cost-alerts-provider-outage.md` | Preventing GPU burn during provider outages. |
|
||
|
||
---
|
||
|
||
## 14. `docs/contributing/` — contributor handbook
|
||
|
||
For external and internal engineers. Never re-explains the product; assumes code literacy.
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/contributing/index.md` | Contributor handbook entry + code of conduct link. |
|
||
| `docs/contributing/code-of-conduct.md` | Community standards. |
|
||
| `docs/contributing/local-setup.md` | Clone, env, docker-compose stacks, first run. |
|
||
| `docs/contributing/monorepo-tour.md` | Tour of apps/, packages/, external/, infra/, docs/. |
|
||
| `docs/contributing/branching-and-git.md` | Branch naming, commit format, PR workflow. |
|
||
| `docs/contributing/coding-standards.md` | Immutability, small-files, error-handling conventions. |
|
||
| `docs/contributing/python-conventions.md` | FastAPI/Celery/SQLAlchemy patterns and domain layout. |
|
||
| `docs/contributing/typescript-conventions.md` | Next.js/SDK/package conventions. |
|
||
| `docs/contributing/testing.md` | Test types, 80% coverage bar, running suites locally. |
|
||
| `docs/contributing/tdd-workflow.md` | Red→green→refactor expectations. |
|
||
| `docs/contributing/adding-a-domain.md` | Step-by-step: scaffold a new `domains/<name>/`. |
|
||
| `docs/contributing/adding-a-provider.md` | Register a new routing provider adapter. |
|
||
| `docs/contributing/adding-a-migration.md` | Author and review an Alembic migration. |
|
||
| `docs/contributing/adding-a-worker-task.md` | Add a Celery task/stage safely. |
|
||
| `docs/contributing/writing-docs.md` | How to add a spec/reference/runbook and pass CI. |
|
||
| `docs/contributing/code-review-guide.md` | Review checklist and CRITICAL/HIGH triage. |
|
||
| `docs/contributing/release-checklist.md` | Contributor-facing pre-merge checklist. |
|
||
| `docs/contributing/dependency-policy.md` | Adding dependencies; vendored external/ OSS rules. |
|
||
| `docs/contributing/architecture-index.md` | Pointer index into vision2026/architecture/*. |
|
||
|
||
---
|
||
|
||
## 15. `docs/reference/` + `docs/release-notes/` — cross-cutting reference
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/reference/index.md` | Cross-cutting reference index. |
|
||
| `docs/reference/configuration.md` | All config keys, defaults, and precedence. |
|
||
| `docs/reference/environment-variables.md` | Full env-var catalog per app/service. |
|
||
| `docs/reference/error-codes.md` | Canonical error-code registry (shared with API). |
|
||
| `docs/reference/event-catalog.md` | Internal event-bus + JobEvent schema catalog. |
|
||
| `docs/reference/limits-and-quotas.md` | System limits, per-plan quotas, and hard caps. |
|
||
| `docs/reference/provider-matrix.md` | Supported providers × capabilities × cost tiers. |
|
||
| `docs/reference/model-catalog.md` | Model catalog with license class and price-version notes. |
|
||
| `docs/reference/render-spec.md` | The declarative render-spec schema reference. |
|
||
| `docs/reference/caption-styles.md` | Caption style tokens and karaoke timing reference. |
|
||
| `docs/reference/preset-catalog.md` | Camera-move / VFX preset reference. |
|
||
| `docs/reference/webhooks-events.md` | Webhook event-type reference (generated). |
|
||
| `docs/reference/cli.md` | Any operator/dev CLI reference. |
|
||
| `docs/release-notes/index.md` | Release-notes index + versioning policy. |
|
||
| `docs/release-notes/CHANGELOG.md` | Rolling changelog (keep-a-changelog format). |
|
||
| `docs/release-notes/migration-guides/index.md` | Breaking-change migration guides. |
|
||
| `docs/release-notes/deprecations.md` | Deprecation timeline and removal schedule. |
|
||
|
||
---
|
||
|
||
## 16. `docs/CODEMAPS/` — navigable code maps (generated + curated)
|
||
|
||
CODEMAPS answer "where does X live and how does it fit?" for every part of the monorepo. Module
|
||
trees and entrypoint tables are generated by a repo walker between `gen` markers; the "responsibility
|
||
/ seams / gotchas" prose is curated. Mirrors the physical repo layout so a reader can jump from any
|
||
code area to its map.
|
||
|
||
### 16.1 Index & conventions
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/CODEMAPS/README.md` | What a CODEMAP is, how they're generated, and how to read them. |
|
||
| `docs/CODEMAPS/index.md` | Top-level map of the whole monorepo (apps/packages/external/infra). |
|
||
| `docs/CODEMAPS/conventions.md` | CODEMAP structure, marker blocks, and refresh workflow. |
|
||
| `docs/CODEMAPS/dependency-graph.md` | Cross-package/app dependency graph (generated). |
|
||
|
||
### 16.2 `docs/CODEMAPS/apps/api/` — backend code maps (per domain + infra)
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/CODEMAPS/apps/api/index.md` | Map of `apps/api` layout: domains, services, workers, models. |
|
||
| `docs/CODEMAPS/apps/api/core.md` | `app/core/*` (auth/principal, money, config) map. |
|
||
| `docs/CODEMAPS/apps/api/domains/templates.md` | `domains/templates/` module map + seams. |
|
||
| `docs/CODEMAPS/apps/api/domains/storyboard.md` | `domains/storyboard/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/film.md` | `domains/film/` (+ agents/, ncp/) module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/characters.md` | `domains/characters/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/series.md` | `domains/series/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/publishing.md` | `domains/publishing/` (+ scheduler/, analytics/) map. |
|
||
| `docs/CODEMAPS/apps/api/domains/trends.md` | `domains/trends/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/marketplace.md` | `domains/clipmarket/` + marketplace surfaces map. |
|
||
| `docs/CODEMAPS/apps/api/domains/growth.md` | `domains/growth/` + `domains/gateway/` map. |
|
||
| `docs/CODEMAPS/apps/api/domains/wallet.md` | `domains/wallet/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/routing.md` | `domains/routing/` (+ providers/) module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/catalog.md` | `domains/catalog/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/spend.md` | `domains/spend/` policy map. |
|
||
| `docs/CODEMAPS/apps/api/domains/moderation.md` | `domains/moderation/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/assets.md` | `domains/assets/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/captions.md` | `domains/captions/` module map. |
|
||
| `docs/CODEMAPS/apps/api/domains/presets.md` | `domains/presets/` module map. |
|
||
| `docs/CODEMAPS/apps/api/services/compose.md` | `services/compose/` FFmpeg composer map. |
|
||
| `docs/CODEMAPS/apps/api/services/render.md` | `services/render/` map. |
|
||
| `docs/CODEMAPS/apps/api/services/audio.md` | `services/audio/` map. |
|
||
| `docs/CODEMAPS/apps/api/services/captions.md` | `services/captions/` map. |
|
||
| `docs/CODEMAPS/apps/api/services/loops.md` | `services/loops/` map. |
|
||
| `docs/CODEMAPS/apps/api/services/publish.md` | `services/publish/` map. |
|
||
| `docs/CODEMAPS/apps/api/services/lago.md` | `services/lago/` invoicing bridge map. |
|
||
| `docs/CODEMAPS/apps/api/workers.md` | `workers/*` (pipeline, tasks_film/publish/series) map. |
|
||
| `docs/CODEMAPS/apps/api/events.md` | `events/*` event-bus + workers map. |
|
||
| `docs/CODEMAPS/apps/api/telemetry.md` | `telemetry/*` (cost, events, progress, sentry) map. |
|
||
| `docs/CODEMAPS/apps/api/models.md` | `models/db/*` ORM module map + ERD pointer. |
|
||
| `docs/CODEMAPS/apps/api/mcp.md` | MCP server module map. |
|
||
| `docs/CODEMAPS/apps/api/assets-workflows.md` | `assets/workflows/*` ComfyUI workflow manifests map. |
|
||
|
||
### 16.3 `docs/CODEMAPS/apps/web/` — Next.js code maps
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/CODEMAPS/apps/web/index.md` | `apps/web` app-router layout map. |
|
||
| `docs/CODEMAPS/apps/web/routes.md` | Route/segment map and their backing domains. |
|
||
| `docs/CODEMAPS/apps/web/studio.md` | Timeline/EDL editor UI module map. |
|
||
| `docs/CODEMAPS/apps/web/templates-ui.md` | Template browse/author UI map. |
|
||
| `docs/CODEMAPS/apps/web/publishing-ui.md` | Publishing/scheduler UI map. |
|
||
| `docs/CODEMAPS/apps/web/marketplace-ui.md` | Marketplace UI map. |
|
||
| `docs/CODEMAPS/apps/web/wallet-ui.md` | Wallet/billing UI map. |
|
||
| `docs/CODEMAPS/apps/web/data-layer.md` | SDK/data-fetching/state layer map. |
|
||
|
||
### 16.4 `docs/CODEMAPS/apps/mobile/` — Expo code maps
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/CODEMAPS/apps/mobile/index.md` | `apps/mobile` src/shared + src/features layout map. |
|
||
| `docs/CODEMAPS/apps/mobile/shared.md` | `src/shared/*` (net, api, cache, media, telemetry) map. |
|
||
| `docs/CODEMAPS/apps/mobile/features-capture.md` | `features/capture` + media/capture map. |
|
||
| `docs/CODEMAPS/apps/mobile/features-publishing.md` | `features/publishing` (+ oauth) map. |
|
||
| `docs/CODEMAPS/apps/mobile/features-clipfarm.md` | `features/clipfarm` + series map. |
|
||
| `docs/CODEMAPS/apps/mobile/features-wallet.md` | `features/wallet` + plans map. |
|
||
| `docs/CODEMAPS/apps/mobile/features-film.md` | `features/film` (+ shots) map. |
|
||
|
||
### 16.5 `docs/CODEMAPS/apps/desktop/` — Rust/GPUI crate maps
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/CODEMAPS/apps/desktop/index.md` | Desktop crate workspace map. |
|
||
| `docs/CODEMAPS/apps/desktop/rf-jobs.md` | `crates/rf-jobs` map. |
|
||
| `docs/CODEMAPS/apps/desktop/rf-render.md` | `crates/rf-render` map. |
|
||
| `docs/CODEMAPS/apps/desktop/rf-encode.md` | `crates/rf-encode` map. |
|
||
| `docs/CODEMAPS/apps/desktop/rf-comfy.md` | `crates/rf-comfy` map. |
|
||
| `docs/CODEMAPS/apps/desktop/rf-capture.md` | `crates/rf-capture` map. |
|
||
| `docs/CODEMAPS/apps/desktop/rf-clipfarm.md` | `crates/rf-clipfarm` map. |
|
||
|
||
### 16.6 `docs/CODEMAPS/packages/` — shared package maps
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/CODEMAPS/packages/index.md` | Shared-packages map (schema vs logic archetypes). |
|
||
| `docs/CODEMAPS/packages/api-contract.md` | `@reelforge/api-contract` codegen map. |
|
||
| `docs/CODEMAPS/packages/sdk-typescript.md` | `@reelforge/sdk` map. |
|
||
| `docs/CODEMAPS/packages/sdk-python.md` | `reelforge-sdk` map. |
|
||
| `docs/CODEMAPS/packages/render-core.md` | `render-core` filtergraph builder map. |
|
||
| `docs/CODEMAPS/packages/effects-core.md` | `effects-core` kernel registry map. |
|
||
| `docs/CODEMAPS/packages/caption-engine.md` | `caption-engine` map. |
|
||
| `docs/CODEMAPS/packages/shot-template-schema.md` | `shot-template-schema` map. |
|
||
| `docs/CODEMAPS/packages/trends-schema.md` | `trends-schema` map. |
|
||
| `docs/CODEMAPS/packages/publishing-connectors.md` | `publishing-connectors` map. |
|
||
| `docs/CODEMAPS/packages/growth-analytics.md` | `growth-analytics` map. |
|
||
| `docs/CODEMAPS/packages/eventbus-types.md` | `eventbus-types` map. |
|
||
| `docs/CODEMAPS/packages/provider-adapter-kit.md` | `provider-adapter-kit` map. |
|
||
| `docs/CODEMAPS/packages/comfy-workflow-schema.md` | `comfy-workflow-schema` map. |
|
||
|
||
### 16.7 `docs/CODEMAPS/external/` + `infra/` maps
|
||
|
||
| Path | Purpose |
|
||
|---|---|
|
||
| `docs/CODEMAPS/external/index.md` | Vendored-OSS map (ComfyUI, Wan2.2, VideoTuna, VideoX-Fun, hyvideo). |
|
||
| `docs/CODEMAPS/external/workers.md` | `external/workers/*` GPU worker image map. |
|
||
| `docs/CODEMAPS/external/services-lago.md` | `external/services/lago` bridge map. |
|
||
| `docs/CODEMAPS/infra/index.md` | `infra/*` (terraform, k8s/helm, render-workers, autoscale) map. |
|
||
| `docs/CODEMAPS/infra/ci-cd.md` | `.github/workflows/*` CI/CD/release automation map. |
|
||
|
||
---
|
||
|
||
## 17. Wiring, generation & CI (how this tree stays true)
|
||
|
||
1. **Nav is generated from `_meta/nav.yml`;** a CI check fails if a committed `.md` under `docs/`
|
||
is absent from nav (orphan-doc check).
|
||
2. **Generated blocks** (API endpoint tables, ERDs, CODEMAP trees) are refreshed by scripts invoked
|
||
in CI; a drift check fails the build if committed output differs from regenerated output.
|
||
3. **Front-matter + rot check** validates every doc against `frontmatter-schema.json` and fails docs
|
||
past their `review_by`.
|
||
4. **Link check** (`_meta/linkcheck.config.json`) validates internal + external links.
|
||
5. **Ownership** (`_meta/ownership.md`) routes doc-folder PRs to owning teams, mirroring CODEOWNERS.
|
||
6. **The four lanes** (build/run/create/contribute) each resolve from `docs/README.md` so no reader
|
||
is ever more than two clicks from the right page.
|
||
|
||
**File count:** §2–§16 enumerate well over 150 concrete doc paths across `_meta`, `overview`,
|
||
`product` (9 domains), `api`, `data-model`, `runbooks`, `adr`, `rfcs`, `guides` (4 audiences),
|
||
`developer-portal`, `security`, `operations`, `contributing`, `reference`, `release-notes`, and
|
||
`CODEMAPS` — the full additive documentation IA the platform needs.
|