Skip to content

K13.6: cap demo actions in the database - #141

Merged
MFrancis-dev merged 1 commit into
mainfrom
fix/demo-caps
Nov 8, 2026
Merged

MFrancis-dev merged 1 commit into
mainfrom
fix/demo-caps

Conversation

@MFrancis-dev

Copy link
Copy Markdown
Owner

Fix 6 from the pre-launch review (availability).

Problem: demo starts were rate-limited per serverless instance only, and Fast-forward (which writes rows every call) had no limit. A simple loop could fill the free Neon database and take the site down during judging.

Fix (on the shared limiter from K13.7, limits in lib/server/demoLimits.ts):

  • New demos: 10/min and 30/h per IP, 600/h across everyone ("The demo is busy right now")
  • Per demo: 12 fast-forwards and 20 resets a day, 60 owner transactions an hour; the message says to start a new demo
  • The demo banner now shows reset errors too (it only showed fast-forward errors)

Tests: fast-forward cap with its message; global start cap. 148 total.

Docs: README status, ARCHITECTURE §4.1, ESSENTIALS, project_structure, ROADMAP.

Closes #132

Demo starts were limited per serverless instance and fast-forward was
unlimited, so a loop could fill the hosted database during judging.

Closes #132
@MFrancis-dev
MFrancis-dev merged commit 9e92208 into main Nov 8, 2026
4 checks passed
@MFrancis-dev
MFrancis-dev deleted the fix/demo-caps branch November 8, 2026 09:25
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.

K13.6 Cap demo starts and fast-forwards

2 participants