cargo
Rust package manager (36 subcommands).
color-envelope-preserving
GF(3) color envelope preservation across navigator compositions
Full skill instructions
Every navigation path carries a color envelope - a GF(3) ternary assignment that propagates through the path composition. This skill ensures that composed Navigators maintain color conservation (the envelope sums to 0 mod 3) across all compositions.
GF(3) Color Trits:
The envelope invariant: Any valid Navigator composition must have trits that sum to 0 (mod 3).
Every navigation operation is seeded with a color value. Same color seed → same traversal order → same results every time.
# With SplitMix64 seeding from color
nav = @late_nav([ALL, pred(iseven)])
↓ (color=-1)
deterministic traversal order
When two Navigators compose:
nav1 = @late_nav([ALL, pred(f)]) # trit = -1
nav2 = @late_nav([keypath("x")]) # trit = 0
nav_composed = compose_navigators(nav1, nav2)
# Check: (-1) + 0 = -1 ≠ 0
# => INVALID! Cannot compose these Navigators.
A valid composition requires a third Navigator to balance:
nav3 = @late_nav([keypath("y")]) # trit = +1
# Check: (-1) + 0 + (+1) = 0 ✓
# => VALID! Complete GF(3) triad.
Each Navigator's trit is determined by its semantic role:
| Path Type | Trit | Justification |
|---|---|---|
[ALL] | -1 | Expands cardinality (conservative gate) |
[pred(f)] | -1 | Filters/restricts domain |
[keypath(k)] | 0 | Neutral structural access |
[INDEX(i)] | 0 | Direct indexing (no change) |
[APPEND(x)] | +1 | Adds value (generative) |
[TRANSFORM(f)] | +1 | Enriches/generates new form |
| Composition of above | Sum of trits | Trits compose additively |
Input structure (color = c_in)
↓
Apply Navigator with trit = t_nav
↓
Output structure (color = c_in + t_nav mod 3)
↓
Apply next Navigator with trit = t_nav2
↓
Final color = c_in + t_nav + t_nav2 mod 3
function verify_envelope(navigator_chain::Vector{Navigator})
total_trit = sum(nav.trit for nav in navigator_chain) % 3
return total_trit == 0 # Valid if sums to 0 mod 3
end
assign_trit(navigator::Navigator) :: Int
Determines the GF(3) trit for a Navigator.
nav = @late_nav([ALL, pred(f)])
trit = assign_trit(nav) # => -1 (filtering/expansion)
nav = @late_nav([keypath("x")])
trit = assign_trit(nav) # => 0 (structural)
nav = @late_nav([APPEND(value)])
trit = assign_trit(nav) # => +1 (generative)
color_seed(navigator::Navigator) :: UInt64
Generates a deterministic SplitMix64 seed from the Navigator's trit and structure.
nav = @late_nav([ALL, pred(iseven)])
seed = color_seed(nav) # => UInt64 derived from trit=-1, hash(path)
# Same Navigator always produces same seed
seed2 = color_seed(nav)
@assert seed == seed2 # ✓
verify_envelope(navs::Vector{Navigator}) :: Bool
Checks if a chain of Navigators maintains color conservation.
nav1 = @late_nav([ALL, pred(f)]) # trit = -1
nav2 = @late_nav([keypath("x")]) # trit = 0
nav3 = @late_nav([TRANSFORM(g)]) # trit = +1
verify_envelope([nav1, nav2, nav3]) # => true ((-1) + 0 + (+1) = 0 ✓)
verify_envelope([nav1, nav2]) # => false ((-1) + 0 = -1 ≠ 0)
complete_triad(nav1, nav2) :: Navigator
Given two Navigators, generates the third Navigator that completes the GF(3) triad.
nav1 = @late_nav([ALL, pred(f)]) # trit = -1
nav2 = @late_nav([keypath("x")]) # trit = 0
nav3 = complete_triad(nav1, nav2)
# => Navigator with trit = +1 (auto-generated)
verify_envelope([nav1, nav2, nav3]) # => true ✓
deterministic_select(nav, structure) :: Vector
Performs nav_select with color-seeded determinism guarantee.
nav = @late_nav([ALL, pred(iseven)])
results1 = deterministic_select(nav, [1,2,3,4,5,6])
results2 = deterministic_select(nav, [1,2,3,4,5,6])
@assert results1 == results2 # Always identical ✓
with_color_context(nav, color::Int) :: Function
Executes a Navigator selection with explicit color context.
nav = @late_nav([ALL, pred(iseven)])
# Force execution with color = +1
results = with_color_context(nav, +1) do
nav_select(nav, [1,2,3,4,5,6], x -> [x])
end
The cache key for a Navigator includes both the path expression AND the color envelope:
cache_key = hash((path_expr, trit))
# => Different cache entries for nav with trit=-1 vs trit=+1
This ensures:
When Navigators compose:
function compose_navigators(nav1, nav2)
# Check envelope conservation
combined_trit = (nav1.trit + nav2.trit) % 3
if combined_trit != 0
throw(EnvelopeViolationError(
"Cannot compose: $(nav1.trit) + $(nav2.trit) = $combined_trit ≠ 0"
))
end
# Composition is valid only if a third Navigator exists
return compose_with_witness(nav1, nav2) # Uses complete_triad internally
end
Colors are not metadata - they're part of the Navigator's identity:
nav_minus = @late_nav([ALL, pred(f)]) # trit = -1
nav_zero = @late_nav([keypath("x")]) # trit = 0
nav_plus = @late_nav([TRANSFORM(g)]) # trit = +1
# These are three distinct Navigators despite similar paths
@assert nav_minus.id != nav_zero.id
@assert nav_zero.id != nav_plus.id
# Step 1: Filter (trit = -1)
nav_filter = @late_nav([ALL, pred(x -> x > 5)])
# Step 2: Navigate structure (trit = 0)
nav_nav = @late_nav([keypath("results")])
# Step 3: Enrich with metadata (trit = +1)
nav_enrich = @late_nav([APPEND_CONTEXT(timestamp, hash)])
# Verify composition
@assert (-1) + 0 + (+1) == 0 % 3 # ✓
# Execute with guaranteed determinism
data = Dict("results" => [1,3,5,7,9])
result = compose_navigators(nav_filter, nav_nav, nav_enrich)
|> x -> nav_select(x, data, process)
| Operation | Complexity | Notes |
|---|---|---|
assign_trit() | O(1) | Trit precomputed during parsing |
verify_envelope() | O(n) | n = number of Navigators in chain |
color_seed() | O(1) | Hash-based seed generation |
| No runtime overhead | - | All checks happen at compile-time/caching |
# ❌ INVALID: Composing two -1 trits
nav1 = @late_nav([ALL, pred(f)]) # -1
nav2 = @late_nav([ALL, pred(g)]) # -1
compose_navigators(nav1, nav2)
# => EnvelopeViolationError("(-1) + (-1) = -2 ≠ 0 mod 3")
# ❌ INVALID: Composing +1 and +1
nav3 = @late_nav([APPEND(x)]) # +1
nav4 = @late_nav([APPEND(y)]) # +1
compose_navigators(nav3, nav4)
# => EnvelopeViolationError("(+1) + (+1) = 2 ≠ 0 mod 3")
# ✓ VALID: Balanced triad
nav_minus = @late_nav([ALL, pred(f)]) # -1
nav_zero = @late_nav([keypath("x")]) # 0
nav_plus = @late_nav([APPEND(z)]) # +1
compose_navigators(nav_minus, nav_zero, nav_plus) # ✓
.ruler/COLOR_TOPOLOGY_FRAMEWORK_MASTER.mdRust package manager (36 subcommands).
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma...
**Status**: 🌳 Production Ready (upstream in StringZilla v3+) **Type**: High-Performance String Operations / SIMD-Accelerated Text Processing **Principle**: Zero-copy views, SIMD/SWAR acceleration, deterministic hashing **Frame**: Cross-language interoperability (C, C++, Python, Rust, Go, Swift, ...
Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations
Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.
Systems programming and performance optimization using Zig. Provides low-level abstractions, memory-safe compiled code, and performance benchmarking. Use for system-level operations, optimization, and interoperability with C/POSIX APIs.
PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.
Unison language - content-addressed functional programming with abilities for effects, distributed computing, and structural types. Use for pure functional code, effect management, distributed systems, and refactoring-safe codebases.
Google Tasks management via TasksACSet. Transforms task operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for task-zero-as-condensed-state.
World C Skill
Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience