Start-up events

A program that runs superfluid serve or superfluid node join (a desktop app, a supervisor, a test harness) can follow the start from stderr without reading prose. With --log-format json, every line Superfluid writes on stderr is one JSON object, and each step of a start (a runtime installed, a model pulled and loaded, the server ready, a node joined) is an event with a name and fields of its own. Without the flag, stderr is the prose it always was.

superfluid serve unsloth/Qwen3-0.6B-GGUF:Q4_K_M --http 127.0.0.1:0 --log-format json
{"timestamp":"2026-11-13T09:41:07.112406Z","event":"start","schema":1,"version":"0.1.13","command":"serve","pid":41230}
{"timestamp":"2026-11-13T09:41:07.118930Z","event":"log","level":"INFO","message":"superfluid: pulling unsloth/Qwen3-0.6B-GGUF:Q4_K_M with the llamacpp runtime"}
{"timestamp":"2026-11-13T09:41:07.119002Z","event":"pull.start","id":"unsloth/Qwen3-0.6B-GGUF:Q4_K_M","runtime":"llamacpp","offline":false}
{"timestamp":"2026-11-13T09:41:08.371551Z","event":"pull.progress","done_bytes":104857600,"total_bytes":396705472,"bytes_per_sec":83886080,"secs_left":4,"id":"unsloth/Qwen3-0.6B-GGUF:Q4_K_M"}
{"timestamp":"2026-11-13T09:41:11.620417Z","event":"pull.done","id":"unsloth/Qwen3-0.6B-GGUF:Q4_K_M","path":"/Users/me/.cache/huggingface/hub/models--unsloth--Qwen3-0.6B-GGUF/snapshots/1f0c/Qwen3-0.6B-Q4_K_M.gguf","bytes":396705472}
{"timestamp":"2026-11-13T09:41:11.702113Z","event":"model.load.start","model":"unsloth/Qwen3-0.6B-GGUF","runtime":"llamacpp","path":"/Users/me/.cache/huggingface/hub/models--unsloth--Qwen3-0.6B-GGUF/snapshots/1f0c/Qwen3-0.6B-Q4_K_M.gguf"}
{"timestamp":"2026-11-13T09:41:12.954870Z","event":"model.load.done","model":"unsloth/Qwen3-0.6B-GGUF","runtime":"llamacpp","context":40960,"lanes":8}
{"timestamp":"2026-11-13T09:41:12.955391Z","event":"serve.ready","http":"127.0.0.1:52318","socket":"/Users/me/.superfluid/superfluid.sock","models":["unsloth/Qwen3-0.6B-GGUF"]}

(Most of its log lines are left out here.)

Turning it on

  • --log-format json on serve or node join (--log-format text, the default, is the prose).
  • SUPERFLUID_LOG_FORMAT=json in the environment, for a host that sets it once for every command it runs. A --log-format on the command line wins over it. Only serve and node join read it; the other commands write what they always did.

In JSON mode the terminal monitor is off (--tui included), and the bar a pull draws on a terminal is never drawn: the pull is pull.progress events instead. --log-file <path> sends the events to that file in place of stderr. --log-dir <dir> still sends the tracing logs to their own files, in the shape Observability describes; stderr then carries the events and the prose.

The stream

Every line is one JSON object with at least:

fieldmeaning
timestampWhen the line was written out, RFC 3339 in UTC to the microsecond (2026-11-13T09:41:07.112406Z), the format of the --log-dir logs. The timestamps rise down the stream.
eventThe event's name: start, log, error, or a dotted name from the table below.

The first line is a start event, which states the stream's schema. Every line that is not one of the named events is a log event that carries the line: Superfluid's own prose, a worker's output, a runtime's, and Superfluid's tracing logs, each as it was written. A worker started by serve or node join writes to the same stream, so what it says is a log event too, in the order it was said. Only Superfluid writes the named events: a line a runtime or a tool writes is a log event even when it is JSON that names an event.

When a start fails, the last line is an error event, and its exit_code is the process's exit status (exit codes). A node the head removed ends the same way, with node.removed and then error with exit_code 5. A panic is a log event at level ERROR; when it ends the process, the exit status is 101.

A node with no --model follows its head's model: when the head serves another model first, the node says node.head.changed, lets what it runs finish, and starts again as the same process (same pid). The stream goes on: a second start, then the new model's pull, model.load.* and node.dialing. A host reads a start it did not launch as that restart, not as the end of the stream.

