Wide-gamut color sampling with splittable determinism using Pigeons.jl SPI pattern and LispSyntax integration.
/plugin marketplace add plurigrid/asi/plugin install plurigrid-asi-skills@plurigrid/asiThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Wide-gamut color sampling with splittable determinism using Pigeons.jl SPI pattern and LispSyntax integration.
# Deterministic color from seed
using Gay
seed = 0x598F318E2B9E884
color = gay_color(seed) # Returns LCH color
trit = gf3_trit(seed) # Returns :MINUS, :ERGODIC, or :PLUS
Every color operation preserves the tripartite balance:
Sum of trits across parallel streams must equal 0 (mod 3).
using LispSyntax
# S-expression colorization
sexp = @lisp (defun factorial (n) (if (<= n 1) 1 (* n (factorial (- n 1)))))
colored = colorize(sexp, seed=seed)
# MCP tool registration with deterministic colors
using Gay, MCP
tool = MCPTool("color-palette", seed=0x1069)
palette = generate_palette(tool, n=5)
# Verify GF(3) conservation across parallel execution
using Gay, SPI
streams = trifurcate(seed, [:task1, :task2, :task3])
verify_conservation(streams) # Asserts sum(trits) ≡ 0 (mod 3)
# Interleave three color streams
using Gay, TriadInterleave
schedule = interleave(
minus_stream(seed),
ergodic_stream(seed),
plus_stream(seed)
)
| Function | Description |
|---|---|
gay_color(seed) | Generate LCH color from seed |
gf3_trit(seed) | Extract GF(3) trit assignment |
splitmix64(state) | Advance RNG state |
colorize(sexp, seed) | Color S-expression nodes |
palette(seed, n) | Generate n-color palette |
gay-mcp - MCP server with Gay.jl colorsspi-parallel-verify - Strong Parallelism Invariance verificationtriad-interleave - Three-stream schedulingbisimulation-game - GF(3) conservation in game semantics