Skip to content

Add auto-Sensei role support for judge eligibility#96

Merged
kronosapiens merged 1 commit intomainfrom
kronosapiens/incubator-starknet-judges
Mar 12, 2026
Merged

Add auto-Sensei role support for judge eligibility#96
kronosapiens merged 1 commit intomainfrom
kronosapiens/incubator-starknet-judges

Conversation

@kronosapiens
Copy link
Collaborator

Summary

Adds extensible auto-Sensei role support allowing multiple Discord roles (Felt, Team, Incubator, Starknet, etc.) to auto-grant Sensei status and judge access. Replaces hardcoded feltRoleId/teamRoleId with configurable autoSenseiRoleIds array. Renames decay job to roleSync, reorders pipeline to run promotions before decay for better UX.

Changes

  • Replace feltRoleId/teamRoleId with autoSenseiRoleIds: string[] (parsed from AUTO_SENSEI_ROLE_IDS env var)
  • New ensureAutoSenseiRoles() function auto-promotes users with auto-Sensei roles to Sensei
  • Rename decay job: decayCheck.tsroleSync.ts
  • Reorder pipeline: auto-Sensei → promotions → decay → Meijin
  • Users with auto-Sensei roles are Sensei always, exempt from decay, can judge
  • Update env files, tests, and docs

Test Results

All 116 tests pass.

🤖 Generated with Claude Code

Replace individual feltRoleId/teamRoleId with extensible autoSenseiRoleIds array,
allowing multiple Discord roles (Felt, Team, Incubator, Starknet, etc.) to auto-grant
Sensei status. Users with auto-Sensei roles are always Sensei, exempt from decay,
and can judge game jams. Rename decay job to roleSync to reflect its full purpose:
auto-Sensei promotion, reputation-based promotions, decay checks, and Meijin rotation.
Reorder pipeline to run promotions before decay for better UX (build before prune).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@kronosapiens kronosapiens merged commit f5a6052 into main Mar 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant