Module 15 · In Studio

Repo challenge: the season config and the decision rule

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Edit challenges/work/pro_capstone.luau in your m17-live-season checkout and pass every check in challenges/pro-capstone.luau. Solution: challenges/solutions/pro-capstone.md.

Start from
The game at milestone m17 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("pro-capstone", "pro-capstone-season") in the server command bar. Copy the pass code from Output.

Done means

  • validateSeasonConfig accepts a valid 14-day s02 season and lists every problem: an empty seasonId, durationDays outside 1 to 60 or under 14 when ftueExperiment is set, an eventMultiplier outside [1, maxMultiplier] or not finite, fewer than 5 progressionTiers or tiers that do not strictly increase, an experiment with an empty key or guardrailMetric or the same control and variant values, and an empty killSwitchKey
  • experimentDecision(samplePerArm, minSample, goalCi, guardCi, beforeDecisionDate?) returns hold before the decision date or below minSample, revert when guardCi.high < -2, ship when goalCi.low > 0, and keep otherwise
  • checkPostmortem passes a complete blameless report and fails a short timeline, an action item with no owner or due date, or a summary with blaming phrases

The Course Runner prints this code when the test passes.