idkmesh

Homeostatic Stigmergic Routing (HSR)

Status: Experimental synthesis derived from E014 evidence.

Motivation

The first ACO reference sweep exposed a genuine tradeoff:

HSR combines three ideas instead of treating ACO as a fixed router:

  1. capability matching for local exploitation;
  2. stigmergic memory for evidence-backed collective learning;
  3. homeostatic/density-dependent feedback that increases diversity pressure only when the system becomes crowded.

The biological inspiration is not only ants. Living systems often regulate growth and activity through negative feedback: when local density or resource pressure rises, inhibition increases; when pressure falls, normal growth resumes.

Routing score

For worker/agent a, task j, and time t:

Score(a,j,t) = CapabilityValue(a,j)
               * tau_j(t)^alpha
               * [Diversity(a,j,t) * Congestion(j,t)]^lambda(t)

where:

A probabilistic selector applies a beta exponent to the score and preserves an explicit random exploration floor.

Homeostatic feedback law

Let:

Update:

lambda(t+1) = clip(
    lambda(t)
    + k_d * (D(t) - D_target)
    + k_s * (S(t) - S_target)
    - r * (lambda(t) - lambda_min),
    lambda_min,
    lambda_max
)

Interpretation:

A later repository implementation can add review load explicitly:

+ k_q * (ReviewLoad(t) - Q_target)

so scarce verifier/reviewer capacity becomes part of the feedback loop.

Stigmergic memory

HSR retains the ACO evidence update:

tau_j(t+1) = clip(
    (1-rho) * tau_j(t)
    + VerifiedDeposit_j(t)
    - Penalty_j(t),
    tau_min,
    tau_max
)

Only evidence-backed useful outcomes should create strong deposits.

Popularity is not evidence.

Why this synthesis may fit IDKMesh better than fixed ACO

Fixed ACO asks one routing law to balance exploitation and diversity at all times. HSR instead treats the system as adaptive:

healthy capacity
    -> capability exploitation dominates

crowding / reviewer pressure / correlated duplication
    -> ecological regulation rises
    -> effort spreads toward alternative paths

pressure falls
    -> regulation relaxes

This resembles biological homeostasis and feedback control more closely than a fixed pheromone equation alone.

Safety boundaries

HSR is still only a recommendation/routing mechanism.

It must not:

Current implementation

The first synthetic comparison tests HSR against capability-only routing and fixed ACO over repeated seeds.

Falsification criterion

HSR is useful only if it moves the Pareto frontier outward relative to the simpler mechanisms—for example, approaching capability-only utility efficiency while retaining materially lower duplication/concentration and broad task coverage.

If it merely adds complexity without a reproducible Pareto improvement, reject it.