Skip to content

Proto

Server and workers share one WebSocket at /proto. The Proto derive encodes all frames as binary. A session must pass version agreement, handshake, authorization and capability exchange before the job loop can start.

flowchart LR
    conn[Connection] --> cap[Capabilities and Assignment]
    cap --> jobs[Jobs]
    jobs --> transfer[Transfer]
    conn --> fed[Federation]
  • Connection

    Handshake, authorization, server restarts, server stop and cache sessions.

  • Capabilities and Assignment

    Worker capabilities, store summary, pull-based assignment.

  • Jobs

    Flake and build jobs, progress reports, failure kinds and aborts.

  • Transfer

    NAR uploads and downloads, logs, download progress and credentials.

  • Messages

    Every message on /proto with its fields and lane.

  • Federation

    gradient-proxy: a pool of workers joined to a server as one worker.