Skip to content

Architecture

Debuglet has three main parts: a client submits and reads measurements, a dispatcher coordinates them, and executors run the debuglets.

flowchart LR
Client[Client: dbl or Go application] -->|HTTPS API| Dispatcher
Dispatcher <--> |authenticated control paths| Executor
Executor --> Debuglet[Debuglet: WASI program]
Dispatcher --> DispatcherDB[(SQLite)]
Executor --> ExecutorDB[(SQLite)]
ComponentResponsibility
ClientCreates a payment intent, submits a debuglet, and reads its state and output.
DispatcherServes the HTTP API, authenticates accounts, schedules work, tracks executors, and stores results.
ExecutorConnects to the dispatcher, applies local policy and resource limits, runs debuglets, and reports output and completion.
DebugletA small WASI WebAssembly program that performs one measurement.
sequenceDiagram
participant C as Client
participant D as Dispatcher
participant E as Executor
participant S as Executor scheduler
C->>D: Create TEST intent and submit debuglet
D->>D: Validate policy and reserve capacity
D->>E: Upload over authenticated reverse control path
E->>S: Store and schedule accepted work
S->>E: Start WebAssembly program
E->>D: Output and observed terminal result
C->>D: Read stored state and logs

This is the successful TEST flow, not a payment settlement or replay protocol. A lost connection can leave the executor’s outcome unknown; reconnecting does not resume an interrupted run. See executor recovery.

Executors initiate their connections to the dispatcher. Each active executor session needs both control paths to be healthy, which avoids exposing a public control port on the executor.

For deployment topology and operation, use Across-host deployment, Managed services, and Executor recovery.