← All experience

ProGolf CMS

Associate Software Engineer · Mindstorm Studios

ProductionExperiments: feature branchClose

A publishing system for live game content. I co-led the rebuild of ProGolf's internal live-ops CMS and owned the publishing workflow. Designers author game content, inspect dependencies and publish to Nakama, and later work added a server-enforced pre-push review.

~70%less manual verification per season release
Ownedthe Nakama publishing workflow
23 finding codesin the deterministic pre-push review

Overview

The system

A CMS where designers author live game content and take it through preview, validation, publish and recovery.

Changing a live game season can touch tournaments, courses, equipment, rewards and shop offers. An editor needs to know what the new config references, whether those references are live, and what the game is actually serving. ProGolf CMS gives the live-ops team one place to author that content and take it through preview, validation, publish and recovery. I worked across the NestJS API, the Next.js forms and dashboards, PostgreSQL data access and the Nakama integration. Related work explored cohort-specific game configs on a separate Experiments branch.

ProductionCore CMS and the AI-assisted release review are in production. Experiments is an unmerged feature branch.

Draft history and published snapshotsRelease governanceDependency checks before publish

A team system. I co-led the rebuild and owned the publishing workflow. Who owned what

My part

My role

I co-led the CMS rebuild with two teammates and owned the publishing workflow end to end. I also built the shared data access, the first content module, the foundation of the UI, and later the AI-assisted pre-push review.

I owned
  • Shared data access. A typed DatabaseAdapter over Drizzle for NestJS modules.
  • First content module. ProShot and SpeedPutt across API and UI, which set the reusable pattern.
  • Publishing to Nakama. RPC path, previews, dependency checks, history, snapshots and the UI workflow.
  • Compare and reset. Version comparison and reset, co-built, across about 25 modules.
  • Authoring foundation. Shared forms, tables, permission gates and the server-action error pattern.
  • AI push review. Advisory review plus server-enforced governance for covered pushes.
Others owned
  • Co-built compare and reset, with a teammate
  • The rest of the CMS rebuild, with two teammates
  • The Nakama game server and the game client
  • The language model provider
Ownership and release status
ContributionOwnershipStatus
CMS rebuildCo-led with two teammatesProduction
Shared data accessDesigned and built the PostgreSQL adapter on DrizzleProduction
First content moduleOwned ProShot and SpeedPutt across API and UIProduction
Publishing to NakamaOwned the RPC path, previews, dependency checks, history, snapshots and UI workflowProduction
Compare and resetCo-built with a teammate, across about 25 modulesProduction
Dashboard and authoring toolsBuilt the foundational UI and contributed across modulesProduction
AI push reviewBuilt advisory AI review and server-enforced governance for covered pushesMerged to main, with September hardening
Copilot chat, scheduler, analysisBuilt chat, scheduling and lineup analysisChat shipped, then hidden. Others documented separately
Season DirectorBuilt a guided season plannerSeparate branch, unmerged
ExperimentsBuilt across backend, frontend, Nakama publishing and Director integrationFeature branch, unmerged

Status follows the work records. A later release record can update a label.

Architecture

Authoring, publishing and review sit between the editor and the game server.

Production
OPERATORSCMS PLATFORMDATA AND GAMESQLRPCsettingsSSEAuthoring and ops UINext.js · server actionscontent editorsreview panelhistory and compareNestJS domain servicesco-led rebuild~25 modules · compare, reset~15 modules · dependency previewpublishing workflowfirst mini-games moduleDependency checksand payload buildersSnapshots and historyhashed, numberedServer review gatecovered pushes · 23 finding codesPublish RPC clientrejection vs timeout · restoreAdvisory summary · Geminibounded context · fallbackReview sessions · SSEfindings streamed livePostgreSQLdrafts · versions · historyLive gamereads published settingsNakamagame serverRedisreview sessionsLLM provideradvisory only
  • Built or owned by me
  • Built by the wider team
  • Managed or third-party component
ProGolf CMS architecture
OPERATORSCMS PLATFORMDATA AND GAMESQLRPCsettingsSSEAuthoring and ops UINext.js · server actionscontent editorsreview panelhistory and compareNestJS domain servicesco-led rebuild~25 modules · compare, reset~15 modules · dependency previewpublishing workflowfirst mini-games moduleDependency checksand payload buildersSnapshots and historyhashed, numberedServer review gatecovered pushes · 23 finding codesPublish RPC clientrejection vs timeout · restoreAdvisory summary · Geminibounded context · fallbackReview sessions · SSEfindings streamed livePostgreSQLdrafts · versions · historyLive gamereads published settingsNakamagame serverRedisreview sessionsLLM provideradvisory only

I built the adapter, dependency checks, payload builders, snapshots and the review gate, and the authoring UI foundation. The NestJS domain services are a team effort. Logical flow only.

Deep dives

From draft to live

Edit, resolve dependencies, preview the payload, run the review on covered pushes, publish through Nakama RPC, record history.

Version and recovery

Draft, changelog version, config version and push history answer four different questions.

Release governance

Deterministic rules enforce policy on the server. The model only explains.

From draft to live

An editor uses a permission-gated form or table. Next.js server actions call the NestJS API and return structured results. Nest validates and stores the edit, then the workflow resolves dependencies and previews what will be published. A module-specific service builds the game-facing JSON, covered pushes run the pre-push review, and the server sends the payload through Nakama RPC, recording push history and the config versions it carried.

This is the logical flow. It is not one transaction spanning PostgreSQL and Nakama.

Four meanings of version
  1. 01

    Draft

    The current editable row.

  2. 02

    Changelog version

    Records an edit to that entity and supports diffs and reset.

  3. 03

    Config version

    The hashed, game-facing snapshot tied to a publish.

  4. 04

    Push history

    The publishing action, with the versions it carried.

Selected dashboard live-state views are built on published versions, so an unpublished edit never shows as live.

Recovery

Staff compare two revisions in a read-only view, pick a prior version and reset from the validated snapshot. That restores editable CMS state. A later publish is the step that can change the game.

AI-assisted release review

EditorCMS APILanguage modelNakamaReview proposed configStream deterministic findingsCompact config, diff, findingsAdvisory summary, streamed via the CMSReview ID and payload fingerprintSubmit reviewed publishRebuild payload, revalidate, compare hashPublish when policy allows
One example, end to end

A designer prepares a season alongside a new tournament lineup and a golf pass. The CMS flags dependencies that need publishing and lets the designer inspect or publish them. The season preview shows the payload built for Nakama. On a covered single-season push, deterministic findings appear first, then an optional model summary of operator impact and differences since the last publish. The server revalidates the request and checks the finalized payload still matches the review. After success, history links to the snapshots published, and the dashboard reflects the published versions.

Illustrative, with synthetic names and data.

Product breadth
AreaWhat I built or contributed to
FoundationLogin, app shell, users and roles, CASL permissions, shared tables, server actions and error handling
Mini-gamesProShot and SpeedPutt, timed configs, reward and currency transformation, preview, bulk create, soft delete and restore
Game settingsEnvironment endpoints, optional and required upgrades, timezone-aware maintenance windows and bypass lists
EquipmentClub categories and effects, upgrade levels, balls, tees, purchase bundles, golf-bag dependency checks
Golf PassFree and premium reward tracks, asset previews, linked shop offers, payload and timing validation
Player progressionLevel and XP table, bulk JSON input, progress-event reward support
ContentFAQ authoring, news templates, notifications, personas, daily rewards, asset helpers
CommerceShop offers and sections, starter packs, display configs, personalization, currency conversion
Seasonal contentCalendar seasons, tournament references, ordered events, lineup configs, dependency previews, season snapshots
OperationsTournament monitoring, simulations, finance flows, player utilities, chat moderation (behind separate permissions)
Release engineeringLegacy import, slug migration, release dashboard, dependency registry, exact snapshots, changelogs, resets, push history

Decisions

Why it is built this way

Core publishing decisions, the AI-assisted release review, and the Experiments design.

