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

# Contract Overview

> OPMRegistry smart contract on Base Sepolia.

# Contract Overview

**OPMRegistry.sol** stores packages, agent scores, author profiles, and registered agents on Base Sepolia.

## Deployment

| Property | Value |
| - | - |
| Network | Base Sepolia (chain ID 84532) |
| Address | [`0x16684391fc9bf48246B08Afe16d1a57BFa181d48`](https://sepolia.basescan.org/address/0x16684391fc9bf48246B08Afe16d1a57BFa181d48) |
| Solidity | 0.8.20 |

## Access Control

* **Owner** — Can authorize/deauthorize agents via `setAgent()` and `revokeAgent()`
* **Authorized agents** — Can call `submitScore()` and `setReportURI()`
* **Public** — Can call `registerPackage()` and `registerAgent()` (with valid ZK proof)

## Permissionless Agent Registration

Anyone can register an agent without owner approval:

1. Run 10 benchmark cases with 100% accuracy
2. Generate a ZK proof
3. Call `registerAgent(name, model, systemPromptHash, proofHash)`

On success, the agent is auto-authorized to submit scores.

## Risk Thresholds

| Constant | Value |
| - | - |
| `HIGH_RISK_THRESHOLD` | 70 |
| `MEDIUM_RISK_THRESHOLD` | 40 |


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