Public testnet hardening: screening-only mode, rate limit, testnet notice #13

Merged
Taskuler-bot merged 1 commit from feat/public-testnet-hardening into main 2026-11-27 21:23:48 +00:00
Member

Prep for a possible public Arbitrum Sepolia testnet at app.taskuler.com. Not approved for deploy; nothing is deployed by this PR. Plan: /workspace/tw/web-launch/LAUNCH-PLAN.md (Taskuler Web's box).

What changes for someone using the app:

  • The testnet banner and footer now say: "Arbitrum Sepolia testnet — test tokens only, no real funds. This is not mainnet, and the contracts have not been audited." Draft wording for Taskuler Legal.
  • The internal CR2 design sketch (/sketch/cr2) is no longer reachable outside mock previews.

Behind the scenes:

  • The screening API can run live checks without any Coinbase keys. In that setup Coinbase buy/cash-out requests answer 404 ramps_disabled instead of trying Coinbase.
  • Per-visitor limit on screening calls (default 30 per 10 minutes, SCREEN_RATE_LIMIT / SCREEN_RATE_WINDOW_MINUTES). Over the limit, posting/bidding/withdrawing stays paused (fails closed).
  • Pass/block screening results and IP lookups are reused for 5 minutes (SCREEN_CACHE_SECONDS) so the free Chainalysis and ipapi.is quotas last. 'Unavailable' is never cached.
  • .env.example documents the public testnet build and API settings.

Tests: npm test 145/145, both tsc passes. Coinbase stays off (VITE_COINBASE_RAMPS_ENABLED=false).

Prep for a possible public Arbitrum Sepolia testnet at app.taskuler.com. **Not approved for deploy; nothing is deployed by this PR.** Plan: `/workspace/tw/web-launch/LAUNCH-PLAN.md` (Taskuler Web's box). What changes for someone using the app: - The testnet banner and footer now say: *"Arbitrum Sepolia testnet — test tokens only, no real funds. This is not mainnet, and the contracts have not been audited."* Draft wording for Taskuler Legal. - The internal CR2 design sketch (`/sketch/cr2`) is no longer reachable outside mock previews. Behind the scenes: - The screening API can run live checks without any Coinbase keys. In that setup Coinbase buy/cash-out requests answer `404 ramps_disabled` instead of trying Coinbase. - Per-visitor limit on screening calls (default 30 per 10 minutes, `SCREEN_RATE_LIMIT` / `SCREEN_RATE_WINDOW_MINUTES`). Over the limit, posting/bidding/withdrawing stays paused (fails closed). - Pass/block screening results and IP lookups are reused for 5 minutes (`SCREEN_CACHE_SECONDS`) so the free Chainalysis and ipapi.is quotas last. 'Unavailable' is never cached. - `.env.example` documents the public testnet build and API settings. Tests: `npm test` 145/145, both `tsc` passes. Coinbase stays off (`VITE_COINBASE_RAMPS_ENABLED=false`).
- Live mode with no Coinbase keys answers 404 ramps_disabled for Coinbase sessions and status instead of calling Coinbase.
- Per-client-IP fixed-window limit on /screen and session calls (SCREEN_RATE_LIMIT, default 30 per 10 min); 429 fails closed in the UI.
- Screening results (pass/block, never unavailable) and IP lookups are reused for SCREEN_CACHE_SECONDS (default 300) to protect the free Chainalysis and ipapi.is quotas.
- Testnet banner and footer: test tokens only, not mainnet, contracts not audited (draft for Taskuler Legal).
- /sketch/cr2 is only routed in mock builds.
- .env.example: public testnet build and API shape (not approved or deployed).
george approved these changes 2026-11-27 21:22:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
taskuler/web!13
No description provided.