Commit df51142
chore(v→zig): unify API gateway + client SDK in Zig, delete V-lang trees (#66)
## Summary
Estate-wide V-lang→Zig remediation per the 2026-05-28 owner directive
(Zig is the default for APIs/FFIs/gateways/SDKs; Idris2 owns ABIs).
Removes the legacy V-lang API gateway (`v-api-gateway/`) and V client
SDK (`connectors/clients/vlang/`) and replaces them with full functional
Zig implementations:
- **`ffi/zig/`** — unified Zig gateway (REST + GraphQL proxy to Rust
core + Elixir orchestration) plus C-ABI FFI library matching the Idris2
ABI in `src/abi/Foreign.idr`. Modules: `config`, `proxy`, `router`,
`graphql`, `main`, `ffi`. Real `build.zig` replaces the previous
unsubstituted scaffold.
- **`connectors/clients/zig/`** — full Zig client SDK mirroring the V
SDK 1-to-1: `client`, `types`, `error`, `octad`, `drift`, `provenance`,
`search`, `vql`, `federation`. Includes `build.zig` + `build.zig.zon`.
- **Config + doc sweep**: ENSAID hook `v build` → `zig build`; SDK lists
in `.claude/CLAUDE.md` and `0-AI-MANIFEST.a2ml` updated; README "V API
gateway" → "unified Zig API gateway".
## Test plan
- [ ] `zig build` under `ffi/zig/` produces `verisimdb-gateway` +
`libverisimdb_ffi`
- [ ] `zig build` under `connectors/clients/zig/` exposes the
`verisimdb_client` module
- [ ] Hypatia rule `cicd_rules/vlang_detected` (in the parallel hypatia
PR) does NOT flag this repo post-merge
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2fb3544 commit df51142
38 files changed
Lines changed: 1991 additions & 2217 deletions
File tree
- .claude
- .machine_readable
- connectors/clients
- vlang
- src
- zig
- src
- ffi/zig
- src
- test
- v-api-gateway
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments