Skip to content

Commit 3777d11

Browse files
fix(playground): raise sandbox rate limit default 10→30 req/min (DAK-6835) (#201)
fix(playground): raise sandbox rate limit default 10→30 req/min (DAK-6835) Compare mode fires 11 requests (10 stores + 1 recall), immediately hitting the old 10/min cap. CEO already applied 30 on the live server; this persists it as the code default. 🤖 [Agent: CTO] Reviewed + merged
1 parent 522eb82 commit 3777d11

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docker/docker-compose.playground.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ services:
148148
- PROXY_PORT=3100
149149
- DAKERA_UPSTREAM_URL=http://dakera:3000
150150
- DAKERA_ROOT_API_KEY=${DAKERA_ROOT_API_KEY:?Set DAKERA_ROOT_API_KEY in .env}
151-
- SANDBOX_RATE_LIMIT_PER_MIN=${SANDBOX_RATE_LIMIT_PER_MIN:-10}
151+
- SANDBOX_RATE_LIMIT_PER_MIN=${SANDBOX_RATE_LIMIT_PER_MIN:-30}
152152
- SANDBOX_MEMORY_CAP=${SANDBOX_MEMORY_CAP:-50}
153153
- SANDBOX_SESSION_TTL_SEC=${SANDBOX_SESSION_TTL_SEC:-1800}
154154
- SANDBOX_MAX_SESSIONS_PER_IP=${SANDBOX_MAX_SESSIONS_PER_IP:-20}

docker/playground/proxy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tiny container, no supply-chain surface).
2424

2525
| # | Limit | Default | Env var |
2626
|---|-------|---------|---------|
27-
| 1 | Rate limit per session | 10 req / 60s sliding window | `SANDBOX_RATE_LIMIT_PER_MIN` |
27+
| 1 | Rate limit per session | 30 req / 60s sliding window | `SANDBOX_RATE_LIMIT_PER_MIN` |
2828
| 2 | Memory cap per session | 50 (batch items counted) | `SANDBOX_MEMORY_CAP` |
2929
| 3 | Session TTL | 30 min auto-expiry | `SANDBOX_SESSION_TTL_SEC` |
3030
| 4 | Endpoint allow-list | deny-by-default | (see `allowlist.js`) |

docker/playground/proxy/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const config = {
4141
rootApiKey: process.env.DAKERA_ROOT_API_KEY || '',
4242

4343
// Sandbox limits (DAK-6713 acceptance criteria)
44-
rateLimitPerMin: intEnv('SANDBOX_RATE_LIMIT_PER_MIN', 10), // req #1
44+
rateLimitPerMin: intEnv('SANDBOX_RATE_LIMIT_PER_MIN', 30), // req #1
4545
memoryCapPerSession: intEnv('SANDBOX_MEMORY_CAP', 50), // req #2
4646
sessionTtlMs: intEnv('SANDBOX_SESSION_TTL_SEC', 30 * 60) * 1000, // req #3
4747

0 commit comments

Comments
 (0)