videogen/docs/ROADMAP-SPINE.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

343 lines
23 KiB
Markdown

# ROADMAP — The Spine (Mint + Vend) and its Demand Feeders
> **Program-level re-sequencing. PLANS ONLY — no code.**
>
> Organizing principle change: stop treating the family as five peer apps racing in
> parallel. Treat it as a **spine with feeders**.
>
> - **SPINE** = **Mint** (the settlement rail — the durable, billion-dollar asset)
> + **Vend** (the first on-ramp that installs the rail under real external payers).
> - **FEEDERS** = **Relay**, **ReelForge**, **Prism** — demand generators that route
> spend onto the rail. They exist to make the spine carry money.
> - **BUYER-SIDE / ECOSYSTEM** = **Abacus**, **Turnstile**, **Ledgerline** — later
> layers that attach new payers (agents, MCP tools, finance teams) and add margin
> intelligence once the rail carries real volume.
>
> The critical path is a single sentence: **get the first external tenant billing on
> the rail.** Everything below is sequenced to reach that as fast as possible without
> violating the two ratified invariants — **ADR-0001 (integer-microdollar money)**
> and **ADR-0002 (success-only billing)**.
>
> Source docs re-sequenced here: `docs/vend/{PLAN,SPEC,IMPLEMENTATION}.md`,
> `docs/mint/PLAN.md`, `docs/relay/PLAN.md`, `docs/apps-vision/PORTFOLIO.md`,
> `docs/reelforge/vision2026/PHASES.md`.
---
## 1. Family map + dependency diagram
The portfolio doc drew every app as a peer demand surface. This roadmap redraws it as
a **load-bearing spine** with everything else hanging off it. The key move: **Mint is
the base, and Vend is the second vertebra** — not a peer app but the first productized
on-ramp that turns the rail from "internal plumbing" into "external revenue."
```
BUYER-SIDE / ECOSYSTEM (attach new payers; add margin brains)
later — only after the rail carries real external volume
┌───────────┐ ┌───────────┐ ┌────────────┐
│ Abacus │ │ Turnstile │ │ Ledgerline │
│ agent │ │ MCP/API │ │ revenue + │
│ spend │ │ paywall │ │ true COGS │
│ governance│ │ (402 toll)│ │ one ledger │
└─────┬─────┘ └─────┬─────┘ └─────┬──────┘
│ │ │
└──────────┬─────────┴──────────┬─────────┘
│ │
══════════════════════════════════════════════════════════════════════════
║ FEEDERS — demand that routes spend onto the rail ║
║ ║
║ ┌────────────┐ ┌──────────┐ ┌──────────┐ ║
║ │ ReelForge │ │ Relay │ │ Prism │ ║
║ │ (video, │ │ (LLM/text│ │ (media │ ║
║ │ FLAGSHIP │ │ model │ │ model │ ║
║ │ demand) │ │ RAIL) │ │ RAIL) │ ║
║ └─────┬──────┘ └────┬─────┘ └────┬─────┘ ║
║ │ spend │ inference │ media inference ║
══════════╪═══════════════╪══════════════╪═══════════════════════════════
│ │ │
│ ┌──────┴──────┐ │
│ │ VEND │ ◀── THE ON-RAMP: multi-tenant control
│ │ (white-label│ plane that PACKAGES Relay+Mint and
│ │ reseller │ installs the rail under external
│ │ SDK) │ tenants. Not a peer — a vertebra.
│ └──────┬──────┘ │
▼ ▼ ▼
══════════════════════════════════════════════════════════════════════════
║ SPINE BASE — MINT (AIT + AITP-402) ║
║ accounts · transfers · holds/escrow · streams · allowances · ║
║ hash-linked receipts · reserve/conservation · mint/redeem ║
║ ← the settlement record-of-truth for ALL AI money. THE durable asset. ║
══════════════════════════════════════════════════════════════════════════
Shared infra: Neon/Postgres · Cloudflare · RunPod GPU · ComfyUI/Wan
Shared invariants: ADR-0001 (integer µ$) · ADR-0002 (success-only)
```
**How to read it (bottom-up):**
1. **Mint is the floor.** Nothing settles without it. Every hold, capture, transfer,
and receipt is a Mint op. If Mint doesn't exist, "billing on the rail" is undefined.
2. **Vend sits directly on Mint** and is the first thing that makes an *external*
party's money flow through it. Vend is ~80% assembly (Vend PLAN §1): it composes
Relay (inference) + Mint (settlement) + ReelForge's gateway/wallet lineage into a
multi-tenant reseller control plane. It is the on-ramp, so it is spine, not feeder.
3. **Relay, ReelForge, Prism are feeders.** They originate spend. Relay is the model
rail Vend proxies; ReelForge is the flagship demand proving the whole shape
end-to-end; Prism is the media-spend feeder (second on-ramp after Vend).
4. **Abacus / Turnstile / Ledgerline are buyer-side / ecosystem layers.** They attach
new payer classes (autonomous agents, MCP tools, finance teams) and margin
intelligence. They are deliberately *after* the rail carries real external volume —
PORTFOLIO §4 risk #3 (focus + capital) demands strict sequencing.
**Dependency edges that actually gate work (the ones that decide order):**
```
Mint AP0 (ledger+transfer) ──unblocks──▶ any success-only settlement anywhere
Mint AP1 (holds→capture/release)──unblocks──▶ Vend metered charge; ReelForge/Relay settle-on-Mint
Mint AP2 (hash-linked receipts) ──unblocks──▶ Vend "verifiable spend" switching-cost anchor
Mint AP3 (AITP-402 + allowances)──unblocks──▶ Vend agent billing; Turnstile; Abacus; per-seat
Relay RP0 (working proxy) ──unblocks──▶ Vend Vx1 (a real provider to meter)
Relay RP1 (multi-provider) ──unblocks──▶ Vend model allowlist breadth; Prism-style routing
Relay RP2 (routing/failover) ──unblocks──▶ Vend Vx3 failover; ADR-0002 across providers
ReelForge gateway/wallet (P11 lineage, already partly built) ──seeds──▶ Vend tenancy/markup/dunning patterns
Vend Vx1 ══CRITICAL PATH══▶ FIRST EXTERNAL TENANT BILLING ON THE RAIL
```
The single most important structural fact: **Vend cannot bill a real external tenant
until Mint AP0→AP2 exist (ledger + holds + receipts) AND Relay RP0 exists (a real
provider to meter).** That intersection *is* the critical path.
---
## 2. Re-sequenced master timeline (interleaved by dependency)
Four existing tracks (ReelForge P6→P12, Relay RP0→RP7, Mint AP0→AP6, Vend Vx0→Vx5)
get interleaved into one program timeline. The rule: **ship each dependency
just-in-time ahead of the thing it unblocks**, and never let a feeder's polish work
block a spine vertebra.
### Legend
- 🟢 in-flight now
- 🔵 spine (Mint / Vend) — highest priority when on the critical path
- 🟡 feeder (Relay / ReelForge / Prism)
- ⚪ buyer-side / ecosystem (deferred)
- ⭐ critical-path node toward "first external tenant billing on the rail"
### Stage 0 — Now (in flight)
| Track | Item | Type | Note |
|---|---|---|---|
| ReelForge | **Wave 1** (P6/P7 vintage: envelope, event bus, Templates, publishing loop) | 🟡🟢 | Flagship demand; proves compose→render→publish→wallet shape. Keep running. |
| Relay | **RP0** working proxy (`/v1/chat/completions` → 1 provider, µ$ ledger, success-only) | 🟡🟢⭐ | The **first real inference unit Vend will meter.** On the critical path. |
Both are already disjoint, greenfield-safe workflows (Relay §7, Mint §10). Do **not**
stall them; they are the two things Vend's first billing depends on (RP0) and the
demand proof (Wave 1).
### Stage 1 — Lay the spine base (unblock success-only everywhere)
| Track | Item | Type | Unblocks |
|---|---|---|---|
| Mint | **AP0** ledger core: accounts, addresses, transfer, conservation + double-entry | 🔵⭐ | Any settlement; gate = 1M random transfers conserve |
| Mint | **AP1** holds → capture/release; idempotency; success-only primitive | 🔵⭐ | Vend metered charge; ReelForge/Relay settle-on-Mint; gate = failure injection never captures |
| Relay | **RP1** multi-provider + normalize (10 providers via manifests) | 🟡 | Vend model-allowlist breadth; Prism reuse |
| ReelForge | **Wave 2** (P8 routing depth: 22 adapters, per-shot cost-cap, license-gate, watermark loop) | 🟡 | Deepens flagship demand; independent of spine, runs in parallel |
**Why this order:** AP0+AP1 are the minimum viable rail — a ledger that conserves and a
hold that captures only on success. Nothing external can bill without them. Relay RP1
and ReelForge Wave 2 are parallel feeder deepening that do **not** gate the spine, so
they run alongside without blocking.
### Stage 2 — Make the rail verifiable + reach FIRST EXTERNAL BILLING
| Track | Item | Type | Unblocks |
|---|---|---|---|
| Mint | **AP2** hash-linked signed receipts + merkle root + `/receipts/audit` | 🔵⭐ | Vend's "verifiable spend / solvency proof" switching-cost anchor |
| Vend | **Vx0** multi-tenant spike: tenants→apps→sub-keys, per-tenant markup, reserve segregation (mock inference + mock capture) | 🔵⭐ | Tenancy isolation proven before real money |
| Vend | **Vx1** one real metered request through all three planes (Relay serve → Mint hold→capture / release → receipt) | 🔵⭐ | **← FIRST EXTERNAL TENANT BILLING ON THE RAIL** |
| Relay | **RP2** routing/failover (kill provider mid-stream → transparent failover) | 🟡⭐ | Vend Vx3 failover; ADR-0002 across providers |
**Vx1 is the milestone the entire spine exists to reach.** At Vx1's gate a live
`chat/completions` call is priced, held, served, captured at exact Relay cost + tenant
markup, and yields a valid hash-linked Mint receipt — and a forced provider failure
bills the end-user nothing. That gate *is* "first external tenant billing on the rail,"
end-to-end, invariant-clean.
### Stage 3 — Make it a product (wallet, dunning, SDK, self-serve)
| Track | Item | Type | Unblocks |
|---|---|---|---|
| Mint | **AP3** AITP-402 + allowances (agent pays per call, no session; per-seat budgets) | 🔵 | Vend agent billing; per-seat; later Turnstile/Abacus |
| Vend | **Vx2** hosted white-label top-up page + Stripe + dunning state machine | 🔵 | Real end-user funding + failed-payment lifecycle |
| Vend | **Vx3** drop-in SDK (TS) + self-serve onboarding + per-tenant failover/routing | 🔵 | The "live in an afternoon" wedge; needs Relay RP2 |
| Mint | **AP4** streams + reserve/mint/redeem on/off-ramp (Stripe + relay-web3) | 🔵 | Reserve-gated top-ups; streaming meter |
| Relay | **RP3** billing platform (Stripe+crypto topups, BYOK-with-fee, provisioning keys) | 🟡 | Deepens Relay's own wallet; parallel to Vend |
### Stage 4 — Take-rate, solvency proof, GA, second on-ramp
| Track | Item | Type | Unblocks |
|---|---|---|---|
| Vend | **Vx4** platform take + billing-router (4-way transfer split) + per-tenant reserve/solvency export | 🔵 | Revenue accrues as auditable ledger entries |
| Mint | **AP5** clients + unify (`mint-sdk`; ReelForge wallet + Relay billing settle on Mint) | 🔵 | Feeders' spend now lands on the same rail |
| Vend | **Vx5** design-partner GA + multi-lang SDK + AITP-402 distribution | 🔵 | ≥3 paying tenants; ≥1 deleted their old proxy |
| ReelForge | **Wave 3+** (P9 consistency/AI-film, P10 clipfarm + desktop render farm) | 🟡 | Flagship demand scale; $0-wallet local render |
| Prism | **Media on-ramp v0** (second feeder onto the rail; reuses Relay routing + ReelForge media adapters) | 🟡 | Media spend lands on Mint |
### Stage 5 — Buyer-side / ecosystem (only after the rail carries real volume)
| Track | Item | Type | Note |
|---|---|---|---|
| Mint | **AP6** governance/GA (orgs/treasuries, disputes/refunds, solvency status page, blue-green) | 🔵 | Rail hardening for scale |
| Abacus | agent spend-governance (inline enforcement over Mint holds/allowances) | ⚪ | Needs AP3; enterprise cycle — sequence after Vend proves demand |
| Turnstile | MCP/API 402 paywall SDK + verifier | ⚪ | Needs AP3; highest-variance standards bet — fund as a probe |
| Ledgerline | revenue + true-COGS on one ledger (Relay cost-capture + Mint receipts) | ⚪ | Weakest of five; capital-light margin lens once volume is real |
| ReelForge | **P11 monetization / P12 scale hardening + GA** | 🟡 | Gateway resell/clipmarket; full infra planes |
### Critical path (the only line that matters)
```
Relay RP0 ─────────────┐
├──▶ Vend Vx1 ⭐ FIRST EXTERNAL TENANT BILLING ON THE RAIL
Mint AP0 ▶ AP1 ▶ AP2 ──┘
(ledger) (holds) (receipts)
```
Everything else — ReelForge waves, Relay RP1/RP3+, Mint AP3+, Vend Vx0/Vx2+ — is
either a parallel feeder that doesn't gate this line, or downstream of it. Protect this
five-node path above all else. **Mint AP0→AP2 + Relay RP0 → Vend Vx1** is the whole game.
---
## 3. Recommended 6-milestone build order
Decisive. Each milestone is a hard gate; do not start the next until the prior gate is
green. Feeder work runs in parallel lanes but never blocks a spine milestone.
### M1 — Mint AP0+AP1: the ledger that conserves and the hold that captures only on success
**Build this first. It is the single most important thing in the entire program.**
**Why first, above everything (including Vend):**
- **It is the base of the spine and the only irreplaceable asset.** PORTFOLIO's thesis
is explicit: the durable, billion-dollar asset is *not any app* — it is the
settlement rail (Mint). Gateways commoditize; the ledger-of-record does not. Build
the moat, not the funnel-to-the-moat, first.
- **It is on the critical path and blocks everything money.** No hold → no
success-only billing → no Vend Vx1 → no external billing. AP0 (transfer +
conservation) and AP1 (hold→capture/release) are the literal precondition for the
word "billing" to mean anything on the rail. Every other track that touches money
(Vend, ReelForge settle-on-Mint, Relay unify) is downstream.
- **It de-risks the invariants once, for the whole family.** ADR-0001 (integer µ$) and
ADR-0002 (success-only) become *native primitives* here — property-tested at the
ledger, so no feeder ever re-litigates "never charge on a 500." Proving conservation
and success-only at the ledger (gate: 1M random transfers conserve; failure
injection never captures) is the highest-leverage correctness work available.
- **It is greenfield and disjoint** (Mint §10) — safe to launch in parallel with the
in-flight ReelForge Wave 1 and Relay RP0 without touching them.
If you build only one thing next, build **Mint AP0**. It is the vertebra everything
else bolts onto.
**Gate:** 1M random transfers conserve (`Σ balances + Σ holds == reserve`);
double-entry sums to zero; failure injection into a hold never captures.
### M2 — Relay RP0→RP1 hardened as Vend's inference source; Mint AP2 receipts
Finish the in-flight Relay RP0 (real streamed completion billed exactly) and take it to
RP1 (multi-provider via manifests) so Vend has a **real, multi-model inference plane to
meter**. In parallel, ship Mint AP2 (hash-linked receipts + merkle root) so every
settlement is verifiable — the switching-cost anchor Vend sells.
**Gate:** identical response shape across 3 provider dialects (RP1); any receipt tamper
detected (AP2).
### M3 — Vend Vx0→Vx1: FIRST EXTERNAL TENANT BILLING ON THE RAIL
Stand up Vend's tenancy (tenants→apps→sub-keys, per-tenant markup, reserve
segregation) over mock inference (Vx0), then wire one real metered request through all
three planes (Vx1). **This is the milestone the spine exists to reach.**
**Gate (Vx1):** a live call is priced → held → served → captured at exact Relay cost +
tenant markup → yields a hash-linked Mint receipt; a forced provider failure bills the
end-user **nothing** (ADR-0002 end-to-end); two isolated tenants never cross usage,
balances, or reserve (isolation property test green).
### M4 — Vend Vx2+AP3+AP4: real money in, dunning, agent-payable
Add the hosted white-label top-up page + Stripe + dunning state machine (Vx2), backed
by Mint AITP-402 + allowances (AP3) and reserve-gated mint/redeem (AP4). Now an external
end-user funds a reserve-backed wallet under the tenant's brand, and an agent can pay
per call with no session.
**Gate:** end-user tops up under tenant brand, µ$-exact; per-tenant conservation holds;
a failed recharge runs the full dunning sequence to a terminal state **without
double-charging or charging-on-failure**; an agent completes an AITP-402-paid call.
### M5 — Vend Vx3+Vx4: the wedge (SDK, self-serve) + take-rate + solvency proof
Ship the drop-in TS SDK + self-serve onboarding + per-tenant failover (Vx3, needs Relay
RP2), then turn on the platform take-rate 4-way transfer split + per-tenant solvency
export (Vx4).
**Gate:** a brand-new developer goes signup → metered, marked-up, billed request in
**under one afternoon**; platform take accrues as auditable Mint ledger entries; every
capture satisfies `end_user_paid == provider_cost + tenant_take + platform_take`; each
tenant exports a verifiable receipt log + reserve proof.
### M6 — Vend Vx5 GA + AP5 unify + Prism v0: rail carries multi-source demand
Design-partner GA with multi-language SDK and AITP-402 distribution (Vx5); unify the
feeders onto the rail (AP5: ReelForge wallet + Relay billing settle on Mint); stand up
Prism v0 as the **second on-ramp** (media spend). Only after this — with real,
multi-source volume on the rail — unlock the buyer-side/ecosystem layers (Abacus,
Turnstile, Ledgerline) per PORTFOLIO §4's strict-sequencing mandate.
**Gate:** ≥3 paying Vend tenants; ≥1 deleted their old proxy; a ReelForge render and a
Relay completion both settle through Mint; Prism routes one media call onto the rail.
---
## 4. Where the in-flight builds fit, and what chains next
Two workflows are running right now. Here is exactly where they sit on the spine and
the precise chain that follows — decisive, not optional.
### In flight now
- **ReelForge Wave 1** (🟡 feeder, flagship demand). P6/P7-vintage: async-GPU
envelope, event bus, Templates crown jewel, publishing loop. **Role:** proves the
compose→render→publish→wallet shape and generates the flagship demand narrative. It
is a **feeder, not spine** — it must keep running for demand/proof, but it does
**not** gate the critical path. Do not let it consume the capacity Mint AP0 needs.
- **Relay RP0** (🟡 feeder, but ⭐ on the critical path). Working proxy → one provider,
µ$ ledger, success-only. **Role:** it is the **first real inference unit Vend will
meter at Vx1.** This one *does* sit on the critical path — finishing RP0 is a
precondition for Vend billing.
### The chain that follows (do these in this order)
```
NOW: ReelForge Wave 1 ───▶ ReelForge Wave 2 (P8 routing depth) ───▶ Wave 3+ (P9/P10)
Relay RP0 ⭐ ───▶ Relay RP1 (multi-provider) ───▶ Relay RP2 (failover) ⭐
START IN PARALLEL (greenfield, disjoint, highest priority):
Mint AP0 ⭐ (ledger) ───▶ Mint AP1 ⭐ (holds) ───▶ Mint AP2 ⭐ (receipts) ───▶ AP3 (AITP-402)
THEN CONVERGE:
(Relay RP0 + Mint AP0→AP2) ───▶ Vend Vx0 (tenancy spike) ───▶ Vend Vx1 ⭐
└─▶ FIRST EXTERNAL
TENANT BILLING
ON THE RAIL
Vend Vx1 ───▶ Vx2 (top-up+dunning) ───▶ Vx3 (SDK) ───▶ Vx4 (take-rate) ───▶ Vx5 (GA)
```
**Decisive calls on what chains next:**
1. **Next thing to *start* (not already running): Mint AP0.** It is greenfield,
disjoint from Wave 1 and RP0 (Mint §10), on the critical path, and the base of the
spine. Launch it now, in parallel, as top priority. This is the single most
important decision in the re-sequencing.
2. **ReelForge Wave 2 chains off Wave 1** as the feeder continues (P8 routing depth:
22 adapters, license-gate, watermark loop). It runs in its own lane and must not
borrow capacity from the spine. ReelForge's P11 gateway/wallet lineage is *already
the template* Vend multi-tenants (Vend PLAN §2/§5) — so Wave work also silently
de-risks Vend's tenancy/markup/dunning patterns.
3. **Relay RP1 (catalog/multi-provider harvest) chains off RP0**, then **RP2
(failover)**. RP1 gives Vend a real model catalog to allowlist; RP2 is required
before Vend Vx3 can prove transparent failover with no erroneous charge. Keep Relay
moving but only RP0 (done) and RP2 (later) are strictly on the Vend critical path.
4. **Then Mint AP0, then Vend V0 (Vx0)** — exactly the requested chain. Once Mint
AP0→AP2 exist and Relay RP0 is solid, Vend Vx0 stands up tenancy over mocks, and Vx1
lights the first external billing. That convergence point is the payoff of the whole
re-sequence.
**One-line summary of the re-sequence:** keep the two in-flight feeders (ReelForge
Wave 1, Relay RP0) running, but **immediately start Mint AP0 as the new top priority**,
carry Mint through AP2 and Relay through RP0, then converge both into **Vend Vx1 — the
first external tenant billing on the rail.** Build the spine (Mint), then the on-ramp
(Vend); the feeders keep the demand flowing while the rail gets built underneath them.