Skip to content

Vx Oracle and Client

Amp edited this page Nov 18, 2026 · 1 revision

Vx oracle and client

vx/ · two Vx parts, built as shared libraries with a C ABI that Rust binaries host (spec 11 §5.1)

Purpose

11 §5.1: "Vx code ships as two shared libraries with a C ABI, and Rust binaries host them." The libraries are shared and not static because parts of the Vx runtime are written in Rust. A static link would put two copies of Rust's runtime symbols into one binary.

Artifact Built from Linked into (11 §5.1) Used for
libvyrn_vx_oracle vx/vyrn-vx-oracle vyrn-sim, vyrn-bench, engine tests Per-message differential testing (11 §6.3)
libvyrn_vx_client vx/vyrn-vx-client vyrn-replica, vyrn-validator The replay engine of the Vx validators

Spec sections

  • 11 §5.1 (boundary, export allowlist pbo_* / pbv_*, pinning by hash)
  • 11 §5.2 (vyrn-vx-oracle, the sequential reference book; budget BLD_ORACLE_LINES_MAX = 1,500 lines)
  • 11 §5.3 (vyrn-vx-client, the replay-only validator engine)
  • 11 §5.4 (build), §5.5–§5.6 (W-nn workarounds and FRICTION.md), §5.7 (the 1B msgs/s requirement, a budget)

Files

Path What
vx/vyrn-vx-oracle/oracle.vx The oracle, 999 lines. Exports pbo_abi_version, pbo_new, pbo_apply, pbo_state_bytes, pbo_free
vx/vyrn-vx-client Only .gitkeep
vx/abi/pbv.h The C ABI. PBO_ABI_VERSION 1, with static size checks (pbo_config 400 B, pbo_event 56 B, pbo_record 32 B). The client section is marked "Not built yet"
vx/build.sh The only build path. Checks the vxc hash, runs vxc --audit against AUDIT.allow, links with a version script, checks nm -D, writes target/vx/manifest.toml
vx/TOOLCHAIN Pins vxc v0.0.4 (tag object 3a89e3c7…, commit c6dffec7…) and one vxc_blake3.x86_64-linux
vx/AUDIT.allow No entries: "The oracle has none: no assume, no pointer requires."
vx/FRICTION.md Workarounds W-09 to W-15

Status on main (a9f0d61)

  • vyrn-vx-oracle: Implemented. The oracle runs against the 14 scenarios in tests/golden/scenarios/ through Crate-vyrn-sim. That test skips itself when the library has not been built. No CI workflow runs vx/build.sh.
  • vyrn-vx-client: Stub. There are no sources. build.sh skips it ("Step 4 (the TSan build of the client) lands with the client's sources"), and vyrn-replica's vx module is a 1-line placeholder.
  • Host coverage. vx/build.sh skips any host that has no vxc_blake3 pin, unless VYRN_REQUIRE_VX=1 is set. Only x86_64-linux is pinned. FRICTION.md W-10: "aarch64 and macOS hosts skip the oracle until their hash is added".
  • Workarounds. FRICTION.md: "Their upstream issues are not filed yet … so each is open, issue to file."
ID Missing in vxc v0.0.4 Workaround site
W-09 Hidden visibility for non-pub functions vx/build.sh (version script)
W-10 A vxc release binary for Linux vx/TOOLCHAIN, vx/build.sh
W-11 Checked integer arithmetic oracle.vx (overflowing_*, PBO_E_FAULT)
W-12 Hex integer literals oracle.vx (decimal constants)
W-13 Field assignment through an indexed raw pointer oracle.vx (offset_mut)
W-14 Pointer-to-pointer as casts oracle.vx (typed let)
W-15 vxc finding its own LLVM vx/build.sh (LLVM_CONFIG_PATH)

CI job gates runs tools/vx-friction. It checks that every VX-WORKAROUND marker matches its FRICTION.md entry (11 §5.6).

Links

Clone this wiki locally