IDKMesh

Physarum-Inspired Adaptive Compute Routing

Status: experimental algorithm proposal
Date: 2026-09-22
Scope: adaptive routing inside a future admitted multi-node/federated compute fabric.

1. Why this mechanism

IDKMesh already has:

What it does not yet have is an adaptive multi-path routing layer for a future compute mesh where:

The slime mold Physarum polycephalum is relevant because its transport network adapts tube conductance according to flow. Tero et al. showed a mathematical abstraction balancing transport efficiency, cost, and fault tolerance in adaptive networks (Science 327, 2010, DOI: 10.1126/science.1177894).

The engineering hypothesis is:

A conductance-based adaptive routing rule can retain useful alternative compute paths and recover from changing node/link quality faster than static single-path selection, without bypassing IDKMesh admission or trust policy.

2. Critical authority boundary

Physarum routing is after admission, never before it.

Resource evidence
  -> local authorization
  -> concrete compute offers
  -> Resource -> Compute Admission
  -> hard WorkUnit feasibility/security/cost filter
  -> admitted zero-project-cost graph
  -> Physarum-inspired adaptive route recommendation
  -> bounded execution
  -> ResultManifest
  -> independent VerificationResult
  -> human/governance integration

The adaptive algorithm MUST NOT:

If no eligible admitted path exists, the result remains no_eligible_offer / no dispatch.

3. Biological mechanism -> engineering mechanism

In the classical flow-conductivity abstraction:

Q_ij = (D_ij / L_ij) * (p_i - p_j)

where:

Conductivity changes with observed flow and decays without reinforcement.

For the first IDKMesh experiment, use a simpler path-level equivalent-resistance approximation:

R(path) = sum_e L_e / D_e

Conductance(path) = 1 / R(path)

Then combine that with observed reliability:

RouteValue(path) =
    Conductance(path)
  * EstimatedReliability(path)
  * Efficiency(path)

with:

Efficiency(path) = 1 / PathLength(path)

Selection remains stochastic with a small exploration floor.

4. Conductance update

For edge e after one routed WorkUnit:

D_e(t+1) =
  clip(
    (1-rho) * D_e(t)
    + alpha * VerifiedRouteReward * I[e used]
    - penalty * I[e observed failed],
    D_min,
    D_max
  )

where:

This is deliberately similar in spirit to biological tube adaptation but is not a claim that compute networks are literal slime molds.

5. Reliability learning

Each admitted edge keeps a simple Beta posterior:

reliability_e ~ Beta(a_e, b_e)

Observed success:

a_e += 1

Observed failure:

b_e += 1

Path reliability is initially approximated as the product of posterior means across its edges.

This is a research simplification. Real deployment would need to distinguish:

Only failures actually attributable to a path/link should update transport reliability.

6. Why this is different from ACO already in IDKMesh

ACO/stigmergy currently addresses which task/worker path deserves attention based on verified useful outcomes.

Physarum routing addresses a different layer:

ACO / AVE:
Which worker/task/verifier strategy should receive work?

Physarum compute routing:
Through which already-admitted compute/federation path should the bounded work travel?

The state variable is edge/path conductance, not task pheromone.

The mechanism should not create a second task scheduler.

7. Baselines

The first simulator compares:

  1. shortest-static
    • always use the initially shortest path;
    • no learning.
  2. reliability-greedy
    • choose current estimated reliability / path length;
    • no explicit exploration.
  3. epsilon-greedy
    • same as reliability greedy with random exploration.
  4. Thompson path
    • Bayesian path-level success posterior;
    • samples a route under uncertainty.
  5. Physarum
    • edge-level reliability posteriors;
    • adaptive conductance;
    • evaporation;
    • failure penalty;
    • bounded exploration.

The Physarum mechanism only earns further development if it competes with the stronger adaptive baselines, not merely the static shortest path.

8. Dynamic environment

The first fixture intentionally changes during the run.

Before the shift:

After the shift:

This tests whether the router can:

9. Metrics

Report a Pareto vector:

A higher success rate that doubles donor/network burden is not automatically better.

10. Product integration target

If the synthetic mechanism survives baselines and later real-node evidence, integrate as a dry-run planner beside the existing compute router.

Possible future interface:

admitted_graph = compute_admission(...)

plan = adaptive_path_router(
    work_unit,
    admitted_graph,
    observed_path_state,
)

explain(plan)

The initial integration should only explain:

It should not execute automatically.

11. Real-node evidence gate

Do not claim an advantage from simulation alone.

A real experiment should use 3-10 controlled nodes or containers and inject:

Compare against:

Retain exact route decisions and failure attribution.

12. Falsification criteria

Reject or simplify the mechanism if:

13. External research basis

The papers motivate the adaptive-network mechanism. They do not establish that the mechanism is better for IDKMesh; that remains an experimental question.