Skip to content
System Architecture

05. System Architecture

Stable component contracts

The 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.

Whose eyes?

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.

  1. ReadableHow is my prompt kept fro…
  2. Numbers—
  3. Shuffled—
  4. Two pieces—
  5. Sealed ×3—
  6. In enclave—
  7. Checked—
  8. Answer—
  • readable: your device, verified results, checked enclaves
  • random pieces and the workers that hold them
  • sealed: encrypted on the way through the relays
  • something that failed a check
  • 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.
Try to break it:

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
Fortress system architectureThe client splits each activation into additive shares and sends one share to each of four role workers run by independent operators. Each worker holds one weight share, returns an exact product with a proof, and never sees the prompt, the full weights or the output. The client verifies every result before combining it. The controller only tells the client which workers are online and sees ciphertext.Your device: plaintext stays herePrompt, tokens, embeddingskept localSplit into additive sharesshare 0 + share 1 = activationVerify every worker resultreject on any mismatchCombine + nonlinearitysample the next tokennext layerController: a directory that sees only ciphertextSigned worker directorysees who is online and ciphertext sizeslook up workersRole workers: four independent operatorsWorker (0,0)activation share 0weight share 0Worker (0,1)activation share 0weight share 1Worker (1,0)activation share 1weight share 0Worker (1,1)activation share 1weight share 1encrypted sharesproducts + proofsNo worker holds two complementary shares; hiding needs non-collusion.

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.

Look inside:

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.

Figure 5.1: The client keeps plaintext, splits each activation into shares, and verifies what four independent role workers return. The controller is a directory that sees only ciphertext.

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.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical