05. System Architecture
Stable component contractsThe public Xurcroh package is a thin facade over xurcroh internals. It normalizes named model registries and heterogeneous worker configurations, validates security and parallelism, and exposes sync, async, streaming, image, and video interfaces. It never manufactures response text or media.
Ownership boundaries
Python owns the SDK, model adapters, controller, and lifecycle. Rust owns binary framing, directional keys, replay protection, onion metadata, and QUIC. C++/CUDA owns zero-on-free, shared-memory scrubbing, uniform page touch, and ChaCha20 masking. The web manual owns only explanatory simulations.
The whole flow, live. Choose a question and watch it get shuffled, split, sealed in three layers, routed through relays, computed inside enclaves, checked and put back together; then switch “Whose eyes?” to see what a worker, two workers together, a relay or the network would get. The questions and answers are prepared, the relays and enclaves are stand-ins, the arithmetic and encryption are real, and all of it runs in your browser.
Watch it live. Choose a question and follow it through the eight steps to the model's answer. No worker ever sees it.
You ask
Prompt How is my prompt kept from the workers?
What leaves your device nothing yet
You get
- Answers checked
- 0
- Rejected
- 0
What each worker sees
- Worker (0,0)
- Worker (0,1)
- Worker (1,0)
- Worker (1,1)
Real numbers from this step: noise. A tick means the worker's signed report was verified.
Step 1 of 8 · Split. Your device shuffles its numbers for the first token and cuts them into two random pieces.
Why it matters Shuffling is a disguise; the random pieces are what hide your data. One piece alone is noise.
- ReadableHow is my prompt kept fro…
- Numbers—
- Shuffled—
- Two pieces—
- Sealed ×3—
- In enclave—
- Checked—
- Answer—
- Your device: The output as it forms. It is decoded from the four recombined results.
- Relay 1: What this relay sees: sealed bytes it cannot read.
- Relay 2: What this relay sees: sealed bytes it cannot read.
- Relay 3: What this relay sees: sealed bytes it cannot read.
- Worker (0,0): What Worker (0,0) sees: its pieces and its result, which are random numbers.
- Worker (0,1): What Worker (0,1) sees: its pieces and its result, which are random numbers.
- Worker (1,0): What Worker (1,0) sees: its pieces and its result, which are random numbers.
- Worker (1,1): What Worker (1,1) sees: its pieces and its result, which are random numbers.
- piece 0: One random piece of the input.
- piece 1: The other random piece of the input.
About this simulation
Simulation in your browser. The answer, picture and clip are prepared toy models, and the relays and enclaves are stand-ins inside this page; the share arithmetic, the three layers of encryption and the signature checks are real. Pace is set for viewing and measures nothing. The production engine is hardware-validated; this page is a teaching simulation, not a benchmark.
Schematic drawing, step by step
Walk through the 7 steps with Play or Next, or point at a box to see what it connects to.
The model's answer: Your device splits every number into two random shares. Each worker gets one share of your data and one share of the weights, and a single share is uniformly random on its own. Your device checks the four products and adds them to get the result. This holds as long as the workers do not pool their shares.
Choose a question, step through, and open any part to see what it holds for that question. The questions and answers are prepared; the numbers are computed in your browser.
Runtime reliability
Worker registration is signed and fresh. Topology construction checks model capability and TP/EP group constraints. Admission uses bounded per-model semaphores. Managed streams release resources even when abandoned before their first token. Alternates are tried before output; retry stops after partial output to avoid duplicates.
The public API reference shows the exact developer-facing contract, while secure transport explains the native data plane.