Xpersona
O

openmath-submit-theorem

CLAWHUB · Unverified

Submits proofs to the OpenMath platform using a two-stage commit-reveal flow. Use when the user wants to commit a proof hash or reveal a Lean/Rocq proof on t...

62
Rank
84
Safety
978
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 978 downloads reported by the source. Last updated 10/11/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 s17bfnganc0p4qzdxxdd6kcma183hq1s:openmath-submit-theorem
  1. Install using `clawhub skill install s17bfnganc0p4qzdxxdd6kcma183hq1s:openmath-submit-theorem` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/bennyzhe/openmath-submit-theorem before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-bennyzhe-openmath-submit-theorem/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

147,483 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: openmath-submit-theorem
description: Submits proofs to the OpenMath platform using a two-stage commit-reveal flow. Use when the user wants to commit a proof hash or reveal a Lean/Rocq proof on the Shentu network.
version: v1.0.7
requirements:
  commands:
    - python3
    - shentud
side_effects:
  - Reads shared openmath-env.json from --config, OPENMATH_ENV_CONFIG, or the standard project/user config locations
  - Queries and broadcasts to a remote Shentu RPC endpoint; defaults to https://rpc.shentu.org:443 unless SHENTU_NODE_URL overrides it
  - Uses the local OS keyring through shentud --keyring-backend os for key lookups and authz-exec signing
  - Reads PATH and optional OPENMATH_SHENTUD_BIN to discover shentud; may suggest a temporary PATH export or a trusted explicit binary path, but does not install binaries or edit shell startup files
  - Default flow treats openmath-env.json creation or editing, shentud installation, and local key creation or recovery as manual setup steps documented in references
---

# OpenMath Submit Theorem

## Instructions

Use this skill for the two-stage Shentu proof submission flow. 

