Andrew Beveridge ☄️ and Claude Opus 5.5
c277bc8ee3
feat: local E2E stack (fake workers + test API) + email-code sign-in (v0.275.0) ( #1165 )
...
## Summary
- **Local stack:** `scripts/local-stack.sh up --frontend` runs the
**real** backend on the Firestore + GCS emulators with `FAKE_WORKERS=1`.
In-process fake workers move jobs through their real states in seconds,
using tiny real media, so web Playwright and mobile Maestro full-journey
tests can run offline against the same endpoints.
- **Email-code sign-in** (nomad-mobile spec §4.1): `POST
/api/users/auth/send-code` + `verify-code`. The code logic is shared
with kjbox via `LoginCodeStore`, and sends are throttled per email and
per IP.
- **Bug fix found by the new suite:** `confirm-duration` moved jobs to
`separating_stage1`, from which they can never reach review. It now
resumes at `downloading`. No prod job had taken this path yet.
## Changes
- `backend/services/fake_workers/`: dispatch seam in
`WorkerService.trigger_*`, plus fake search, download, checkout and
outbox, scenarios, and per-user config. The real stem upload, transcode,
backing-vocals analysis and preview render are reused. Every check is
strict (`is True`), so a MagicMock settings object never enables the
fakes, and startup **refuses FAKE_WORKERS in production**.
- `/api/test/*` router (mounted only in that mode): `status`,
`scenario`, `fake-config`, `emails`, `reset`, plus the fake Stripe
checkout page. Paying it runs the real webhook handler.
- `frontend/e2e/local-stack/` (9 specs, ~50s):
- sign-up → make → review → instrumental → download
- buy and cancel credits
- duration confirm, failed, complete and review states
- code sign-in and lockout
- New required CI job `local-stack-e2e`.
- Docs: TESTING.md § Local stack, DEVELOPMENT.md, API.md, README,
LESSONS-LEARNED.
- `MAX_SIGNUPS_PER_IP` can now be set by env. Only the local stack
raises it; production keeps the default of 2.
## Testing
- [x] Backend unit: 6175 passed
- [x] Emulator: 152 passed
- [x] Frontend Jest: 1706 passed
- [x] Local-stack Playwright: 9/9 passed (CI mode)
## Review
- [x] CodeRabbit CLI review completed locally. 1 minor finding declined:
it suggested swallowing infrastructure errors in send-code as fake
"sent" responses, which would hide real outages from users.
@coderabbitai ignore
---
🤖 Generated with [Claude Code](https://claude.com/claude-code )
https://claude.ai/code/session_01AGuxtgoscF6RJGtpjHPg3W
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-15 16:00:24 -04:00
..
2026-10-15 16:00:24 -04:00
2026-01-21 23:31:30 -08:00
2026-10-15 16:00:24 -04:00
2026-09-12 21:48:55 +00:00
2026-10-15 16:00:24 -04:00
2026-10-15 00:05:57 -04:00
2025-11-30 21:37:04 -05:00
2026-10-03 14:17:51 -04:00
2025-12-01 19:02:42 -05:00
2025-11-30 21:37:04 -05:00
2026-03-09 11:59:04 -04:00
2026-09-15 18:48:20 -04:00
2026-08-24 16:03:15 -04:00
2026-10-15 00:58:42 -04:00
2026-03-05 00:40:09 -05:00
2026-09-26 00:03:10 -04:00
2026-10-03 14:17:51 -04:00
2026-01-09 21:11:58 -05:00
2026-09-26 17:00:28 -04:00
2026-09-15 06:12:06 +00:00
2026-09-17 15:46:10 +00:00
2026-08-29 01:16:47 -04:00
2026-03-03 20:22:32 -05:00
2026-10-15 02:53:21 -04:00
2026-08-23 02:19:50 -04:00
2026-03-24 21:30:38 -04:00
2026-10-14 23:31:16 -04:00
2025-12-10 02:35:49 -05:00
2026-02-02 22:48:57 -08:00
2026-09-20 13:08:19 -04:00
2026-09-29 21:51:50 -04:00
2026-09-29 21:51:50 -04:00
2026-09-26 17:00:28 -04:00
2026-09-26 17:00:28 -04:00
2026-03-08 20:31:13 -04:00
2025-12-21 23:35:17 -05:00
2026-03-21 17:58:31 -04:00
2026-08-22 18:35:12 -04:00
2026-08-28 19:56:45 -04:00
2026-09-26 20:25:00 -04:00
2026-02-23 02:43:11 -05:00
2026-09-23 22:26:52 -04:00
2026-06-15 04:12:22 -04:00
2026-03-21 17:58:31 -04:00
2026-08-22 18:19:30 -04:00
2026-02-25 01:00:06 -05:00
2026-03-29 20:00:36 -04:00
2026-06-17 20:47:36 -04:00
2026-09-02 22:02:35 -04:00
2026-10-15 00:58:42 -04:00
2026-09-14 23:01:26 -04:00
2026-06-18 16:18:02 +00:00
2026-06-18 16:18:02 +00:00
2026-06-18 16:18:02 +00:00
2026-06-18 16:18:02 +00:00
2026-03-03 11:28:01 -05:00
2026-03-15 16:19:59 -04:00
2026-10-12 17:29:43 -04:00
2026-10-14 23:39:06 -04:00
2026-02-27 17:35:50 -05:00
2026-10-03 14:17:51 -04:00
2026-10-03 14:17:51 -04:00
2026-09-22 21:32:43 -04:00
2026-09-30 23:56:48 -04:00
2026-09-03 16:59:16 -04:00
2026-09-03 01:34:31 -04:00
2026-10-03 14:17:51 -04:00
2026-09-17 01:07:40 -04:00
2025-12-07 23:20:04 -05:00
2026-10-14 23:50:59 -04:00
2026-01-21 20:42:26 -08:00
2026-05-16 16:43:21 -04:00
2026-10-08 16:15:47 -04:00
2026-03-23 21:57:46 -04:00
2026-09-26 21:36:09 -04:00
2026-10-01 21:58:53 -04:00
2025-12-07 20:15:02 -05:00
2026-09-26 23:20:54 -04:00
2026-09-26 23:04:15 -04:00
2026-09-12 22:15:15 +00:00
2026-03-19 18:45:51 -04:00
2026-10-08 17:26:53 -04:00
2026-10-15 01:52:35 -04:00
2026-07-20 19:12:28 -04:00
2026-10-03 23:59:23 -04:00
2026-04-04 04:08:29 +00:00
2026-10-15 12:44:43 -04:00
2026-09-28 02:08:24 -04:00
2026-09-28 02:08:24 -04:00
2025-12-22 13:56:23 -05:00
2026-09-12 21:48:55 +00:00
2026-01-24 11:57:37 -08:00
2026-08-31 18:59:59 -04:00
2026-01-21 20:42:26 -08:00
2026-09-12 14:20:52 -04:00
2026-05-06 22:33:29 -04:00
2026-09-26 23:20:54 -04:00
2026-09-26 23:20:54 -04:00
2026-09-26 23:20:54 -04:00
2026-05-06 22:46:00 -04:00
2026-09-26 23:20:54 -04:00
2026-09-19 20:47:38 -04:00
2026-10-06 11:55:51 -04:00
2026-10-12 17:29:43 -04:00
2026-10-08 16:15:47 -04:00
2026-10-15 16:00:24 -04:00
2026-08-22 19:01:23 -04:00
2026-10-03 14:17:51 -04:00
2026-09-29 21:51:50 -04:00
2026-04-05 22:36:03 -04:00
2026-09-26 21:36:09 -04:00
2026-08-15 16:42:24 -04:00
2026-08-15 16:42:24 -04:00
2026-07-09 01:26:11 -04:00
2026-03-02 16:48:40 -05:00
2026-10-01 19:35:22 -04:00
2026-04-04 04:48:37 +00:00
2026-01-13 05:29:26 +00:00
2026-10-08 17:33:06 -04:00
2026-10-15 14:35:52 -04:00
2026-01-25 11:49:51 -08:00
2026-09-29 23:42:08 -04:00
2026-10-03 23:59:23 -04:00
2026-10-03 14:17:51 -04:00
2026-01-29 21:34:22 -08:00
2026-03-22 03:05:18 +00:00
2026-06-08 15:15:13 -04:00
2026-08-07 11:20:05 +02:00
2026-01-06 11:53:11 -05:00
2026-09-26 18:17:35 -04:00
2026-09-26 00:03:10 -04:00
2026-08-29 01:16:47 -04:00
2026-09-22 23:38:43 -04:00
2026-09-22 21:26:18 -04:00
2026-10-12 18:00:09 -04:00
2026-10-03 14:17:51 -04:00
2026-09-28 06:07:13 +00:00
2026-10-03 14:17:51 -04:00
2026-08-16 16:49:21 -04:00
2026-01-06 12:50:17 -05:00
2026-10-15 16:00:24 -04:00
2026-10-15 16:00:24 -04:00
2026-10-13 19:05:00 -04:00
2026-10-01 21:58:53 -04:00
2026-08-22 19:23:48 -04:00
2026-07-03 19:40:52 +00:00
2026-10-08 17:26:53 -04:00
2026-04-03 23:15:52 -04:00
2026-09-28 06:07:13 +00:00
2026-06-16 02:15:43 -04:00
2026-09-24 23:39:25 -04:00
2026-01-25 11:49:51 -08:00
2026-06-22 18:44:02 -04:00
2026-10-07 21:25:56 -04:00
2026-08-29 01:16:47 -04:00
2026-03-07 23:08:17 -05:00
2026-09-29 21:51:50 -04:00
2026-06-17 17:11:24 -04:00
2026-07-09 01:26:11 -04:00
2026-02-05 12:18:23 -08:00
2026-07-02 00:45:54 -04:00
2026-09-26 14:53:04 -04:00
2026-03-07 02:01:53 -05:00
2026-10-01 19:35:22 -04:00
2026-03-11 11:16:20 -04:00
2026-09-12 22:15:15 +00:00
2026-09-30 23:37:51 -04:00
2026-10-13 19:05:00 -04:00
2026-03-05 16:58:21 -05:00
2026-09-28 01:51:13 -04:00
2026-10-03 23:59:23 -04:00
2026-04-04 17:39:18 -04:00
2026-08-30 21:52:26 -04:00
2026-08-30 21:52:26 -04:00
2026-10-04 11:54:05 -04:00
2026-10-15 14:35:52 -04:00
2026-10-15 14:35:52 -04:00
2026-09-13 03:02:15 -04:00
2026-10-15 14:35:52 -04:00
2026-10-15 14:35:52 -04:00
2026-10-15 14:35:52 -04:00
2026-09-26 00:03:10 -04:00
2026-09-02 22:02:35 -04:00
2026-09-02 22:02:35 -04:00
2026-01-04 23:04:06 -05:00
2026-04-29 11:13:35 -04:00
2026-05-06 14:35:52 -04:00
2026-03-01 02:58:50 -05:00
2026-03-08 00:23:42 -05:00
2026-09-26 03:28:22 -04:00
2026-06-05 23:24:21 -04:00
2026-09-29 21:51:50 -04:00
2026-10-03 14:17:51 -04:00
2026-10-03 14:17:51 -04:00
2026-09-15 01:20:08 -04:00
2026-03-30 00:25:47 +00:00
2026-03-05 13:12:04 -05:00
2025-12-07 20:15:02 -05:00
2026-09-23 19:51:10 -04:00
2026-10-14 23:31:16 -04:00
2026-09-02 22:02:35 -04:00
2026-01-08 00:53:17 -05:00
2026-06-07 18:39:06 -04:00
2026-10-14 23:50:59 -04:00
2026-09-26 20:25:00 -04:00
2026-09-26 00:03:10 -04:00
2026-10-04 11:54:05 -04:00
2026-09-28 00:15:17 -04:00
2026-03-03 20:22:32 -05:00
2026-10-14 23:39:06 -04:00
2026-10-03 14:17:51 -04:00
2026-03-15 16:19:59 -04:00
2026-10-03 14:17:51 -04:00
2026-01-06 11:53:11 -05:00
2026-09-26 17:00:28 -04:00
2026-09-28 01:26:32 -04:00
2026-09-30 01:22:19 -04:00
2026-01-08 16:39:56 -05:00
2026-10-14 23:20:22 +00:00
2026-06-15 03:22:53 -04:00
2026-01-08 16:39:56 -05:00
2026-09-28 12:50:28 -04:00
2026-09-28 12:50:28 -04:00
2026-08-23 01:51:42 -04:00
2026-01-08 16:39:56 -05:00
2026-10-15 15:02:24 -04:00
2026-10-15 15:02:24 -04:00
2026-09-17 13:57:57 -04:00
2026-10-06 18:32:27 -04:00
2026-10-15 15:02:24 -04:00
2026-09-30 01:37:33 -04:00
2026-10-08 15:09:25 -04:00
2026-10-15 00:58:42 -04:00
2026-03-04 22:14:22 -05:00
2025-12-22 17:19:17 -05:00
2026-06-17 17:11:24 -04:00
2025-12-11 03:46:01 -05:00
2026-10-15 01:52:35 -04:00
2026-09-30 01:06:54 -04:00
2026-09-17 03:01:13 -04:00
2025-12-11 03:46:01 -05:00
2026-01-19 22:35:41 -08:00
2026-09-29 21:51:50 -04:00
2026-09-29 16:33:23 -04:00
2026-08-27 05:07:17 -04:00
2026-10-15 14:35:52 -04:00
2026-08-22 18:19:30 -04:00
2026-08-31 23:55:42 +00:00
2026-10-14 12:32:23 -04:00
2026-09-03 02:20:19 -04:00
2026-10-01 16:39:56 -04:00
2026-06-08 15:15:13 -04:00
2026-10-01 16:39:56 -04:00
2026-03-04 05:31:26 +00:00
2025-12-21 23:35:17 -05:00
2026-03-03 20:19:26 +00:00
2026-10-08 16:15:47 -04:00