Mathematical Integrity
Every message carries PIR invariants (Prouhet-Thue-Morse sequence) that mathematically prove the scene is in equilibrium. Disequilibrium is caught instantly before rendering.
PCHI (Peachy) protocol v2.0 introduces PIR mathematical invariants enabling verified scene state management across distributed creative systems. Say goodbye to state drift.
One language.
Your whole creative stack.
Moving from convention-based to
mathematics-based scene management.
Every message carries PIR invariants (Prouhet-Thue-Morse sequence) that mathematically prove the scene is in equilibrium. Disequilibrium is caught instantly before rendering.
AI agents run inside Only-Lang boundaries the conductor enforces on every incoming message. Every rule that fires is signed and hash-chained — export the log and verify it independently, with no need to trust our dashboard or our word for what happened.
The PCHI Conductor maintains a single source of truth for Resolume, TouchDesigner, Ableton, Unreal, TiXL, and cables.gl. All tools receive the same verified state via UDP, WebSocket, TCP, OSC, or HTTP.
PCHI standardizes the message format for scene updates, control parameters, and musical contexts. Every message includes its mathematical signature.
Common format for objects, parameters, artists, and music.
Equilibrium checks, coherence gaps, curvature signatures.
JSON (human-readable) & FlatBuffers (high-performance binary).
Rule definition DSL to keep generative AI output safe and harmonious.
Explore the tools built on top of
the PCHI 2.0 protocol ecosystem.
The central state management server. Validates every message with PIR invariants, enforces Only-Lang rules, and broadcasts coherent state to all receivers. Includes a built-in web dashboard.
$ cargo run -p primeswarm-pchiThe core protocol schemas, JSON validation configurations, and Rust implementation library with invariant math modules.
Connects Resolume Arena to the PCHI Conductor via OSC. Converts standard OSC to PCHI with calculated PIR invariants (equilibrium, coherence gap) and handles real-time visual streaming constraints.
python resolume_pchi_bridge.py
--resolume-port 7000 --pchi-port 8888A Max for Live device that monitors Ableton's musical state (BPM, beat, clips, kick/snare detection). Calculates equilibrium from the musical state and routes messages directly to the conductor.
Host: 127.0.0.1Port: 8888LOCAL CONNECTIONA custom Python CHOP that connects to the PCHI Conductor via UDP. Receives PCHI messages and outputs scene state, musical context, and PIR equilibrium status directly as CHOP channels.
import json
# Extracts objects & beats as channelsConnects TiXL's real-time motion graphics engine to the PCHI Conductor over OSC — a fixed /pchi/control address in, live governance verdicts back out as /pchi/governance/gate_state.
python tixl_pchi_bridge.py
--osc-in-port 9001 --pchi-port 8888Two real TiXL operators — one sends control parameters, one receives governance verdicts — compiled clean against TiXL's actual Core.dll, no bridge process required. Compiled; not yet run inside a live TiXL editor session.
$ dotnet build Pchi.csprojBridges cables.gl's browser-sandboxed patches to the Conductor: a CORS-handled HTTP POST carries control updates in, a plain WebSocket — the same shape cables' own WebSocket op already speaks — carries governance verdicts out.
python cables_pchi_relay.py
--http-port 9100 --ws-port 9101ⓘ Schemas and integrations open in the PCHI repository. Select a file on GitHub to view or download its source.
Same protocol, same signed log —
different reason to care.
Run the conductor yourself, free, self-hosted. Write Only-Lang rules for your own safety limits — strobe intensity, animation speed, whatever your show needs — and get a signed record of every time one fired, without paying anyone for it.
The Resolume, TouchDesigner, Ableton, TiXL, and cables.gl bridges are a small, self-contained surface — OSC/CHOP/Max/HTTP in, PCHI out. Ship one natively, the way TiXL's C# operators do against real compiled source, rather than making every customer run a separate bridge process.
An insurer underwriting an AI-driven show doesn't want the venue's word that safety limits held — they want to check it themselves. GET /governance/export plus the offline verifier script re-derives every signed decision independently, no trust in the venue's dashboard required.
Your tools. Your ideas. All on the same wavelength.