Lesson 10 of 10

Pro capstone, part 1: plan and build Season 2

Part 1 of the pro capstone: plan and build Season 2 of Beacon Yard on m17-live-season, prove the calendar with the game's own checks, design a clean FTUE experiment and write the rule that decides it.

Project lesson, about 50 minutes, 6 steps

By the end you can

  • Plan Beacon Yard's Season 2 (id s02, at least 14 days) as data on m17-live-season, with its beats, tier track and experiment window
  • Check the plan with SeasonPlan.problems(beats, experiments?) and lune run scripts/check-data before anyone presses Play
  • Design an FTUE experiment that fits Roblox's 14 to 60 day window in a span with no events
  • Decide an experiment from 95% confidence intervals with experimentDecision, written down before launch

Before this: The live-ops calendar: seasons, events and the content pipeline, Incidents: severity, kill switches and post-mortems, Launch and the first 30 days, Portfolio and getting hired at a top studio

Step 1 of 6

The brief: Season 2 is yours

Beacon Yard at m17-live-season already runs a live season. season.json lists Season 1's beats, from the first Scrap Rush weekend on December 4 to the finale rush that ends on February 22, 2027. seasonTrack.json holds its five tiers, experiments.json holds its one FTUE experiment, and Config.SEASON_ID is "s01".

A live season is a limited menu in a busy kitchen. The menu, the prep list and the portion sizes are all decided before the dinner rush, because nobody rewrites the menu while the tickets are printing.

Think of it as Running a two-week limited menu in a busy kitchen

Both sidesRunning a live season is running a two-week limited menu in a busy kitchen.
In the pictureIn Roblox
The menu plan and prep listThe season config: duration, clamped event multiplier, progression tiers and FTUE experiment
The pass inspection before serviceStaging QA, CI tests and kill-switch checks before publishing live
The closing shift tallyPre/during/post KPI comparison and the blameless season post-mortem

See the whole analogy cast

Your deliverable is Season 2 on a branch of m17-live-season. Each piece has a file, and each file has a check that can fail it:

PieceWhere it livesWhat checks it
Season id s02Config.SEASON_ID in src/shared/Config.luauSeasonService.addXp starts every track again when the id changes
The beats, at least 14 days of themsrc/shared/data/season.json, after Season 1's rows, each with "season": "s02"SeasonPlan.problems and lune run scripts/check-data, then Part 2's war-game plays them
A kill switch for the seasonseason_s02_enabled, already declared in LiveFlagsevery beat follows its own season's switch
A new tier track, the progression leversrc/shared/data/seasonTrack.jsonContentSchema at boot, and validateSeasonConfig in the challenge
One FTUE experiment, 14 to 60 days, no beat insidesrc/shared/data/experiments.jsonSeasonPlan.problems(beats, experiments)
The decision rule, written before launchyour season doc, then experimentDecisionthe pro-capstone challenge

Start with the cheapest mistake to make: the season id. Here is how the game decides a player is in a new season:

	local track = data.seasonTrack
	if track.id ~= Config.SEASON_ID then
		-- A new season starts every player's track again.
		track.id = Config.SEASON_ID
		track.xp = 0
		track.tier = 0
Predict the output

Predict first. You ship Season 2 with Config.SEASON_ID = "s02". A player who reached tier 4 in Season 1 (1,120 season XP) joins and survives one drill, worth 20 XP. What does their profile's seasonTrack hold afterwards?

-- before: seasonTrack = { id = "s01", xp = 1120, tier = 4 }
SeasonService.addXp(player, 20)
Predict first. You ship Season 2 with Config.SEASON_ID = "s02". A player who reached tier 4 in Season 1 (1,120 season XP) joins and survives one drill, worth 20 XP. What does their profile's seasonTrack hold afterwards?

Press 1 to 4 to choose, Enter to check.

Link to this step ยท This confused me

Step 2 of 6

Draft the calendar and let the checker argue

A first draft always has a collision. The point is to find it in a terminal, not in a dashboard two weeks later. SeasonPlan.problems takes the beats and, as an optional second argument, the experiment rows. With both it reports four kinds of problem: two enabled beats that overlap, an enabled beat inside an experiment window (ends that only touch are fine), an experiment shorter than 14 days or longer than 60, and a season whose enabled beats span less than 14 days. A row's season field says which season it belongs to (a row without one is Season 1's, s01), and every season is measured on its own.

function SeasonPlan.crossProblems<B, E>(beatRows: { B }, experimentRows: { E }): { string }
	local problems = {}
	local beats = SeasonPlan.beats(beatRows)
	local experiments = (experimentRows :: unknown) :: { ExperimentRow }
	for _, experiment in experiments do
		local startsAt = SeasonPlan.parseUtc(experiment.starts)
		local endsAt = SeasonPlan.parseUtc(experiment.ends)
		if startsAt ~= nil and endsAt ~= nil then
			for _, beat in beats do
				if beat.enabled and beat.startsAt < endsAt and startsAt < beat.endsAt then

The 14 and 60 are Roblox's rule, not Beacon Yard's: in-game experiments run for between 14 and 60 days1. A beat inside the window is Beacon Yard's rule, from the calendar lesson: a coin rush changes who reaches the FTUE goal and how fast, so the lift you measure would describe a rush week.

Here is a real first draft. It keeps Season 1's rows and adds two Season 2 weekends to season.json:

json
[
  { "id": "s2-rush-1", "season": "s02", "label": "Scrap Rush weekend", "kind": "scrap_rush", "starts": "2027-02-26T18:00Z", "ends": "2027-02-28T18:00Z", "multiplier": 2, "enabled": true },
  { "id": "s2-rush-2", "season": "s02", "label": "Scrap Rush weekend", "kind": "scrap_rush", "starts": "2027-03-12T18:00Z", "ends": "2027-03-14T18:00Z", "multiplier": 2, "enabled": true }
]

It also adds one row to experiments.json, after Season 1's row, to run the ftue_beam_hint test again on Season 2's new players:

json
[
  { "id": "ftue-beam-hint-2", "flag": "ftue_beam_hint", "starts": "2027-03-01T00:00Z", "ends": "2027-03-11T00:00Z" }
]

lune run scripts/check-data rejects it with one line: experiments[2]: ftue-beam-hint-2 runs 10 days, but an experiment needs at least 14. So you push the end date to March 15 and run it again.

Predict the output

Predict first. The experiment now runs from 2027-03-01T00:00Z to 2027-03-15T00:00Z (14 days). Nothing else changed. What does lune run scripts/check-data print?

s2-rush-1          2027-02-26T18:00Z to 2027-02-28T18:00Z
s2-rush-2          2027-03-12T18:00Z to 2027-03-14T18:00Z
ftue-beam-hint-2   2027-03-01T00:00Z to 2027-03-15T00:00Z
Predict first. The experiment now runs from 2027-03-01T00:00Z to 2027-03-15T00:00Z (14 days). Nothing else changed. What does lune run scripts/check-data print?

Press 1 to 4 to choose, Enter to check.

Season 2 with a clean experiment windowFour boxes in a row from left to right: a Scrap Rush weekend from February 26, a 14-day FTUE experiment with no beats from March 1, a Scrap Rush weekend from March 19, and a finale rush.RushFeb 26 to 28FTUE testMar 1 to 15, quietRushMar 19 to 21Finaleyour call
Plan the two quiet weeks first, then fit the beats around them.

Keep Season 1's rows in the file: they have no season field, so they stay s01, and a unit spec and two Studio playtests read rush-1. Because each season is measured on its own, Season 1's three months cannot hide a Season 2 that is too short. A single Season 2 weekend fails with season s02: its beats span 2 days, but a season needs at least 14.

Both sidesRemember: Running a live season is running a two-week limited menu in a busy kitchen.

The checker is the pass inspection before service: it does not cook anything, it just refuses to let a plate out with the wrong garnish. The plan is the prep list, and every collision you fix here is one you never debug live.

Choose one

A Season 2 rush is paying far too much. The person on call, used to Season 1, publishes season_s01_enabled = false. What happens to the Season 2 rush?

A Season 2 rush is paying far too much. The person on call, used to Season 1, publishes season_s01_enabled = false. What happens to the Season 2 rush?

Press 1 to 4 to choose, Enter to check.

Link to this step ยท This confused me

Step 3 of 6

Build Season 2 on a branch

Now write your own season. Start a branch from the tag in your game checkout: git switch --create season-2 m17-live-season. Each step ends with something you can check.

Build along

m17-live-season

  • src/shared/data/season.json
  • src/shared/data/experiments.json
  • src/shared/data/seasonTrack.json
  • src/shared/Config.luau
  1. Append your Season 2 beats to src/shared/data/season.json, after Season 1's last row. Give every row "season": "s02", use scrap_rush and repair_week kinds and UTC text dates like "2027-02-26T18:00Z". Use ids starting with s2- for your scheduled beats (such as s2-rush-1), and keep the plain id launch for one quiet opening beat (kind: "scrap_rush", "multiplier": 1, in the days just before your first rush, such as 2027-02-22T18:00Z to 2027-02-26T18:00Z) so Part 2's war-game can fall back to it (season_beat = launch) when a rush needs calming, matching the game's reference strategy. Leave two clear weeks for the experiment, and no two beats on the same days. Then break it on purpose: move one beat into the window, run lune run scripts/check-data, read the line it prints, and move the beat back. Part 2's war-game plays these rows: its day 1 is the day your first beat starts, and it runs your first 14 days.

    You should see lune run scripts/check-data prints 'check-data: 11 content files are valid'. Deleting all but one of your Season 2 beats (leaving a span under 14 days) makes it print 'season s02: its beats span ... days, but a season needs at least 14'.

  2. Add one row to src/shared/data/experiments.json for your FTUE experiment: { "id", "flag", "starts", "ends" }, where flag is a key from LiveFlags. Part 2's war-game plays the row that overlaps your season, and it can only test a string flag with exactly two arms, where the default is the control. At m17-live-season that is ftue_beam_hint (pad_then_beacon, the default, against beacon_only), already wired end to end through FlagService.ftueVariant and FtueClient. If you want a new question, declare your own string flag in LiveFlags with a two-value oneOf and wire it the same way. The row only declares the window. The arms are set in Creator Hub when you create the experiment, and the game reads them per player with ConfigService:GetConfigForPlayerAsync2.

    You should see check-data still reports the content files as valid. Changing the end date to 13 days after the start makes it print 'runs 13 days, but an experiment needs at least 14'.

  3. Replace the five rows of src/shared/data/seasonTrack.json with Season 2's track: five or more tiers with strictly increasing xp and a reward each, labelled for the new season. This is your progression lever, so change the curve on purpose (for example, a cheaper first tier for new players and a longer tail for veterans) and write one sentence on why. Then set SEASON_ID = "s02" in src/shared/Config.luau. Press Play, survive a drill, and read the toast.

    You should see In Studio Play your season XP starts again from 0 on the first coin you pick up, and passing your first threshold shows the toast 'Season tier 1: (your label) (+(your reward))'.

Where does it break?โ€œRunning a two-week limited menu in a busy kitchenโ€ is a good picture of running a live season. Where does it stop being true?

It breaks here. A kitchen closes every night to reset ingredients, whereas a live Roblox season runs continuously across overlapping player cohorts and multiple server versions at once.

The true model. A live season bundles a bounded event, a measured progression change and one guarded experiment behind Experience Configs and CI checks, operated live with real telemetry and closed with a blameless review.

The kitchen picture stops working here. A kitchen closes every night and starts clean. A live game never closes: Season 1 veterans and brand-new players share the same servers, two place versions can run at once, and today's new players are still inside an experiment that started a week ago. That is why the plan lives in data a checker can read, not in anyone's head.

Choose one

Part 2's war-game plays the experiments.json row that overlaps your Season 2, and it can test a string flag with exactly two arms. Which row do you plan for your two quiet weeks?

Part 2's war-game plays the experiments.json row that overlaps your Season 2, and it can test a string flag with exactly two arms. Which row do you plan for your two quiet weeks?

Press 1 to 4 to choose, Enter to check.

Link to this step ยท This confused me

Step 4 of 6

How many players does a real lift need?

An experiment answers only when its 95% confidence interval stays on one side of zero. The Roblox dashboard shows the interval of each metric's percent change and calls a change significant when the interval does not cross 0%, and it shows a minimum detectable effect (MDE) before you start: the smallest change the test can reliably detect with your traffic1. Beacon Yard's ExperimentRules.ci does the same sum in percentage points, from the success counts of the two arms.

Browser
Creator Hub's experiment setup for Beacon Yard's staging copy: the Configs and variants step of an in-game experiment: the ftue_beam_hint config key, two variants pad_then_beacon and beacon_only split 50/50, and the minimum detectable effect box. The 14-day duration and the goal metric sit on the previous step.

Select a numbered pin, or a row below, to read what it marks.

Set the duration, the variants and the goal metric, then read the minimum detectable effect before you schedule anything.

Your FTUE finish rate is 50%, and you believe the beacon-only beam lifts it to 56%. That is a real effect. Find out how many players each arm needs before an interval around it stops crossing zero.

Luau
Ctrl Enter runs the cell. Checked by tests

The answer is 550 players in each arm, 1,100 new players in two weeks, for a lift that is real and fairly large. A lift half that size needs about four times the players. Roblox says it plainly: games with fewer than 1,000 daily active users may struggle to get useful data from experiments1. So write down the MDE you can afford before launch, and if it is bigger than any change you could hope for, run a moderated playtest instead.

Choose one

Day 3 of the experiment, 184 players per arm. The variant leads by +14.3 points, interval [+4.4, +24.2]. The interval is wholly above 0. What do you do?

Day 3 of the experiment, 184 players per arm. The variant leads by +14.3 points, interval [+4.4, +24.2]. The interval is wholly above 0. What do you do?

Press 1 to 4 to choose, Enter to check.

Link to this step ยท This confused me

Step 5 of 6

Write the decision rule before you have data

The rule Beacon Yard uses lives in ExperimentRules.decide, and the war-game in Part 2 grades you against it. Read it in the order it runs:

function ExperimentRules.decide(
	n: number,
	minN: number,
	goalCi: Bounds,
	guardCi: Bounds,
	beforeDecisionDate: boolean
): Decision
	if beforeDecisionDate or n < minN then
		return "hold"
	end
	if guardCi.high < ExperimentRules.GUARDRAIL_FLOOR then
		return "revert"
	end
	if goalCi.low > 0 then
		return "ship"
	end
	return "keep"
end
 
return ExperimentRules

Four outcomes, in that order. Hold before the decision date or while either arm is under the minimum size. Revert when the guardrail's best case is still worse than -2 points, so the variant surely hurts Day 1 retention. Ship when the goal's worst case is still above 0. Keep otherwise: the variant did not clearly win, so you keep the control, which is also what Roblox's Make decision step offers when no variant wins1.

Other ways pros do this

OptionWhat it isWhen pros pick itTrade-offs
Interval rule with a guardrail (Beacon Yard)Hold, revert, ship or keep from the 95% intervals of a goal metric and a guardrail, after a decision date and a minimum size.Any FTUE or economy test where a win on one metric can hide harm on another.Needs enough players to shrink the intervals, so small games get many keeps.
Point estimate with a thresholdShip when the variant is ahead by more than a fixed number of points.Never for a decision; fine for spotting what to test next.Ships noise. At 800 players per arm and a Day 1 retention near 25%, a 3 point gap is about 1.4 standard errors, which happens by chance.
Moderated playtest insteadFive to eight fresh players per arm, watched and tagged by funnel step.Traffic too low for any useful MDE, or the question is why, not how much.Finds the problem, cannot measure the size of a fix.
Predict the output

Predict first. Day 9, past the decision date, 520 players per arm, minimum 450. What does the rule return?

local goal = { low = 0.4, high = 6.1 }   -- FTUE finish, points
local guard = { low = -3.1, high = 0.8 }  -- Day 1 retention, points
print(ExperimentRules.decide(520, 450, goal, guard, false))
Predict first. Day 9, past the decision date, 520 players per arm, minimum 450. What does the rule return?

Press 1 to 4 to choose, Enter to check.

Link to this step ยท This confused me

Step 6 of 6

Repo challenge: the season config and the decision rule

Now turn the brief into code the game repo grades. In your Season 2 branch, edit challenges/work/pro_capstone.luau and run challenges/pro-capstone.luau through the Course Runner. The test checks three functions with the rules from this part. Describe your own Season 2 with the same fields in your season doc: id s02, its length in days, the biggest beat multiplier, the tier thresholds, the experiment and the kill switch name.

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.

Choose one

Season 2 launches tomorrow. Which state is ready to ship?

Season 2 launches tomorrow. Which state is ready to ship?

Press 1 to 4 to choose, Enter to check.

Recap

  1. Season 2 is data on m17-live-season: s02 in Config.SEASON_ID, beats appended to season.json, a new seasonTrack.json curve and one experiments.json row.
  2. SeasonPlan.problems(beats, experiments) and lune run scripts/check-data catch overlapping beats, a beat inside an experiment, experiments outside 14 to 60 days and any season (rows with the same season id) under 14 days. Season 2 rows carry the season field s02 and stop with season_s02_enabled.
  3. Plan the experiment's two quiet weeks first, and size it: a real 50% to 56% lift needs about 550 players per arm before its 95% interval clears zero.
  4. Write the rule before launch: hold before the decision date or under the minimum size, revert when the guardrail's best case is below -2 points, ship when the goal's worst case is above 0, otherwise keep.
  5. Next: run Season 2's first 14 days in the war-game, where a lucky day 2, a hot rush and a SEV-1 test that rule under pressure.

Running a live season is running a two-week limited menu in a busy kitchen, until a kitchen closes every night to reset ingredients, whereas a live Roblox season runs continuously across overlapping player cohorts and multiple server versions at once.

Next Pro capstone, part 2: the 14-day live-season war-game

Link to this step ยท This confused me