Chapter 5 · agent-neuron · Lab
Typing
A search box emits each letter without waiting; a newer prefix replaces the older one and the stale work is aborted.
Letters without waiting
The demo’s search box emits the query one letter at a time and never waits for an answer. Three neurons with different latencies each decide in their own adapter whether to act; a newer prefix replaces the older one, so the stale work is aborted and printed as dropped. The answers carry no prefix: the demo finds each answer’s keystroke through the signal it replies to.
The rule it proves
Emit is the delivery a wrapper makes when no answer is due back (SPEC 4.2), and staleness is what cuts the older prefix’s work (5.4): input whose replaces key is taken over is dropped whether it is waiting or already running, and nobody watches for it.
Run it
npm run demo:typingWhat it is not
Not a passive channel and not a catalogue you can browse: the neurons decide on their own, and the made-up catalogue is matched back to keystrokes by the demo itself.
