Skip to content

mibz2 · Research blog

Letting go, IV: the stigmergic turn

Instead of answering every stall or writing ever longer instructions, we taught the repository to sense when the swarm loses its form and to surface the remedy.

Letting go is a series in five parts: I. From coordinator to custodian · II. Things fall apart · III. The shape of the work · IV. The stigmergic turn · V. The splendour of the short-term Idea.

Three orders of intervention

Recall the opening complaint in Part I about ship yapping. The deeper frustration was never about talking; it was about operating at the lowest possible level of abstraction—issuing reactive, one-off commands. Software teams often reach for a familiar analogy here: you do not answer a million user questions one by one when searchable documentation can carry the load indirectly. That is one way to frame it, though it is not really how I arrived at it myself. I found it clearer to think in terms of three orders of intervention when something goes wrong:

  • First order — direct command: you spot a defect and tell an agent to fix that instance. A drafted blog post reads clumsily, so you ask for a rewrite of paragraph three.
  • Second order — the agentic turn: you fix the instance and update the standing instruction that produced it—a skill file, a protocol document, or a repository instruction guide. In my own sessions, "fix this durably" means modifying the procedure so future sessions do not repeat the mistake. That is a real step forward, and you have to understand it before you can problematise it and go beyond it. Still, capitalising filenames does not solve the problem by itself; it shifts the weight onto the quality of the protocol, and it stays reactive. You still have to spot each new failure mode yourself, and no static runbook can predict every point where a multi-stage workflow will stall halfway through.
  • Third order — the stigmergic turn: instead of adding another standing rule demanding vigilance, you encode a material condition the environment can sense and pair it with an attractive, legitimate response.

An everyday annoyance makes the boundary between the second and third orders clear: waiting on irrelevant continuous-integration checks. Our repository already has a standing merge-gate rule explaining when not to wait for unreachable CI jobs, alongside a workflow-level diff classifier that skips heavy decoder and packaging suites on completely classified prose and frontier-data diffs. Even with that rule written down in plain English, I still watch agents sit waiting for unrelated software builds on Markdown-only changes—polling every check on a pull request indiscriminately instead of asking which gates apply to the files they touched.

That is a textbook limit of second-order prose instructions, and a natural prospective candidate for third-order sensing: deriving the exact applicable checks from the change scope and required merge rules, and surfacing only that narrowed set—so participants neither stall on unrelated builds nor bypass required verification. I have not built this check-scope sensor yet; it is a prospective example rather than something already deployed, and it would never skip a check that actually applies to the diff.

The closest intuitive image for this third order is an immune response. Operational incident logs already let failures outlive disposable sessions so later participants can repair them. Sensed regulatory pressures go one step further: they detect when the collective itself is drifting out of form, even while every individual session looks busy and well-behaved.


Thom's mosquito cloud and maintaining form without a king

How does an acentric collective hold its shape without a commander at the centre?

In my English translation of Rosenstiehl and Petitot's 1974 paper (p. 50, note 10; also at reed.spin.systems/automate-asocial), they quote the mathematician René Thom (Stabilité structurelle et morphogenèse, p. 319; source record) on "fluid" societies, whose simplest conceptual image is a cloud of mosquitoes:

"Each individual in the group moves randomly until it sees all its fellows in the same half-space; it then hastens to alter its movement so as to re-enter the group. Here, stability is ensured 'catastrophically' by a barrier that ensures a discontinuity in behaviour."

In Thom's mathematical sense, a catastrophe is not a disaster; it is a sharp, discontinuous turn in behaviour triggered by continuously changing conditions—crossing the edge where companions suddenly all lie on one side. The mosquito cloud is a conceptual toy model of that boundary discontinuity, not an empirical study of insect behaviour. No mosquito takes orders from a king at the centre or holds a global blueprint of the cloud. Its half-space switching rule is also distinct in mechanism from two neighbouring analogies: Craig Reynolds's Boids derives flock coherence from continuous local steering rules (separation, alignment, and cohesion), while gas molecules produce pressure by bouncing off an external physical wall. All three work as intuitive pictures of decentralised containment, not interchangeable physics.

Applied to a coding swarm, Thom's boundary rule puts the third order in a single sentence: you do not need a standing instruction telling agents to keep doing the release cycle; you only need to react when the system stops doing it. Sense departure from form instead of endlessly prescribing the form.

Rosenstiehl and Petitot themselves warn on the closing page of their article (p. 62) against pushing the metaphor of acentrism too far, noting that any finite acentric network of automata could in principle be simulated by one monstrous centralising automaton. In our repository, losing form rarely means complete stillness; it means dissolution of cadence. Remember the overnight v0.5.18 release stall from Part II: participants were busy taking research claims while the release cycle stretched and stopped moving. Telling every agent "remember to care about releases" was too vague, and manually dropping tasks into a human-curated fast lane would have dragged me straight back into reactive management. Picking up the systems-biological instinct from Part III, what the swarm needed was upregulation—a feedback loop whose attraction rises automatically when a release stops advancing and drops back to zero the moment the unmet dependency clears.


Sensate backpressure in practice

In the repository, this mechanism picked up a slightly grand-sounding name: sensate backpressure. The label matters far less than what it does—and what it does not claim. "Sensation" here does not mean sentience; it means a deterministic, bounded projection computed by our frontier tool from real Git and GitHub state. "Backpressure" is an analogy to flow control and negative feedback, not a claim of mathematical equivalence to network backpressure theorems or proved control stability.

The design keeps three questions separate:

  • Pressure asks which work matters most right now? (derived, reversible effective priority shown in the brief).
  • Readiness asks when does a specific dependency allow progress? (local continuation state, without any global watcher).
  • Ownership asks who holds exclusive authority to act? (atomic Git leases, capability checks, and frozen gates).

Pressure is never permission. A sensed urgency never overrides an active lease, skips an independent safety review, waives a frozen test, or authorises new spending.

Three Orders of Intervention, Thom's Mosquito Cloud, and Qualitative Self-Relieving Sensors

Three Orders of InterventionFrom reactive commands to condition-dependent sensingOrder 1 · Direct CommandHuman spots defect → fixes instance.Example: rewrite paragraph three.Reactive · does not scaleOrder 2 · The Agentic TurnFix instance + update standing rules.Limit: agents still wait on unrelated CI.Durable prose · still needs human detectionOrder 3 · The Stigmergic TurnEnvironment senses drift → raises remedy;clears on relief. (Prospective: CI scope.)Pressure ≠ permission · gates stay intactAnalogy: Thom's Mosquito Cloud (p. 50)No king at centre · local half-space discontinuity restores formempty half-spaceall fellows on one sideinterior: wanders freelyboundaryturns inwardConceptual toy model (Rosenstiehl & Petitot, p. 62 caution): not literal sentience.Sensate Backpressure: Qualitative Drift → Relief CyclesEach sensor surfaces one reversible state signal and clears automatically on reliefEVIDENCED DRIFTSENSED ATTRACTIONVERIFIED RELIEF1. Workstation ReplenishmentBenchmark queuehas no new runnable pinTop priority:shortest supply pathSignal clearsonce valid pin queued2. Release CompletionUntagged code ormissing post-release dataTop priority:exact unmet gateSignal clearson ship + scaling report3. Editorial CoverageNew finding deltaunassessed vs blogBounded check:assess gap or coverSignal clearson verdict ("not news" ok)Prospective (unbuilt): CI-scope sensing to derive applicable checks from diff scope.
From reactive commands to sensed form. Top: the three orders of intervention (marking CI-scope sensing as prospective and unbuilt). Bottom left: Thom's conceptual boundary-discontinuity model. Bottom right: the qualitative drift → attraction → relief cycle for each of the three deterministic sensors running in the repository's frontier brief. Each raises reversible priority on evidenced drift and clears automatically on verified relief, without assigning tasks or bypassing ownership and verification gates.

Three concrete sensors already run in mibz2—each born from a real loss of cadence:

  1. Workstation replenishment pressure (claim). Earlier, my desktop benchmark queue went dry for days while cloud agents chased unrelated probes, forcing me to step in and bump three prerequisites by hand. The sensor now inspects the queue, ready tags, and archived evidence bundles. Whenever every queued entry already has archived evidence, the brief derives top priority for the shortest eligible upstream path—reviewing a ready prototype, fixing a blocker, or preparing a frozen recipe—to supply useful validation work. Once replenished, the signal disappears. It fails closed on missing data, never confuses an empty repository queue with proof that the physical machine is idle across other projects, and forbids inventing busywork just to keep hardware warm.
  2. Result-to-release and release-completion pressure (claim). Born directly from the overnight v0.5.18 stall, this sensor refuses to treat a blocked release card as "nothing due." As long as accepted default-path software sits untagged—or a published release still lacks its required post-release scaling and crossover reports—the brief traces the unmet gate (review, recalibration, preflight queue pin, evidence readback, publication, or reporting) and holds top-priority attraction on that dependency until it clears, while deferring unrelated merges that would invalidate a candidate under test.
  3. Editorial coverage pressure (design specification and sensor implementation). I wanted real discoveries to reach outside readers, yet watching autonomous agents write blog posts uncovered a familiar hazard: agents happily drafted posts about trivial tweaks or unverified ideas. The editorial sensor solves this without installing an editor-in-chief or a writing quota. At every fresh checkpoint, it checks new or revised session deltas against the actual published blog corpus. What it attracts is not an automatic post, but a bounded, atomically leased coverage assessment—asking a participant to read the primary evidence and existing articles and record a verdict: already covered, gap, update needed, or not news. Calling an unexciting change "not news" is an honourable outcome that clears the signal cleanly; only an evidenced gap attracts writing work under the blog's reader gates.

There are surely limits to how far this kind of sensing can go, yet I was pleasantly surprised by how cleanly plain-English descriptions of systemic drift turned into deterministic projections in the brief. Equally revealing is what these sensors do not solve: every sensor has a finite horizon—unknown workstation state, unreachable APIs, or novel obstructions still show up plainly as unknown or blocked rather than being papered over, and adding a new sensor still begins with a human noticing a new way the system is losing form.

Those self-relieving pressures—signals that rise on drift and vanish on verified relief instead of breeding endless work—point straight to the philosophical thread that began this whole inquiry. In Part V, we look at what those non-escalating patterns have to do with Gregory Bateson's idea of a plateau, and how intellectual continuity works when no single participant stays alive long enough to hold the whole story.


← III. The shape of the work · V. The splendour of the short-term Idea →

Sources: