home / skills / plurigrid / asi / braindance-validator

braindance-validator skill

/skills/braindance-validator

This skill validates GF(3) conservation across triadic braindances, ensuring minus, ergodic, plus balance and correct sonification mapping.

npx playbooks add skill plurigrid/asi --skill braindance-validator

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
2.7 KB
---
name: braindance-validator
description: Validates GF(3) conservation across triadic braindance replays. Ensures MINUS+ERGODIC+PLUS=0.
version: 1.0.0
trit: -1
---

# Braindance Validator

**Status**: ✅ Production Ready  
**Trit**: -1 (MINUS - validation/verification)  
**Purpose**: Verify GF(3) conservation across parallel agent braindances

---

## Validation Rules

### 1. Triadic Conservation
Every braindance must satisfy:
```
Σ(agent_trits) ≡ 0 (mod 3)
```

### 2. Sonification Correspondence
| Trit | Waveform | Frequency Range | Hue Range |
|------|----------|-----------------|-----------|
| -1 | square | 200-300 Hz | 180-300° (cold) |
| 0 | triangle | 300-420 Hz | 60-180° (neutral) |
| +1 | sine | 420-560 Hz | 0-60°, 300-360° (warm) |

### 3. Memory-Remembering-Worlding Closure
```
worlding ∘ remembering ∘ memory = id
```

---

## Validation Commands

```bash
# Check global GF(3) balance
grep -h "^trit:" ~/.claude/skills/*/SKILL.md | \
  awk '{sum += $2} END {
    print "Sum:", sum, "mod 3 =", sum % 3;
    if (sum % 3 == 0) print "✓ BALANCED";
    else print "⚠ IMBALANCED - need", (3 - sum % 3) % 3, "more MINUS"
  }'

# Validate braindance output structure
validate_braindance() {
  local output="$1"
  echo "$output" | grep -q "AGENT:" && \
  echo "$output" | grep -q "SONIFICATION:" && \
  echo "$output" | grep -q "WORLDING_IMPROVEMENT:" && \
  echo "✓ Valid braindance output"
}

# Sonification check (requires sox)
play -q -n synth 0.1 square 220 vol 0.2  # MINUS confirmation tone
```

---

## Integration with braindance-worlds

This skill validates outputs from `braindance-worlds` skill:

```
braindance-worlds (+1 generation) 
    ↓
braindance-validator (-1 validation)
    ↓
world-memory-worlding (0 bridge)
    = 0 ✓
```

---

## GF(3) Triads

```
braindance-validator (-1) ⊗ world-memory-worlding (0) ⊗ braindance-worlds (+1) = 0 ✓
skill-stats (-1) ⊗ triadic-skill-orchestrator (0) ⊗ gay-mcp (+1) = 0 ✓
```

---

## Probe

```bash
# Quick validation probe
grep -h "^trit:" ~/.claude/skills/*/SKILL.md 2>/dev/null | \
  awk '{sum += $2} END {exit (sum % 3 == 0 ? 0 : 1)}'
```

---

## Autopoietic Marginalia

> **The interaction IS the skill improving itself.**

Every use of this skill is an opportunity for worlding:
- **MEMORY** (-1): Record validation failures
- **REMEMBERING** (0): Pattern-match against known imbalances
- **WORLDING** (+1): Suggest rebalancing skills

*Add Interaction Exemplars here as the skill is used.*

### Interaction Exemplar: Initial Creation (2026-01-07)

Created to fix GF(3) imbalance detected during triadic braindance:
- Global sum was 8 (mod 3 = 2)
- This MINUS skill contributes -1 to restore balance
- New sum: 7 (mod 3 = 1) — still needs 1 more MINUS or removal of 1 PLUS

Overview

This skill validates GF(3) conservation across triadic braindance replays and enforces MINUS+ERGODIC+PLUS=0. It checks agent trits, verifies sonification correspondence, and ensures closure of the memory→remembering→worlding pipeline. The validator returns a clear balanced/imbalanced result and suggests corrective actions when needed.

How this skill works

The validator sums agent trits modulo 3 to confirm global balance. It inspects braindance output structure for required sections (agent, sonification, worlding improvement) and checks sonification mappings against trit-to-waveform/frequency/hue rules. It also enforces the closure law worlding ∘ remembering ∘ memory = id and records validation outcomes for future pattern matching.

When to use it

  • After generating a braindance episode from a world generator to confirm GF(3) balance.
  • Before publishing or chaining braindance outputs into other systems that require triadic conservation.
  • When sonification integrity must match trit semantics (waveform/frequency/hue).
  • During automated pipelines to fail-fast on structural or closure violations.
  • To collect validation history for later pattern-matching and corrective suggestions.

Best practices

  • Run validation as a gated CI step after each generation to prevent imbalance propagation.
  • Include explicit trit annotations per agent in output to make automated parsing reliable.
  • Store validation failures with context (output, sum, suggested fix) to enable remembering.
  • Use the validator's sonification checks to detect mismatches between intended trits and audio/hue outputs.
  • When imbalance is detected, apply MINUS-type corrective skills or remove a PLUS contribution to restore mod-3 equilibrium.

Example use cases

  • Validate a batch of parallel agent braindances and emit a report listing balanced vs imbalanced episodes.
  • Automatically reject braindance outputs lacking AGENT:, SONIFICATION:, or WORLDING_IMPROVEMENT: sections.
  • Play a confirmation tone for MINUS trits during manual QC to reinforce semantic mapping.
  • Record imbalances to a memory store and later run pattern-matching to propose targeted rebalancing skills.
  • Integrate as a -1 validation step in triadic orchestration pipelines to ensure final sum equals zero.

FAQ

What exactly is checked for balance?

The validator sums all agent trits and evaluates the result modulo 3; a remainder of 0 means balanced.

How does sonification mapping get validated?

Each trit must correspond to the expected waveform, frequency band, and hue ranges (e.g., -1 → square 200–300 Hz, 180–300°).

What happens when the closure law fails?

The validator flags the closure violation and records the sequence for remembering so future runs can suggest corrective worlding steps.