Seed a self-reported rating through the engine and persist it for replay

Open
#122 1 comment 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
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by reading issues #48 and #49, then locate the engine's ExternalRatingSnapshot, seed_external_rating, and the recompute command. Trace how seeds are persisted and replayed, and how OPEN matches are checked for a format. Done means tests with fake values show provisional ratings with OPEN Reliability below 60, exact ratings after full recompute, and refusal when OPEN matches exist.

Written by the indexing model from the issue text.

Description

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

Context: Split from #49, which stores the self-reported reference and attestation. This issue turns it into a provisional Seed through the engine, so a Replay reproduces it (hard rule 4). Rating math stays in the engine (hard rule 2).

Tasks:

  • Seed through the engine's ExternalRatingSnapshot and seed_external_rating, passing the external ID and reliability as provenance
  • Keep external_reliability_maps_to_rd off and use a self-reported RD from settings, so OPEN Reliability starts provisional (below 60) whatever reliability the player entered
  • Refuse to seed a format where the player already has OPEN matches (hard rule 5; the engine also refuses this)
  • Persist the seed so a Replay and the recompute command (#48) reproduce it
  • Tests with fake values

Acceptance criteria:

  • A seeded player is provisional, and OPEN Reliability is below 60 even when the entered reliability is 100
  • A full recompute reproduces the seeded ratings exactly
  • A seed for a format with OPEN matches is refused

Depends on: #48, #49

Size: M

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.