Deterministic triadic fanout over file-sets with macOS Finder label coloring, GF(3) conservation, and Strong Parallelism Invariance (SPI).
/plugin marketplace add plurigrid/asi/plugin install asi-skills@asi-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
INTERLEAVED.mddrive_color_walk.pyfinder_color_walk.bbparallel_walk.bbschema.jlspi_test.pytriadic_router.bbDeterministic triadic fanout over a file-set, with macOS Finder label coloring, supporting GF(3) conservation and Strong Parallelism Invariance (SPI).
raw (default): color_at(file) only; SPI holds; GF(3) not guaranteed.gf3_balanced: colors are assigned in position-aligned triplets across the 3 routed fibers; GF(3) holds.For a fixed file-set, policy, and seed:
Formally: any permutation of the same input file-set yields the same final mapping.
gf3_balanced)Let the three fibers be sorted lists F0,F1,F2 of equal length N.
For each index i define trits t0(i), t1(i), t2(i) ∈ {0,1,2} as assigned to F0[i],F1[i],F2[i].
Then for all i:
t0(i) + t1(i) + t2(i) ≡ 0 (mod 3)Implementation: choose t0,t1 deterministically; set t2 := (-t0-t1) mod 3.
schema.jl — Catlab ACSet schema: FileColorWalk.triadic_router.bb — GF(3)-balanced routing into 3 fibers.finder_color_walk.bb — single-stream walk (policy raw).parallel_walk.bb — 3-stream walk + gf3_balanced coloring.spi_test.py — verifies SPI + GF(3) (where requested).INTERLEAVED.md — 4-corpus synthesis notes.bb triadic_router.bb --root . --out fibers.json
bb parallel_walk.bb --fibers fibers.json --policy gf3_balanced --dry-run
python spi_test.py --fibers fibers.json --policy gf3_balanced
Trits → label colors (customize inside scripts):
| Skill | Trit | Integration |
|---|---|---|
| google-workspace | 0 | Drive file coloring via drive_color_walk.py |
| gay-mcp | +1 | SplitMix64 algorithm, trit-to-hue mapping |
| triad-interleave | +1 | Schedule file walks in balanced triplets |
| bisimulation-game | -1 | Verify file state equivalence |
| spi-parallel-verify | -1 | Strong Parallelism Invariance verification |
# drive_color_walk.py bridges:
# google-workspace MCP (file listing)
# → finder-color-walk (GF(3) routing)
# → gay-mcp (color generation)
# → Finder/Drive labels
from google_workspace import list_drive_items
from finder_color_walk import route_to_fibers, gf3_color
from gay import SplitMixTernary
files = list_drive_items(folder_id="root")
fibers = route_to_fibers(files, seed=0x42D)
colored = gf3_color(fibers, seed=0x42D)
# Apply to both Drive (via MCP) and Finder (via xattr)