Skip to main content
AI/MLplurigrid

self-validation-loop

Run self-validation loops for triadic color systems using prediction vs observation and error minimization.

Stars
23
Source
plurigrid/asi
Updated
2026-04-26
Slug
plurigrid--asi--self-validation-loop
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/plurigrid/asi/HEAD/ies/music-topos/.claude-marketplaces/topos-skills/plugins/topos-skills/skills/self-validation-loop/SKILL.md -o .claude/skills/self-validation-loop.md

Drops the SKILL.md into .claude/skills/self-validation-loop.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

Self-Validation Loop

Use when training or evaluating self-validation for 3-stream color systems.

Inputs

  • seed, indices
  • sources: splitmix_ternary, xoroshiro_3color, gay_mcp
  • comparator: reafference or comparator

Workflow

  1. Predict expected colors (efference copy).
  2. Observe actual colors (color_at or stream generation).
  3. Compare predictions with observations.
  4. Aggregate accuracy and surprise.

Gay MCP tools

  • gay_seed, efference_copy, color_at, reafference, comparator, active_inference, self_model

Metrics

  • accuracy = matches / total
  • surprise = mismatch count or summed error
  • pass threshold: accuracy >= 0.99 or surprise == 0

Output

  • JSON log with seed, indices, predicted, observed, errors, accuracy, surprise

Example prompt

"Run a self-validation loop over indices 1..20 and report accuracy and surprise."