(plan) convert original implement plan to mock api
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user