---
title: Add active-roster enforcement bot
type: task
status: draft
description: >-
  Scheduled job that verifies each team's starting lineup complies with positional and roster-slot
  rules, flagging or auto-correcting violations.
base_uri: user:task/league/add-active-roster-enforcement-bot.md
created_at: '2026-04-29T19:05:17.746Z'
entity_id: 2951ec0b-514c-4ec1-b01e-0b370018287f
owner_identity_uri: █████████████████████████
priority: Low
public_read: true
tags:
  - user:tag/league-xo-football.md
  - user:tag/software-task.md
updated_at: '2026-04-29T19:05:17.746Z'
visibility_analyzed_at: '2026-11-05T23:48:07.088Z'
---

Add a scheduled job that verifies each team's starting lineup complies with positional and roster-slot rules, flagging or auto-correcting violations (empty slots, ineligible players, over-roster-limit conditions).

## Existing infrastructure

- `generate-rosters.mjs` and manual roster management exist.
- No scheduled enforcement job in `jobs/` or `scripts/` validates active lineup compliance.

## Implementation sketch

- Scheduled job (cron-style) that walks each league's active rosters and checks slot eligibility.
- Surface violations to commissioner via existing notification channels and/or a status page.
- Decide policy: warn-only vs. auto-correct.

## Source

Captured from Apple Notes "League Team Management System" (Active Roster Enforcement Bot); migrated during Apple Notes triage on 2026-04-29.
