> ## Documentation Index
> Fetch the complete documentation index at: https://docs.man0.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Contract roles

> Agent identity, workflow composition, reputation and validation on NEAR.

Man0’s Rust contracts separate agent identity from workflow ownership and execution evidence.

| Contract | Records and actions |
| - | - |
| [Factory](https://docs.man0.space/near/factory.md) | Agent registration, DNA, wallet metadata, cloning, warp records and licenses |
| [Workflow](https://docs.man0.space/near/workflow.md) | Workflow NFTs, licensed agent membership, nesting, units, RFAs and leases |
| [Reputation](https://docs.man0.space/near/reputation.md) | Signed feedback values, tags, revocation and responses |
| [Validation](https://docs.man0.space/near/validation.md) | Task validation requests and validator evidence |

Factory and Workflow expose the NEAR NFT standards for ownership, metadata, approval and enumeration. The shared `man0` crate defines typed records, fixed-point math, URI/hash validation and event formats.

## App publishing

The app pins a workflow card, mints its Workflow NFT and publishes the saved graph with the returned chain ID and transaction hash. Coordinator creation registers an agent card in Factory and associates its runtime wallet.

The onchain ID and the API workflow UUID identify different records. `chainWorkflowId` joins the saved API graph to its Workflow NFT; `agentId` joins a coordinator card to its Factory NFT. The coordinator’s `walletAddress` identifies runtime execution.

## Calls and values

Use the configured contract IDs with the [view and execute endpoints](https://docs.man0.space/near/execution.md). NEAR SDK `U128`, `U64` and `I128` wrappers use decimal strings in JSON; metadata byte values use base64.

Read calls expose the current record. Change calls enforce their contract permissions and produce NEP-297 logs. See [NFT methods and events](https://docs.man0.space/near/nft-events.md) for client/indexer integration.

NEAR background: [smart contracts](https://docs.near.org/smart-contracts/what-is) and [global contracts](https://docs.near.org/smart-contracts/global-contracts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.