Asi worlding
Gay.jl world_ pattern: persistent composable state builders with GF(3) conservation, Möbius invertibility, and Narya verification
install
source · Clone the upstream repo
git clone https://github.com/plurigrid/asi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/plurigrid/asi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/worlding" ~/.claude/skills/plurigrid-asi-worlding-024905 && rm -rf "$T"
manifest:
skills/worlding/SKILL.mdsource content
Worlding Skill
"Demos print and discard. Worlds compose and persist."
Status: ✅ Production Ready
Trit: 0 (ERGODIC - coordinator)
Source: Gay.jl AGENTS.md + 20 Amp threads
Pattern:
world_ prefix for persistent state builders
The World Pattern
From Gay.jl/AGENTS.md:
FORBIDDEN: demo_
Prefix
demo_# ◇ FORBIDDEN - prints and discards function demo_ancestry_tracing(threads) println("Tracing ancestry...") # Side effect! # ... computation discarded end
REQUIRED: world_
Prefix
world_# ◆ REQUIRED - returns composable structure function world_ancestry_tracing(threads)::AncestryWorld AncestryWorld(materialize_ancestry!(threads)) end
World Builder Requirements
All
world_ functions MUST return types implementing:
| Method | Purpose | Example |
|---|---|---|
| Cardinality | |
| Monoidal composition | |
| SPI-compliant hash | |
Thread Index (20 Threads)
Accessibility Worlds
| Thread | Title | Messages | Key Contribution |
|---|---|---|---|
| T-019b7968 | Tactile color tensor with accessibility outlier skills | 72 | , skill |
| T-019b795a | Interface interrupts and amp graphical operadic structure | 66 | , A⊗G⊗M⊗T |
| T-019b794f | Möbius knight tours and interface interrupt operads | 53 | , |
Core Pattern Migration
| Thread | Title | Messages | Key Contribution |
|---|---|---|---|
| T-019b3165 | Prevent Gay.jl regression with subagent branch tracking | 344 | → migration, AGENTS.md, lint_no_demo.jl |
| T-019b7953 | Integrating Dafny and Narya verification into Gay.jl | 50 | builders + formal verification |
| T-019b7941 | Thread list display from ampies workspace | 61 | |
Tensor Products
| Thread | Title | Messages | Key Contribution |
|---|---|---|---|
| T-019b7947 | Sparse PQ ratchet and cognitive yield integration | 56 | , |
| T-019b7924 | Sparse PQ ratchet and incidence algebra integration | 80 | Incidence algebra + builders |
| T-019b795d | ACSet as infinite stream with retrieval indexing | 55 | |
World-Coworld Bridge
| Thread | Title | Messages | Key Contribution |
|---|---|---|---|
| T-019b7905 | World-coworld bridge with deterministic coloring | 125 | , , |
| T-019b78f9 | Abductive inference module with convolution fusion | 80 | , |
| T-019b78e3 | Interconnected modules with SPI and GF(3) trits | 88 | , |
Orchestration
| Thread | Title | Messages | Key Contribution |
|---|---|---|---|
| T-019b78d3 | SPI orchestrator achieving 2.26 billion colors/sec | 73 | API, 2.26B colors/sec |
| T-019b6cff | p-adic ultrametric distance with UMAP and embeddings | 49 | World sub-agents for bounty analysis |
| T-019b532b | To be or not to be decision | 81 | |
Specialized Domains
| Thread | Title | Messages | Key Contribution |
|---|---|---|---|
| T-019b7901 | Lossless ACSet design for ElevenLabs voice selection | 123 | World attributes in ACSet schema |
| T-019b7806 | GF(3) triads for Move VRGDA worlds | 82 | Move contract world integration |
| T-019b53e1 | Continuing color obstructions compositionality work | 126 | , obstruction detection |
Verification
| Thread | Title | Messages | Key Contribution |
|---|---|---|---|
| T-019b527b | Load skills and verify ordered locale implementation | 69 | Ordered locale worlds |
| T-019b3601 | Three-qubit gates quantum computing | 116 | Semantically closed world |
World Functions (578 total)
By Category
| Category | Count | Example Functions |
|---|---|---|
| Core RNG | 12 | , , |
| Tensor Products | 8 | , , , |
| Accessibility | 6 | , |
| Parallelism | 15 | , , |
| Conceptual Spaces | 8 | , , |
| Crypto/Ratchet | 4 | , |
| Games/Collective | 6 | , , |
| Abductive | 4 | , , |
| ALIFE | 3 | , |
Narya Verification Spec
-- World pattern type in Narya HOTT def World (A : Type) : Type := sig ( elements : A, length : Nat, fingerprint : UInt64, merge : World A → World A, gf3_sum : Int, -- Must be 0 (mod 3) ) -- World builder constraint def world_builder_valid (w : World A) : Type := sig ( length_positive : w.length > 0, fingerprint_deterministic : ∀ (seed : UInt64), fingerprint(w, seed) = fingerprint(w, seed), merge_associative : ∀ (w1 w2 w3 : World A), merge(merge(w1, w2), w3) = merge(w1, merge(w2, w3)), gf3_conserved : w.gf3_sum % 3 = 0, ) -- Möbius invertibility for world paths def moebius_geodesic (path_length : Nat) : Bool := moebius(path_length) ≠ 0 -- Accessible worlds theorem def accessible_worlds_isomorphism : Type := π_visual(W) ≅ π_tactile(W) ≅ π_auditory(W) ≅ π_haptic(W)
GF(3) Triads
world-memory-worlding (0) ⊗ gay-mcp (+1) ⊗ bisimulation-game (-1) = 0 ✓ worlding (0) ⊗ world-hopping (+1) ⊗ nix-acset-worlding (-1) = 0 ✓ worlding (0) ⊗ unworld (+1) ⊗ duckdb-timetravel (-1) = 0 ✓
Commands
# Lint for demo_ violations julia --project=. scripts/lint_no_demo.jl # Test world builders julia --project=. -e 'using Gay; w = world_tactile_color(6); println(length(w))' # Verify GF(3) conservation julia --project=. -e 'using Gay; w = world_agm_hatchery_tensor(); println(w.gf3_sum)' # Generate accessibility projections julia --project=. -e 'using Gay; w = world_accessible_interrupt_operad(); print_accessible_interrupt_report(w)'
Related Skills
- world-memory-worlding — Autopoietic strange loop
- world-hopping — Badiou possible world navigation
- world-runtime — Firecracker microVM worlding
- world-extractable-value — WEV = PoA - 1
- nix-acset-worlding — Nix store as ACSet
- crossmodal-gf3 — GF(3) → {Tactile, Auditory, Haptic}
Enforcement
Run before every commit:
julia --project=. scripts/lint_no_demo.jl
CI will fail on
demo_ violations.
GitHub Interactome Bridge
The
world_interactome_bridge.jl module connects graph-theoretic analysis to the world_ pattern:
"Opened Twice" Detection
When traversing dense interaction graphs, detect duplicate visits via fingerprint XOR:
# From world_interactome_bridge.jl function opened_twice(w1::InteractionWorld, w2::InteractionWorld)::Bool return fingerprint(w1) == fingerprint(w2) # XOR = 0 end function detect_duplicate_visit!(world, node)::Bool if node.fingerprint in world.visited_fingerprints world.duplicate_count += 1 return true # "Shortable opened twice" else push!(world.visited_fingerprints, node.fingerprint) return false end end
Mapping to MinHash Deduplication
| Interactome Pattern | World_ Equivalent |
|---|---|
| set |
| |
| |
| Shannon entropy H | |
| Link depth POSET | |
Compass Navigation (from Interaction Entropy)
compass_direction(0.92) # => "NORTH" (highest contention) compass_direction(0.50) # => "SOUTHEAST" (moderate) compass_direction(0.20) # => "SOUTH" (consensus)
"The world remembers itself by worlding itself."
SDF Interleaving
This skill connects to Software Design for Flexibility (Hanson & Sussman, 2021):
Primary Chapter: 10. Adventure Game Example
Concepts: autonomous agent, game, synthesis
GF(3) Balanced Triad
worlding (−) + SDF.Ch10 (+) + [balancer] (○) = 0
Skill Trit: -1 (MINUS - verification)
Secondary Chapters
- Ch5: Evaluation
- Ch3: Variations on an Arithmetic Theme
- Ch6: Layering
- Ch1: Flexibility through Abstraction
- Ch4: Pattern Matching
- Ch7: Propagators
Connection Pattern
Adventure games synthesize techniques. This skill integrates multiple patterns.