Lesson 10 of 10
Pro capstone, part 2: the 14-day live-season war-game
Part 2 of the pro capstone: run Season 2 through a seeded 14-day war-game built from Beacon Yard's own live-ops modules, where your seed decides the bad price, the experiment's truth and the ad payback, then debrief from the log.
By the end you can
- Run Season 2's first 14 days in Beacon Yard's seeded war-game, one action file and one dashboard per day
- Hold an FTUE experiment through a lucky early spike and make the call ExperimentRules gives on the decision date
- Contain a SEV-1 bad price within 2 hours and recover in a safe order with a kick or a profile patch
- Judge an ad test on what its players spend after the 70% creator share, and write a post-mortem whose timeline comes from the event log
Before this: Pro capstone, part 1: plan and build Season 2
Step 1 of 7
The brief: you are on call for Season 2
The war-game is plain Luau inside the game: src/shared/SeasonWarGame.luau at m17-live-season. It runs your Season 2 for 14 days you act on, then a 7-day tail (days 15 to 21) where you only watch. It is built from the modules you already wrote: EconomySim for the coins, LiveOpsCalendar and LiveFlags for beats and clamps, FtueMachine for the goal step, LaunchMetrics for health and alerts, IncidentOps for triage and the recovery plan, and ExperimentRules for the call. No clock and no math.random: the same seed and the same actions always give the same 21 days.
These are the rules of the room, straight from the module:
SeasonWarGame.ACTION_DAYS = 14
SeasonWarGame.TOTAL_DAYS = 21
-- The D7 the game had before the season. The season's cohort must match it.
SeasonWarGame.BASELINE_D7 = 0.16
-- The experiment may not be called before this day, or below this many
-- players in each group.
SeasonWarGame.DECISION_DAY = 7
SeasonWarGame.MIN_N = 450
-- The daily Robux budget of the campaign that starts on day 11.
SeasonWarGame.TEST_BUDGET = 100
-- Roblox keeps 30% of Robux spent in the game, so the creator keeps 70%.
SeasonWarGame.CREATOR_SHARE = 0.7
-- A SEV-1 must be contained within this many hours of its page.
SeasonWarGame.CONTAIN_HOURS = 2
-- You read the page and act this many hours after it.
SeasonWarGame.RESPONSE_HOURS = 1
| Rule | Value |
|---|---|
| Days you act on, then days you watch | 1 to 14, then 15 to 21 |
| When your actions land | at the end of the day you list them under; on a SEV-1 day, 1 hour after the page |
| Experiment decision date and minimum group | day 7, 450 players per arm |
| Containing a SEV-1 | its kill switch off within 2 hours of the page |
| Economy alert | above 1.8 coins earned per coin spent |
| Ad payback | what the campaign's players spend, times 0.7 (the creator share), against what it costs |
| The season's players must return | season cohort D7 at or above the 16% baseline |
Set aside about two hours: a day takes a few minutes to read and answer, and most first full runs fail at least one check.
The season it plays is the one you built in Part 1: the rows of your season.json with "season": "s02". Day 1 is the day your first beat starts, and anything after day 14 is cut. The Shield price comes from your items.json. Before day 1, SeasonPlan checks your rows with your experiments.json, exactly as check-data does, and a season it refuses is not played. With no s02 rows at all, the game plays a stock draft instead: a quiet launch week (days 1 to 4), then a Scrap Rush that pays x3 for six days. The FTUE test is the experiments.json row whose window overlaps your season, running from day 1; the stock draft tests ftue_beam_hint. The war-game can only test a string flag with exactly two arms, so any other flag fails input_valid with the war-game can test a two-arm string flag; <flag> is not one. The first line the check prints tells you which season it played:
WARGAME season: s02 (2 beats, days 1 to 14)
WARGAME season: stock draft (no s02 rows in season.json)
WARGAME season s02 is not valid: experiment ftue-beam-hint-2 overlaps beat s2-rush-2
The third line fails a check called season_valid, and the game stops there: fix the rows, then play.
The seed decides three things, never the days or the shapes. Which coin item ships with the bad price on day 9: the Shield, Speed or the Repair, so which SKU you scope and how many players it hit. What the FTUE arm really does: wins, does nothing, or lifts the goal while cutting Day 1 retention. Whether the day 11 ads pay back after the creator share.
Day 9's page arrives at 14:00. You write { kind = "kill", feature = "shop" } under day 10 instead of day 9, because you wanted to see day 10 first. Does sev1_contained pass?
Press 1 to 4 to choose, Enter to check.
Step 2 of 7
Open the room: the first dashboards and your own season
You answer in one Luau file, challenges/work/season_actions.luau, which returns a table from day number to the list of actions you take that day. The file's header lists every action: config, kill, reopen, rollback, scope, restart, kick, repair, ads, experiment and postmortem. Anything else is reported as an error, not a crash.
Before you set up Studio, open the room right here. The cells below run the real war-game from m17-live-season in your browser (the game's bundle, game/dist/season-wargame.luau, is loaded for you as SeasonWarGame). They play on the challenge's own seed, so their numbers are not yours. The first two play the stock draft; the third plays rows you paste in.
Predict first. On day 1 nobody has had a day to come back yet. What will the guardrail line (Day 1 retention, B minus A) show?
guardrail D1, B minus A ??? | ExperimentRules: ???
Press 1 to 4 to choose, Enter to check.
Read day 1 top to bottom. The FTUE line names the flag under test, here ftue_beam_hint: A is its control arm (pad_then_beacon, the default), B the test arm (beacon_only). The goal is the share of new players who reach FirstPurchase, the FTUE's last step, with the 95% interval of B minus A in brackets. The guardrail is Day 1 retention, so it needs a day of returns before it means anything. The coins block has one row per player type from economy.json with its band verdict, and the health line is what LaunchMetrics would page you on. Day 2 already holds the first trap.
Both sidesRemember: Running a live season is running a two-week limited menu in a busy kitchen.
Service has started. The prep list from Part 1 is pinned to the wall, and now the tickets are printing faster than anyone can read them. The dashboard is the pass: one glance per day, and you only touch what it tells you to touch.
Your actions for a quiet day land at 24:00 and show in that day's log. The cell below ships the experiment on day 1. Run it, read day 1's log line and day 2's verdict, then change the one action so the experiment stays open and the log says it is still reading.
Now put your own Season 2 in the room. preview takes season rows as its fourth argument: the same fields as your season.json rows, written as a Luau table. The cell below starts with a first draft that has only one weekend.
Predict first. The rows below hold one Season 2 weekend, February 26 to 28. What does SeasonWarGame.preview(actions, nil, 3, rows) return?
local rows = {
{ 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 },
}
Press 1 to 4 to choose, Enter to check.
The way to play is the way a live team works: run to day N, read it, write that day's actions under [N], run again. A day's numbers never depend on that day's own actions, only on earlier ones (its log and the verdict label do show what you did at 24:00), so reading first is always safe. Now set up the real room, on your own season and your own seed.
Build along
challenges/work/season_actions.luausrc/shared/data/season.json
In your Season 2 branch, open the place in Studio, connect Rojo, press Play, and run
game.ServerScriptService.RunGameTests:Invoke("pro-capstone-wargame", "pro-capstone-wargame")from the server command bar. Write down the seed it prints: it comes from your UserId, so it is yours.You should see Output prints 'WARGAME season: s02 (N beats, days 1 to 14)', then 'WARGAME seed <your number> (lune run scripts/lune/season-wargame --seed <your number>)', then a TEST FAIL line for most checks, because the file has no actions yet. If it says 'is not valid', fix the rows it names first.
From the repo root, run
lune run scripts/lune/season-wargame challenges/work/season_actions.luau --season src/shared/data/season.json --season-id s02 --seed <your number> --day 1. Without Studio you can get the same seed with--user <your UserId>.--day Nstops after day N and prints no grade, so you can play one day at a time. Leave out--seasonand Lune plays the stock draft instead, the season the first two browser cells show. To try a season without touchingseason.json, point--seasonat any file of rows, such asscripts/lune/wargame-samples/season2.json.You should see The terminal prints the same 'WARGAME season: s02' line, then one block starting '== Day 1 == beat <your first beat>' with the FTUE, guardrail, retention, coins and health lines, and no grade.
Step 3 of 7
Day 2 and your first rush: a lucky spike and a hot rush
Run to day 2. On the challenge's seed, in the stock draft, it looks like this (your beat names and numbers differ):
== Day 2 == beat launch, coins x1 | 153 players (106 new, 47 back), peak 23 online
FTUE (ftue_beam_hint) to FirstPurchase: A 50.9% (n 112), B 68.8% (n 112), B minus A +17.9 pts [+5.2, +30.5]
guardrail D1, B minus A +10.2 pts [-6.8, +27.2] | ExperimentRules: hold
retention: D1 of yesterday's cohort 39.9%, D7 of last week's cohort n/a
00:00 [d02-ftue-spike] event: the FTUE experiment's arm B posts a very good second day
The goal interval is wholly above zero. Your producer has already posted the screenshot in the team chat with a rocket emoji. The spike is real data, not a bug: on some seeds the arm truly wins and on others it does nothing or hurts. Day 2 cannot tell you which, and that is the whole reason hold comes first in the rule you wrote in Part 1.
Predict first. You add { kind = "experiment", decision = "ship" } under day 2. What happens to the grade?
-- challenges/work/season_actions.luau
[2] = {
{ kind = "experiment", decision = "ship" },
},
Press 1 to 4 to choose, Enter to check.
Next comes the economy incident. It starts on the first day a beat of yours pays above x1, and its log lines are dNN-rush-starts and, if coins run hot, dNN-alert-economy an hour later, where NN is that day. In the stock draft it is day 5, with a x3 rush:
== Day 5 == beat rush, coins x3 | 299 players (134 new, 165 back), peak 45 online
coins: 204636 in, 100093 out (2.04 in per out)
Casual balance 111 ok
Regular balance 449 ok
Grinder balance 1484 ok
00:00 [d05-rush-starts] event: coins pay x3 today (beat rush)
01:00 [d05-alert-economy] alert: SEV-3 economy: 2.0 coins earned per coin spent, over 1.8
Every balance is still "ok" today. The alert is about the rate, not the level: at 2.04 coins in for every coin out, balances double every few days, and the draft keeps this rush on for six days. If no beat in your first 14 days pays above x1, day 1's log says d01-no-rush (no rush beat in days 1 to 14: the economy incident does not run), and you skip this part. A gentle x2 weekend may also stay under the 1.8 alert. Before you pick a lever, read how the game decides what a coin pays:
function SeasonService.coinMultiplier(): number
return math.max(beatMultiplier("scrap_rush"), FlagService.coinMultiplier())
In the stock draft, which day 5 action stops the inflation and keeps Season 2 running?
Press 1 to 4 to choose, Enter to check.
Step 4 of 7
Day 7: the decision date
From day 7 on, with at least 450 players in each arm, ExperimentRules stops saying hold. Read the verdict on the guardrail line of that day's dashboard: ship, revert or keep. On the challenge's seed it says ship on day 7. On yours it may say something else, and a day later the intervals are a little narrower, so the verdict can change. Whatever day you call it, the call you list must be what the rule says that day, and you must call it by day 14.
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.
A kitchen sends back a bad dish in a minute. An experiment's results take a week to mean anything, and the players who saw the variant are still in the yard while you decide. That is why the call is made by a rule written before the data, not by whoever shouts loudest in the war room.
Predict first. Suppose your day 8 reads as below, with 471 and 468 players per arm. The producer says 'it is up 2.6 points, ship it'. What do you write?
FTUE (ftue_beam_hint) to FirstPurchase: ... B minus A +2.6 pts [-1.1, +6.3]
guardrail D1, B minus A -0.4 pts [-6.2, +5.4] | ExperimentRules: keep
Press 1 to 4 to choose, Enter to check.
Step 5 of 7
Day 9: the page
Run to day 9. A new place version ships with a negative price, and the economy explodes within the hour:
== Day 9 == beat rush, coins x3 | 393 players (115 new, 278 back), peak 59 online
coins: 1518469 in, 131561 out (11.54 in per out)
13:00 [d09-bad-price] event: version 42 ships with the Speed priced at -25 coins
14:00 [d09-alert-sev1] alert: SEV-1 economy: 10.0 coins earned per coin spent, over 1.8
On your seed the item may be the Shield or the Repair instead. All three are bought through ShopBuy, which RemoteGuard and ShopService.purchase check against shop_enabled, so the shop's kill switch contains every one of them. Your actions for day 9 land at 15:00, one hour after the page. The recovery plan is graded by the same IncidentOps.validateRecoveryPlan you wrote in the incidents lesson.
Four day 9 action lists, each followed by the same post-mortem. Which one passes recovery_plan_valid?
Press 1 to 4 to choose, Enter to check.
The repair has two safe routes, the same two as in the incidents lesson. via = "kick" writes the profiles of players you have kicked, so it needs the kick first. via = "patch" stores one profile patch per scoped player, which the game applies on that player's next load. It never touches a live profile, so it needs no kick: the plan counts it as one. The war-game's handler shows both routes:
HANDLERS.repair = function(sim, action, at)
local via = text(action, "via")
if via ~= "kick" and via ~= "patch" then
return false, "repair: via must be kick or patch", "repair"
end
local route: string = via
table.insert(sim.steps, { step = "merge_restore", at = at, via = route })
if not sim.scoped then
return true, "repair: no scoped list, so nobody was repaired", "repair"
end
if via == "kick" and not sim.kicked then
return true,
"repair: the players are still in session, so their profiles are held and nothing was written",
The postmortem action takes a list of log ids, the bracketed ids the dashboards print. The grade checks that it lists at least 4, that every id is in the log, that they are in time order, and that the SEV-1 page (d09-alert-sev1) and the containment (d09-contained) are both there. d09-contained only exists once your kill switch has landed, so run the day once with your actions, copy the ids from what it printed, and file the post-mortem in the same day's list. A timeline from memory fails: the fail sample's d12-we-learned is not in any log.
It is 15:00 on a Friday and 22 scoped players are mid-drill. Which repair is kinder to them and still passes recovery_plan_valid?
Press 1 to 4 to choose, Enter to check.
Step 6 of 7
Day 11: the ad test
A test campaign starts on day 11 at 100 Robux a day. The dashboard reports what Ads Manager would report for it: plays, the cost per play and what the campaign's players spent1. On the challenge's seed:
ads: 12 plays for 95 R$ (7.9 R$ a play), players spent 121 R$ before the creator share
Spend is not income. Roblox keeps 30% of Robux spent in an experience, so you keep 70% of what those players spent. Scale the campaign only when what you keep per play is at least what a play costs. Your ads action sets the daily budget from the next day: above 100 scales it, 0 stops it. The grade applies exactly that rule:
-- 6. The ads decision follows lifetime value after the creator share.
local costPerPlay, earningsPerPlay = campaign(sim)
local shouldScale = earningsPerPlay * SeasonWarGame.CREATOR_SHARE >= costPerPlay
Using the line above: how many Robux do you keep per play after the 70% creator share? Round to one decimal.
Step 7 of 7
Grade, debrief and write it up
Run the whole season with no --day and read the grade at the bottom. Then run the Studio check, which uses your own seed and gives you the pass code.
Level 3, Professional
Challenge
Edit challenges/work/season_actions.luau in your Season 2 branch until lune run scripts/lune/season-wargame challenges/work/season_actions.luau --season src/shared/data/season.json --season-id s02 --seed <yours> shows every check as ok, then grade it in Studio, which plays the same season. Advanced: return a function(report, day) instead of a table, and write one strategy that reads the dashboards and wins on any seed. Solution: challenges/solutions/pro-capstone-wargame.md.
- Start from
- The game at milestone m17 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("pro-capstone-wargame")in the server command bar. Copy the pass code from Output.
Done means
- season_valid: your s02 rows in season.json pass SeasonPlan with your experiments.json (with no s02 rows the stock draft is played instead)
- sev1_contained: the shop's kill switch is off within 2 hours of the day 9 page
- recovery_plan_valid: kill switch, rollback, scope, restart, kick (or a patch repair), repair and post-mortem in a safe order, and the shop open again
- coins_in_bands_day14 and coins_in_bands_day21: every player type inside its band on day 14 and after the 7-day tail
- no_early_experiment_call and experiment_call_correct: the experiment is called by day 14, never while ExperimentRules says hold, and with the call it gives that day
- cohort_d7_at_baseline: the season's cohorts come back on day 7 at least as often as the 16% baseline
- ads_judged_on_ltv: the campaign is scaled only when spend per play after the 70% creator share covers the cost per play
- postmortem_from_log and input_valid: at least 4 log ids in time order with the page and the containment, no invalid action, and an experiment on a two-arm string flag
- season_passed: every check above in the same run

A passing season in Studio: the season it played, your seed, one TEST PASS per check, and the pass code.
A failed season prints why. These are some of the lines from the game's own wrong sample (scripts/lune/wargame-samples/fail.luau), which ships the spike on day 2, lets the rush run, closes the shop a day late and writes its timeline from memory:
- sev1_contained: the kill switch went off 34 hours after the page, the limit is 2
- recovery_plan_valid: plan kill_switch, postmortem is not safe: missing_rollback_or_fix
- coins_in_bands_day14: day 14: Casual inflation, Regular inflation, Grinder balance-high
- no_early_experiment_call: day 2: you called ship while ExperimentRules said hold
- ads_judged_on_ltv: each play costs 7.9 R$ and earns 7.1 R$ after the creator share, so do not scale
- postmortem_from_log: d12-we-learned is not in the log
Now write the post-mortem a person reads: one page, blameless, with the fields your checkPostmortem from Part 1 checks. Build its timeline from the ids you filed, so every line points at something the log can prove: when the rush alert fired and what you changed, the page, the containment and how long it took, who was scoped and how they were repaired, the experiment's call and its intervals, the ads decision and its numbers, and two owned action items for Season 3 (for example, "a CI rule that rejects a beat inside an experiment window" and "a price range check on every shop item"). That page, with your seed and your passing grade, is the portfolio piece.
If your own game has real traffic, you can also run a season live with the same rules. Expect to need around 1,000 daily active users before an experiment says anything useful2.
Retiring the analogy
You no longer need โrunning a two-week limited menu in a busy kitchenโ. 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.
Your season passed on the second try. The first try failed only coins_in_bands_day21: day 14 was fine, and a week later Grinder balances were too high. Which Season 3 action item addresses the cause?
Press 1 to 4 to choose, Enter to check.
Recap
- The war-game plays your own Season 2 (the s02 rows of season.json, checked by SeasonPlan first) through Beacon Yard's own modules for 14 days you act on and 7 you watch; your seed decides the bad-price item, the experiment's truth and the ad payback.
- Play it like a live team: run to day N with --day N (add --season src/shared/data/season.json to play your own season), read the dashboard, write that day's actions, run again. A SEV-1 day's actions land 1 hour after the page; other days' land at the day's end.
- Hold through the lucky spike, steer a hot rush with season_beat set to one of your quiet beats, and make the experiment call ExperimentRules gives on or after day 7, by day 14.
- Contain the SEV-1 with shop_enabled within 2 hours, then rollback, scope, restart, kick and repair (or repair by profile patch), reopen, and file a post-mortem from log ids.
- Judge ads on what players spend per play times 0.7 against cost per play, and write the one-page post-mortem from the log: that is your portfolio piece.
- Next: choose a specialisation track in Part 3, two of them with starter branches and graded checks.
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.
Queued for review
- Day 9's page arrives at 14:00. You write { kind = "kill", feature = "shop" } under day 10 instead of day 9, because you wanted to see day 10 first. Does sev1_contained pass?
- Predict first. On day 1 nobody has had a day to come back yet. What will the guardrail line (Day 1 retention, B minus A) show?
- Predict first. The rows below hold one Season 2 weekend, February 26 to 28. What does SeasonWarGame.preview(actions, nil, 3, rows) return?
- Predict first. You add { kind = "experiment", decision = "ship" } under day 2. What happens to the grade?
- In the stock draft, which day 5 action stops the inflation and keeps Season 2 running?
- Predict first. Suppose your day 8 reads as below, with 471 and 468 players per arm. The producer says 'it is up 2.6 points, ship it'. What do you write?
- Four day 9 action lists, each followed by the same post-mortem. Which one passes recovery_plan_valid?
- It is 15:00 on a Friday and 22 scoped players are mid-drill. Which repair is kinder to them and still passes recovery_plan_valid?
- Your season passed on the second try. The first try failed only coins_in_bands_day21: day 14 was fine, and a week later Grinder balances were too high. Which Season 3 action item addresses the cause?