← HomeCW / CHRONOWORLDAnalysis ↓See the game ↓
RUEN

Featured project / 2026

Chronoworld

A mobile idle RPG
in the world of Ragnarok Online

A familiar world. A new story.
Five heroes — and tactics that decide the battle.

Solo project: idea, product and game design; built with AI agents.

The project’s story and structure
Game design · product
development lead
September — October
2026
Version 1.0.0
since 7 Oct 2026
RAGNAROK UNIVERSE / IDLE RPG
Auto-battle: a hero uses an ultimate skill
The moment tactics turn into action

01 / About the project

The adventure goes on.
The decisions are yours.

Chronoworld is a mobile idle RPG in the AFK Arena genre, with the world and art of Ragnarok Online. You build a squad of five heroes and play through a story campaign of ten chapters.

Battles run automatically, but victory starts before the first blow: lineup, positioning, ultimates and gear. Between battles come levelling, ascension through the rarities and the choice of a second job.

The game already runs in the browser on a phone. Telegram Mini App support is built in too.

02 / Scale

A small screen.
A big world.

Recounted from the repository on 20 Oct 2026.
Not audience figures.

180campaign stages
12heroes
124monster and boss types
434skills
1,078voice-over lines
≈ 2,200automated tests
03 / What’s behind it

Not just a game screen.
A whole system.

01

A game, not a prototype

180 stages, 10 chapters with story and voice-over. 12 heroes — 6 classes × male/female — and 24 second-job forms. 124 monster and boss types, 434 skills.

02

One seed. The same battle.

A deterministic core with no game engine and no randomness outside the seed. Thousands of battles help check the balance, and any bug can be reproduced.

03

Content is data

Units, skills, chapters, story and economy are stored in JSON with strict validation schemas. A new monster or chapter needs no code changes.

04

Balance from the player’s point of view

A model of a “live” player lives through 7–28 days: sessions, the idle chest, summons and upgrades. The economy, progress walls and Tower difficulty are tuned against it.

05

A world between battles

A Tavern with summons and pity guarantees, ascension, gear and refining, a roguelike Tower, a Hunt for MVP bosses, expeditions, a Kitchen with dishes of the day, a Shop, quests and achievements. A daily loop, and in Telegram — cloud saves and online leaderboards.

06

A story with a voice

1,078 lines in Russian. The story voice-over was synthesized with ElevenLabs.

07

The phone is the main screen

RU/EN localization, a responsive interface and Telegram safe areas. The game runs in the browser; Telegram Mini App support is already built in.

08

Quality as part of the process

About 2,200 automated tests, “player path” smoke tests on real model states, local e2e runs in the browser and CI on every PR.

09

Development under my lead

1,177 commits and 163 pull requests in ~3.5 weeks since 26 Sep 2026. I set the tasks, made the design and balance decisions, and tested. AI agents wrote the code and tests and ran audits.

04 / Inside Chronoworld

Ten windows
into one world.

Real game screens. Swipe through or open any shot.

05 / Toolkit

Every task gets
its own tool.

TypeScriptLanguage of the game and tools
Phaser 3Rendering · WebGL / Canvas
ViteBuild · WebP · startup bundle
ZodStrict content schemas
VitestAutomated tests
PlaywrightE2E and screenshots
SupabasePostgres · Edge Functions / Deno
VercelProduction · deploy from main
GitHub ActionsCI on every PR
Telegram Mini Apps APITelegram integration
ElevenLabsStory voice-over
Python + PillowSprite sheets from the RO client

Supabase: cloud saves, leaderboards and the Telegram bot. Vite: WebP copies and a loading bundle for a fast start.

06 / Architecture

One core.
Several ways to test it.

Hover, focus
or tap a block.
Selected layer

Data

data/*.json and strict schemas describe units, skills, chapters, story and economy. Content is separate from logic: a new monster or chapter is added without changing code.

Code size, recounted 20 Oct 2026

≈ 76K lines of game code

≈ 37K lines of tests

≈ 18K lines of scripts

07 / Analysis

How the game works.
And why it works that way.

From the repository’s code, data and reports.
Player model recalculated on 20 Oct 2026 — this is not player data.

Five business-analysis artifacts reconstructed from the game’s repository. Every rule and number was checked against a file — the path is given in the caption. The project was run on plans, reports and tests; the diagrams and stories were drawn up from them after the fact.

  1. 7.1Three loopsprocess diagram
  2. 7.2New player journeyCJM, journey map
  3. 7.3Campaign pace and goldplayer model, 9 runs
  4. 7.4Decision loggoals and 5 decisions
  5. 7.5Requirements and acceptancestories and autotests

7.1 · Process diagram

Three loops: minutes, hours, days

The core of an idle RPG is a short cycle: preparation, auto-battle, reward, growth. Around it run two longer loops: the idle chest and expeditions work while the player is away, and the daily activities reset at midnight and give a reason to come back tomorrow.

  • session start
  • game step or system
  • decision point
  • player flow
  • resource flow
  • back to the start of the cycle
Chronoworld game loop: minutes, hours, daysMinutes: session, squad preparation, auto-battle, the “Victory?” decision. Yes — first victory with rewards, then “Growth” and the next stage; no — a defeat with no losses, and at a “wall” the player waits for the idle chest. Hours: the idle chest, Fast Rewards and expeditions accumulate resources for “Growth”. Days: Daily Quests, the Tavern, login, the Hunt, the Shop and the Arena reset at midnight and also feed “Growth”; the Kitchen gives a battle buff, and the login reward gives scrolls and gems for the Tavern.Minutessession:battle after battleHoursplayer is awayDaysmidnight resetyesnogold, XP, itemsnext stagewall: wait for the chestchest income growsbattle buff until midnightgold, XP, lootgems, gold, XP, hero copies, items, oreeverything collectedgoes to “Growth”scrolls, gemsSessionPreparationsquad of 5 heroespower vs benchmarkAuto-battleup to 100 seconds,ults are automaticVictory?First victorystage rewards,next one unlockedGrowthlevels, ascension,gear, refiningDefeatnothing is lost,try againFast Rewards2 h of income now,free once a dayIdle cheststores stage incomefor up to 12 hoursExpeditionsup to 5 heroesfor 1, 4 or 8 hKitchendish of the dayfrom ingredientsDaily Quests12 quests,up to 90 gemsTavern1 freesummonLogindaily reward,weekly cycleMVP Hunt2 attempts,boss of the dayShop8 items,new stockArena7 rounds,daily rewardChronoworld game loop: minutes, hours, days (vertical diagram)Three panels from top to bottom: minutes — the cycle of preparation, auto-battle, “Victory?”, first victory, “Growth” and back to preparation; hours — the idle chest, Fast Rewards and expeditions; days — seven systems that reset at midnight. What each one gives is labelled on its card.Minutessession: battle after battleSession: the player opens the gamePreparationSquad of 5 heroes; power iscompared to the stage benchmark.Auto-battleUp to 100 seconds. Ultimates fireon their own — the default.Victory?no → nothing is lost: the stagecan be stormed again; at a “wall”,wait for the chest (see “Hours”)yesFirst victoryRewards and the next stage;the idle chest stores more.GrowthLevels, ascension, gearand refining.↺ next stage — back to preparationHoursplayer is awayIdle chestStores the income of the last clearedstage for up to 12 hours; every30 minutes — a loot roll.→ to “Growth”: gold, XP, lootFast Rewards2 hours of chest income at once:free once a day, then for gems.→ to “Growth”: gold and XPExpeditionsUp to 5 available heroes for 1, 4or 8 hours; 10 locations.→ to “Growth”: lootDaysmidnight resetDaily Quests12 quests,up to 90 gems→ gems, gold, XPTavern1 freesummon→ heroes and rewardsMVP Hunt2 attempts,boss of the day→ gold, oreShop8 items,new stock→ XP, items, cardsArena7 rounds,daily reward→ gold, XP, gemsLogin7 days, thenweekly cycle→ scrolls and gemsKitchenDish of the day from ingredients: +4…15%to attack, health or defenseor +20% to XP.→ battle buff until midnight
Fig. 7.1

Simplified: 15 steps and systems and one decision point. Not shown: the Tower (its run does not reset at midnight), achievements, mail and the story. Numbers are from the game data as of 20 Oct 2026.

Source: data/progression.json:20-42 · data/quests.json:3-23 · data/summon.json:4-48 · data/expeditions.json · data/hunt.json · data/shop.json · data/kitchen.json · data/autobattler.json:7-8, 250-255 · data/events.json:4-27 · data/drops.json:182-183, 368-409 · data/cards.json:4-48 · src/core/campaign/offline.ts:100-160 · src/game/flow.ts:388-400 · src/game/battleMode.ts:1-6

Full diagram (opens in a new tab)

Where the 8 resources go

Gold
levels and ascension, refining, the Shop, Kitchen ingredients
XP (shared pool)
hero levels
Gems
summons, Fast Rewards, the Shop, branch change (300)
Scrolls
summons in the Tavern
Hero copies
ascension
Items
gear; spares sell for 100 / 500 / 2,000 gold
Blessed Ore
a refining step with 100% success
Ingredients
the dish of the day in the Kitchen

Model14 days of 3 sessions, seeds 1–3: 69% of gold comes from the idle chest, and Daily Quests give 41–44% of all gems. This is a player model, not player data; more in section 7.3.

As text all the steps, rules and numbers of the diagram

Minutes — session

  • Preparation: a squad of 5 heroes and their positions; “Auto” picks the five strongest and, if needed, keeps a place for a tank and a healer. Squad power is compared with the recommended level: from 100% — “Above benchmark”, from 80% — “Near benchmark”, lower — “Below benchmark”.
  • Auto-battle: a 100-second limit; ultimates fire on their own in “Auto” mode (the default) or when a portrait is tapped. One seed — the same battle.
  • The “Victory?” decision. Yes — first victory: gold, and XP into the shared pool, a guaranteed item, a hero card with a 6% chance (chapter boss — 30%), 1–3 Blessed Ore from a chapter boss; the next stage unlocks and the idle chest income grows.
  • No — defeat: nothing is lost, and the unlocked stage can be stormed again; at a “wall” the player waits for the idle chest. A cleared stage is not fought again.
  • Growth: a level costs XP (100·L1.5) and gold (45·L1.5), level cap by rarity 20 / 40 / 60 / 80 / 100; ascension — hero copies and gold; gear and refining +1…+10. Then — the next stage.

Hours — while the player is away

  • Idle chest: the income of the last cleared stage (from 8 gold per minute on 1-1 to 5,360 on 10-18), for up to 12 hours; every 30 minutes — a loot roll (item, gems, scrolls, hero cards, ingredients). → to “Growth”.
  • Fast Rewards: 2 hours of chest income at once; free once a day, then for 50, 80 and 100 gems. → to “Growth”.
  • Expeditions: up to 5 available heroes, for 1, 4 or 8 hours (+0 / +10 / +20% loot), 10 locations; loot — gold, XP, gems, items, hero cards, scrolls, ingredients. → to “Growth”.

Days — midnight reset

  • Daily Quests: 12 quests worth 170 points; the thresholds 20 / 40 / 60 / 80 / 100 give 200 gold, 30 gems, 300 XP, 500 gold and 60 gems. → to “Growth”.
  • Tavern: 1 free summon; ×1 — 30 gems, ×10 — 270 gems or scrolls; a hero with a 42.5% chance, otherwise a reward (item, XP, gold, gems, ore). → hero copies to “Growth”.
  • Login: “7-Day Login” with a “Hero Contract” on day 7, then “Daily Login” in repeating weeks — 60 gems and 2 scrolls a week. → scrolls and gems for the Tavern.
  • MVP Hunt: 2 attempts, the boss of the day is one of 14 MVPs; the reward depends on the damage threshold, ore — for the first attempt of the day. → to “Growth”.
  • Shop: 8 slots, new stock every day, refresh for 0 / 20 / 40 / 80 / 100 gems. → XP, items, cards to “Growth”.
  • Companion Arena: 7 rounds, 3 lives, its own budget; the daily reward starts at 2 wins — a share by the number of wins out of 7, up to 1,500 gold, 2,000 XP and 35 gems. → to “Growth”.
  • Kitchen: one dish a day from ingredients — until midnight +4…15% to the squad’s attack, health or defense (campaign, Tower, Hunt) or +20% to XP. → a battle buff.

Not shown

The roguelike Tower (the run does not reset at midnight; gems for a floor record), achievements, mail, the story and evenings in the Tavern.

7.2 · User journey

New player journey

Features unlock one at a time — after the first victory on a specific stage, as in AFK Arena. What the player sees and when — from the game data, the audit of the first 30 minutes and the player model; alongside — what the checks found and what was fixed, and what remains open.

Unlock ladder: the stages of chapters 1 and 2 after which features unlockTwelve features unlock with the first victory on stages of chapters 1 and 2: 1-2 — battle speed ×2; 1-6 — Tavern; 1-8 — Fast Rewards; 1-10 — Daily Quests; 1-12 — Expeditions; 1-14 — Achievements; 1-18 — Tower, Arena; 2-1 — Hunt, Shop; 2-3 — Kitchen; 2-9 — Refining.Chapter 1 · 18 stagesChapter 2Battle speed ×21-2Tavern1-6Fast Rewards1-8Daily Quests1-10Expeditions1-12Achievements1-14Tower, Arena1-18Hunt, Shop2-1Kitchen2-3Refining2-9
  1. 1‑2
    Battle speed ×2
  2. 1‑6
    Tavern
  3. 1‑8
    Fast Rewards
  4. 1‑10
    Daily Quests
  5. 1‑12
    Expeditions
  6. 1‑14
    Achievements
  7. 1‑18
    Tower, Arena
  8. 2‑1
    Hunt, Shop
  9. 2‑3
    Kitchen
  10. 2‑9
    Refining
Fig. 7.2

Unlock ladder: 12 features over the first 27 stages. The number is “chapter-stage in order within the chapter”, as in the game (Tavern — 1‑6; the daily loop document records the same unlocks by stage id — “1‑5”).

Source: data/unlocks.json:4-96 · src/core/unlocks/unlocks.ts:57-63 · data/campaign/chapter1.json · data/campaign/chapter2.json

Six phases: from the first battle to the third week

Times in the “Player model” row come from the model, not from real players: sessions start at 8:00, the first lasts 10 minutes, the rest 7 each, battles at ×1.5 speed. The model’s active minutes are fewer than real time. There are no emotions or personas here: the repository has no data on them.

  1. 01 · first 10 minutesstages 1-1…1-8

    First session
    What the player does
    Garret’s introduction, the first battle on 1-1 — about 10 seconds. Then the chest, “Upgrade”, loot — one hint at a time. After 1-6 — the Tavern: a gift of 10 scrolls and 150 gems, the first ×10.
    What unlocks
    1-2speed ×21-6Tavern1-8Fast Rewards
    Hook
    The first ×10 guarantees a blue hero — the squad gets noticeably stronger.
    Player model
    Tavern — at the 6th active minute, the first ×10 — at the 7th (in all 9 runs).
    Found → done
    Audit of 10 Oct on a 390×844 screen: the Tavern results didn’t say where the reward went → labels “In bag”, “To pool”, “For refining”.
  2. 02 · first daystages 1-9…1-18

    Chapter 1 to the end
    What the player does
    Clears the chapter: “Auto” puts the new hero from the Tavern into the squad, power — 110–123% of the recommended level; a boss on 1-18.
    What unlocks
    1-10Daily Quests1-12expeditions1-14achievements1-18Tower, Arena
    Hook
    Expeditions of 1–8 hours and the idle chest accumulate loot between sessions.
    Player model
    Chapter 1 — by the 20th–22nd active minute: in the 3rd session of the first day at 3–4 sessions a day, on the morning of the second day at 2.
    Found → done
    Audit: 18 of 18 stages on the first try — 15.7 min with “Skip”, about 30 min watching the battles. Nobody ascended during the whole of chapter 1 → after the tutorial the “ascend” hint ranks above “Upgrade” (PR #161); the repository has no repeat run of chapter 1.
  3. 03 · days 1–3the first “walls”

    Chapter 2
    What the player does
    A stage won’t give in — the player collects the chest, upgrades the heroes and comes back.
    What unlocks
    2-1Hunt, Shop2-3Kitchen2-9refining
    Hook
    Every day — 2 Hunt attempts, new Shop stock and a dish of the day; “7-Day Login” and “Rookie Week” are running.
    Player model
    Chapter 2 is closed 48–54 h after the first session at 3 sessions a day, 32–56 h at 4.
    Found → done
    Audit of 10 Oct: already from the second half of chapter 1 “Upgrade” runs into gold → on 18 Oct the level price was lowered, on 19 Oct gold income ×1.5 (decision D5).
  4. 04 · days 2–7ascension

    First week
    What the player does
    Collects hero copies and ascends: green → blue → purple, with a choice of second job.
    What unlocks
    Second-job branches at purple; “Hero Contract” — a purple of your choice: on login day 7 and for 180 “Rookie Week” points.
    Hook
    Every day — a login reward and rookie quests; day 7 is the peak of the week: a purple of your choice.
    Player model
    First purple — on day 2–3; by day 7 the squad has 4–5 purples (3 sessions, seeds 1–3).
    Found → done
    The owner’s goal — the first purple on day 2–3, 2–3 of them by day 5. openrecalculation of 20 Oct: 3–5 by day 5, the upper bound exceeded for two seeds out of three.
  5. 05 · second weekdaily routine

    Day 8 onwards
    What the player does
    Daily Quests, Hunt, Arena, Shop, Kitchen, a free summon, expeditions.
    What unlocks
    No new features — depth grows: the Tower, refining up to +10, ascension to gold and red.
    Hook
    “Daily Login” on repeat: 60 gems and 2 scrolls a week. Until 10 Oct both weekly events ended on the same day, and the “Events” badge disappeared.
    Player model
    Daily Quests — 90 gems a day, 41–44% of all the model’s gems over 14 days.
    Found → done
    Loop audit of 10 Oct: a cliff on day 8, quests didn’t know the new systems → new quests, hiding locked ones, a weekly login cycle; the save stayed v7 (decision D4).
  6. 06 · days 8–21chapters 4–10

    Weeks 2–3
    What the player does
    Campaign, Tower, refining; the pace is set by the idle chest and hero copies.
    What unlocks
    Chapters 5–10 — new places and bosses; veteran hero forms — at gold from level 70.
    Hook
    New stages after every “wall”, the MVP of the day, Tower records.
    Player model
    By day 14 — 101 / 145 / 169 stages (median at 2 / 3 / 4 sessions); all 180 — by day 19 and 16 at 3 and 4.
    Found → done
    Found by the 20 Oct recalculation; the project reports don’t have it: openin 3 of 9 runs the model hit stage 10-13 “Citadel Courtyard” and lost at 118–141% of recommended power; in two runs the stage was still not taken by day 21.

Source: docs/qa/first-30min-2026-10-10.md · src/game/hints.ts:264-266 · tests/game-hints.test.ts:62 · docs/design/daily-loop-2026-10-10.md:41-92 · docs/content/balance.md:1031-1047 · data/events.json · data/summon.json:32-41 · scripts/lib/player-model.ts:212-244 · data/progression.json (recommendedStages.ch10_s13 = 0.3066 — the lowest of 180)

7.3 · Quantitative analysis

Campaign pace and gold

The player model plays the game through the functions of the same core, with real battles. Nine runs — 2, 3 and 4 sessions a day, three seeds each: how many stages are cleared by the end of each day and where the earned gold goes. This is a model, not player data.

  • 3 sessions a day: median; band — worst to best seed
  • 2 and 4 sessions a day
Campaign pace in the player model: stages cleared by the end of each day, 21 daysMedian of three seeds at 2, 3 and 4 sessions a day. By day 7 — 59, 85 and 93 stages; by day 14 — 101, 145 and 169; by day 21 — 146, 180 and 180. With 4 sessions all 180 stages are cleared by day 16, with 3 — by day 19. In two runs out of nine the model never cleared stage 10-13 and stayed at 174.03672108144180171421game day (model)stages cleared · chapter = 18 stages2 sessions a day — daily median: 17, 26, 31, 39, 46, 53, 59, 67, 74, 81, 87, 91, 97, 101, 109, 116, 122, 128, 134, 141, 1464 sessions a day — daily median: 26, 35, 46, 60, 74, 85, 93, 100, 112, 122, 136, 147, 159, 169, 174, 180, 180, 180, 180, 180, 1803 sessions a day — daily median: 23, 33, 46, 57, 67, 76, 85, 93, 100, 109, 119, 126, 137, 145, 153, 158, 166, 175, 180, 180, 1804 sessions a day2 sessions a day3 sessions a day4 sessions: all 180 by day 163 sessions: by day 192 sessions:146 by day 21174 — wall at 10-13(2 runs out of 9)Campaign pace in the player model: stages cleared by the end of each day, 21 daysMedian of three seeds at 2, 3 and 4 sessions a day. By day 7 — 59, 85 and 93 stages; by day 14 — 101, 145 and 169; by day 21 — 146, 180 and 180. With 4 sessions all 180 stages are cleared by day 16, with 3 — by day 19. In two runs out of nine the model never cleared stage 10-13 and stayed at 174.03672108144180171421game day (model)stages cleared, chapter = 183 and 4 sessions: 1802 sessions: 146
Fig. 7.3

9 runs of 21 days: 2 sessions a day — 8:00 and 20:00, 3 — 8:00, 14:00, 20:00, 4 — 8:00, 12:00, 16:00, 20:00; the first session lasts 10 minutes, the rest 7 each, no more than 3 defeats per stage per session, and the model doesn’t play the Arena. Three seeds are a minimal estimate of the spread, not a distribution of players. The plateau at 174 is stage 10-13 “Citadel Courtyard”: its recommended-power coefficient of 0.3066 is the lowest of 180, and the model lost there at 118–141% of the recommended level. Recalculated on 20 Oct 2026 on a copy of the repository; a rerun gave a byte-for-byte identical result.

Source: scripts/balance.ts:40-48 · scripts/lib/player-model.ts:212-244 · data/progression.json (power.recommendedStages) · npm run balance -- --days 21 --sessions 2|3|4 --seed 1|2|3

Stages by the end of the day, median of three seeds (out of 180)
Sessions a dayDay 7Day 14Day 21
259101146
385145180
493169180
As text median and spread by day, all 63 values

Stages cleared by the end of the day: the median of three seeds, with the worst and best seed next to it. The short plateau at 153 (3 sessions, seed 1, days 15–17) is stage 9‑10: there the squad’s power was below the recommended level (0.87–0.92), an ordinary “wall”.

Day2 sessions3 sessions4 sessions
117 16–1723 21–2326 26–26
226 25–2633 29–3535 35–41
331 31–3346 41–4646 45–53
439 38–4157 51–5860 57–62
546 46–4667 60–6774 72–74
653 51–5476 72–7785 85–85
759 58–6285 82–8893 90–94
867 67–7093 90–94100 100–103
974 73–76100 98–103112 100–116
1081 80–83109 106–111122 112–128
1187 87–88119 114–122136 126–141
1291 90–94126 122–133147 140–154
1397 95–101137 130–141159 152–166
14101 101–107145 141–150169 163–178
15109 107–114153 148–159174 173–180
16116 115–121158 153–167180 174–180
17122 121–127166 153–174180 174–180
18128 126–135175 161–180180 174–180
19134 132–141180 169–180180 174–180
20141 141–147180 174–180180 174–180
21146 145–152180 174–180180 174–180

Gold over 14 days: where it comes from and where it goes

The same model run: 3 sessions a day, 14 days, the sum of three seeds. A check of the goal “gold doesn’t pile up idle”: almost everything earned is spent. Once items are refined to +10 (around day 19–20 in the 21-day run), gold starts piling up again.

Where it came from
Idle chest69.3%
Campaign victories14.5%
Fast Rewards6.9%
Tavern (gold rewards)4.1%
MVP Hunt3.1%
Expeditions2.0%
Other: Tower, quests, achievements, events, mail0.2%
67.3 million gold received over 14 days (sum of three runs).
Where it went
Gear refining48.2%
Heroes: levels and ascension32.5%
Shop19.3%
Kitchen (ingredients)< 0.1%
67.1 million spent — 99.4–99.8% of the earnings, depending on the run. Refining’s share across runs — from 35 to 54%.
Fig. 7.4

Shares of the sum of three 14-day runs. “Heroes” — levels, ascension and branch change.

Source: scripts/lib/player-model.ts:374, 614-650 · npm run balance -- --days 14 --sessions 3 report, “Economy” block

7.4 · Requirements and decisions

Decision log

First — how the owner’s wish became measurable goals. Then — five balance and product decisions: the problem, the data behind the decision, what was done and what came of it. Where a goal was not met, it says so.

From a wish to measurable goals

“Balance that’s interesting, so there’s a hook — I’m about to level up my character, they’ll get stronger, like in AFK — but there’s waiting involved too.”

The owner’s request → 12 testable goals with a player-model metric; the benchmark is AFK Arena. Below are six of the twelve and their recalculation on 20 Oct 2026: 3 seeds, 4 sessions a day (the profile the goals were written for), for G10 — 3 sessions and 14 days.
GoalWhat we wantedModel metricRecalculated 20 OctStatus
G1First 30 minutes: a level-up every 1–2 battlesbattles per level-up0.52–0.60 (25–26 battles, 43–50 level-ups)on target
G4Tavern at 1-6 and the first ×10 right awayactive minute of the first ×107th minute, with scrolls from the gifton target
G5Chapter 1 — 30–45 minutes of active playactive minutes to the 1-18 boss20 model minutes; browser audit — 15.7 min with “Skip”, ≈ 30 min watchingbelow target
G6Chapter 2 — days 1–2, chapter 3 — days 3–5hours from the first session to the end of the chapterchapter 2 — 32 / 56 / 52 h, chapter 3 — 84 / 80 / 76 hchapter 3 — on target, chapter 2 — for 1 seed of 3
G8Defeats — at 85–95% of recommended power, not lowerdefeats below 85%0 / 0 / 6for 2 seeds of 3
G10Gold and XP get spent instead of piling up idleshare spent over 14 daysgold — 99.4–99.8%, XP — 50–91%gold — yes; XP piles up at the rarity cap

Source: docs/content/balance.md:14-31 · npm run balance reports (“Hooks”, “Economy” blocks)

Five decisions: problem → data → decision → result

Results come from the player model and autotests, not from real players’ behaviour. Dates follow the sections of the project log. The “no replays of cleared stages” decision is not included: the repository has no measured data on it; it is covered in story US4.

  1. D12 Oct 2026PR #112
    Ultimates fire on their own by default
    Problem
    After “battle with decisions”, heroes’ ultimates could be triggered manually by tapping a portrait. Newcomers didn’t know this and lost stages where the screen promised they were strong enough.
    Data
    The owner’s feedback on stage 4-6: the same squad wins 40 battles out of 40 with ultimates on “auto” and 2 out of 40 without them. The stage’s recommended power is calculated with ultimates.
    Decision
    A new player starts in “Auto” mode: ultimates fire on their own at full energy. Manual mode is one tap of the “Auto” button in battle, and the choice is remembered; the “tap a portrait” hint shows once.
    Result
    In main since PR #112. Autotest: in “Auto” a battle without input matches the previous log, and a tap doesn’t change the part of the battle already shown. The 40/40 and 2/40 figures come from a comment in the code; the run itself isn’t saved in the repository.

    Source: src/game/battleMode.ts:1-6 · docs/PROGRESS.md:149-154 · docs/design/battle-decisions.md:40-45 · tests/battle-decisions.test.ts:56, 73

  2. D228 Sep 2026owner’s decision
    Refining as a gold sink
    Problem
    The player model on the data of 28 Sep: by day 9 the squad hits the rarity cap — 5 purples, level 60. Power stops growing, and gold piles up in the millions.
    Data
    Model: by day 11 there are 11.9 million gold on hand — and nothing to spend it on.
    Decision
    Gear refining +1…+10 for gold. The third version (v3): gains grow by tiers (+10 — +250% of the item’s stats), “Safe” — price ×5, failure chance ÷5, Blessed Ore from bosses — a step with 100% success. Since 4 Oct a failed refine doesn’t break the item.
    Result
    Model: by day 11 there are ≈ 12K gold on hand instead of 11.9 million; chapters 6–7 are cleared on day 9 instead of day 10. Recalculated on 20 Oct (14 days, 3 sessions, seeds 1–3): refining is 35–54% of all gold spending.

    openThe 21-day recalculation of 20 Oct: once items are refined to +10 (≈ day 19–20), gold piles up in the millions again.

    Source: docs/PROGRESS.md:251-275 · docs/PROGRESS.md:136 · data/drops.json:368-409 · tests/equipment-refine.test.ts:168, 309, 340

  3. D310 Oct 2026PR #155, #156, #160
    A Tavern with rewards and a new ascension ladder
    Problem
    Purple heroes came too early and too often: about 5 by day 7 against a goal of 2–3, and for some players the first one arrived on day one — like a jackpot rather than an earned goal.
    Data
    Model runs: the owner’s table unchanged — 65 stages in a week and a “wall” at 2-10 for up to 36 h; a 12% blue hero with an ascension price of 5,000 — 5 purples by day 5; a price of 30,000 moves that to 2–3.
    Decision
    A summon gives a hero with a 42.5% chance (green 30 / blue 12 / purple 0.5), otherwise a reward: item, XP, gold, gems, ore. The ladder: blue — the hero + 1 green of any kind + 500 gold; purple — 3 identical blues + 30,000; gold — the hero + 2 purples of any kind + 20,000; red — the hero + 2 identical purples + 60,000.
    Result
    7-day model, seed 1 / 2: the first purple on day 2 / 3, by day 5 — 3 / 3, stages in a week 81 / 80 (was about 76), no “wall” at 2-10. Recalculated on 20 Oct (3 sessions, seeds 1–3): the first one on day 2–3, by day 5 — 3–5.

    openThe goal “2–3 by day 5” is met for one seed out of three in the 20 Oct recalculation.

    Source: docs/PROGRESS.md:13-16, 295 · docs/content/balance.md:1006-1029 · data/summon.json:8-48 · data/cards.json:15-20 · tests/heroes-summon.test.ts:46

  4. D410 Oct 2026PR #161
    The daily loop after day 7
    Problem
    On day 8 “7-Day Login” and “Rookie Week” ended at the same time — no more login rewards. Daily Quests didn’t know the Hunt, Arena, Shop and expeditions, and a newcomer saw the Tower quest before the Tower itself unlocked.
    Data
    A map of days 1–14 from the player model (3 sessions, seeds 1 and 2): what resets at midnight, what each day gives, where the gaps are. Days 9–14 — no new daily rewards.
    Decision
    New Daily Quests for expeditions, the Hunt, Arena and Shop; a locked feature’s quest is hidden; their progress is read from each system’s own daily state — no new save fields. After the calendar — “Daily Login” in repeating weeks: 60 gems and 2 scrolls a week.
    Result
    The save stayed v7. 14-day model: second-week gems 1,103 → 1,195 and 1,100 → 1,152 (seed 1 / 2), summons 133 → 145 (+9%) and 142 → 144 (+1.4%). Quest gems didn’t grow — 90 a day.

    Source: docs/design/daily-loop-2026-10-10.md:41-92 · data/quests.json · data/events.json:15-27 · tests/daily-loop.test.ts:38-110

  5. D518–19 Oct 2026docs/content/balance.md
    Level price in gold and gold income
    Problem
    Gold per level grew faster than XP (15·L2 vs 100·L1.5). From ~level 30 “Upgrade” ate all the gold, XP piled up unused, and nothing was left for ascension, refining, the Shop and the Kitchen. The audit of the first 30 minutes saw this already in chapter 1.
    Data
    Model: by day 14 levels had eaten 11.4 of 13.5 million gold, 8.9 million XP lay unused, and Shop goods cost 30K each. The alternative “double the gold income” was tested and rejected: levels eat everything just the same, and the pace speeds up (89 / 148 stages in 7 / 14 days).
    Decision
    Level gold — 45·L1.5, the same power as XP: level 10 — 1,423 instead of 1,500, 40 — 11K instead of 24K, 80 — 32K instead of 96K. The next day, after a tester’s feedback “can’t farm money anywhere”, gold income ×1.5; the chapter 1 boss was strengthened ×1.02 — with the higher income the first attempt was won in 95.3% of cases against a goal of 60–95%.
    Result
    The pace barely changed: 83 / 147 stages in 7 / 14 days (was 85 / 142). Gold for other spending by day 7 — 185K instead of 9K, by day 14 — 9.9 million instead of 2.1. After ×1.5 — 85 / 145 and 82 / 141 stages (seed 1 / 2). Smoke test: “on day 7 the player has something to buy in the Shop”.

    Source: docs/content/balance.md:1031-1047 · docs/qa/first-30min-2026-10-10.md:70-71 · data/cards.json:11-14 · tests/smoke.test.ts:144

7.5 · Requirements and acceptance

From story to autotest

Five user stories formulated from the code. Every acceptance criterion has an autotest that checks it — the file and line are given under the criterion. Three stories are linked to decisions from the log.

US1 · 5 criteria → autotests“Hours” loop, fig. 7.1

Idle chest

As a player who drops in 2–3 times a day, I want to collect the loot accumulated without me, so that progress continues between sessions too.

  1. Until a single stage is cleared, the chest is empty: 0 minutes, 0 gold, 0 XP.tests/offline.test.ts:14
  2. Income is the rate of the last cleared stage × the elapsed minutes; the order in which stages were cleared doesn’t matter.tests/offline.test.ts:18
  3. The chest accumulates for no more than 12 hours — after that, income stops growing.tests/offline.test.ts:29
  4. Device clock set back — income is 0, nothing extra is credited.tests/offline.test.ts:37
  5. On collection, gold goes to resources and XP to the heroes’ shared pool; collecting again right away gives zero.tests/offline.test.ts:48

US2 · 5 criteria → autotestsdecision D3

Tavern for newcomers

As a new player, I want to strengthen my squad with heroes from the Tavern right after stage 1-6, so that I can clear chapter 1 without getting stuck.

  1. The Tavern unlocks after the first victory on stage 1-6 (ch1_s5).tests/unlocks.test.ts:49
  2. The opening gift — 150 gems and 10 scrolls, once.tests/heroes-summon.test.ts:256
  3. The first ×10 gives at least two heroes, at least one of them blue or higher; a ×1 summon doesn’t use up this guarantee.tests/heroes-summon.test.ts:215
  4. The 10th summon in a row without a blue gives a blue, the 50th without a purple gives a purple; the counter is shared by gem, scroll and free summons.tests/heroes-summon.test.ts:163, 190
  5. A free summon — once a day; setting the clock back doesn’t give a second one.tests/heroes-summon.test.ts:226

US3 · 5 criteria → autotestsdecision D4

Daily Quests

As a player, I want to see only the Daily Quests I can complete, so that every day it’s clear what to do.

  1. The Hunt, Arena, Shop, expeditions, Tower, Tavern and Kitchen each have a daily quest.tests/daily-loop.test.ts:39
  2. Activity thresholds — 20 / 40 / 60 / 80 / 100 points; 90 gems per day.tests/daily-loop.test.ts:44
  3. For a newcomer, quests for locked features are hidden, but the unlocked ones are enough for all 100 points.tests/daily-loop.test.ts:49
  4. A locked feature’s quest can’t be claimed — error quest_locked.tests/daily-loop.test.ts:56
  5. Hunt, Shop, Kitchen and Arena progress is counted from their state today; yesterday’s doesn’t count, and the save has no new fields.tests/daily-loop.test.ts:75-106

US4 · 5 criteria → autotestsowner’s decision of 10 Oct

A campaign without replays

As the product owner, I want cleared stages to be impossible to farm, as in AFK Arena, so that progress comes through the idle chest and daily activities.

  1. In the released data replays are turned off and there is no replay budget.tests/campaign-no-replay.test.ts:26
  2. A cleared stage: battle, “Quick Battle” and replay return the stage_cleared error, and the save doesn’t change.tests/campaign-no-replay.test.ts:34
  3. The current unlocked stage can be played; a locked one — error stage_locked.tests/campaign-no-replay.test.ts:52
  4. A defeat on an unlocked stage can be retried as many times as you like.tests/campaign-no-replay.test.ts:61
  5. An old save with a replay counter is read and doesn’t unlock replays.tests/campaign-no-replay.test.ts:72

US5 · 5 criteria → autotestsdecision D2

Refining without losing the item

As a player with spare gold, I want to strengthen my gear without the risk of losing an item, so that gold works for the squad’s strength.

  1. Levels +1…+10; the failure chance of the step to +N is (N−1)·10%: +1 with no risk, +10 — 90%.tests/equipment-refine.test.ts:94
  2. A failure deducts the gold, but the item, its previous refine level, the MVP card and the hero’s stats are kept.tests/equipment-refine.test.ts:168, 194
  3. “Safe”: price ×5, failure chance ÷5 (30% → 6%).tests/equipment-refine.test.ts:309
  4. Blessed Ore gives 100% success even on the +9 → +10 step.tests/equipment-refine.test.ts:340
  5. The seed decides the outcome: reloading doesn’t give a reroll.tests/equipment-refine.test.ts:203