random-walk-fusion

Navigate skill graphs via deterministic random walks. Fuses derivational chains, algebraic structure, color determinism, and bidirectional flow for skill recombination.

16 stars

Best use case

random-walk-fusion is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Navigate skill graphs via deterministic random walks. Fuses derivational chains, algebraic structure, color determinism, and bidirectional flow for skill recombination.

Teams using random-walk-fusion should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/random-walk-fusion/SKILL.md --create-dirs "https://raw.githubusercontent.com/plurigrid/asi/main/plugins/asi/skills/random-walk-fusion/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/random-walk-fusion/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How random-walk-fusion Compares

Feature / Agentrandom-walk-fusionStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Navigate skill graphs via deterministic random walks. Fuses derivational chains, algebraic structure, color determinism, and bidirectional flow for skill recombination.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Random Walk Fusion: Skill Graph Navigation

**Status**: ✅ Production Ready  
**Trit**: +1 (PLUS - generative recombination)  
**Principle**: skill_{n+1} = walk(seed_n, graph_n)  
**Frame**: Skills as nodes, concepts as edges, walks as derivations

---

## Overview

**Random Walk Fusion** traverses skill graphs using deterministic random walks to discover novel skill combinations. Each step derives from the previous via seed chaining, producing reproducible concept-blending paths.

```
seed₀ → skill₀ → concept₀ → seed₁ → skill₁ → concept₁ → ...
```

## Fused Components

| Source Skill | Contribution | Integration |
|--------------|--------------|-------------|
| **unworld** | Derivational chains | Walk succession is derivational, not temporal |
| **acsets** | Algebraic structure | Skills form C-set: functor from schema to Set |
| **gay-mcp** | Color determinism | Each step gets deterministic (color, trit) |
| **world-hopping** | Bidirectional flow | Walks are reversible via involution |

## Core Formula

```ruby
# Walk step: derive next position from current state + skill trit
next_seed = (current_seed ⊕ (skill_trit × γ)) × MIX  mod 2⁶⁴
next_skill = skills[next_seed mod |skills|]

where:
  γ   = 0x9E3779B9  (golden ratio, 32-bit)
  MIX = 0x85EBCA6B  (mixing constant)
  ⊕   = XOR
```

## Skill Graph Schema (ACSet)

```julia
@present SchSkillGraph(FreeSchema) begin
  Skill::Ob          # Skill nodes
  Concept::Ob        # Concept edges
  Walk::Ob           # Walk trajectories
  
  src::Hom(Concept, Skill)
  tgt::Hom(Concept, Skill)
  step::Hom(Walk, Skill)
  
  Trit::AttrType
  Color::AttrType
  trit::Attr(Skill, Trit)
  color::Attr(Walk, Color)
end
```

## Walk Operations

### 1. Forward Walk (Derivational)

```ruby
walk = RandomWalkFusion.new(seed: 0x42D, graph: skill_graph)
path = walk.forward(steps: 7)
# => [{skill: "unworld", concept: "derivational", color: "#D8267F", trit: +1}, ...]
```

### 2. Backward Walk (Involution)

```ruby
reversed = walk.backward(path)
# ι∘ι = id verified: returns to origin seed
```

### 3. Branching Walk (Triadic)

```ruby
branches = walk.triadic_split
# => { minus: path_minus, ergodic: path_ergodic, plus: path_plus }
# GF(3) conserved at each step across branches
```

### 4. Hop Walk (World-Hopping)

```ruby
target = skill_graph.find("epistemic-arbitrage")
path = walk.hop_to(target, via: :triangle_inequality)
# Uses accessibility relation and distance metric
```

## GF(3) Conservation

Each walk maintains GF(3) balance:

```
sum(trits) ≡ 0 (mod 3)
```

When imbalanced, the walk applies **rebalancing moves**:
- Insert neutral (trit=0) skill
- Pair complementary trits (+1, -1)
- Branch to triadic stream

## Fusion Algebra

The fusion of concepts follows ACSet composition:

```
unworld ∘ gay-mcp = derivational color chains
acsets ∘ world-hopping = accessible skill functors
(unworld ∘ acsets) ∘ (gay-mcp ∘ world-hopping) = random-walk-fusion
```

## Commands

```bash
# Run random walk
bb skill_random_walk.bb [seed]

# Skill-specific walks
just walk-skills seed=0x42D steps=12
just walk-triadic seed=0x42D
just walk-hop from=unworld to=acsets

# Verify walk properties
just walk-verify seed=0x42D  # Check GF(3), involution
```

## API

```ruby
require 'random_walk_fusion'

# Initialize walker
fusion = RandomWalkFusion.new(
  seed: 0x42D,
  skills: SkillGraph.load("~/.agents/skills")
)

# Execute walk
path = fusion.walk(steps: 7)

# Get fusion concepts
fusion.concepts
# => ["derivational chains", "algebraic structure", "color determinism", "bidirectional flow"]

# Recombine to new skill
new_skill = fusion.recombine(path)
```

