1
0
Fork 0
polaris-task-force/src/scripts
Z8MB1E ccdeebbd35 feat(minigames): close anchored periods and grant period awards
Phase 2 of the minigame periods feature:

- Pure board + award math (lib/minigames/periods/boards.ts): best-performer
  boards from the ledger, a fixed top-N placement ladder summed across the
  five Core boards, and the five period awards (Period Champion, Diligence,
  Dedication, Precision, Most Improved) with the locked tie-break (raw
  period score, then earliest submission).
- Close pipeline (lib/minigames/periods/lifecycle.ts): computes boards for a
  period, writes its achievement rows, and marks it closed. Idempotent: the
  status is re-checked before committing and the achievements unique key
  makes a duplicate close insert nothing, so the tick and the admin override
  cannot double-grant.
- Shared rules resolver (lib/minigames/periods/rules.ts), now used by both
  the entry recorder and the close pipeline.
- New period-tick bin (registered in payload.config.ts) closes every due
  period and materializes the current one, mirroring the mission tick.
- Admin close/reopen route (POST /api/minigame-periods/close), gated on the
  minigame-periods:close permission. Reopen removes the period's awards so a
  future close can re-grant them.
- Integration tests for the pure math and the full close/reopen cycle, plus a
  clean-slate guard so the two minigame specs stay order-independent.
2026-10-11 17:06:52 -04:00
..
lib feat(server): add stale presence monitoring 2026-08-26 18:05:57 -04:00
AGENTS.md docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
baseTick.ts feat(base): add base tick bin for salaries, maintenance, and upkeep 2026-09-06 01:24:11 -04:00
bumpVersion.ts feat(version): add version bump script for CI deployments 2026-08-26 22:13:24 -04:00
economyTick.ts style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
gameTick.ts feat(logistics): timestamp shipment lifecycle with client relay 2026-09-20 02:43:29 -04:00
generateNextMission.ts fix(missions): default new main ops to the upcoming Saturday 2026-10-10 14:54:06 -04:00
generateVersionInfo.ts fix(version): compose version+commit label when git describe is unavailable 2026-09-06 17:23:03 -04:00
marketTick.ts style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
missionTick.ts feat(missions): auto-start and auto-complete ops, plus side-op scheduling 2026-10-03 03:29:35 -04:00
periodTick.ts feat(minigames): close anchored periods and grant period awards 2026-10-11 17:06:52 -04:00
run-migrations.ts style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
serverTick.ts feat(server): add stale presence monitoring 2026-08-26 18:05:57 -04:00