chore(v→zig): unify API gateway + client SDK in Zig, delete V-lang trees#66
Merged
Conversation
Per estate-wide owner directive (2026-05-28): Zig is the default for all
APIs/FFIs/gateways/client SDKs; Idris2 owns ABIs. Replaces the legacy
V-lang API gateway and V client SDK.
Added:
* ffi/zig/ Unified Zig gateway (REST + GraphQL proxy to Rust core
+ Elixir orchestration) + C-ABI FFI library matching
the Idris2 ABI in src/abi/Foreign.idr. Real build.zig,
modules: config, proxy, router, graphql, main, ffi.
* connectors/clients/zig/ Full Zig client SDK mirroring the V SDK:
client, types, error, octad, drift, provenance,
search, vql, federation. build.zig + build.zig.zon.
Deleted:
* v-api-gateway/ Legacy V-lang API gateway (~390 LoC)
* connectors/clients/vlang/ Legacy V client SDK (9 modules)
Doc + config sweep:
* .machine_readable/ENSAID_CONFIG.a2ml: `v build` hook → `zig build`;
watch_extensions, panel descriptions, language list V→Zig
* 0-AI-MANIFEST.a2ml: SDKs list V→Zig
* .claude/CLAUDE.md: repo-structure SDK list V→Zig
* README.adoc: "V API gateway" → "unified Zig API gateway"
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 insrc/abi/Foreign.idr. Modules:config,proxy,router,graphql,main,ffi. Realbuild.zigreplaces 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. Includesbuild.zig+build.zig.zon.v build→zig build; SDK lists in.claude/CLAUDE.mdand0-AI-MANIFEST.a2mlupdated; README "V API gateway" → "unified Zig API gateway".Test plan
zig buildunderffi/zig/producesverisimdb-gateway+libverisimdb_ffizig buildunderconnectors/clients/zig/exposes theverisimdb_clientmodulecicd_rules/vlang_detected(in the parallel hypatia PR) does NOT flag this repo post-merge🤖 Generated with Claude Code