veko
ORO Homoiconic Language • Custom VM • Wasm 3.0 (vvm) • Native x86_64 & arm64

Administrator & Security Governance Guide

Operational guidance for building, verifying, configuring, and governing Veko 1.0 workloads across local 64-bit VKO VM deployments (oro_vm.vk), vvm WebAssembly 3.0 zero-trust sandboxes (codegen.vk), and standalone native executables (native_emit.vk & arm64_emit.vk across win-x64, win-arm64, linux-x64, linux-arm64, and macos-arm64).

CAPABILITY GOVERNANCE

Defense-in-Depth Capability Gates, .secret Firewall & Supply-Chain Trust

Compile-time allow-caps enforcement, cryptographic taint tracking, zero-trust Wasm sandboxes, and signed VKP1 packages.

Interactive SVG • Click any node (5 components)
COMPILE-TIME POLICY & SUPPLY CHAIN veko.vk + types.vk + pkg/vkp.vk RUNTIME SANDBOXES & SINK FIREWALLS oro_vm.vk + vvm + native PAL Static audit .secret blocked Verified deps Cap mask Sink checks Manifest Policy veko.vk allow-caps .fs .clocks .env .net .exec .ui FFI Isolation Default-Deny .ffi Gate --allow-ffi / VEKO_ALLOW_FFI=1 Supply Chain Signed VKP1 Bundles Merkle SHA-256 + Ed25519/ML-DSA Taint Firewall Compile + Runtime .secret Zero Leakage Across Sinks Runtime Isolation VM & Wasm HostSandbox --allow-* + fuel + SSRF block
Components:
Manifest Policy
veko.vk allow-caps
types.vk main.vk
Component 1 of 5
Architectural Role & Purpose

Declares the exact OS capabilities permitted inside the workspace module graph.

Contextual Description & System Interaction

Prevents utility libraries from silently opening sockets or spawning processes.

Core Functionality & Mechanics
  • Transitively audits imported modules for unauthorized syscalls
  • Enforces canonical real-path confinement against ../ traversal
  • .exec and .ui are explicit opt-in capability bits
FFI Isolation
Default-Deny .ffi Gate
lib/ffi.vk types.vk
Component 2 of 5
Architectural Role & Purpose

Keeps foreign C-ABI shared libraries disabled by default and banned in Wasm.

Contextual Description & System Interaction

Ensures pure-Veko builds remain memory-safe and self-contained by default.

Core Functionality & Mechanics
  • Requires explicit CLI/manifest opt-in to load .dll/.so/.dylib
  • Uses static AOT trampolines (zero JIT RWX pages)
  • Preserves 100% static Linux ELF64 when .ffi is unused
Supply Chain
Signed VKP1 Bundles
lib/pkg/vkp.vk
Component 3 of 5
Architectural Role & Purpose

Verifies cryptographic package signatures against pinned trust-keys before compilation.

Contextual Description & System Interaction

Eliminates unsigned dependency injection across teams and CI pipelines.

Core Functionality & Mechanics
  • Computes deterministic Merkle root over sorted .vk module entries
  • Supports classical Ed25519 and post-quantum ML-DSA-65 signers
  • veko pkg verify rejects tampered bytes or untrusted keys
Taint Firewall
Compile + Runtime .secret
types.vk runtime.vk
Component 4 of 5
Architectural Role & Purpose

Blocks secret-tagged values from leaving process memory in cleartext.

Contextual Description & System Interaction

Makes accidental API key or private key exfiltration a compile/runtime error.

