0015. Content packs are data-only; monetization-ready data model
- Status: Accepted
- Date: 2026-11-26
- Phase: 3 (data model), 4 (packs), 7 (payments)
Context
Section titled “Context”Publishers decide per game whether expansions and forks/remixes are allowed. Paid packs need a revenue split between publisher, pack creator and platform. Payments are out of scope until Phase 7, but the model must exist early.
Decision
Section titled “Decision”- Packs contain only schema-valid data and assets (levels, maps, items, prefabs referencing existing behaviours). No code. Each pack has a semver version and declares a compatible game version range and pack-schema version.
- Permissions live in the game manifest (
permissions.expansions,permissions.remix) and are mirrored in the DB. Pack submissions enter a per-game moderation queue; the publisher approves each pack version. - Lineage: forks/remixes record
parentGameId,parentVersionId, and an attribution string; lineage is immutable and shown on the game page. - Money model (tables only until Phase 7):
products(game, pack, subscription, in-game item; price in minor units + currency),revenue_share_rules(basis points for publisher / creator / platform, effective dates, must sum to 10000),orders,order_items,entitlements,ledger_entries(double-entry, append-only),payout_accounts,payouts. All money is integer minor units with ISO 4217 currency. Rules are snapshotted onto each order item. - Payments provider decided at Phase 7 (leaning Stripe Connect for marketplace payouts, or a merchant of record such as Paddle to offload global sales tax/VAT).
Alternatives considered
Section titled “Alternatives considered”- Letting packs ship scripts: far more expressive, but turns every pack into untrusted code requiring the full game sandbox and review — revisit later as “scripted packs” with a capability-restricted script API.
- Storing splits only in code: impossible to audit or change per game.
Consequences
Section titled “Consequences”Packs are limited to what the game exposes; publishers who want moddable games must expose behaviours and item types via data. Ledger design adds upfront work but avoids rewriting financial data later.