Events

eventfieldswhen
startschema (1), version (Superfluid's), command (serve or node join), pidthe first line; again, with the same pid, when a following node starts again for its head's new model
loglevel, message; from tracing also target and the log's own fieldsevery line that is not another event. level is INFO, or WARN for a line that says WARNING; a tracing log keeps its own (ERROR, WARN, INFO, DEBUG, TRACE)
errormessage, exit_codethe last line before the process exits on a failure
runtime.install.startruntimethe runtime a model needs was never installed here, and is being installed (as superfluid runtime install <runtime> would)
runtime.install.doneruntime, install (the install's name, e.g. b6123-metal), versionit is installed
runtime.install.failedruntime, errorinstalling it failed; an error (exit 1) follows
pull.startid, runtime, offlinea model given by id is looked for in its runtime's cache and, unless offline, fetched
pull.progressid, done_bytes, total_bytes, bytes_per_sec, secs_leftwhile bytes land: at most four a second while they grow, one every 10 seconds while they do not, and the last as the fetch ends. total_bytes and secs_left are null when not known; done_bytes counts a part fetched by an earlier, interrupted pull. A model already in the cache has none
pull.doneid, path, bytes (the model's size on disk)the model is on disk at path
pull.failedid, errorthe pull failed
model.load.startmodel (the name the API serves it under), runtime, patha model given at start-up begins loading
model.load.donemodel, runtime, context (its window, in tokens), lanesit is loaded
model.load.failedmodel, errorit did not load: its engine, its tokenizer or its chat template failed; an error follows
serve.readyhttp (the address the HTTP API is bound to, or null with --no-http), socket (the session socket, or null), models (the models loaded, the default first)serve answers on every listener; a fleet head, once its nodes have shared their models' tokenizers
node.discover.startnode join with no head address looks for one on the local network: at start, and again after node.head.lost
node.head.foundaddr, modelsit found one; after node.head.lost, only a head at another address (the same head back where it was has none)
node.head.lostheadthe head found on the local network does not answer; the node looks for a head of its network (a head given by address is dialed again there: node.dial.failed and node.retry)
node.dialinghead, node (this node's identity), model (the name the head matches on), lanesthe model is loaded and the node dials the head
node.joinedheadthe head took the node
node.dial.failedhead, errorthe head did not answer
node.link.endedreasonthe link to the head ended
node.retryin_secsthe node dials again after this many seconds
node.refusedreasonthe head refused the node's token; an error (exit 2) follows
node.removedheadthe head removed this node and refuses it until the head restarts; an error (exit 5) follows. Said once, however many lanes the head told
node.head.changedmodel (what the node serves next, or null), id (the id it pulls it by, or null), from (what it served)a node with no --model heard its head serve another model first; it starts again to serve model. With id null the head serves model by path, or nothing, and the node, started again, waits for a model it can pull
fleet.node.joinednode, addr, models, contexton a head: a node joined
fleet.node.rejoinednode, addron a head: a node that had joined came back
fleet.node.refusedaddr, reason; node for one it removedon a head: a node that dialed in was not taken. A node it removed is refused each time it dials back; this event comes the first time
fleet.node.removednode, addr (the node's), by (the address that asked), key (the --key-policy key that asked, or null)on a head: a node was removed through DELETE /v1/fleet/nodes/{name} (List and remove nodes)

model.load.* cover the models a start loads: each --model, by path or by id. A start can also stop between model.load.start and model.load.done for a reason of its own (a session socket that cannot be bound, a damaged session log): it then ends with error alone, so a host takes error as the end whatever came before it. A model a running server loads later, when a request names it (one from --model-dir, or one unloaded while idle), the --fim-model satellite, and a fleet head's models (it loads no engine; serve.ready lists them) have none. A node dials once per lane; its node.* link events speak for the first lane, as its prose does.

What is kept

The names of the events and their fields, and what they mean, are kept across releases. A release may add an event, or a field to one, and the schema stays; removing or renaming one, or changing what it means, raises schema, and the changelog says so. A host reads the events it knows, ignores the others and any field it does not know, and checks schema on the first line.

The message of a log event is not kept: it is the prose a person reads, and it changes as the prose does. A host that needs to know something a log line says asks for an event instead of matching the text.