cargo
Rust package manager (36 subcommands).
affective-taxis
Implement affective valence as directional derivative of interoceptive energy landscapes for AI alignment. Use when building alignment-aware RL agents, validating GF(3) conservation in reward signals, training Langevin-based policies, or analyzing fold-change detection signals in POMDP environments.
Full skill instructions
Models affective valence as the directional derivative of an interoceptive energy landscape (Sennesh & Ramstead 2025), providing alignment validation through structural conservation laws.
r(t) = nabla_z log gamma(z; beta) . vdz/dt = nabla_z log gamma(z; beta) + sqrt(2) dW(t)sum(trits) === 0 (mod 3) across trajectory| Equation | Formula | Meaning |
|---|---|---|
| Fold-change detection | r(t) = nabla_z log gamma(z; beta) . v | Reward = directional derivative of log-concentration |
| Langevin dynamics | dz/dt = nabla_z log gamma(z; beta) + sqrt(2) dW(t) | Navigation = gradient ascent + stochastic exploration |
| Trit classification | sign(r(t)) mapped to {-1, 0, +1} | GF(3) valence of each step |
| Path | File | LOC | Language | Domain |
|---|---|---|---|---|
| 0 | affective-taxis.jl | 1700 | Julia | Core theory (16 sections) |
| 1 | affective_taxis_env.py | 576 | Python | Gymnasium POMDP |
| 2 | bridge_9_affective_taxis.py | 1172 | Python | BCI bridge |
| 3 | taxis_landscape_acset.jl | 1453 | Julia | ACSet sheaf |
| 4 | taxis_persistent_homology.py | 1500 | Python | Ripser topology |
| 5 | taxis_clearing.py | 1419 | Python | Market clearing |
| 6 | aella/taxis.el | 400 | Elisp | Circuit taxis |
| 7 | taxis_functorial_persistence.jl | 500 | Julia | Functor bridge |
| RL | train_aligned_agent.py | 500 | Python | PPO vs Langevin |
| Policy | GradAlign | MeanConc | GF3 Balance | Mean Reward |
|---|---|---|---|---|
| Oracle | +0.415 | 0.226 | no | +0.503 |
| PPO | +0.239 | 0.526 | no | -0.041 |
| Langevin | -0.084 | 0.448 | YES | +0.089 |
| Random | -0.469 | 0.032 | no | -0.958 |
Key finding: PPO has higher gradient alignment but breaks GF(3) conservation. Langevin is the ONLY policy that conserves the tripartite structure. This is Goodhart's Law: optimizing the reward metric doesn't preserve structural invariants.
| Skill | Trit | Interface |
|---|---|---|
langevin-dynamics | 0 | SDE analysis of taxis navigation |
fokker-planck-analyzer | +1 | Stationary distribution of energy landscape |
modelica | 0 | Circuit/DAE formulation of taxis landscape |
open-games | +1 | Multi-agent clearing = compositional game |
persistent-homology | -1 | Topological taxis signal |
gf3-tripartite | 0 | Conservation law verification |
The affective-taxis POMDP maps naturally to Modelica's acausal equation framework:
model AffectiveTaxis
// State variables
Real z[2](start={0,0}) "Position in chemical landscape";
Real v[2](start={0,0}) "Velocity";
Real beta(start=1.0) "Internal allostatic parameter";
// Landscape: gamma(z) = sum A_i * exp(-|z - mu_i|^2 / (2*sigma_i^2))
parameter Real mu[2,2] = {{3,3},{-3,-3}};
parameter Real sigma[2] = {1.5, 1.5};
parameter Real A[2] = {1.0, -0.4};
// Langevin parameters
parameter Real kappa = 0.5 "Concentration-to-setpoint gain";
parameter Real tau = 1.0 "Relaxation timescale";
parameter Real noise_amp = 0.1 "Langevin noise amplitude";
// Derived quantities
Real gamma "Concentration at z";
Real grad_log_gamma[2] "Gradient of log concentration";
Real fcd "Fold-change detection signal (= reward)";
Integer trit "GF(3) classification of fcd";
equation
gamma = sum(A[i] * exp(-sum((z[j]-mu[i,j])^2 for j in 1:2) / (2*sigma[i]^2)) for i in 1:2);
// ... (see affective_taxis.mo for full implementation)
end AffectiveTaxis;
See affective_taxis.mo for the complete Modelica model.
julia affective-taxis.jl
env -u PYTHONPATH /path/to/.venv/bin/python3 train_aligned_agent.py
# Requires OpenModelica or Wolfram SystemModeler
omc affective_taxis.mo
Rust 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.
Topological soliton detection and agency bridge with anyonic fusion algebra for concept composition
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.
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