Match prediction from the engine
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 8/100
Research direction
This is an open design stub: it asks for an ADR before any code, and its questions cover inputs, privacy under rating_visibility (ADR 0031), which snapshot to load through engine_adapter, labels, and caching. Read the existing ADRs and the engine_adapter module first, then agree the decisions with maintainers. Done means an accepted ADR, an adapter function, a GET operation with an explicit operation_id, a regenerated openapi/openapi.json, and tests including one hidden player.
Written by the indexing model from the issue text.
Description
Stub: this issue holds the problem and the questions. It needs a decision (an ADR) and a full scope before work starts.
Problem: Players want to ask "what are my odds against this pair?" The engine already answers this (predict_win_probability and predict_point_share), but the API does not expose it. The backend must call the engine for it, never compute it (hard rule 2).
Questions to decide:
- Inputs. Two teams of OPEN Codes, the rating format, the game format (target and scoring), and best-of. A
GETwith query parameters, so read-only clients such as the MCP server can call it. - Privacy. A prediction against a player whose rating the viewer knows reveals the other player's rating. So every player in the request must be visible to the viewer under
rating_visibility, or the whole request gets the same 404 as an unknown code (ADR 0031). Never answer for a player aged 13 to 17 whose rating is hidden. - Which ratings. The engine instance built from the stored
EngineSnapshotfor the loaded config, throughengine_adapter(the only module that imports the engine). What happens when the snapshot cannot load (an engine upgrade before a replay). - Labels. The answer carries each player's reliability, says it is a demonstration result, and says live ratings are provisional between replays.
- Cost. Loading a snapshot per request may be slow. Decide on caching (#54's pattern) and the per-Account throttle.
Draft scope:
- ADR for the questions above
- An
engine_adapterfunction that returns a plain prediction from the stored snapshot - The operation, with an explicit
operation_idand the regeneratedopenapi/openapi.json - Tests, including a request with one hidden player
Out of scope:
- Any prediction math in the backend (hard rule 2)
- The MCP tool (#264)
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 206
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openpickleball/backend
-
area:infra documentation priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#472 ·
Maintainers usually reply within 1 day
-
Show doctl's error when the Deploy workflow's update failsPossibly taken @GeoBradDev claimed this today. Openarea:infra bug priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#471 ·
Maintainers usually reply within 1 day
-
area:infra documentation type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openpickleball/backend#196 ·
Maintainers usually reply within 1 day
-
area:infra type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#195 ·
Maintainers usually reply within 1 day
-
area:api enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
openpickleball/backend#470 ·
Maintainers usually reply within 1 day
All issues in openpickleball/backend
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day