Flag results that differ by match type

Open
#175 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by tracing the scheduled Replay flow and how it reads prequential_predictions; the issue does not name files or tests, so locate those entry points first. Then inspect how Replay Info and moderator admin flags are represented. Done means configurable rolling-window thresholds and per-match-type minimum counts produce review-only flags with the supporting matches and Replay Info, alongside documentation and synthetic-player tests.

Written by the indexing model from the issue text.

Description

area:ratings area:security priority:p2 size:M type:feature
Summary

#51 flags players whose results drift far from their seed. A second sandbagging pattern is context divergence: a player who plays well above expectation in self-reported or rec play and well below it in tournament or league matches, especially just before an event. The engine already gives out-of-sample predictions for every eligible match (prequential_predictions). The backend can group a player's prediction errors by Match Type and flag a large, sustained gap for moderator review.

Tasks
  • On each scheduled Replay, compute per-player mean prediction error (actual minus expected point share) by Match Type over a rolling window, from the engine's prequential_predictions.
  • Flag a player for review when the gap between match types passes a threshold and a minimum match count in each type (settings).
  • Show flags with the matches behind them in the moderator admin (#40) and the organizer flag feed (#213).
  • Publish the flag rules in the docs.
  • Tests with synthetic players only.
Acceptance criteria
  • A flag never changes a Rating, voids a Match, or holds a Match from counting by itself. Moderators and organizers decide what, if anything, to do.
  • The flag records the Replay Info (as-of date, config fingerprint) it was computed from.
  • Expected values come from the engine, not local math.
  • A player who plays one or two poor events is not flagged (minimum counts and window hold).

Related: #51, #55

Dominant language
Python
Stars
0
Forks
1
Avg merge
1h 7m
Merged PRs (30d)
206

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openpickleball/backend

All issues in openpickleball/backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.