feat: E7 — Production Readiness ## Goal Make the platform safe, observ#274
Closed
fly-productivity-manager[bot] wants to merge 1 commit into
Closed
feat: E7 — Production Readiness
## Goal
Make the platform safe, observ#274fly-productivity-manager[bot] wants to merge 1 commit into
fly-productivity-manager[bot] wants to merge 1 commit into
Conversation
## Goal Make the platform safe, observ [fly-dev run run_62b824b2de544660b5a6642fc329f0d8]
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
spooool | f28c8a4 | Jul 06 2026, 07:47 AM |
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.
Summary
Everything is clean. Here's a summary of what E7 delivered and what was already in place:
E7 — Production Readiness: what was done
Already fully implemented (no gaps)
[observability.logs]at 100% sampling; Analytics Engine dataset bound@sentry/cloudflarewrapping the Hono app;@sentry/reactlazy-loaded in the frontendRateLimiterDOwith buckets for auth, upload, search, AI create, and studio gencsrfProtectionmiddleware on allPOST/PUT/PATCH/DELETE /api/*dmca.ts,moderation.ts, full D1 schemaci.yml→deploy-staging.yml→e2e-staging.yml(triggers after each staging deploy)tests/load/costs.ts; Sentry integrationAdded in this session
src/workers/rate-limit.ts— AddedSTREAM_BUCKET(600 burst, 10 req/s sustained per IP) as the abuse defense for the raw R2 video stream endpoint.src/workers/videos.ts— AppliedSTREAM_BUCKETrate limiting toGET /api/videos/:id/streambefore the D1 query. Fail-open so local dev withoutRateLimiterDOis unaffected.tests/e2e/search.spec.ts— New: covers search results rendering, empty state, and 429 rate-limit error surface. The search path (/search?q=…→ FTS5 → result list →/watch) was the only critical flow without an E2E spec.tests/e2e/comments.spec.ts— New: covers unauthenticated comment visibility, auth gate on the post form, and the post → appear lifecycle (mocked API). Comments on/watchare a core social surface.wrangler.tomlstaging section — Added the four vars that were missing from[env.staging](which doesn't inherit top-level[vars]):ADMIN_EMAILS,EMAIL_FROM,EMAIL_FROM_NAME,AI_GATEWAY_MODE. Also documented the R2/KV isolation path with the provisioning commands needed to fully decouple staging data from production.tests/e2e/README.md— Updated the coverage table to include all 10 spec files; noted CI wiring is live viae2e-staging.yml.Tests
Opened automatically by fly-dev run run_62b824b2de544660b5a6642fc329f0d8.