Skip to content

Lock jam results API behind confidence threshold - #89

Merged
kronosapiens merged 1 commit into
mainfrom
kronosapiens/lock-jam-results-api
Mar 11, 2026
Merged

Lock jam results API behind confidence threshold#89
kronosapiens merged 1 commit into
mainfrom
kronosapiens/lock-jam-results-api

Conversation

@kronosapiens

Copy link
Copy Markdown
Collaborator

Move CONFIDENCE_N gate to server-side for /results and /graph endpoints.
Both endpoints now return 423 (Locked) when totalComparisons < entryCount * CONFIDENCE_N.
Simplify client pages to react to 423 status instead of duplicating threshold logic.
Removes client-side re-computation of the threshold, ensuring the gate is enforced
even if someone bypasses the UI and hits the API directly.

Move CONFIDENCE_N gate to server-side for /results and /graph endpoints,
returning 423 (Locked) when comparisons < entryCount * CONFIDENCE_N.
Simplify client pages to react to 423 status instead of duplicating threshold logic.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@kronosapiens
kronosapiens merged commit 74cb453 into main Mar 11, 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