1
0
Fork 0
polaris-task-force/src/utils
Z8MB1E db9248244d feat(awards): add award automation platform
- award-rules collection: metric/operator/value threshold rules linked to
  awards, with auto-retire-lower-tiers and once-per-series flags, active
  toggle, and award-rules:* permissions
- src/lib/awards/metrics.ts: pure metric resolvers (years of service from
  dossier.enlistmentDate with account-age fallback, account age, missions
  attended, total XP) plus operator comparison, unit tested
- evaluateAwardRules() sweeper: idempotent, dry-run capable; grants land as
  profile rows with awardedBy null so the existing afterChange hook sends
  award:granted notifications; upgrades replace the lower series tier in
  place preserving the original date; emits award:rule-granted events
- award-tick payload bin for daily evaluation + admin Award Automation
  view with Evaluate now (dry run) preview and Apply grants
- seedYearsOfServiceRules.ts wires the four years-of-service ribbons into
  one advancement series and creates their rules (idempotent, dev seeded)
- migration add_award_rules_automation (table + awards event target enum)
2026-10-12 15:11:38 -04:00
..
access-control fix(intel): show the intelligence section to anyone with read access 2026-10-04 02:53:24 -04:00
event-log feat(awards): add award automation platform 2026-10-12 15:11:38 -04:00
xp fix(xp): floor fractional xp before resolving level 2026-09-06 23:29:46 -04:00
AGENTS.md feat(contributions): add crowdsourced XP reward system 2026-10-09 16:30:05 -04:00