Vlaander
← All engines

ORC · Systems Infrastructure — Agent Mesh Substrate

Orchestration Serialization Engine

An in-process agent-mesh substrate in stable Rust (1.75 or newer): a Cargo workspace of six library crates plus a reference operator crate.

Maturity. Vlaander's internal review (7 October 2026) found three medium and three low findings. The source you receive (commit 92be780, 11 October 2026) fixes both medium defects (a scheduler shutdown race in which Spawner::spawn could return Ok for a task that never ran, and an operator node left permanently unscheduled after a panic in its turn) and two of the low ones, each with a regression test except the 32-bit decoder fix. The third medium finding, drain throughput, was addressed by later work on the drain's hot path. Still open: one low finding (a crate manifest describes CRC-32 as integrity) and four edge cases reported by the review but not reproduced; see the pending list below.

Overview

Six library crates: orc-core (typed IDs, a hybrid logical clock and a shared error type), orc-arena (a bump arena with an atomic compare-and-swap cursor), orc-codec (versioned archives with a header carrying magic, schema id, version and length, then the body and a CRC-32), orc-state (an epoch-versioned key/value store with copy-on-write snapshots and optimistic transactions), orc-router (bounded mailboxes with four strict-priority tiers, batch sends and topic fan-out) and orc-sched (a work-stealing thread pool on std::thread, built on crossbeam-deque). A seventh crate, orc-operator, wires them into a reference four-node drain and carries the orc-operator and orc-bench binaries.

Key properties are each covered by a named test. Resetting the arena needs exclusive access, so a reference into it cannot outlive a reset; two compile-fail doctests check this. Clock timestamps keep increasing when the injected wall clock goes backwards. The decoder rejects a wrong schema, wrong version or bad CRC with distinct errors, and rejects truncation, trailing bytes and bad magic. A concurrent test checks that readers never see a partially applied multi-key transaction. Topic fan-out shares one reference-counted allocation instead of copying the bytes. A task accepted by the scheduler runs even if it races shutdown.

Not included: network transport, cluster membership or consensus, durable persistence, an async runtime, a multi-tenant security model, and metrics or tracing exporters. ORC is a single-process library; these are left to the application that embeds it.

The problem

An in-process agent mesh needs an allocator, logical clocks, a versioned message format, shared state with consistent reads, prioritised mailboxes and a thread pool before any domain logic can run. ORC provides these as one tested Rust workspace for a single process.

What it does

  • Six library crates: identity, clock and errors; bump arena; versioned archive codec; epoch-versioned state store; four-tier priority router; work-stealing scheduler.
  • A reference operator crate with a four-node drain binary (orc-operator) and a benchmark binary (orc-bench).
  • Arena reset takes exclusive access, so a reference into the arena cannot outlive a reset (checked by compile-fail doctests).
  • Hybrid logical clock timestamps that keep increasing when the wall clock goes backwards.
  • Archives with a wrong schema, wrong version or bad CRC-32 are refused with distinct errors. CRC-32 detects corruption, not deliberate tampering.
  • Snapshot-isolated state reads: a concurrent test checks that no partially applied transaction is observable.
  • Topic fan-out shares one reference-counted payload instead of copying bytes; batch sends take one route lookup, one lock and one clock read per batch.

Performance

Measured 2026-10-11
MetricFigureBasis
Four-node drainAbout 2,490,000 payloads per second (median of 5 orc-bench invocations, 4 workers; invocation medians 2,147,044–2,621,172)Measured by Vlaander
Codec round-trip, single threadAbout 7,350,000 records per second (encode, then fully verified decode; median of 5 orc-bench invocations, invocation medians 5,315,761–7,776,697)Measured by Vlaander
Drain vs crossbeam-channel, like-for-likeSending one record at a time on both sides, ORC ran at 1,426,275 payloads/s against 1,514,956 for the same four-node pipeline on crossbeam-channel and std threads: about 7% slower (7 rounds, both pinned to the same 2 vCPUs). Batched, ORC's default of 64 records per send against crossbeam's one at a time, which is not like-for-like: 1,969,089 against 1,491,873Measured by Vlaander
Test suite78 tests (68 unit, 4 integration of which 2 end-to-end and 2 regression, 6 doctests), 0 failures on Rust 1.75 and 1.99Measured by Vlaander
LintNo findings under clippy::pedantic with warnings denied, all targets, on Rust 1.75 and 1.99Measured by Vlaander
Date
2026-10-11
Hardware
AMD EPYC 7763, GitHub Codespace (shared Azure VM), 4 vCPU (2 cores), 15 GiB
Toolchain
rustc 1.99.0 stable (and 1.75.0 for the minimum-version check), default release profile (no LTO, no target-cpu), --locked
Source archive SHA-256
0332b972320864188fcc99918852e71cb6c3ec1a4747da0ac1d64fe98f968c21
Method
Built from the delivered source archive, extracted into an empty directory; packing the same commit twice gave a byte-identical archive. Tests: cargo test --release --locked on Rust 1.99.0 and 1.75.0. Lint: cargo clippy --locked --all-targets with -D warnings -W clippy::pedantic on both. orc-bench: 5 separate invocations, each one warm-up and five timed runs reporting the median. Drain: 200,000 payloads with 64-byte bodies, 64 keys, batch 256, 4 scheduler workers, the producer injecting 64 records per send, timed from first injection to idle, including producer-side encoding. Codec: 2,000,000 records with 64-byte bodies on one thread. Head-to-head: Vlaander's review harness, linked against the archive's crates, runs the same four-node topology on crossbeam-channel 0.5.15 and std threads (bincode 2 with the same CRC-32 framing; ingress, two workers flushing per-key counts to a shared map every 256 records, a sink checking per-key order). Both sides were pinned to the same 2 vCPUs, over 7 interleaved rounds of the one-record and the 64-record ORC variants; each round is the median of 5 alternating ORC and crossbeam runs, and the figure is the median across rounds.
  • Measured on the archive above. The archive delivered since 21 October 2026 (SHA-256 97186939b61a857ff9555886abdd7f18c0a45add55ffa9f581875ff5753fec61) was rebuilt from it with only its LICENSE file rewritten for licensing; the code, tests and benchmark tools are byte-identical.
  • The machine is a shared cloud VM (a GitHub Codespace) and was not idle: the load average was 3.0–4.3 during these runs, from other workloads on the same 4 vCPUs. Expect at least ±10% run-to-run noise; the codec's invocation medians spread from 5.3 to 7.8 million records/s.
  • The drain uses one scheduler worker per available CPU by default, so it is slower on fewer cores. Pinned to 2 vCPUs (2 workers), orc-bench gave invocation medians of 1,840,350–2,019,445 payloads/s on the drain and 5,280,178–5,369,047 records/s on the codec.
  • The like-for-like crossbeam figure is the fair comparison: there, ORC is about 7% slower per round (range 4–9%). ORC also does more per record than the crossbeam pipeline: hybrid-logical-clock stamping, four-tier priority mailboxes and a snapshot-isolated store commit per batch. The batched figure is faster than crossbeam only because ORC's producer sends 64 records per call there.
  • This source reworks the drain's hot path: batch sends with one route lookup, lock, id block and clock read per batch; workers forward each turn's output as one batch per destination; receivers are woken only when one is blocked; and the store copies its key map only when a reader holds the current snapshot. In an interleaved comparison on 2 vCPUs, the previous source with the review fixes measured a median of 352,980 payloads/s on the drain, against 1,883,158 for this work; the codec was unchanged within noise.
  • The source delivered until 11 October 2026 (archive c0ca0059…, without the review fixes or the drain rework) measured 640,000–700,000 payloads/s on the drain and about 6,800,000 records/s on the codec on 5 October, with Rust 1.83 and 4 workers.
  • In the same harness, ORC's codec ran about 15% behind bincode 2 with the same CRC-32 framing on 16- and 64-byte bodies, level at 1 KiB and ahead at 64 KiB, and ahead of postcard at every size.
  • The catalogue's earlier figures (about 70,000 payloads/s and 2,200,000 records/s) were not measured on this code and are withdrawn.
  • The state store copies its key map on a commit whenever a reader holds the current snapshot, so it suits small control state, not large data sets.
  • The router uses strict priority: sustained high-priority traffic can starve lower tiers.

Measured figures were produced by Vlaander on the hardware above from the source archive you would receive. The benchmark tools ship with that source, so you can rerun them after delivery; nothing can be run before purchase. Any performance data is illustrative only and not a guarantee of your results. No refund is available after delivery, except where a remedy cannot lawfully be excluded.

Value in your own metrics

Supply-chain / dependency surface
2 direct dependencies (crossbeam-deque, crc32fast) and 5 third-party crates in the resolved tree, all MIT OR Apache-2.0, pinned by a committed Cargo.lock, listed in SBOM.md, with their licence texts in THIRD_PARTY_NOTICES.
Memory-safety surface
Every crate except orc-arena forbids unsafe code. orc-arena has 4 unsafe sites, each with a SAFETY comment; its tests pass under Miri.
Scope delivered
Arena, logical clock, codec, state store, router and scheduler in one workspace, with a reference operator that exercises them together end to end.

Assurance and build

Language
Rust 1.75+ (stable)
Build
clippy::pedantic with -D warnings: no findings on Rust 1.75 and 1.99, all targets (2 mut_from_ref allows in the arena, each justified)
Memory safety
#![forbid(unsafe_code)] in every crate but orc-arena; its 4 unsafe sites carry SAFETY comments; Miri reports no undefined behaviour in its tests (7 October review; the arena's code is unchanged since, apart from one test assertion)
Tests
78 (68 unit, 4 integration, 6 doctests), all passing on Rust 1.75 and 1.99
Test coverage
Lines 92.0%, functions 90.4% of the library code in the 7 crates' src (in-file test modules excluded; the orc-operator and orc-bench binaries, at 0%, excluded), from the project's own tests (72 passing; the 6 doctests passed but were not instrumented). No branch figure: that needs the nightly toolchain, and this was measured on stable Rust 1.100 with cargo-llvm-cov 0.9.1, by Vlaander on the delivered archive, 16 November 2026
Dependency surface
2 direct, 5 in the resolved tree · all MIT OR Apache-2.0 · SBOM.md · THIRD_PARTY_NOTICES
Internal review
Vlaander quality gate, 7 October 2026: 0 critical, 0 high, 3 medium, 3 low findings. Fixed in the delivered source, with regression tests: the scheduler shutdown race and the stranded operator node (both medium), and a panic in Mailbox::recv_timeout with Duration::MAX (low). Also fixed, without a regression test because it needs a 32-bit runtime: a frame-length overflow in the decoder on 32-bit targets such as wasm32 (low). Drain throughput (medium) was addressed by later work and is now about 7% behind a crossbeam-channel pipeline like-for-like. Open: CRC-32 described as integrity in a crate manifest (low)
Source archive SHA-256
97186939b61a857ff9555886abdd7f18c0a45add55ffa9f581875ff5753fec61

Releases are not yet cryptographically signed, and no release manifests or external audit summaries are published. Check the source tarball you receive against its SHA-256 in Schedule 1 of your Licence Agreement, which you see before you sign.

Scope and maturity

What is real today, what is deliberately excluded, and what is pending — published unprompted.

Included today

  • All six library crates and the reference operator crate, with README, ARCHITECTURE, BENCHMARKS, SBOM and THIRD_PARTY_NOTICES documents.
  • 78 tests, including an end-to-end four-node drain that checks exactly-once delivery, rejection of corrupt archives and per-key order, and regression tests for the review's fixes; no clippy::pedantic findings on Rust 1.75 and 1.99.
  • A resolved dependency tree with no copyleft licence in it.

