Skip to content

chore(v→zig): unify API gateway + client SDK in Zig, delete V-lang trees#66

Merged
hyperpolymath merged 1 commit into
mainfrom
chore/vlang-remediation
May 28, 2026
Merged

chore(v→zig): unify API gateway + client SDK in Zig, delete V-lang trees#66
hyperpolymath merged 1 commit into
mainfrom
chore/vlang-remediation

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

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 buildzig 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

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>
@hyperpolymath
hyperpolymath merged commit df51142 into main May 28, 2026
9 of 27 checks passed
@hyperpolymath
hyperpolymath deleted the chore/vlang-remediation branch May 28, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant