Repository navigation
Conversation
sergical
force-pushed
the
feat/cli-games-leaderboard
branch
2 times, most recently
from
October 7, 2026 15:25
f775f5e to
49149a9
Compare
sergical
marked this pull request as ready for review
October 8, 2026 16:45
sergical
force-pushed
the
feat/cli-init-snake
branch
from
October 15, 2026 18:18
ba78133 to
2e16786
Compare
sergical
force-pushed
the
feat/cli-games-leaderboard
branch
from
October 15, 2026 18:22
dd48465 to
e167a54
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
A finished Snake game sends one snake.score metric tagged only with a random player handle. It goes out in a new trace with the user cleared, and beforeSendMetric keeps only an attribute allowlist. Nothing is sent when telemetry is off. The sentry-mcp Worker serves GET /api/games/snake/leaderboard. It reads the top 10 scores of the last 30 days with a read-only token, caches the result in KV, rate-limits by hashed IP, and returns only generic errors. `sentry games leaderboard` validates every row again before it prints. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Score reporting runs from the game timer, so a database or transport error could crash sentry init. It now logs the error and skips the score. Handles had only 102,400 values, so two players were likely to share one after a few hundred players. Four-digit suffixes give about 10 million. An old two-digit handle is replaced the next time it is read. Co-authored-by: Claude <claude@anthropic.com>
Move the leaderboard endpoint out of the sentry-mcp Worker into a new packages/games-api Hono Worker in the Cloudflare "Sentry Internal" account, on games.sentry.new. The Sentry read token no longer shares a Worker with the MCP server's OAuth secrets, and the MCP server has no games changes. The Workers Cache API replaces the KV cache, so the new Worker needs no account resources besides the rate limiter. The CLI now reads https://games.sentry.new/v1/snake/leaderboard. Co-authored-by: Claude <claude@anthropic.com>
Metrics wait up to 5s in the SDK buffer. On macOS the CLI force-exits about 100ms after a command ends, which cuts off the exit flush, so a player who quit right after game over lost the score. Co-authored-by: Claude <claude@anthropic.com>
The games-api install re-resolved zod to 4.6.5 and workerd to a newer build for unrelated packages, which broke the mcp-core typecheck. The lockfile now adds only the games-api importer. Also restore the MCP server config and docs to the base branch. The pre-commit formatter had reformatted them during the earlier revert. Co-authored-by: Claude <claude@anthropic.com>
The old branch resolved some changes in merge commits. A linear rebase drops merge commits, so restore the games flag test, the onGameOver doc comment, the generated games reference, and the unchanged MCP deployment docs. Keep the lockfile change to the games-api importer only, so that other resolutions stay the same as on the base branch. Co-authored-by: Claude <claude@anthropic.com>
sergical
force-pushed
the
feat/cli-games-leaderboard
branch
from
October 15, 2026 18:37
e167a54 to
73367ce
Compare
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 73367ce. Configure here.
A resize can start the run over when the snake no longer fits, or end it when no cell is left for food. Both paths ran in render, outside the step handler that reports the score, so the leaderboard lost the run. Co-authored-by: Claude <claude@anthropic.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds
sentry games leaderboard, which shows the top 10 Snake scores from the last 30 days. Stacked on #1435.Scores (CLI)
snake.scoremetric to the CLI telemetry project. Its only custom attribute is a random handle such asbrave-otter-42, stored in the localmetadatatable.beforeSendMetrickeeps onlyhandle,sentry.release,sentry.environmentandsentry.sdk.*for this metric.SENTRY_CLI_NO_TELEMETRY,DO_NOT_TRACK, or the stored preference).Endpoint (new
packages/games-apiWorker)sentry-games-api, in the Cloudflare "Sentry Internal" account onhttps://games.sentry.new. The MCP server is not changed: the read token never shares a Worker with its OAuth secrets.GET /v1/snake/leaderboardqueries thetracemetricsdataset formax(value)per handle, withvalue:<=10000.Setup before deploy
org:readscope only.packages/games-api:pnpm run deploy, thennpx wrangler secret put SENTRY_GAMES_READ_TOKEN.Known limit: the DSN is public, so anyone can submit a score. The handle format and the 10,000 cap block only impossible values.
Breaking Changes: None
Created with Claude Code