home / skills / plurigrid / asi / aptos-society

aptos-society skill

/skills/aptos-society

This skill guides triadic governance by enforcing 3-skill, zero-sum trit balance, enabling coordinated validation, coordination, and execution across

npx playbooks add skill plurigrid/asi --skill aptos-society

Review the files below or copy the command above to add this skill to your agents.

Files (5)
skill.md
3.5 KB
---
name: aptos-society
description: 'Aptos Society Scale'
version: 1.0.0
---

# Aptos Society Scale

**Trit**: 0 (ERGODIC - coordinator)
**Domain**: Compositional Game Theory × Blockchain Governance × Social Interaction Labs

## Academic Foundations

### Seth Frey (UC Davis, Ostrom Workshop)
- **Composing Games into Complex Institutions** (PLoS ONE 2023)
- Institutional preferences laboratory experiments
- Game-theoretic institutional design with Jules Hedges

### Michael Zargham (BlockScience)  
- **Computer-Aided Governance** - cadCAD simulation framework
- Token Engineering Academy foundations
- Cryptoeconomic mechanism design

### Jules Hedges (Strathclyde)
- **Open Games** - categorical game theory
- String diagram representations for institutions
- Compositional approach to strategic interaction

## GF(3) Triadic Skill Forcing

Every interaction MUST load exactly 3 skills with balanced trits:

```
MINUS (-1): Validator/Constrainer (cold hues 180-300°)
ERGODIC (0): Coordinator/Synthesizer (neutral hues 60-180°)  
PLUS (+1): Generator/Executor (warm hues 0-60°, 300-360°)

Conservation: Σ trits ≡ 0 (mod 3)
```

## Aptos World Wallets (26 Letters)

| Segment | Letters | Trit | Role |
|---------|---------|------|------|
| MINUS | A-I (9) | -1 | Validators |
| ERGODIC | J-R (9) | 0 | Coordinators |
| PLUS | S-Z (8) | +1 | Executors |

## MCP Tools

```
mcp__world_{letter}_aptos__aptos_balance
mcp__world_{letter}_aptos__aptos_transfer
mcp__world_{letter}_aptos__aptos_swap
mcp__world_{letter}_aptos__aptos_view
```

## Derangement Protocol

For seed handoff between world segments:
1. XOR all addresses in segment → segment_seed
2. Maximum Hamming distance reordering
3. Sparsification for collision resistance

## Babashka/NBB Integration

```clojure
;; aptos_society.bb
(require '[babashka.process :refer [shell]])

(defn world-balance [letter]
  (let [tool (str "mcp__world_" letter "_aptos__aptos_balance")]
    {:world letter :tool tool}))

(defn triadic-worlds []
  {:minus (map world-balance "ABCDEFGHI")
   :ergodic (map world-balance "JKLMNOPQR")
   :plus (map world-balance "STUVWXYZ")})
```

## Swift Sendable Semantics

```swift
// AptosWorld conforms to Sendable for actor isolation
actor AptosWorld: Sendable {
    let letter: Character
    let trit: Int  // -1, 0, +1
    
    func balance() async -> Decimal
    func transfer(to: Address, amount: Decimal) async throws
}

// Triadic dispatch
func dispatchTriad(_ minus: AptosWorld, _ ergodic: AptosWorld, _ plus: AptosWorld) async {
    assert(minus.trit + ergodic.trit + plus.trit == 0)  // GF(3) conservation
    await withTaskGroup(of: Void.self) { group in
        group.addTask { await minus.validate() }
        group.addTask { await ergodic.coordinate() }
        group.addTask { await plus.execute() }
    }
}
```

## Ruler Enforcement

Add to `~/.ruler/AGENTS.md`:

```markdown
## Triadic Skill Forcing (Aptos Society Scale)

**Rule**: Every interaction loads 3 skills with Σ trits = 0 (mod 3)

1. MINUS skill: validation, constraint checking
2. ERGODIC skill: coordination, synthesis  
3. PLUS skill: generation, execution

Verify: `(-1) + 0 + (+1) = 0 ✓`
```

## References

- Frey et al. "Composing games into complex institutions" PLOS ONE 2023
- Zargham & Emmett "Computer-Aided Governance" BlockScience 2019
- Hedges "Towards compositional game theory" PhD Thesis 2016
- Ostrom "Understanding institutional diversity" Princeton 2005

## NO PRIVATE INFORMATION

This skill contains NO private keys, wallet addresses, or secrets.
All wallet interactions go through MCP tools with approval flows.

Overview

This skill implements the Aptos Society Scale: a triadic governance pattern that enforces three-role interactions across Aptos world wallets. It encodes GF(3) trits (−1, 0, +1) for Validators, Coordinators, and Executors and ties them to 26 alphabet-segmented world identities. The skill focuses on compositional governance, deterministic seed handoff, and safe wallet tooling integrations.

How this skill works

Each interaction must load exactly three skills mapped to MINUS (validators), ERGODIC (coordinators), and PLUS (executors) such that the sum of trits is congruent to zero modulo three. Wallet segments A–I, J–R, and S–Z provide role assignment and MCP tools expose balance, transfer, swap, and view operations per world letter. Seed handoff and address ordering use XOR, Hamming-distance reordering, and sparsification for collision resistance, while runtime dispatch patterns use actor-safe semantics and triadic task groups.

When to use it

  • Designing cryptoeconomic experiments that require balanced validator/coordinator/executor roles
  • Orchestrating multiservice workflows where safety requires constraint, coordination, and execution separation
  • Running deterministic seed handoff or address-sparsification pipelines for testnets
  • Integrating Aptos wallet operations via standardized MCP tools with role-awareness
  • Composing institutional game-theory models into executable simulation steps

Best practices

  • Always enforce the triadic rule: load one MINUS, one ERGODIC, and one PLUS so Σ trits ≡ 0 (mod 3)
  • Use MCP tool wrappers for all wallet operations to ensure approval flows and avoid direct key handling
  • Perform XOR-based segment seed derivation, then apply maximum Hamming reordering and sparsification
  • Keep agent definitions Sendable/actor-isolated for concurrency safety and deterministic task groups
  • Document role assignments for any new world letter mappings and validate conservation in tests

Example use cases

  • Simulated institutional design experiments where a constraint agent validates proposals, a coordinator aggregates signals, and an executor enacts changes
  • Automated triadic transfer workflows: validator checks compliance, coordinator schedules, executor executes transfer via MCP tools
  • Testnet seeding: compute segment_seed by XOR, reorder addresses to maximize Hamming distance, then sparsify for collision resistance
  • Token engineering pipelines that compose cadCAD-like simulations with role-aware wallet operations
  • Actor-based concurrency patterns for parallel role execution while asserting GF(3) conservation

FAQ

What does GF(3) conservation mean here?

It means each interaction loads three roles with trits −1, 0, +1 and their sum must equal 0 modulo 3 to preserve balanced triadic structure.

Are private keys or secrets included?

No. All wallet actions go through MCP tool interfaces and the skill contains no private keys or secrets.