Chapter 8 · agent-neuron · Lab
A composed neuron
A Rust program holds its own small network and looks like one neuron from the outside; the inside stays sealed until you ask.
A network behind one wrapper
The music neuron is a small Rust program that runs its own network of tracks, artist and lyrics neurons inside it. To the outer network it is one neuron: one signal in, one answer out, and no inner id appears outside. A separate run of the program with --inspect prints the inside view on its own: the signal ids, the replies, one inner trace.
The rule it proves
A network file can name a composed neuron, a wrapper that holds a whole network (SPEC 2.6): from outside it answers like any other neuron, and its inner neurons and links are never added to the outer network. The sealing is the point; nothing outside can reach past the wrapper.
Run it
npm run demo:composed
# the inside view, on its own: run the music program with --inspectWhat it is not
Not learning: each call is its own process and nothing is shared between calls, and the inside of the composed neuron is visible only when a run of the program itself asks to be inspected.