- Stage 1 submits a proof hash as a commitment so others can see you already know the answer without learning the proof details.
- Stage 2 submits the proof detail to reveal and verify the same proof on-chain.
- This is an operational skill, not an instruction-only note: it shells out to trusted local `python3` and `shentud`, reads shared `openmath-env.json`, queries/broadcasts to a Shentu RPC endpoint, and uses the local OS keyring for signing flows.
- Default: authz + feegrant from `prover_address` (the user's OpenMath Wallet Address).
- Shared config resolution order: `--config <path>` → `OPENMATH_ENV_CONFIG` → `./.openmath-skills/openmath-env.json` → `~/.openmath-skills/openmath-env.json`. If `OPENMATH_ENV_CONFIG` is set, treat it as the selected config path. If that file is missing or invalid, stop and fix it instead of silently falling back.
- Shentu chain/RPC settings come from `SHENTU_CHAIN_ID` and `SHENTU_NODE_URL` or built-in defaults, not from `openmath-env.json`.
- The skill always uses `--keyring-backend os` for local key lookups and generated submission commands.
- Direct signer fallback: `generate_submission.py --mode direct`.
- Required local dependencies are `python3` and `shentud`. Environment variables are optional overrides, not mandatory setup: `OPENMATH_ENV_CONFIG`, `OPENMATH_SHENTUD_BIN`, `OPENMATH_SUBMISSION_MODE`, `OPENMATH_INNER_TX_FEES`, `OPENMATH_INNER_TX_GAS`, `SHENTU_CHAIN_ID`, and `SHENTU_NODE_URL`.

For least-privilege operation, treat `openmath-env.json` creation or editing, `shentud` installation, and local key creation or recovery as manual prerequisites documented in `references/`. The default skill flow may run read-only checks such as `command -v shentud`, `shentud version`, or `shentud keys show`, but it should not auto-install binaries, auto-edit config files, or run `shentud keys add

_meta.json

{
  "ownerId": "kn79j01w3m84j7rd9jxs2xzz6d8369nn",
  "slug": "openmath-submit-theorem",
  "version": "1.0.7",
  "publishedAt": 1774527553557
}

references/authz_setup.md

# OpenMath Authz Setup

Use this when `openmath-submit-theorem` is configured for the default authz-based flow and authz or feegrant still needs to be created manually.

This reference is not the primary setup guide. Use `references/init-setup.md` first for:

- creating or updating `openmath-env.json`
- resolving or creating the local `agent_key_name`
- getting `prover_address` and `agent_address`
- the normal website authorization flow

Use this document only when the environment is already configured but the authz/feegrant step must be checked or repaired manually.

## Preconditions

Before using the commands below, confirm:

- `openmath-env.json` already exists and has `prover_address`, `agent_key_name`, and `agent_address`
- the local key named by `agent_key_name` already exists in the `os` keyring
- `python3 scripts/check_authz_setup.py [--config <selected-path>]` is failing because authz or feegrant is still missing

If any of those are not true, stop and return to `references/init-setup.md`.

Before running manual authz or feegrant transactions, get explicit user approval.

Runtime chain settings are not stored in `openmath-env.json`:

- `SHENTU_CHAIN_ID` or default `shentu-2.2`
- `SHENTU_NODE_URL` or default `https://rpc.shentu.org:443`

## Manual CLI Fallback

If the website flow is unavailable, the OpenMath wallet owner can authorize the agent manually. Use `SHENTU_CHAIN_ID` and `SHENTU_NODE_URL`, or fall back to the built-in defaults `shentu-2.2` and `https://rpc.shentu.org:443`.

### Authz Grants

```bash
shentud tx authz grant <agent-address> generic \
  --msg-type=/shentu.bounty.v1.MsgSubmitProofHash \
  --expiration 2026-03-18T00:00:00Z \
  --from <prover-key> \
  --chain-id <shentu_chain_id> \
  --node <shentu_node_url>

shentud tx authz grant <agent-address> generic \
  --msg-type=/shentu.bounty.v1.MsgSubmitProofDetail \
  --expiration 2026-03-18T00:00:00Z \
  --from <prover-key> \
  --chain-id <shentu_chain_id> \
  --node <shentu_node_url>
```

### Feegrant

The feegrant must allow the outer authz wrapper:

```bash
shentud tx feegrant grant <prover-address> <agent-address> \
  --allowed-messages "/cosmos.authz.v1beta1.MsgExec" \
  --spend-limit 1000000uctk \
  --expiration 2026-03-18T00:00:00Z \
  --gas-prices 0.025uctk \
  --gas-adjustment 2.0 \
  --gas auto \
  --chain-id <shentu_chain_id> \
  --node <shentu_node_url> \
  --keyring-backend os
```

Add more message types only if the agent also needs direct access outside `authz exec`.

## Validation

Run the bundled checker before generating submission commands:

```bash
python3 scripts/check_authz_setup.py [--config <selected-path>]
```

The checker verifies:

- `shentud` is available
- the local agent key exists and matches the configured address
- authz grants exist for the required OpenMath message types
- a feegrant exists and allows `/cosmos.authz.v1beta1.MsgExec`

Warnings about missing `spend_limit` or `expiration` do not block submission, but they indicate a broad feeg

references/authz-submit-config.example.json

{
  "prover_address": "shentu1replace-with-prover-address",
  "agent_key_name": "agent-prover",
  "agent_address": "shentu1replace-with-agent-address",
  "authz_messages": [
    "/shentu.bounty.v1.MsgSubmitProofHash",
    "/shentu.bounty.v1.MsgSubmitProofDetail"
  ],
  "feegrant_messages": [
    "/cosmos.authz.v1beta1.MsgExec"
  ]
}

references/init-setup.md

# Init Setup

## Overview

Triggered when:

1. No usable `openmath-env.json` is found through the shared resolution order -> full authz submission setup
2. The selected `openmath-env.json` exists but one or more required identity fields are missing -> missing-fields setup

Required identity fields:

- `prover_address` (`OpenMath Wallet Address`)
- `agent_key_name`
- `agent_address`

Default local agent key name: `agent-prover`

This is a hard gate for authz submission. Until setup is complete and `python3 scripts/check_authz_setup.py [--config <selected-path>]` returns `Status: ready`, do not generate stage 1 or stage 2 authz submission commands.

Before any step that writes `openmath-env.json` or creates or recovers a local `shentud` key, get explicit user approval. For least-privilege operation, treat these as manual setup steps and have the user run the file-copy or key-creation commands themselves. `shentud` installation should also stay a manual user action outside the default skill flow.

Shared config resolution order:
1. `--config <path>`
2. `OPENMATH_ENV_CONFIG`
3. `./.openmath-skills/openmath-env.json`
4. `~/.openmath-skills/openmath-env.json`

If `OPENMATH_ENV_CONFIG` is set, treat it as the selected config path. If that file is missing or invalid, fix it or unset it instead of silently falling back.

## Setup Flow

```text
No project/global config found        Config found, required fields missing
            |                                       |
            v                                       v
  +------------------------+              +------------------------+
  | AskUserQuestion        |              | AskUserQuestion        |
  | (full setup)           |              | (missing fields only)  |
  +------------------------+              +------------------------+
            |                                       |
            v                                       v
  +------------------------+              +------------------------+
  | Local agent key check  |              | Local agent key check  |
  +------------------------+              +------------------------+
            |                                       |
            v                                       v
  +------------------------------+        +------------------------------+
  | User creates openmath-env    |        | User updates openmath-env    |
  | manually from the template   |        | manually in the chosen file  |
  +------------------------------+        +------------------------------+
            |                                       |
            v                                       v
  +------------------------+              +------------------------+
  | Guide website authz    |              | Guide website authz    |
  +------------------------+              +------------------------+
            |                                       |
            v                                       v
  +------------------------+         

Sponsored

Ads related to openmath-submit-theorem and adjacent AI workflows.