Skip to content
Back to skills

Ward Identity Checker

ASecurity

Ward Identity Checker

  • 61 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
documentationpythonbashexpress

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add plurigrid/asi --skill ward-identity-checker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ward Identity Checker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ward Identity Checker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plurigrid-ward-identity-checker-asi/badge)](https://www.skillsdirectory.com/skills/plurigrid-ward-identity-checker-asi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ward-identity-checker
description: 'Ward Identity Checker'
version: 1.0.0
---

# Ward Identity Checker

Verify GF(3) conservation as Ward identities across RG flow with Markov blanket separation.

## Seed
```
741086072858456200
```

## Core Principle

Ward identities express symmetry conservation: **Σ trit = 0 (mod 3)** at every renormalization group (RG) level. Violations indicate "relevant operators" that break the symmetry.

## MCP Calibration Data

```yaml
markov_blanket:
  internal_states: ["#3FF1A7", "#10B99D", "#DF9811"]
  sensory_indices: [1, 2, 3]
  
active_inference:
  prediction_error: 0.5692
  free_energy: 0.6692
  recommendation: perceptual_inference
  
reafference:
  prediction: "#F7E182"
  sensation: "#3FF1A7"
  result: identity_mismatch
```

## Predicates

### GF3Conserved(level)
```
GF3Conserved(L) := Σᵢ trit(cᵢ) ≡ 0 (mod 3)
  where cᵢ ∈ colors_at_level(L)
```

### BlanketIntact(state)
```
BlanketIntact(s) := ∀ internal ∈ s.internal_states,
  ∃ blanket ∈ s.sensory_states ∪ s.active_states
  such that internal ⊥ external | blanket
```

### NoLeakage(flow)
```
NoLeakage(f) := GF3Conserved(f.source) ∧ GF3Conserved(f.target)
  ∧ Σ trit(f.source) = Σ trit(f.target)
```

## Ward Identity Check Protocol

```python
def check_ward_identity(colors: list[str], level: int) -> dict:
    """Verify Σ trit = 0 at RG level."""
    trits = [hex_to_trit(c) for c in colors]
    total = sum(trits) % 3
    
    return {
        "level": level,
        "trit_sum": total,
        "conserved": total == 0,
        "violation_type": None if total == 0 else "relevant_operator",
        "correction_needed": (3 - total) % 3
    }

def hex_to_trit(hex_color: str) -> int:
    """Map hex to GF(3) via hue angle."""
    r, g, b = int(hex_color[1:3], 16), int(hex_color[3:5], 16), int(hex_color[5:7], 16)
    hue = compute_hue(r, g, b)
    return int(hue / 120) % 3  # 0-119 → 0, 120-239 → 1, 240-359 → 2
```

## Markov Blanket Separation

```
┌─────────────────────────────────────────────┐
│                 EXTERNAL                     │
│   (exafference: world-caused sensations)    │
├─────────────────────────────────────────────┤
│              BLANKET STATES                  │
│  Sensory: idx [1,2,3] → colors observed     │
│  Active:  predictions emitted               │
├─────────────────────────────────────────────┤
│                 INTERNAL                     │
│  #3FF1A7 (trit 1) ─┐                        │
│  #10B99D (trit 1) ─┼─ Σ = 3 ≡ 0 (mod 3) ✓  │
│  #DF9811 (trit 1) ─┘                        │
└─────────────────────────────────────────────┘
```

## Violation Detection

When reafference check shows identity mismatch (prediction ≠ sensation):

| Condition | Diagnosis | Action |
|-----------|-----------|--------|
| `GF3Conserved ∧ ¬BlanketIntact` | Boundary leak | Reseal blanket |
| `¬GF3Conserved ∧ BlanketIntact` | Relevant operator | Add counterterm |
| `¬GF3Conserved ∧ ¬BlanketIntact` | Full symmetry break | RG flow unstable |

## Usage

```bash
# Via Gay.jl MCP
gay_seed 741086072858456200
gay_markov_blanket --internal-seed 741086072858456200 --sensory-indices "1,2,3"

# Check conservation
just ward-check --level 0 --colors "#3FF1A7,#10B99D,#DF9811"
```

## Integration

- **cybernetic-immune**: Use Ward violations as non-self markers
- **active-inference**: Free energy ≈ Ward violation magnitude
- **unworld**: Color chain derivations must preserve Ward identity

## References

- Ward-Takahashi identities in QFT
- Friston's Markov blanket formalism
- GF(3) trit arithmetic for color conservation

Files in this skill

  • CONCOMITANT_SKILLS.md713 B
  • SKILL.md4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.