deterministic · liveRamanujan expanderfinite-field Diffie–HellmanApache-2.0zero-dependency

The Resilient Mesh kernel.

Two classical primitives, one defensibility kernel for the agent network. Ramanujan graphs are optimal expanders — a topology whose non-trivial eigenvalues satisfy |λ| ≤ 2√(d−1) is the hardest possible to attack: it takes Ω(n) node removals to partition or eclipse it, and information mixes in O(log n) hops. Finite-field Diffie–Hellman then keys every edge into a confidential channel. Pick a topology below — see the robustness verdict; run a live key handshake. Same math as expander-graph hashes (Charles–Goren–Lauter) and supersingular-isogeny post-quantum graphs.

Before agents federate, prove the mesh won't split.
Score a coalition's topology for partition resistance · key edges with DH · fail-closed on bad graphs · export a signed verdict you can verify offline.
CoalitionsN agents working together with no single point of failure.
Network integrityCatch fragile topologies before they reach production.
Proof artifactEvery verdict exports as an ES256-signed, offline-verifiable report.

1 · Topology → robustness verdict

The agent topology
ES256 · verifiable offline against JWKS
Verdict → governance action how an operator wires the kernel
resilient · adequateCoalition cleared to federate — allow propose_agreement / GAU clearing.
weakRequires human review in Regulator Mode before the coalition coordinates autonomously.
fragile · disconnectedBlock coalition join / edge-key rotation — a single failure can partition the mesh.
signed reportAttach the ES256 report to the audit chain & Outcome Receipt as topology evidence.
The kernel measures; gating is the operator's policy. These are the recommended wirings, not automatic enforcement on this page.

2 · Finite-field Diffie–Hellman handshake

Parameters (public)
The exchange
Alice → Bob
public A = —
Bob → Alice
public B = —
shared secret gab mod p

Honest scope. A deterministic governance/measurement kernel + a textbook FFDH primitive for illustration — production key exchange must use vetted libraries / Web Crypto ECDH / ≥2048-bit MODP groups; EcoCloud's live signing already uses Web Crypto ES256 (the signed report above is real ES256). The kernel measures and keys; it never moves data on the wire. Fail-closed: parallel/self edges, disconnected, non-expander, oversized, composite or degenerate DH params are all rejected — hardened against 10 adversarial-probe findings. † On post-quantum: Ramanujan/expander constructions appear in the isogeny-crypto literature, but EcoCloud does not implement SIKE/SIDH or any PQC wire protocol — it shares the graph math, not the cipher. Source: flowdesk-mesh-kernel.js · signed report API: /api/v1/agent/mesh-report · spec registry: /schemas/registry.json · runnable in the in-app Skills console.