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-08-14 21:01:08 -04:00
2025-12-29 23:22:05 -05:00
2025-12-31 14:15:51 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2026-04-19 19:05:20 -04:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 04:06:05 -05:00
2025-12-28 12:05:27 -05:00
2025-12-29 15:25:50 -05:00
2025-12-29 13:32:00 -05:00
2025-12-29 23:31:27 -05:00
2025-12-30 00:36:25 -05:00
2025-12-30 01:39:30 -05:00
2025-12-30 15:00:42 -05:00
2025-12-30 20:05:28 -05:00
2025-12-30 22:50:16 -05:00
2025-12-30 17:24:52 -05:00
2025-12-31 16:13:46 -05:00
2025-12-31 00:06:57 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2026-01-19 16:53:34 +00:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2026-01-19 16:53:34 +00:00
2026-01-19 16:53:34 +00:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2026-01-19 16:53:34 +00:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2025-12-28 02:43:02 -05:00
2026-01-01 15:42:24 -05:00
2026-01-04 11:07:16 -05:00
2026-01-07 23:10:35 -05:00
2026-01-08 15:30:53 -05:00
2026-01-08 00:53:17 -05:00
2026-01-08 16:39:56 -05:00
2026-01-19 00:29:10 -08:00
2026-01-09 19:11:50 -05:00
2026-01-19 00:29:10 -08:00
2026-01-21 20:42:26 -08:00
2026-01-23 03:25:35 +00:00
2026-01-26 18:45:04 -08:00
2026-02-02 22:48:57 -08:00
2026-02-10 14:21:14 -05:00
2026-02-24 18:07:57 -05:00
2026-02-28 21:43:18 +00:00
2026-03-01 02:58:50 -05:00
2026-03-01 02:58:50 -05:00
2026-03-01 02:58:50 -05:00
2026-03-01 02:58:50 -05:00
2026-03-01 02:58:50 -05:00
2026-03-01 02:58:50 -05:00
2026-03-01 23:35:54 -05:00
2026-03-02 18:54:38 -05:00
2026-03-03 14:31:26 -05:00
2026-03-03 20:19:26 +00:00
2026-03-04 15:16:28 -05:00
2026-03-04 11:44:23 -05:00
2026-03-04 21:04:36 -05:00
2026-03-04 18:47:08 -05:00
2026-03-05 00:40:09 -05:00
2026-03-05 13:12:04 -05:00
2026-03-06 19:06:51 -05:00
2026-03-07 02:23:38 -05:00
2026-03-08 00:23:42 -05:00
2026-03-09 11:59:04 -04:00
2026-03-08 20:31:13 -04:00
2026-03-08 20:31:13 -04:00
2026-03-08 20:31:13 -04:00
2026-03-08 20:31:13 -04:00
2026-03-09 11:59:04 -04:00
2026-03-08 22:57:03 -04:00
2026-03-08 04:40:35 -04:00
2026-03-08 04:40:35 -04:00
2026-03-08 04:40:35 -04:00
2026-03-09 18:04:13 -04:00
2026-03-10 01:16:43 -04:00
2026-03-15 16:19:59 -04:00
2026-03-19 16:15:01 -04:00
2026-03-21 00:04:26 -04:00
2026-03-21 01:51:44 -04:00
2026-03-21 16:15:52 +00:00
2026-03-21 16:15:52 +00:00
2026-03-21 16:15:52 +00:00
2026-03-22 22:20:55 -04:00
2026-03-26 17:37:59 +00:00
2026-03-25 14:36:03 -04:00
2026-03-25 22:36:31 +00:00
2026-03-26 15:13:51 -04:00
2026-03-26 15:13:51 -04:00
2026-03-27 14:44:27 -04:00
2026-03-27 14:44:27 -04:00
2026-03-31 03:32:01 +00:00
2026-03-27 12:14:32 -04:00
2026-03-31 03:32:01 +00:00
2026-04-20 14:26:51 -04:00
2026-03-31 21:44:53 +00:00
2026-04-03 21:50:53 -04:00
2026-04-04 17:39:18 -04:00
2026-04-04 17:39:18 -04:00
2026-04-05 19:17:43 -04:00
2026-04-05 22:36:03 -04:00
2026-04-06 19:05:13 -04:00
2026-04-09 19:02:12 -04:00
2026-04-13 10:57:08 -04:00
2026-04-13 01:02:08 -04:00
2026-04-13 01:02:08 -04:00
2026-04-13 10:57:08 -04:00
2026-04-19 21:14:12 -04:00
2026-04-22 23:27:21 -04:00
2026-04-22 23:27:21 -04:00
2026-04-27 06:08:54 +00:00
2026-04-27 06:08:54 +00:00
2026-04-28 17:57:34 -04:00
2026-04-28 17:57:34 -04:00
2026-04-29 11:13:35 -04:00
2026-05-02 23:26:09 -04:00
2026-05-02 23:26:09 -04:00
2026-05-06 13:06:36 -04:00
2026-05-06 22:46:00 -04:00
2026-05-17 01:12:54 -04:00
2026-06-07 18:39:06 -04:00
2026-06-07 18:39:06 -04:00
2026-06-04 19:06:45 -04:00
2026-06-08 10:45:58 -04:00
2026-06-08 15:15:13 -04:00
2026-08-22 18:19:30 -04:00
2026-06-11 06:52:14 +00:00
2026-06-11 01:15:45 -04:00
2026-06-11 01:15:45 -04:00
2026-06-11 13:25:28 -04:00
2026-06-11 18:22:51 -04:00
2026-08-14 21:01:08 -04:00
2026-06-15 18:02:23 -04:00
2026-06-15 09:44:40 -04:00
2026-06-16 02:15:43 -04:00
2026-06-16 04:27:19 +00:00
2026-06-16 01:53:23 -04:00
2026-06-17 17:11:24 -04:00
2026-06-18 13:05:41 -04:00
2026-06-18 16:18:02 +00:00
2026-06-18 16:18:02 +00:00
2026-06-22 18:44:02 -04:00
2026-06-22 22:34:49 +00:00
2026-06-27 22:39:48 +00:00
2026-06-28 14:16:35 -04:00
2026-07-01 16:54:10 -04:00
2026-07-02 16:43:41 -04:00
2026-07-05 02:33:20 -04:00
2026-07-05 02:33:20 -04:00
2026-07-09 01:26:11 -04:00
2026-08-14 21:01:08 -04:00
2026-07-21 00:25:25 +00:00
2026-07-21 00:25:25 +00:00
2026-08-12 12:07:53 -04:00
2026-08-16 14:14:46 -04:00
2026-08-15 15:26:25 -04:00
2026-08-16 15:14:04 -04:00
2026-08-16 16:49:21 -04:00
2026-08-18 12:15:01 -04:00
2026-08-24 10:43:42 -04:00
2026-08-23 01:51:42 -04:00
2026-08-24 16:03:15 -04:00
2026-08-28 22:12:46 -04:00
2026-08-27 03:07:33 -04:00
2026-08-29 22:08:42 -04:00
2026-08-29 18:58:55 -04:00
2026-08-30 02:09:06 -04:00
2026-08-30 16:00:33 -04:00
2026-08-30 14:25:32 -04:00
2026-08-30 21:52:26 -04:00
2026-08-31 18:31:16 -04:00
2026-08-31 02:16:31 -04:00
2026-09-02 22:02:35 -04:00
2026-09-03 02:20:19 -04:00
2026-09-03 01:34:31 -04:00
2026-09-03 00:09:13 -04:00
2026-09-03 02:20:19 -04:00
2026-09-13 04:39:36 +00:00
2026-09-12 16:19:39 -04:00
2026-09-24 19:37:12 -04:00
2026-09-13 03:02:15 -04:00
2026-09-18 00:25:41 -04:00
2026-09-17 01:07:40 -04:00
2026-09-17 18:11:56 +00:00
2026-09-17 02:19:14 -04:00
2026-09-18 00:25:41 -04:00
2026-09-24 19:37:12 -04:00
2026-09-22 21:32:43 -04:00
2026-09-22 21:26:18 -04:00
2026-09-23 19:51:10 -04:00
2026-09-24 19:37:12 -04:00
2026-09-26 17:00:28 -04:00
2026-09-26 23:20:54 -04:00
2026-09-26 16:39:16 -04:00
2026-09-26 20:25:00 -04:00
2026-09-29 03:18:24 -04:00
2026-10-01 00:41:53 -04:00
2026-09-30 21:02:53 -04:00
2026-09-30 23:37:51 -04:00
2026-10-01 13:41:54 -04:00
2026-10-02 18:42:29 -04:00
2026-10-03 14:17:51 -04:00
2026-10-15 16:00:24 -04:00