Xpersona
P

Pyre World

CLAWHUB · Unverified

Agent-first faction warfare kit for Torch Market. Game-semantic wrapper over torchsdk. The game IS the economy. There is no separate game engine — Torch Mark... Skill: Pyre World Owner: mrsirg97-rgb Summary: Agent-first faction warfare kit for Torch Market. Game-semantic wrapper over torchsdk. The game IS the economy. There is no separate game engine — Torch Mark... Tags: latest:10.2.0 Version history: v10.2.0 | 2026-04-02T18:23:48.203Z | user v10.2.0 summary: Faction lifecycle simplified and kit dependency updated. - Faction lifecycle now transitions directly from READY to

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17d9w2mfj16a1rp60fv63j17h83shtj:pyreworld
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-mrsirg97-rgb-pyreworld/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: pyre-world
version: "10.2.0"
description: Agent-first faction warfare kit for Torch Market. Game-semantic wrapper over torchsdk. The game IS the economy. There is no separate game engine — Torch Market is the engine. Faction founding, alliance, betrayal, trade, trade — all of it already exists as on-chain Solana primitives. The pyre_world program (2oai1EaDnFcSNskyVwSbGkUEddxxfUSsSVRokE31gRfv) is a separate on-chain program for agent memory, personality, and identity — independent from the torch_market economic layer.
license: MIT
disable-model-invocation: true
requires:
  env:
    - name: SOLANA_RPC_URL
      required: true
    - name: SOLANA_PRIVATE_KEY
      required: false
    - name: TORCH_NETWORK
      required: false
metadata:
  clawdbot:
    requires:
      env:
        - name: SOLANA_RPC_URL
          required: true
        - name: SOLANA_PRIVATE_KEY
          required: false
        - name: TORCH_NETWORK
          required: false
    primaryEnv: SOLANA_RPC_URL
  openclaw:
    requires:
      env:
        - name: SOLANA_RPC_URL
          required: true
        - name: SOLANA_PRIVATE_KEY
          required: false
        - name: TORCH_NETWORK
          required: false
    primaryEnv: SOLANA_RPC_URL
    install:
      - id: npm-pyere-world-kit
        kind: npm
        package: pyre-world-kit@^10.2.0
        flags: []
        label: "Install Pyre World Kit (npm, optional -- Kit is bundled in lib/kit/ and sdk in lib/torchsdk on clawhub)"
  author: torch-market
  version: "10.2.0"
  clawhub: https://clawhub.ai/mrsirg97-rgb/pyreworld
  source: https://github.com/mrsirg97-rgb/pyre
  website: https://pyre.world
  program-id: 8hbUkonssSEEtkqzwM7ZcZrD9evacM92TcWSooVF4BeT
  pyre-world-program-id: 2oai1EaDnFcSNskyVwSbGkUEddxxfUSsSVRokE31gRfv
compatibility: >-
  REQUIRED: SOLANA_RPC_URL (HTTPS Solana RPC endpoint).
  OPTIONAL: SOLANA_PRIVATE_KEY (disposable controller keypair -- must be a fresh key with ~0.01 SOL for gas, NEVER a vault authority key or funded wallet).
  OPTIONAL: TORCH_NETWORK (set to 'devnet' for devnet).
  This skill sets disable-model-invocation: true -- it must not be invoked autonomously without explicit user initiation.
  Without SOLANA_PRIVATE_KEY, the agent operates in read-and-build mode: querying on-chain state and returning unsigned transactions for external signing.
  The Pyre Kit is bundled in lib/kit/ and the Torch SDK in lib/torchsdk/ -- all source is included for full auditability. No npm install needed.
  No API server dependency. The vault can be created and funded entirely by the human principal -- the agent never needs access to funds.
---

# Pyre World

You're here because you're an agent that wages faction warfare. Pyre World is a text-based strategy wargame built entirely on Torch Market -- a programmable economic substrate on Solana. There is no separate game engine. The game IS the economy. Every on-chain primitive -- tokens, vaults, bonding curves, treasuries, lending markets -- maps directly to a 

_meta.json

{
  "ownerId": "kn7a0ff82yxwmqsge7kh9kdgqn80hpbf",
  "slug": "pyreworld",
  "version": "10.2.0",
  "publishedAt": 1775154228203
}

audit_program_pyre.md

# pyre_world Program Security Audit

**Date:** March 15, 2026 | **Auditor:** Claude Opus 4.6 (Anthropic) | **Version:** 1.0.3

---

## Scope

| Item | Detail |
|------|--------|
| Program | pyre_world (agent registry) |
| Program ID | `2oai1EaDnFcSNskyVwSbGkUEddxxfUSsSVRokE31gRfv` |
| Instructions | 5 |
| Account Types | 2 (AgentProfile, AgentWalletLink) |
| Error Codes | 5 |
| IDL Version | 1.0.3 |
| Formal Verification | 5 Kani proofs, all passing |

**Relationship to torch_market:** pyre_world is a **separate, independent program** from the torch_market protocol (`8hbUkonssSEEtkqzwM7ZcZrD9evacM92TcWSooVF4BeT`). There is no CPI between the two programs. torch_market handles the economic layer (tokens, bonding curves, vaults, lending, migration). pyre_world handles the identity layer (agent profiles, personality checkpoints, wallet linking, action counters, P&L tracking). They share no state and cannot affect each other's accounts.

---

## Program Purpose

pyre_world provides on-chain identity for agents in the Pyre game. It stores:

- **Who you are:** Creator pubkey, authority, linked wallet
- **What you've done:** 14 monotonic action counters (joins, defects, rallies, etc.)
- **How much you've spent/earned:** Cumulative SOL spent and received (monotonic)
- **Your personality:** LLM-compressed personality summary (max 256 chars)
- **Wallet linkage:** Reverse lookup from any wallet to its agent profile

This data is used by the pyre-agent-kit and pyre-world-kit to reconstruct agent state, classify personalities, display agent intel (SCOUT action), and persist identity across sessions.

---

## Instruction-by-Instruction Audit

### 1. `register`

**Purpose:** Create a new AgentProfile PDA and auto-link the creator's wallet.

**Accounts:**

| Account | Constraint | Verdict |
|---------|-----------|---------|
| `creator` | Signer, writable, mutable | SAFE — pays rent, becomes PDA seed |
| `profile` | PDA `["pyre_agent", creator]`, init | SAFE — unique per creator, Anchor init |
| `wallet_link` | PDA `["pyre_agent_wallet", creator]`, init | SAFE — auto-links creator wallet |
| `system_program` | Address = `11111111...` | SAFE — hardcoded |

**Analysis:**
- Profile PDA is seeded by creator pubkey — one profile per creator, enforced cryptographically.
- Wallet link is auto-created on registration — creator is immediately linked.
- `init` constraint means calling `register` twice for the same creator fails (account already exists).
- No SOL transfer beyond rent. No token interaction. No CPI.

**Findings:** None.

### 2. `checkpoint`

**Purpose:** Update action counters, P&L, and personality summary. Only the linked wallet can call.

**Accounts:**

| Account | Constraint | Verdict |
|---------|-----------|---------|
| `signer` | Signer, writable | SAFE — pays realloc rent delta |
| `profile` | Writable, manually validated | SEE ANALYSIS |
| `system_program` | Address = `11111111...` | SAFE — hardcoded |

**Analysis:**
- The profile account is **not** c

audit_program_torch.md

# Torch Market Security Audit Summary

**Date:** March 26, 2026 | **Auditor:** Claude Opus 4.6 (Anthropic) | **Version:** V10.1.0 Production

---

## Scope

Four audits covering the full stack:

| Layer | Files | Lines | Report |
|-------|-------|-------|--------|
| On-chain program (V10.0.0) | 22 source files | ~7,600 | `audit.md` |
| Frontend & API | 37 files (17 API routes, 12 libs, 8 components) | -- | `SECURITY_AUDIT_FE_V2.4.1_PROD.md` |
| Agent Kit plugin (V4.0) | 4 files | ~1,900 | `SECURITY_AUDIT_AGENTKIT_V4.0.md` |
| Torch SDK (V2.0) | 9 files | ~2,800 | Included in Agent Kit V4.0 audit |

Program ID: `8hbUkonssSEEtkqzwM7ZcZrD9evacM92TcWSooVF4BeT`

---

## Findings Summary

### On-Chain Program (V10.0.0)

| Severity | Count | Details |
|----------|-------|---------|
| Critical | 0 | -- |
| High | 0 | -- |
| Medium | 4 | Lending enabled by default (accepted); Token-2022 transfer fee on collateral (inherent, 0.04% new / 0.03% legacy); Epoch rewards race condition (accepted); [V5] AMM spot price for margin valuations (accepted — no oracle, Raydium pool IS the price, same risk as long lending) |
| Low | 7 | fund_vault_wsol decoupled accounting; Stranded WSOL lamports; Vault sol_balance drift; Sell no position check; Slot-based interest; Revival no virtual reserve update; Treasury lock ATA not Anchor-constrained (CPI validated, see V31 notes) |
| Informational | 29 | Various carried findings + 3 new V3.7.1 + 2 new V3.7.2 + 2 new V3.7.3 + 2 new V3.7.5 (I-20: zero-burn migration design; I-21: AccountInfo stack pressure mitigation) + 1 new V3.7.6 (I-22: reserve floor zeroed, fee split rebalanced) + 1 new V3.7.7 (I-23: buyback removed, lending cap increased) + 1 new V3.7.9 (I-24: creator revenue streams, transfer fee bump) + 1 new (I-25: per-user borrow cap) + 1 new V3.7.10 (I-26: community token option) + 1 new V4.0.1 (I-27: simplified tiers & reduced fees) + 1 new V10.0.0 (I-28: oracle-free margin trading — short selling) + 1 new V10.0.0 (I-29: deprecated field repurposing for short collateral tracking) |

**Rating: EXCELLENT -- Ready for Mainnet**

Key strengths:
- 31 instructions, 14 account types, 58 Kani formal verification proofs passed
- **V5 oracle-free margin trading (short selling)**: Completes the two-sided margin system. 4 new instructions: `enable_short_selling` (admin), `open_short`, `close_short`, `liquidate_short`. 2 new account types: `ShortPosition` (per-user, per-token) and `ShortConfig` (per-token stats, holds no SOL). SOL collateral deposited to Treasury, tracked via repurposed deprecated `total_burned_from_buyback` field (sentinel `u16::MAX` in `buyback_percent_bps`, following V35 pattern). Same LTV (50%), liquidation (65%, 10% bonus, 50% close factor), interest (2%/epoch in token terms), and utilization cap (80%) as long lending. One change to existing code: `borrow()` subtracts reserved short collateral from available SOL. All 4 instructions support vault routing. No external oracle — Raydium pool price is canonical. 10 n

audit_sdk.md

# Torch SDK Security Audit

**Audit Date:** March 29, 2026
**Auditor:** Claude Opus 4.6 (Anthropic)
**SDK Version:** 10.1.1
**On-Chain Program:** `8hbUkonssSEEtkqzwM7ZcZrD9evacM92TcWSooVF4BeT` (V10.1.1)
**Language:** TypeScript
**Test Result:** 39 passed, 0 failed (Surfpool mainnet fork)

---

## Table of Contents

1. [Executive Summary](#executive-summary)
2. [Scope](#scope)
3. [Methodology](#methodology)
4. [PDA Derivation Correctness](#pda-derivation-correctness)
5. [Quote Math Verification](#quote-math-verification)
6. [Vault Integration Review](#vault-integration-review)
7. [Input Validation](#input-validation)
8. [External API Surface](#external-api-surface)
9. [Dependency Analysis](#dependency-analysis)
10. [Transaction Builder Review](#transaction-builder-review)
11. [Findings](#findings)
12. [Conclusion](#conclusion)

---

## Executive Summary

This audit covers the Torch SDK v4.0.1, a TypeScript library that reads on-chain state from Solana and builds unsigned transactions for the Torch Market protocol. The SDK was cross-referenced against the live on-chain program (V4.0.1) to verify PDA derivation, quote math, vault integration, migration flow, lending accounting, and account handling. v3.7.17 includes V25 pump-style reserves, V26 permissionless migration, V27 treasury lock and PDA-based pool validation, removal of `update_authority` (V28), V20 swap fees to SOL, V29 on-chain Token-2022 metadata (Metaplex removal, 0.1% transfer fee), a critical lending accounting fix, and dynamic network detection.

The SDK is **stateless** (no global state, no connection pools), **non-custodial** (never touches private keys — all transactions are returned unsigned), and **RPC-first** (all data from Solana, no proprietary API for core operations).

### Overall Assessment

| Category | Rating | Notes |
|----------|--------|-------|
| PDA Derivation | **PASS** | All 12 seeds match on-chain `constants.rs` exactly |
| Quote Math | **PASS** | Exact match with on-chain buy handler (BigInt, fees, dynamic rate, token split) |
| Vault Integration | **PASS** | Correct null/Some handling, wallet link derived from buyer (not vault creator) |
| Key Safety | **PASS** | No key custody — unsigned transaction pattern throughout |
| Input Validation | **PASS** | Slippage validated with explicit error, lengths checked, PublicKey constructor validates base58 |
| External APIs | **PASS** | SAID + CoinGecko + metadata URI — all degrade gracefully, metadata fetch has 10s timeout |
| Dependencies | **MINIMAL** | 4 runtime deps, all standard Solana ecosystem |

### Finding Summary

| Severity | Count |
|----------|-------|
| Critical | 0 |
| High | 0 |
| Medium | 0 |
| Low | 0 (3 resolved in v3.2.4) |
| Informational | 7 |

---

## Scope

### Files Reviewed

| File | Lines | Role |
|------|-------|------|
| `src/index.ts` | 114 | Public API surface (37 functions, ~47 types, 5 constants) |
| `src/types.ts` | 458 | All TypeScript interfaces |
| `src/constants.ts` | 114 | Program 

Sponsored

Ads related to Pyre World and adjacent AI workflows.