Files
agentic-labs-challenge/adaptive-loop/RECORDING.md
T
2026-08-13 07:33:43 +02:00

3.1 KiB
Raw Blame History

Recording Route — Adaptive Loop

This route is generated from verified solver and browser routes (in tests/fixtures/solver-results.json and the passing Playwright suite), not invented prose. Automated tests validate all five scenarios and campaign victory; the recording need not play every scenario. No game state or localStorage is injected — every step is a public control (select rotation → Commit).

One continuous take (script)

Open the production build (npm run preview) and follow this sequence. It is short and exercises the required mechanics.

# Beat (SPEC §16) Action
1 Title / campaign start Click New Campaign (scenario 1, Cultivation Quota).
2 Exact preview of a rotation Hover/focus Loop A ↻; the board shows per-chamber deltas and the event panel previews the tick.
3 Rotation causing movement + flow Commit A↻. Chambers move along loop A and a flow dot appears on the reclaimed owner edge.
4 Pressure causing an adaptation Continue the verified winning route A↻ ×5 more, then B↻, C↺ (8 turns total). Around the turns where a pressure track reaches 3, a trait unlocks and a global response activates (visible in the Pressures & traits panel and the tick events).
5 Adaptation benefit / cost / spillover While adapted, the tick events attribute the prevented loss (benefit), the carrier cost, and the ecological spillover.
6 Global pressure response strengthening a fixture With a response active, the matching fixture adds more per turn (e.g. heat source +3 instead of +2); the tick events attribute the strengthened fixture.
7 Ecosystem collapse and retry From the title, New Campaign again and repeat a single rotation (e.g. A↻) to the turn limit or until biomass hits zero → Retry restores the scenario.
8 A scenario win and preserved lineage choice Finishing the route in step 4 wins scenario 1 and offers Preserve a trait (or Decline).
9 Save & Quit In any scenario, click Save & Quit.
10 Page/tab close and reopen Close the tab; reopen the build.
11 Continue restoring exact state Click Continue — the exact turn, board, pressures, and action log return.
12 Visible access to multiple scenarios Click Replay Standalone to see all five scenarios; enter any.

Verified routes (solver-proven, replayed by tests)

Scenario Winning route (loop-direction) Outcome
1 Cultivation Quota A↻, A↻, A↻, A↻, A↻, A↻, B↻, C↺ won (8 turns; uses ownership + unlocks an adaptation)
2 Endurance see solver-results.json (10 turns) won
3 Cleansing see fixture (8 turns) won
4 Escort see fixture (8 turns) won
5 Stable Equilibrium see fixture (12 turns) won

A deterministic losing route per scenario (repeat a single rotation to the turn limit or until collapse) is stored in the same fixture and replayed by the solver test. Run npm run test to re-verify all of them; run npm run test:e2e to re-verify the browser beats above through public controls only.