(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
+3 -10
View File
@@ -1,15 +1,8 @@
# 4.9 — Structured logging of rejections (GREEN)
# 4.9 — Log rejected /api/exec input (GREEN)
Phase: 4 — Terminal (Surface C)
Stage: GREEN
Depends on: [4.4](4.4-api-exec.md)
- [x] Every rejected `/api/exec` input logged (server console)
- [ ] Structured logging: every rejected `/api/exec` input logged
## Verify
```bash
# attempt injection payloads against /api/exec; all rejected, all logged
curl -X POST https://riotpiao.com/api/exec -d '{"cmd":"get pods; rm -rf /"}'
```
Done — `console.warn` on every reject branch in [app/api/exec/route.ts](../app/api/exec/route.ts). Mock only: plain console output, not the structured/shipped logging pipeline a real backend needs — see [REQUIREMENTS.md](REQUIREMENTS.md).