Liking cljdoc? Tell your friends :D

2026-12-01 — A second run by the host, and a sentence a client did not show

The host of "A fleet that sleeps" (2026-11-30) ran its fleet again before a release, with the commit before this entry on both sides. This is its second report, set down here. As with the first, what it says Remontoire did was seen from outside, by the agent that built the deployment, and was not checked against the source by the host. No defect was found. One thing was found as a client, which this entry changes.

The rig

The first entry's: the gateway in a JVM of its own on a small machine that is always on, one node in a large application's JVM on a machine that hibernates, an overlay network that lets a node call the gateway's port and nothing the other way, and Claude Code as the client with the gateway as one configured server.

The host's side of the changes since: the application passes :attach where it passed :follow, still with no :name, and its scripts read the session id from structuredContent where they matched it in the sentence.

Still never more than one node attached.

Seen

Wall-clock, single runs.

The application startedattached by itself under its hostname
(__r.gw/nodes) in a gateway sessionlisted the gateway itself and the node, each with its attachment, when it attached, when it was last heard, its version and a session count
A session opened with node, and an eval that printedthe value and the output, as directly
An eval of 16 sbecame a task after 10 s and was delivered at its end, with both lines it printed
32 bytes uploaded to the address the session gave, which was the gateway'sanswered with the path on the node, listed by (__r/uploads) there, read back whole
The node's machine hibernated with a session open, and a (__r.gw/change seen) waiting in a gateway sessionsettled 21 s after the sleep was asked for, with the node not attached and last heard 19 s before
A call to the node's session while it sleptrefused, with the reason and the wait to make
The machine wokenthe node printed that it had lost its gateway 2 s after the kernel resumed, and attached 2 s after that
A (__r.gw/node "…") made while it sleptsettled as it attached
The session after the resumethe same id answered with a value defined before the suspend
The gateway's process restarted with the node's session openlistening 6 s later, the node attached a second after that, and the session answered through the new gateway
A session of the gateway's own after that restartrefused, and the refusal said to create another
Four restarts of the gateway in allthe node attached 6 to 7 s after each, within a second or two of the gateway listening
The gateway's process with the node attached90 MB twelve seconds after a start, 94 MB two minutes on with sessions open, 20 MB of heap in use

The upload, the long eval as a task and the refusal after a restart were seen over the overlay this time; the first run had them in its earlier form only. The suspend was real and short, about a minute. The 21 s is an upper bound again, counted from the command. The client did not reconnect across the suspend, the resume or any restart.

The node's own endpoint answered throughout. The host's idle check ran against it on loopback while the gateway was starting, and was answered. The check now takes its session by the id as data and keeps it, and at its next run it read an eval made through the gateway as use.

A node that cannot be served

AskedOfAnswer
a name nobody hasthe gatewayrefused, naming who is attached and the wait to make
the gateway's namethe node, directlyrefused: a node opens sessions on itself and nowhere else
the node's own namethe node, directlya session, as with no node
a numberthe node, directlyrefused: a name is a string

Asked directly with no node, the node's answer named itself as node in its data. An attached node is in a fleet, so that is as written.

The sentence the client did not show

create-session answers with a sentence for a model and, since 2026-11-30, with the id as data beside it. Claude Code showed its model the data and nothing else. On the commit before the data, the same client showed the sentence. Asked with curl, the node sends both. Seen again from this checkout, with the same client against the dev gateway: the answer arrived as the id and the node, and no sentence.

Other harnesses are said to leave the text out when data is returned as well, so this is not one client's habit to wait out. The protocol asks that a tool answering with data also give that data as text, for a client that reads none, which is the same expectation from the other side: either half can stand in for the other. Ours gives the id and the node in a sentence where the protocol suggests the JSON over again, which serves a client that reads only text, and left a client that reads only data without the rest of the sentence.

What the model lost was little, and not what was feared at first. Of the sentence's three statements, that the id goes to every other tool and what a session holds were already in the tool's description. Only how a session ends was in the sentence alone: that it expires after a day of silence, does not survive a restart, and that a refused id means creating another. The refusal itself says the last, and did in this run. The footer of the first eval still pointed to the manual.

Changed with this entry:

  • How a session ends is said in the tool's description, which every client reads, and in the sentence, from one definition, so the two cannot drift apart.
  • It says "a restart of the JVM it lives in" where it said "a server restart". Through a gateway the server a client speaks to can restart under a session that lives on, which this run showed twice.
  • §11 has the rule: the sentence carries nothing a model needs that the data or the description does not.

Weighed and not done: saying the same as data, with a field for the expiry beside the id. Most of the sentence is instruction, which as data would be prose in a field; what it says is true of every session, so it describes the tool and not one answer; and a client has the description before it can call the tool at all. The expiry is the one part that is a datum. A program that keeps a session creates another when its id is refused and has no clock to keep, so the field waits for a program that asks for it, and would be a number of seconds if it came. Taking the declared shape away again was not weighed. Whether this client chooses the data because a shape is declared or because data is there was not looked at.

Shown: with the sentence taken out of the description, how-a-session-ends-is-declared-and-not-only-answered fails, 1 failure in its namespace's 20 tests. The suite is 317 tests, 1,275 assertions, 0 failures.

Two commits meeting, by accident

For a while the gateway's machine was on an earlier commit of this branch than the node, by a fault in the host's own update. The node attached to it, and again after two restarts of that gateway. No session was opened across the pair. Both commits speak revision 1 of the wire and neither is a release, so this says only that an attach and its reports were taken, between two builds that promise each other nothing.

Not tried

More than one node at once. A suspend of hours or days. The gateway's machine replaced by another under the same name. A network that loses packets. Two revisions of the wire meeting. A second machine claiming a sleeping node's name. A client that did not already know the node's name. Any client but this one. From outside, nothing reached what the fourth to sixth reviews changed, the refusals of node apart: a task of a session that has ended, a handle asked for twice, a welcome whose cadence cannot be kept, a handler that fails before or during its answer, and a cancellation across a legacy and a stateless call.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close