1
0
Fork 0
polaris-task-force/src/lib/minigames
Z8MB1E 997ae39a59 feat(minigames): record completed runs in the period ledger
Phase 1 of the minigame periods feature:

- Shared server-side recorder (lib/minigames/periods/record.ts) writes one
  minigame-entries row per completed scored run, lazily creating the
  anchored period it belongs to (unique startDate makes it race-safe).
  Failures are swallowed so a ledger hiccup can never break a submission.
- Pure anchored-period math (lib/minigames/periods/derive.ts).
- Wire the recorder into all five Core submit actions after their profile
  update: flappy (passes > 0), EOD (win), radio (>= 1 correct message),
  aim trainer and OPORD (any completed round).
- Server-validated durations for every game: flappy and radio watch now
  report durationMs (with bounds), aim trainer reports its run duration
  (clamped to the 30s course), EOD derives it from seconds, OPORD from
  timeMs.
- Integration test covering derivation, lazy period creation, pre-anchor
  null period and the never-throw guarantee.
2026-10-11 17:06:52 -04:00
..
blackjack fix(blackjack): resolve leaver turns, dedupe pending joins, terminate spectators 2026-09-19 17:39:18 -04:00
custom fix(eod): unlock custom minefields after clearing two sectors 2026-09-09 18:55:00 -04:00
periods feat(minigames): record completed runs in the period ledger 2026-10-11 17:06:52 -04:00
poker feat(poker): engine upgrades, named tables, and stat extensions 2026-09-14 15:37:19 -04:00
AGENTS.md docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
aim-trainer.ts refactor(minigames): move routes, components, and libs under minigames parents 2026-09-09 00:02:59 -04:00
chips.ts feat(chips): persistent chip pool economy with shared balance card 2026-09-14 15:38:05 -04:00
opord-recall.ts feat(opord): add par-anchored speed bonus to scoring 2026-09-09 11:28:39 -04:00
registry.ts feat(minigames): add period, entry, achievement and registry schema 2026-10-11 17:06:52 -04:00
tableNames.ts feat(poker): engine upgrades, named tables, and stat extensions 2026-09-14 15:37:19 -04:00