## Example Output

```
╔═══════════════════════════════════════════════════════════════╗
║  SKILL RANDOM WALK - Derivational Traversal                   ║
╚═══════════════════════════════════════════════════════════════╝

  Step 0: epistemic-arbitrage  │ knowledge gaps │ [#98FF4C] ○
  Step 1: world-hopping        │ bidirectional flow │ [#9C4CFF] ○
  Step 2: bisimulation-game    │ game equivalence │ [#8E4CFF] −
  Step 3: epistemic-arbitrage  │ knowledge gaps │ [#4CA2FF] +
  Step 4: world-hopping        │ bidirectional flow │ [#4CFF88] −
  Step 5: triad-interleave     │ tripartite streams │ [#FF974C] ○
  Step 6: world-hopping        │ bidirectional flow │ [#FF4CB2] −

  GF(3) Sum: 1 (balanced: ✗)

  Fusion Concepts:
    → Derivational chains (unworld) guide walk succession
    → Algebraic structure (acsets) defines skill graph schema
    → Color determinism (gay-mcp) assigns trit/color per step
    → Bidirectional flow (world-hopping) enables path reversal
```

## Philosophical Foundation

Random walks on skill graphs embody **xenomodern recombination**:

1. **No privileged origin**: Any skill can seed the walk
2. **Deterministic exploration**: Same seed → same discoveries
3. **Compositional**: Walks compose via path concatenation
4. **Reversible**: Every walk has its involution dual

The fusion is not additive but **multiplicative** — concepts don't just accumulate, they transform each other through the walk.

---

**Skill Name**: random-walk-fusion  
**Type**: Skill Graph Navigation / Concept Recombination  
**Trit**: +1 (PLUS)  
**GF(3)**: Conserved via rebalancing  
**Walk**: Derivational, deterministic, bidirectional



## Scientific Skill Interleaving

This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:

### Stochastic
- **simpy** [○] via bicomodule

### Bibliography References

- `graph-theory`: 38 citations in bib.duckdb

## Cat# Integration

This skill maps to **Cat# = Comod(P)** as a bicomodule in the equipment structure:

```
Trit: -1 (MINUS)
Home: Prof
Poly Op: ⊗
Kan Role: Ran_K
Color: #FF6B6B
```

### GF(3) Naturality

The skill participates in triads satisfying:
```
(-1) + (0) + (+1) ≡ 0 (mod 3)
```

This ensures compositional coherence in the Cat# equipment structure.

Related Skills

performing-firmware-extraction-with-binwalk

16
from plurigrid/asi

Performs firmware image extraction and analysis using binwalk to identify embedded filesystems, compressed archives, bootloaders, kernel images, and cryptographic material. Covers entropy analysis for detecting encrypted or compressed regions, recursive extraction of nested archives, SquashFS/CramFS/JFFS2 filesystem mounting, and string analysis for credential and configuration discovery. Activates for requests involving firmware reverse engineering, IoT device analysis, embedded system security assessment, or router/camera firmware extraction.

lean-proof-walk

16
from plurigrid/asi

GF(3)-balanced random walk through Lean proof states. Use when generating formal proof chains with parallel triad verification. Invokes 3 agents (Generator +1, Coordinator 0, Validator -1) to traverse proof space via prime geodesics.

finder-color-walk

16
from plurigrid/asi

Finder Color Walk Skill

exploiting-jwt-algorithm-confusion-attack

16
from plurigrid/asi

Exploits JWT algorithm confusion vulnerabilities where the server's token verification library accepts the algorithm specified in the JWT header rather than enforcing a fixed algorithm. The tester manipulates the alg header to switch from RS256 to HS256 (using the RSA public key as the HMAC secret), sets alg to none to bypass signature verification, or exploits kid/jku/x5u header injection to supply attacker-controlled keys. Activates for requests involving JWT algorithm confusion, alg none attack, key confusion attack, or JWT signature bypass.

ducklake-walk

16
from plurigrid/asi

Ergodic random walks over DuckLake lakehouses with GF(3) triadic concurrent walkers. Society-of-mind coordination for schema exploration.

chromatic-walk

16
from plurigrid/asi

3 parallel agents explore codebase improvements via GF(3) balanced prime geodesics

Spectral Random Walker

16
from plurigrid/asi

**Category**: Theorem Discovery + Comprehension

zx-calculus

16
from plurigrid/asi

Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)

zulip-cogen

16
from plurigrid/asi

Zulip Cogen Skill 🐸⚡

zls-integration

16
from plurigrid/asi

zls-integration skill

zig

16
from plurigrid/asi

zig skill

zig-syrup-bci

16
from plurigrid/asi

Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation