npx claudepluginhub plurigrid/asi --plugin asiThis skill uses the workspace's default tool permissions.
Microgrid-inspired coordination framework: Grid-Forming (GFM) vs Grid-Following (GFL) agents with spectral gap 1/4 benchmark for direction entropy justifiability.
Coordinates multi-agent systems using GF(3) trit assignments (-1,0,+1) and conservation checks (sum ≡0 mod 3) for triadic compositions. For ALIFE diffing, counterfactual navigation, categorical rewriting.
Coordinates distributed agents via stigmergy, local rules, and quorum sensing for emergent behavior in systems, teams, or workflows without central control. Use for event-driven architectures and self-organization.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Share bugs, ideas, or general feedback.
Microgrid-inspired coordination framework: Grid-Forming (GFM) vs Grid-Following (GFL) agents with spectral gap 1/4 benchmark for direction entropy justifiability.
In microgrids:
In coordination:
Direction entropy is JUSTIFIED when:
H(direction) ≈ specification_rate / gap_benchmark
At gap = 0.25 (Ramanujan optimal):
H_justified = S / 0.25 = 4 × S
Justifiability Score:
J = 1 - |H - H_justified| / max(H, H_justified)
# Run the demo
cd ~/Gay.jl && julia examples/grid_coordination_demo.jl
# In Julia REPL
include("src/grid_coordination.jl")
states = simulate_coordination(
potential = x -> 0.5 * sum(x.^2), # Single well
gfm_initial = [2.0, 1.0],
gfl_initial = [-1.0, -0.5],
diffusion_strength = 0.4,
gap = 0.25, # Ramanujan benchmark
dt = 0.01,
T = 5.0
)
println(coordination_report(states))
mutable struct GridFormingAgent <: CoordinationAgent
specification_rate::Float64 # Constraint generation (bits/τ)
potential::Function # V(x): energy landscape
state::Vector{Float64} # Current position
end
dx = -∇V dtmutable struct GridFollowingAgent <: CoordinationAgent
direction_entropy::Float64 # H(direction) in bits
diffusion_strength::Float64 # σ² noise intensity
state::Vector{Float64}
reference_agent::GridFormingAgent
end
dx = -∇V dt + σ√(gap) dW| Gap | Interpretation | Mixing Time | Justifiability |
|---|---|---|---|
| < 0.1 | Tangled, slow mixing | > 10τ | Over-exploring |
| 0.25 | Ramanujan optimal | 4τ | Aligned |
| > 0.5 | Over-connected | < 2τ | Under-exploring |
Justifiability maps to triadic coloring:
function gf3_trit(J::Float64)
J >= 0.67 → :PLUS # GFM dominant (warm, 330°)
J >= 0.33 → :ERGODIC # Balanced (neutral, 120°)
J < 0.33 → :MINUS # GFL dominant (cold, 240°)
end
Conservation: Across parallel coordination streams, Σ trits ≡ 0 (mod 3)
The GFM-GFL dynamics are the agent-level realization of Fokker-Planck:
∂ρ/∂t = -∇·(μρ) + ∇·(D∇ρ)
↑ GFM ↑ GFL
drift diffusion
# Three agents with GF(3) conservation
gfm = GridFormingAgent(...) # :PLUS
gfl1 = GridFollowingAgent(...) # :MINUS
gfl2 = GridFollowingAgent(...) # :ERGODIC
# Σ = +1 - 1 + 0 = 0 ✓
# Spectral gap controls how fast skills spread
gap = 0.25 # Optimal: skills reach all agents in 4τ
# From spectral_analyzer.jl
if gap >= 0.25
:ramanujan # Theorems well-connected
else
:tangled # Dependencies blocking mixing
end
~/Gay.jl/src/grid_coordination.jl - Core framework~/Gay.jl/examples/grid_coordination_demo.jl - Interactive demo~/Gay.jl/examples/fokker_planck.jl - Underlying PDE~/plurigrid-asi/ies/spectral_analyzer.jl - Gap measurementfokker-planck - The underlying PDE dynamicsspectral-analyzer - Ramanujan gap measurementgf3-coloring - Triadic color assignmentbisimulation-game - Agent equivalence via spectral properties┌─────────────────────────────────────────────────────────┐
│ GRID COORDINATION CHEAT SHEET │
├─────────────────────────────────────────────────────────┤
│ GFM = Grid-Forming = Drift = Specification │
│ GFL = Grid-Following = Diffusion = Direction Entropy │
│ │
│ Spectral Gap = λ₁ - λ₂ │
│ Benchmark = 0.25 (Ramanujan) │
│ Mixing Time = 1/gap ≈ 4τ at benchmark │
│ │
│ JUSTIFIED when: H(dir) ≈ S(spec) / 0.25 │
│ │
│ GF(3): +:GFM-heavy 0:Balanced -:GFL-heavy │
└─────────────────────────────────────────────────────────┘