Skip to content

Commit 6b170f8

Browse files
chore(v→zig): delete V-lang API shim, redirect docs to Zig FFI (#78)
Per estate-wide owner directive (2026-05-28): Zig is the default for APIs/FFIs; Idris2 owns ABIs. Deletes api/v/stapeln.v (thin V wrapper around the existing ffi/zig/). Doc sweep: api/README.adoc rewritten to describe the Zig FFI as the canonical adapter; stapeln.toml comment updated from api/v/ to ffi/zig/. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3941306 commit 6b170f8

3 files changed

Lines changed: 12 additions & 54 deletions

File tree

api/README.adoc

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@
22
= api/
33
API contract definitions and interface specifications for stapeln.
44

5-
Contains V-language interface descriptions (`.v`) used to define the external API
6-
surface before implementation. These serve as machine-readable interface contracts
5+
Contains Zig API interface descriptions used to define the external API surface
6+
before implementation. These serve as machine-readable interface contracts
77
independent of any single backend implementation.
88

99
== Contents
1010

11-
* `v/stapeln.v` — V-language API surface definition for the stapeln backend.
11+
* `zig/` — Zig API surface for the stapeln backend (see `ffi/zig/`).
1212

1313
== Relationship to Backend
1414

1515
The `api/` tree defines *what* the API does; `backend/` contains the Elixir/Phoenix
16-
implementation of *how* it does it. Changes to `api/stapeln.v` should be reflected
17-
in the corresponding Phoenix controllers and GraphQL schema (`backend/schema.graphql`).
16+
implementation of *how* it does it. Changes to the Zig API surface should be
17+
reflected in the corresponding Phoenix controllers and GraphQL schema
18+
(`backend/schema.graphql`).
1819

19-
== Note on V-lang
20+
== Language Policy
2021

21-
V-lang files here are interface definitions retained for documentation purposes.
22-
Per estate policy (2026-04-10), new V-lang code is not introduced; migration to
23-
Zig/Rust interface tooling is planned. See the root `ROADMAP.adoc`.
22+
Per estate policy (2026-05-28), Zig is the default language for all APIs and
23+
FFIs across the estate; Idris2 owns ABI contracts. The legacy V-language
24+
interface file (`api/v/stapeln.v`) was removed in the V-lang remediation pass
25+
— the live Zig FFI at `ffi/zig/` is the canonical adapter.

api/v/stapeln.v

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

stapeln.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# container-stack/rokur/ — Deno secrets management gate
1919
# dom-mounter/ — ReScript DOM mounting library
2020
# ephapax-modules/ — Ephapax linear type modules
21-
# api/v/ — V-lang API bindings
21+
# ffi/zig/ — Zig FFI (canonical API surface; Idris2 owns ABI)
2222

2323
# ╔═══════════════════════════════════════════════════════════════════════════╗
2424
# ║ Metadata ║

0 commit comments

Comments
 (0)