Repository navigation
Vx Oracle and Client
Amp edited this page Nov 18, 2026
·
1 revision
vx/ · two Vx parts, built as shared libraries with a C ABI that Rust binaries host (spec 11 §5.1)
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 |
- 11 §5.1 (boundary, export allowlist
pbo_*/pbv_*, pinning by hash) - 11 §5.2 (
vyrn-vx-oracle, the sequential reference book; budgetBLD_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-nnworkarounds and FRICTION.md), §5.7 (the 1B msgs/s requirement, a budget)
| 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 |
-
vyrn-vx-oracle: Implemented. The oracle runs against the 14 scenarios intests/golden/scenarios/through Crate-vyrn-sim. That test skips itself when the library has not been built. No CI workflow runsvx/build.sh. -
vyrn-vx-client: Stub. There are no sources.build.shskips it ("Step 4 (the TSan build of the client) lands with the client's sources"), andvyrn-replica'svxmodule is a 1-line placeholder. -
Host coverage.
vx/build.shskips any host that has novxc_blake3pin, unlessVYRN_REQUIRE_VX=1is 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).
- Code: vx/
- Spec: Spec-11-Build, Spec-05-Engine, Spec-01-Conventions
- Related: Crate-vyrn-sim, Crate-vyrn-replica, Crate-vyrn-bench, CI-Gates-and-Releases, Known-Gaps
Overview
Working on VYRN
Spec
- 00 Index
- 01 Conventions
- 02 Requirements
- 03 Architecture
- 04 Protocol
- 05 Engine
- 06 Platform
- 07 Replication
- 08 Epochs
- 09 Chain
- 10 Accounts, Risk, MD
- 11 Build
- 12 Commitment
- 13 Availability
- 14 Envelope
Engine crates
Other crates
- vyrn-nic
- vyrn-log
- vyrn-data
- vyrn-consensus
- vyrn-replica
- vyrn-epoch
- vyrn-chain
- vyrn-md
- vyrn-sim
- vyrn-bench
Binaries
- vyrn-seq (stub)
- vyrn-validator (stub)
- vyrn-admin
Outside Rust
Reflects main at a9f0d61.