Chapter 23 · agent-neuron · Lab
A neuron plays a character
Two characters, each a network of its own, meet on a stage: a run’s trace compiles to a maxcot score, an answer becomes a line and a face, and the hop limit ends the argument. A second network answers with a whole scene.
The film
Two characters meet on a stage. Each is one neuron in the network file and, from outside, one body: a composed neuron (SPEC 2.6) is a whole network behind one answer, so the mind inside it — hear the words, feel what they did, speak only with both in hand — never appears in the run. The cue is a source neuron: the line both of them hear.
None of the exchange is scripted. The engine forwards an answer along every outgoing link, so each character’s reply reaches the other as a new line to answer, and the argument goes on until the hop limit refuses a line, which the run records as a drop and the stage draws as a shrug.
The film is the run, compiled. A trace is a document: the neurons declared up front, then every event with its time, sender, targets, reply chain and payload. The stage turns that into a maxcot score — a millisecond becomes a beat at the show’s tempo, a signal a look, an answer a pose and a line, a quiet a shrug, a dropped line a refusal — and the score is what plays. Nothing reads the network file, so the stage cannot disagree with the engine about what happened.
A payload may direct its own performance. An answer that carries a line and a pose sets both; the whole vocabulary is six names — say, pose, look, shot, skin, palette — each checked against maxcot’s own tables before it is used. A program can aim a camera, and it cannot hand the stage a command.
Two of the parts are mine because maxcot has neither. A line is page text hung over the speaker’s head, anchored to the box the stage drew on that frame, so it follows a camera cut. And the cast faces itself because a figure’s orientation is a design dial the compiler sets per character: maxcot’s own look turns the eyes and twists the body away from the target, which I measured, reported upstream, and worked around rather than patched in a vendored copy.
The second half is a network that writes a scene instead of playing one. One source, one program, and the program answers a score document: two characters who were not there before, their blocking, their lines, a style change, a card. The page plays it without knowing a network wrote it, because a score is a score — the same text plays in maxcot’s own studio.
Thanks, maxcot
Every drawing on this page is shibli21/maxcot: one rig, twenty-six visual skins, eight actors, a film player and a score in bars and beats, drawn entirely in code with no images or sprites. A huge thank you to the person behind it. This stage is mostly a frame around maxcot, and every bit of character that makes the film worth watching is maxcot’s.
The frame around it — the compiler, the facing, the bubbles, the page — is overfocus/agent-neuron-stage, public now: the networks, the committed trace and the scene the second half plays.
The rule it rests on
A run is the only authority on what happened. The stage reads a trace and never a network, so the drawing cannot drift from the engine: whatever the run reported, an answer or a refusal at the hop limit or a failure, is what the film shows, and the same trace plays the same film every time.
The seal is what makes a character. A composed network takes an input at its entry, answers with whatever its exit says first, and keeps its inside out of the outer trace: inner ids, signals and error text never appear. From outside that is one body and one voice with a private mind — which is also the most literal reading of a character as a network.
Time is the run’s. A millisecond maps to a beat and nothing is quantized, so a run that wants air waits for it in the run rather than in the edit; playback speed is the reader’s, and the camera moves at most once every two beats so it follows the scene instead of every line.
The film above is rendered, not recorded: the page steps one frame at a time through the same host a reader can scrub, with the random seed pinned before the engine loads, so it is reproducible from the committed trace and the committed scene.
Run it
cd agent-neuron-stage && npm install && npm run dev # the stage, on http://localhost:5210
sh scripts/run-duet.sh # check + run examples/duet, write the trace the page plays
node scripts/score.mjs src/traces/duet.json > duet.score # the film, as maxcot score textWhat it is not
Not language: the characters’ lines are small tables standing in for a model, and a model neuron would answer the same two fields. Not a new engine surface: the cue is a convention of this stage, not a field in the spec, and the trace needed no change to carry it. And not maxcot’s studio — the score it emits is a maxcot score, which is the part I like most.