Core publishing

ProductionCo-led rebuild, with my ownership of the publishing workflow.
1Decision record

A shared database contract with explicit aggregate operations

Decision
A typed DatabaseAdapter gave NestJS modules one data-access interface over Drizzle: transactions, filtering, paging, relations, upserts and structured errors. Parent and child operations handle nested content, with recursive delete and restore for whole trees.
Trade-off
Less repeated persistence logic. The common interface must still express important database behavior and keep error context.
2Decision record

Use the first content module to set a reusable pattern

Decision
ProShot and SpeedPutt moved from a strategy and factory design to a repository with entity IDs, content hashes and three related tables. Zod validates dates, durations and nested settings, and a dedicated service builds the Nakama payload.
Effect
What makes a config valid is separate from how the game encodes it, and an exact preview shows the resulting payload.
3Decision record

Keep dependency readiness close to publishing

Decision
A shared dependency-status service with a registry of entity types. The preview shows whether related content is missing, deleted, unpublished or behind its latest version. Operators can publish missing dependencies inline, and critical ones gate supported pushes.
Trade-off
New modules must register their rules. Coverage spans about 15 modules, not every endpoint identically.
4Decision record

Preserve what the game received

Decision
Numbered, hashed publish snapshots tied to push history, with actor and related versions. The UI shows the stored payload rather than rebuilding an old release from current fields.
Why
Edit history answers what changed in the CMS. Publish history answers what was sent to the game. Database-triggered numbering and a uniqueness constraint back per-entity versions.
5Decision record

Show live state and outstanding work together

Decision
The dashboard lists scheduled, live and ended items plus an action-required list of edits waiting to publish. For selected modules, live status uses the published snapshot.
Effect
A designer can see an item is live while its latest draft still needs action.
6Decision record

Make backend errors usable in the authoring UI

Decision
A shared server-action wrapper returns structured outcomes, with a client counterpart that handles them, adopted across about 175 files. React Query invalidation, server-side pagination and consistent identifiers complete the pattern.
Effect
Backend validation messages survive the server and client boundary, and later modules reuse the same forms, tables and gates.
7Decision record

Migrate existing content with stable identifiers

Decision
Co-worked the slug ID migration (UUID-derived backfill, unique constraints, changes across roughly 20 services) and contributed legacy imports with per-module transforms, conflict reporting and bounded retries.
Why
Stable game-facing references make history and publishing easier to reason about.
8Decision record

Keep live-ops actions behind separate boundaries

Decision
Content authoring and privileged live-ops tools are separate surfaces with separate permission checks. Nakama RPC handles game actions, and Metabase backs selected tournament reads.
Note
Public copy uses a synthetic operations screen and describes boundaries, not staff commands or player data.

AI-assisted release review

ProductionMerged to main, with September hardening.
9Decision record

Make AI advisory

Mechanism
23 rule-based finding codes: 2 fatal, 8 error, 13 warning. Fatal blocks, error needs an authorized owner override and consent, warning needs consent. The model explains the findings.
Why
An unavailable model cannot replace enforcement.
10Decision record

Bind approval to the payload

Mechanism
A 15-minute review session stores the SHA-256 of the canonical master JSON. On publish the backend rebuilds the JSON and reruns checks. A changed payload returns a conflict and needs a fresh review. Partial season pushes fingerprint the relevant subset. Redis shares sessions across instances, with in-memory for one.
11Decision record

Findings before prose, and bounded model input

Mechanism
SSE sends local rules first, then dependency findings, then model output, with heartbeat and error events. Input uses compact summaries and the diff from the last published snapshot under an 8k estimated budget that degrades in steps, then falls back. Validators continue when the model is down.
12Decision record

Make publication auditable, and state the scope

Mechanism
Push history records findings, summary, override identity and review reference.
Scope
Enforced checks cover single calendar-season and lineup pushes. The 1v1 path has advisory AI review without these validators, and multi-season bulk push bypasses the review.

Experiments

