Repository navigation
Hackathon-audit fixes: security, gameplay, durable anti-replay, docs & tests - #44
Merged
Merged
Conversation
Brings the whole tree to Prettier code style and ignores build output and generated migration metadata so formatting drift can't land again. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Food now resolves against the runner's rounded lane only, so a mid-tween merge toward a booster can't clip the junk in the lane being left — keeping booster gauntlets dodgeable as designed. Also reads the per-match track length from the active track instead of the shared default, removing a latent mismatch if a future seed changes length. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The control (start) event now carries its signer (the host's real identity) and the reducer only advances the lifecycle when that signer matches the match host — so a rogue peer on the channel can't force-start the race for everyone. Best-effort while the host is still unknown (no authoritative server). Also derives the lobby card's host from the host's own presence rather than whichever seat arrived first. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Single-use login nonces move from in-process memory to an auth_nonces table (idempotent insert + ON CONFLICT DO NOTHING + expired-row sweep), so a captured Authorization header can't be replayed by landing on a different Vercel serverless instance. Adds the migration, a unit test (mocked DB) and an integration test against the real Neon test branch; test:integration now auto-loads .env.test so it runs locally. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Corrects session TTL, auth methods (NIP-07/46/nsec), scoring table, junk-food copy (bounded bathroom setback), and the security/anti-replay/host-start behavior; adds PWA, the live demo link, food variety, the account menu and the lud16/sync-profile routes; refreshes the project structure and removes stale 'in progress / future work' notes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully 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.
Audit pass over the codebase (as a hackathon judge would): security & gameplay fixes, a durable replay guard, broader test coverage, and a full documentation sync. All green: `format:check`, `lint`, `typecheck`, 185 unit tests, and 7 integration tests (against the Neon test branch).
Commits (logical, reviewable)
Migration
Adds `auth_nonces` (migration `0004`). Production applies it automatically via the `migrate.yml` workflow on merge; the Neon test branch has already been migrated.
Notes for the reviewer
🤖 Generated with Claude Code