Explicitly scoped out

  • No network transport, cluster membership or distributed consensus.
  • No durable persistence, async runtime, multi-tenant security model, or metrics and tracing exporters.
  • CRC-32 detects accidental corruption only. Archives carry no keyed MAC or signature, so anyone who can modify an archive can make it pass.

Pending

  • The orc-codec crate manifest still describes CRC-32 as integrity; it detects corruption only (low finding, open).
  • Reported but not reproduced by the review, and not fixed: clock wrap at u64::MAX in extreme settings, Store::commit accepting a transaction from another store, a malformed archive with a valid CRC counted as neither delivered nor rejected, and degenerate drain settings (very large body length or payload count) that can overflow or exhaust memory. A key count of zero, the review's reproduced case, is fixed.
  • No cargo-deny or cargo-audit configuration, and the README's build commands omit --locked; RustSec advisory status has not been checked.

Who it's for

  • AI agent-platform companies building an in-process orchestration layer in Rust.
  • Infrastructure vendors wanting a permissively licensed, low-dependency Rust core beneath a proprietary product.
  • Teams with a strict supply-chain posture, where five third-party crates with no copyleft is a requirement.

Before you buy

  1. Confirm that transport, persistence, consensus, async runtime, security model and observability are ones you intend to own.
  2. Plan to handle the open items in the pending list yourself; the delivered source does not fix them.
  3. Treat the measured figures as valid for the machine above only; drain throughput depends on core count, and like-for-like it is slightly behind a plain channel pipeline.
  4. Review the SAFETY comments on the four unsafe sites in orc-arena as part of code diligence.
  5. Verify the SBOM and the copyleft-free claim with your own licence-scanning tooling, and run cargo-audit.

What you get

  • The asset's source, licensedSubject to the Licence Agreement, Vlaander grants the verified Buyer a perpetual, worldwide, non-exclusive, non-transferable licence to use, copy and modify the Asset, build it into the Buyer’s own products, and run, host and distribute those products to the Buyer’s customers in non-source form. The licence is for one company: it doesn’t cover affiliates. The source code stays confidential to the Buyer’s own staff and contractors, and may not be passed on, published or resold. Vlaander keeps ownership and licenses the same Asset to other businesses.
  • Its testsThe test suite the published assurance claims rest on, as delivered in the source archive.
  • Its audit artefactsSpecifications, model-checking output, reviews and the software bill of materials, where the asset has them.
  • Not includedThird-party and open-source materials are not sold, assigned or licensed by Vlaander. They remain under their own licences, listed in each asset’s software bill of materials (SBOM.md in the archive), and the Buyer is responsible for complying with those licences.

Licence

$990 paid once · or ₦1,336,500

Included

  • The engine's source archive, with its tests and audit artefacts, matching the SHA-256 in Schedule 1
  • A perpetual, non-exclusive licence for one company under the Licence Agreement

Not included

  • No updates
  • No support
Buy a licence

One price per engine, in US dollars, paid once. The source is what you get: Vlaander does not sell updates, support or bundles. The Licence Agreement you sign is the binding text.

First described in: VLA-GEN catalogue, 3 August 2026, §3.8. Revised by Vlaander against the delivered source; every figure is labelled with its basis.

From test to source

  1. 01

    Check

    Read the engine's page: what Vlaander measured and on which hardware, what it has not measured, and the open review findings. Nothing runs before purchase.

  2. 02

    Buy

    Verified businesses only. Choose an engine, give your company's details, have your authorised signatory sign the Licence Agreement, then pay the invoice in naira by bank transfer, or in USDC on Polygon. Once the payment is verified, your account shows Paid.

  3. 03

    Receive

    We confirm the funds and release the source tarball to you. Delivering, then Download ready. Check it against the SHA-256 in Schedule 1, then rerun the tests and benchmarks yourself.