Feature branch, unmergedImplementation case study. Launch, adoption and lift are unverified.
13Decision record

Separate default and variant content

Mechanism
Tournament, lineup, shop and experiment documents have independent keys. Lineups reference reusable tournament docs, variations select alternate keys, season writes order referenced documents first and deduplicate entries, and writes are chunked.
14Decision record

Make experiments structured and reviewable

Mechanism
Hypothesis, coverage, audience, targeting, variations, timelines and expiry are recorded. One explicit control is required, with even, weighted or absolute splits, and the wizard compares variations against Control.
15Decision record

Define which system owns runtime state

Mechanism
The CMS manages draft, schedule and operator actions. Nakama owns runtime transitions such as entering Running, and the CMS mirrors them without moving lifecycle backwards. Analysis moved out of the CMS.
16Decision record

Keep live experiment edits narrow

Mechanism
A module is reserved while an experiment is active, running edits are constrained, and operators see which experiments depend on a default or variant before pushing a change.
17Decision record

Preview what a player could see

Mechanism
Shop previews compare variants at the same simulated time, persona, level, seed and time zone. Per-player purchase state, cooldowns and ladder progress are excluded, and QA overrides are permission-gated.
18Decision record

Compensate only for a known rejection

Mechanism
Save-and-push snapshots the row and records the hash it wrote. A definite refusal restores touched fields and publish flags if the row still has that hash. A timeout is an unknown outcome, so local state stays and the operator is asked to reconcile.
Note
Conditional compensation across systems, not distributed atomicity.
19Decision record

Evolve the design with the boundary

Mechanism
The branch moved from segments to variations and removed earlier holdout, metrics and bulk republish features as ownership changed. Older config shapes convert on read.

Skills and evidence

What this project shows

Used in production at Mindstorm Studios.

  • NestJS and TypeScriptCore professional stackA unified adapter and dedicated domain transformations for game payloads.→ Decisions 1, 2
  • PostgreSQL and DrizzleCore professional stackTransactional aggregate writes, per-entity versions and the stable slug migration.→ Decisions 1, 4, 7
  • Next.js and React QueryHands-on professionalServer-action error results and targeted invalidation in the authoring UI.→ Decision 6
  • Zod and CASLHands-on professionalValidated nested models and distinct operation gates for authoring and release.→ Decisions 2, 8
  • Nakama and RPCHands-on professionalGame-facing payloads, snapshot history and runtime separation.→ Architecture · From draft to live
  • Redis and SSEHands-on professionalReview sessions and staged streaming findings.→ Decisions 10, 11
  • AI integrationHands-on professionalBounded context, fallback, and deterministic rules with advisory model output.→ Decisions 9 to 12
  • Distributed systemsHands-on professionalRejection versus timeout, conditional restore, and runtime lifecycle ownership.→ Decision 18
  • Product engineeringCore professional stackDependency previews, reusable content editors and explicit published state.→ Decisions 3, 5

Levels are the same ones used in Skills on the home page.

Outcomes

What changed

A safer path from edit to live, with every count attached to its feature.

~70%less manual verification per season release
~25modules with version compare and reset
~15modules with dependency preview
23deterministic finding codes
  • Compare and reset across about 25 modules, and dependency preview across about 15. Each count belongs to its own feature.
  • Severity gates apply on covered paths: fatal blocks, errors need an owner, warnings need consent.
  • A shared, structured result format for server actions, so every success and failure reaches operators the same readable way.
  • Content experiments built into the CMS as part of the rebuild.
My contribution

I co-led the backend architecture of the rebuild and owned the publishing workflow and the first mini-games module, alongside the contributions listed under My part. Compare and reset were built together with the team.

Sanitized for public sharing: no internal URLs, production screenshots, player data or proprietary game settings.

The hard parts

Binding approval to the payload

A review is tied to a hash of the exact config, so a later edit needs a fresh review.

Four meanings of version

Draft, changelog, config version and push history answer different questions, which keeps recovery honest.

Rejection versus timeout

A refused publish can be undone safely. A timeout cannot, because the game may have accepted it.