(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 -9
View File
@@ -1,14 +1,8 @@
# 4.6 — Namespace/resource-name validation by snapshot membership (GREEN)
# 4.6 — Namespace/resource-name validation by fixture membership (GREEN)
Phase: 4 — Terminal (Surface C)
Stage: GREEN
Depends on: [4.2](4.2-exec-test.md), [1.7](1.7-dto-allowlist.md)
- [x] Namespace and resource-name arguments validated by **set membership against the mock fixture** (`lib/clusterMock.ts`), not regex/escaping
- [ ] Namespace and resource-name arguments validated by **set membership against current snapshot**, not regex/escaping
## Verify
```bash
go test ./... -run TestExec -v
```
Done — implemented in [app/api/exec/route.ts](../app/api/exec/route.ts) (`namespaces.find(...)`). Real backend must validate against a live snapshot, not a static fixture — see [REQUIREMENTS.md](REQUIREMENTS.md).