Core Functionality & Mechanics
  • Statically & dynamically blocks net/*, http/*, os/write-file, json/encode
  • Blocks chan/send, spawn captures, ui/present, and ffi/* calls
  • Explicit unsealing only via crypto/seal/with-open scoped callback
Runtime Isolation
VM & Wasm HostSandbox
oro_vm.vk runtime_pal*.vk
Component 5 of 5
Architectural Role & Purpose

Enforces defense-in-depth host policies at runtime for scripts and plugins.

Contextual Description & System Interaction

Lets operators run third-party Veko workloads safely on shared infrastructure.

Core Functionality & Mechanics
  • Blocks loopback/RFC1918/link-local SSRF unless --allow-private-net
  • Caps Wasm CPU fuel (--fuel) and linear RAM pages (--mem-pages)
  • Confines file reads/writes to --allow-fs=<dir> chroot

1. Build & Verification Pipeline

Veko ships with a pure-.vk build orchestrator (build.vk) that enforces static checks, multi-suite verification, documentation hygiene, and S1 == S2 self-hosting convergence:

Command / Target Action Purpose
check (veko run build.vk -- check) Static DAG check Validates all 76 compiler/runtime modules (src/main.vk) and strict-typed examples
test (veko run tests/run_tests.vk) Runs 18 test suites Validates lexer, Pratt parser, types/secrets, 64-bit VKO, stdlib, PQC, TLS 1.3, reactor, durable workflows, UI/X11/clipboard/FFI, flamegraphs, veko.lock, and 3-track parity
docs (veko docs) Compiles dist/docs/ Renders isolated End-User and Technical HTML suites + interactive SVG diagrams + hygiene checks
build (veko run build.vk -- build) Builds binary + docs Refreshes HTML docs and compiles a 2-stage S1 == S2 native veko binary into dist/bin/
fixed-point Fixed-point gate Verifies byte-for-byte S1 == S2 convergence for native machine code and 64-bit VKO
all (veko run build.vk -- all) Full release gate Runs check, test, docs, and build sequentially

2. Three-Backend Operational Profiles

Operators select among Veko's three execution tracks depending on trust boundary, portability, and deployment target:

  • Track A — 64-Bit VKO Bytecode VM (oro_vm.vk / --vm / .vko): Fast local tooling, interactive veko repl, doctests, dynamic eval, and precompiled 64-bit VKO execution with runtime --allow-* capability flags.
  • Track B — WebAssembly 3.0 Sandbox (codegen.vk / --wasm / vvm): Zero-trust execution for untrusted plugins and multi-tenant workloads inside vvm's HostSandbox, enforcing --fuel, --mem-pages, --allow-fs=<dir>, --allow-hosts, SSRF blocking, and strict .ffi prohibition.
  • Track C — Native x86_64 & AArch64 (native_emit.vk + arm64_emit.vk / --native): Standalone Windows PE32+ (--target=win-x64 & --target=win-arm64 0xAA64, optional --gui), static zero-libc Linux ELF64 (--target=linux-x64 & --target=linux-arm64), and ad-hoc SHA-256 signed 16 KiB Apple Silicon Mach-O (--target=macos-arm64) binaries with CPUID AVX2/SSE2/AES-NI, OS-native readiness reactors (epoll/kqueue/IOCP), and opt-in .ffi shared library trampolines.
Operational Dimension Track A: 64-Bit VKO VM (--vm) Track B: vvm Wasm 3.0 (--wasm) Track C: Native x86_64 & ARM64 (--native)
Trust Boundary Trusted local CLI scripts, tools, and interactive REPL Untrusted plugins, multi-tenant edge rules, and sandboxed tasks Trusted standalone OS executables (zero external compiler, JVM, or GC)
Host Interface Guarded VmPolicy OS PAL (fs, net, reactor, offscreen ui) WASI 0.3 + explicit HostSandbox capability allowlists (.ffi forbidden) Win32 IAT (win-x64/win-arm64), direct Linux syscalls (linux-x64/linux-arm64), or libSystem (macos-arm64)
Resource Metering --fuel=<n> instruction quota + VmPolicy sleep/output caps + deterministic ORO cleanup vvm --fuel budget + --mem-pages ceiling + --check-slabs leak gate Thread-local 12-bucket ORO slab free-lists + deterministic .secret zero-wipe
Supply Chain Verifies veko.vk trust-keys on .vkp bundles Verifies veko.vk trust-keys on .vkp bundles Verifies veko.vk trust-keys + emits SHA-256 LC_CODE_SIGNATURE on macos-arm64

3. Security, Capability & Secret Governance

Project Manifest Confinement (veko.vk)

Across all three backends, operators enforce static build-time confinement via veko.vk:

  • Canonical Path Confinement: Project root and every resolved .vk/.vko module path are verified via canonical real-path containment so symlink and ../ escapes are rejected before parsing.
  • Least-Privilege Capability Allowlisting (allow-caps):
    • .fs — Filesystem access (os/read-*, os/write-*, os/open, os/pread, os/pwrite, os/stat, etc.)
    • .clocks — Wall/monotonic clocks and sleeps (time/*)
    • .env — Environment variables and CLI args (os/getenv, os/args)
    • .net — TCP/UDP sockets, DNS, HTTP, and readiness reactor (net/*, http/*)
    • .exec — Child process execution (os/exec)
    • .ui — Native window surfaces (ui/*; Win32 user32.dll/gdi32.dll imported only when used)
    • .ffi — Foreign C-ABI shared libraries (ffi/*; denied by default unless allow-caps = [.ffi] or --allow-ffi is set; strictly forbidden on --wasm)
  • Signed 'VKP1' Package Pinning (trust-keys): Pinning trust-keys = ['ed25519:<hex>', 'mldsa65:<hex>'] inside veko.vk ensures every .vkp dependency is Merkle-verified against trusted publisher keys before loading.

Sensitive Buffer Zeroization & .secret Firewall

Unlike garbage-collected runtimes where keys linger in uncollected heap pages:

  • No SSO Escape + Volatile Zero-Wipe: Values from os/getenv/secret and bytes/with-secret always allocate flag_secret heap slabs whose full capacity is overwritten with zeroes before returning to any free-list.
  • Automatic Redaction: print, println, mold, and log/* redact .secret values to <secret>.
  • Compile-Time & Runtime Sink Blocking: Deep taint checks block .secret values from crossing net/*, http/*, spawn, chan/send, json/encode, os/write-file, ui/present, and ffi/*.

4. Troubleshooting & Diagnostics

Symptom Likely Cause Operator Resolution
unknown word 'n-1' Missing spaces around subtraction operator - Add spaces (n - 1); Veko treats n-1 as a kebab-case word
capability error: ... requires .ffi Foreign library call without explicit FFI opt-in Pass --allow-ffi or declare allow-caps = [.ffi] in veko.vk (native/VM only)
docgen hygiene: decorative Unicode emoji Emoji character introduced into Markdown or HTML docs Replace with plain text or inline vector SVG icon
docgen hygiene: forbidden source ext Non-Veko source filename leaked into docs Refer to pure-Veko modules (lexer.vk, parser.vk, oro_vm.vk, codegen.vk, native_emit.vk)
veko inspect unexpected precedence Missing (...) around compound math passed to prefix word Wrap compound inline expressions as (offset + 4)