Module 15 · In Studio
Post-event KPI review and repo challenge
A test in Studio grades it and prints a pass code.
Open
Level 3, Professional
Challenge
The challenge files ship in every tag from m14-ship on, so you can solve it in the same checkout you built the season in. Edit challenges/work/liveops_calendar.luau and run challenges/liveops-calendar.luau through the Course Runner. Solution: challenges/solutions/liveops-calendar.md.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("liveops-calendar", "liveops-calendar-rules")in the server command bar. Copy the pass code from Output.
Done means
- isBeatActive checks enabled == true, rejects inverted windows (endsAt <= startsAt), and enforces startsAt <= now < endsAt
- resolveMultiplier returns 1 when disabled, clamps finite numbers to [1, maxMult] (the game passes Config.EVENT_MAX_MULTIPLIER), and falls back to defaultMult (Config.EVENT_DEFAULT_MULTIPLIER) on NaN, infinity or non-numbers
- hasOverlap detects overlapping enabled beats while allowing back-to-back beats (a.endsAt == b.startsAt) and ignoring disabled beats
- qaGateReady enforces stagedTested, non-empty killSwitchKey, rollbackPlan, and non-empty kpiTarget in order
- kpiLiftPercent computes ((eventValue - baseline) / baseline) * 100 and returns nil when baseline <= 0