(plan) convert original implement plan to mock api

This commit is contained in:
Story Crater Bot
2026-08-19 09:47:14 -07:00
parent c42040319f
commit 0aef2281bc
65 changed files with 307 additions and 627 deletions
+7 -11
View File
@@ -3,23 +3,19 @@
Phase: 5 — Chat + Rate Limiter (Surface D)
Stage: REFACTOR
Depends on: [5.8](5.8-rate-limiting-tier3.md), [5.13](5.13-frontend-chat-component.md)
Depends on: [5.7](5.7-api-chat.md), [5.13](5.13-frontend-chat-component.md)
- [ ] `simplify` pass on rate limiter + SSE chat handler
- [ ] `simplify` pass on the mock SSE chat route + frontend chat component
## Verify
```bash
# load test at 20 concurrent clients
# GPU sequence usage never exceeds 6, no upstream 5xx, queue drains
pnpm test:e2e chat.e2e.ts # required, must pass before merge
```
## Done — atlas v1 shipped
## Done — Next.js portfolio surfaces shipped (mock-backed)
Success criteria (from PLAN-atlas.md):
- [ ] Protected services redirect unauthenticated to Authentik (if still applicable post decision #3)
- [ ] Fabricated stats gone, real numbers or removed
- [ ] `riotpiao.com` is the only public hostname (I1 held)
- [ ] Golden redaction test passes against live-cluster fixture
- [ ] Load test: 20 concurrent clients, GPU usage <= 6, no 5xx, queue drains
- [ ] Fabricated stats gone, real numbers or removed ([3.10](3.10-landing-page-cleanup.md))
- [ ] All four cluster surfaces (topology, delivery, terminal, chat) fetch from `/api/*` mock routes, not static `clusterMock` imports
- [ ] `pnpm test` and `pnpm test:e2e` both pass
- [ ] See [REQUIREMENTS.md](REQUIREMENTS.md) for what a real backend needs to implement before these mocks can be swapped for the genuine atlas service