Xybrid

Orchestrator

Policy evaluation and routing decisions

The Orchestrator is the brain of Xybrid. It coordinates pipeline execution by evaluating policies, deciding routing, and managing the execution lifecycle.

Responsibilities

The Orchestrator handles:

  1. Policy Evaluation - Should this data leave the device?
  2. Routing Decisions - Device, cloud, or integration?
  3. Execution Coordination - Run stages in sequence
  4. Telemetry - Emit events for observability

Execution Flow

For each pipeline stage, the Orchestrator follows this flow:

Policy Engine

The Policy Engine determines what data can leave the device:

Policy ResultEffect
AllowedRoute to best available target
DeniedForce local execution
TransformApply redaction before sending

Policies can be loaded from bundles or configured programmatically.

Routing Engine

When target: auto, the Routing Engine evaluates:

FactorHow It's Used
Local AvailabilityIs the model bundle cached locally?
Network RTTHigh latency (>200ms) favors local
Policy ResultDenied policies force local
Device MetricsBattery level, temperature

Routing Decisions

Event Bus

The Orchestrator emits events during execution:

EventWhen
PipelineStartPipeline begins
StageStartStage begins
PolicyEvaluatedPolicy check complete
RoutingDecidedTarget selected
ExecutionStartedModel inference begins
ExecutionCompletedModel inference done
StageCompleteStage finished
PipelineCompletePipeline finished

Subscribe to these events for logging, metrics, or UI updates.

Execution Modes

ModeDescription
BatchProcess complete envelopes
StreamingProcess audio chunks in real-time

On this page