Skip to content

Commit 6e09191

Browse files
chore(v→zig): delete V-lang API layer, collapse into Zig FFI block (#72)
## Summary Estate-wide V-lang→Zig remediation per the 2026-05-28 owner directive. - Deletes `api/v/src/ecm_api.v` + `ecm_api_test.v` (V-lang wrappers around the existing `ffi/zig/` adapter) - `TOPOLOGY.md`: collapses the two-layer "V API + Zig FFI" diagram into a single Zig API+FFI block - `Trustfile.a2ml`: drops the V language entry; the Zig FFI is now the canonical consumer-facing API ## Test plan - [ ] Hypatia rule \`cicd_rules/vlang_detected\` does not flag this repo post-merge - [ ] TOPOLOGY.md diagram renders correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fc2526d commit 6e09191

4 files changed

Lines changed: 4 additions & 359 deletions

File tree

TOPOLOGY.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@
1414
1515
1616
┌─────────────────────────────────────────────┐
17-
│ zig API LAYER │
18-
│ api/v/src/ecm_api.v │
19-
│ Consumer-facing types + classification │
20-
└──────────────────┬──────────────────────────┘
21-
22-
┌──────────────────┼──────────────────────────┐
23-
│ ZIG FFI BRIDGE │
17+
│ ZIG API + FFI BRIDGE │
2418
│ ffi/zig/src/main.zig │
2519
│ C-ABI ← generated/abi/robodog_ffi.h │
2620
└──────────────────┬──────────────────────────┘
@@ -77,12 +71,10 @@ IDRIS2 ABI (src/abi/)
7771
Formation Types ███░░░░░░░ 30% Coordinates, separation proofs
7872
FFI Declarations ███░░░░░░░ 30% Zig bridge bindings
7973
80-
ZIG FFI (ffi/zig/)
74+
ZIG API + FFI (ffi/zig/)
8175
Signal Classification ████░░░░░░ 40% 3 rules, band checking
8276
Distance / Separation █████░░░░░ 50% Ground + aerial, integer math
8377
Formation Computation ███░░░░░░░ 30% Line + circle, rest TBD
84-
85-
zig API (api/v/)
8678
ECM API ████░░░░░░ 40% Full type mirror, classify, recommend
8779
ABI Verification Types ███░░░░░░░ 30% Round-trip proofs
8880

api/v/src/ecm_api.v

Lines changed: 0 additions & 177 deletions
This file was deleted.

api/v/src/ecm_api_test.v

Lines changed: 0 additions & 163 deletions
This file was deleted.

contractiles/trust/Trustfile.a2ml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,8 @@ languages:
323323
memory_safety: "Compile-time bounds checking, no hidden allocations"
324324
abi_compat: "Native C ABI, zero runtime overhead"
325325

326-
- name: "V"
327-
role: "API layer (consumer-facing)"
328-
location: "api/v/"
329-
components: ["ecm_api", "crypto_api", "formation_api"]
330-
build: "v build api/v/"
331-
test: "v test api/v/"
332-
security:
333-
input_validation: "All external inputs validated at API boundary"
334-
abi_verification: "Types checked against Idris2 ABI definitions"
326+
# V-lang API layer removed 2026-05-28; the Zig FFI at ffi/zig/ is now the
327+
# canonical consumer-facing API per estate-wide Zig=APIs+FFIs policy.
335328

336329
---
337330
### [CONTAINER_SUPPLY_CHAIN]

0 commit comments

Comments
 (0)