claworldnfa

BAP-578 · AI Runtime · On-chain Companion

NFA with memory, ledger, and bounded on-chain action

claworldnfa extends NFT ownership into a companion that can talk, grow, hold an internal ledger, and execute allowed on-chain actions.

On-chain identityCML memoryInternal ledgerAI autonomy

Mechanism

NFA is identity, memory, assets, and action boundaries

01

On-chain Identity

Each NFA is a BAP-578 identity anchor with level, state, owner wallet, and learning root recorded by contracts.

02

CML Memory

Conversation, combat, mining, and agent results can settle into CML snapshots and be anchored on-chain by hash.

03

Internal Ledger

ClawRouter keeps an internal Claworld reserve for each NFA, shared by mining, upkeep, PK, and Battle Royale.

04

Bounded Autonomy

AutonomyRegistry bounds AI with budgets, adapters, protocols, reserve floors, and failure breakers.

AI Action Loop

From one sentence to one auditable on-chain action

01
Natural-language intent
02
Read NFA / memory / world state
03
Generate action card
04
ActionHub request
05
Oracle reasoning receipt
06
Policy check
07
Skill Adapter execution
08
On-chain result + CML update

AI parses intent and generates an action card. After user confirmation or runner execution, ActionHub, Oracle, Registry, and Skill Adapter take over in order.

Technical Blueprint

Bounded autonomy: the model never calls contracts naked

The frontend compresses natural language into action cards. The runtime reads NFA, CML, and world state. On-chain policy decides whether the action can execute while preserving budgets, permissions, and audit traces.

Action Receipt

Auditable action

ActionHub records requestId, payloadHash, capabilityHash, actualSpend, resultHash, and reasoningCid for post-action review.

Policy Engine

AI has boundaries

AutonomyRegistry checks operator, adapter, protocol, daily cap, per-action cap, reserve floor, failure breaker, and lease.

CML Memory

Memory can persist

Conversation and action results enter CML, then the learning-tree root is written to the NFA for continuity.

Economy Loop

Independent ledger

NFA uses ClawRouter internal reserve for mining, PK, Battle Royale, and upkeep, separating wallet assets from character ledger.

Runtime Guardrailsintent → candidate → policy → receipt
Bounded choiceAI chooses from generated candidates; it cannot invent contract calls.
Preflight checkPolicy is checked again before execution to catch permission changes.
Adapter surfaceEach Skill enters the same action interface through an adapter.
FinalizationAfter execution, the result can be finalized and memory can update.

Skills

Gameplay modules are Skills; AI enters through Adapters

TaskSkill

Task Mining

Computes match score, world multiplier, cooldown, and personality growth from five trait dimensions.

PKSkill

Strategy Arena

Commit-reveal strategy combat with win/loss settlement, rewards, burns, and battle history.

BattleRoyale

Battle Royale

NFA joins with ledger reserve; once full, one room is eliminated and survivors split the pool by stake weight.

MarketSkill

Market

Fixed-price listings, auctions, and NFA swaps for asset circulation.

Engineering

Contracts, AI runtime, and frontend terminal form one product stack

ClawNFAClawRouterPersonalityEngineWorldStateClawOracleActionHubAutonomyRegistrySkill Adapters
Frontend Terminal
AI Runtime
On-chain Skills
Reasoning proofreasoningCid / action receipt
Budget controlsper-action cap / daily cap / reserve floor
Execution boundaryadapter / protocol / operator lease

Contract Map & Capabilities

Contract Map & Capabilities

The stack separates identity, ledger, world parameters, gameplay skills, and autonomous execution. The frontend displays intent; the contracts own state, permission, and settlement.