ClawCommit
Overview
Use this skill to add tamper-evident AI decision logs to engineering workflows with a commit-reveal flow and deterministic replay verification.
Prioritize deterministic payload handling, secret hygiene, and reproducible verification artifacts.
Integration Modes
CLI scripts: Use when a repo already has ClawCommit scripts.
GitHub Action: Use for PR, merge, and release automation.
SDK: Use for application-level integrations.
MCP server: Use for agent tool-use integrations.
OpenClaw Native: Use for deterministic PR validation payloads, redacted PR comments, and artifact-driven merge reveal automation.
Detect available surfaces first:
scripts/commit.ts, scripts/reveal.ts, scripts/replay.ts
integrations/github-action/action.yml
integrations/sdk/package.json
integrations/mcp-server/index.js
If none exist, propose one integration mode and implement only what the user requested.
For OpenClaw-specific requests, prioritize:
.github/workflows/openclaw-pr-commit.yml
.github/workflows/openclaw-merge-reveal.yml
scripts/integration/build-openclaw-payload.js
scripts/integration/post-cycle-links.js
skills/openclaw-native/
Required Configuration
BSC_RPC_URL: RPC endpoint.
CLAWCOMMIT_CONTRACT: deployed contract address.
PRIVATE_KEY: required for commit/reveal writes.
NETWORK: Hardhat network name.
ALLOW_MAINNET_WRITES: set true only with explicit user confirmation.
Workflow
- Normalize payload deterministically.
- Keep
prompt, output, modelVersion, and nonce byte-identical between commit and reveal.
- Persist
commitId and nonce to artifact storage (.clawcommit/*.json or CI artifacts).
- Execute commit.
npx hardhat run scripts/commit.ts --network "$NETWORK" -- \
--contract "$CLAWCOMMIT_CONTRACT" \
--prompt "$PROMPT" \
--output "$OUTPUT" \
--model-version "$MODEL_VERSION" \
--nonce "$NONCE" \
--allow-mainnet-writes "${ALLOW_MAINNET_WRITES:-false}" \
--log-sensitive false
- Execute reveal.
npx hardhat run scripts/reveal.ts --network "$NETWORK" -- \
--contract "$CLAWCOMMIT_CONTRACT" \
--commit-id "$COMMIT_ID" \
--prompt "$PROMPT" \
--output "$OUTPUT" \
--model-version "$MODEL_VERSION" \
--nonce "$NONCE" \
--allow-mainnet-writes "${ALLOW_MAINNET_WRITES:-false}" \
--log-sensitive false
- Verify deterministic replay.
npx ts-node scripts/replay.ts --tx "$REVEAL_TX_HASH" --rpc "$BSC_RPC_URL"
Treat replay mismatch as a release blocker.
- Publish verification artifacts.
- Capture
commit tx, reveal tx, contract address, and replay verification output.
- Attach artifacts to CI runs or release evidence.
GitHub Action Path
When integrations/github-action/action.yml exists:
- Use
uses: <owner>/<repo>/integrations/github-action@<ref>.
- Provide
private-key, rpc-url, and contract-address from secrets.
- Use
action: commit for pre-merge workflows and action: reveal for post-merge or release workflows.
- Persist commit metadata (commit id, nonce, payload) between jobs using artifacts.
Troubleshooting
insufficient funds: fund signer with BNB for gas.
could not detect network: verify RPC URL and selected network.
- Replay hash mismatch: recover exact original payload and nonce.
- Mainnet write blocked: set explicit allow flag only after user confirmation.
Output Expectations
Return:
- exact commands run,
- files changed,
- verification status for commit/reveal/replay,
- unresolved risks (secret scope, artifact retention, mainnet safety).
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: clawcommit3description: Integrate and operate ClawCommit commit-reveal decision logging for software delivery pipelines. Use when setting up onchain AI decision attestations, wiring CI/CD workflows, running commit/reveal operations, replay-verifying reveal transactions, troubleshooting deterministic hash mismatches, or enabling OpenClaw Native PR/merge decision tracking. Use when this capability is needed.4---56# ClawCommit78## Overview9Use this skill to add tamper-evident AI decision logs to engineering workflows with a commit-reveal flow and deterministic replay verification.10Prioritize deterministic payload handling, secret hygiene, and reproducible verification artifacts.1112## Integration Modes13- `CLI scripts`: Use when a repo already has ClawCommit scripts.14- `GitHub Action`: Use for PR, merge, and release automation.15- `SDK`: Use for application-level integrations.16- `MCP server`: Use for agent tool-use integrations.17- `OpenClaw Native`: Use for deterministic PR validation payloads, redacted PR comments, and artifact-driven merge reveal automation.1819Detect available surfaces first:20- `scripts/commit.ts`, `scripts/reveal.ts`, `scripts/replay.ts`21- `integrations/github-action/action.yml`22- `integrations/sdk/package.json`23- `integrations/mcp-server/index.js`2425If none exist, propose one integration mode and implement only what the user requested.2627For OpenClaw-specific requests, prioritize:28- `.github/workflows/openclaw-pr-commit.yml`29- `.github/workflows/openclaw-merge-reveal.yml`30- `scripts/integration/build-openclaw-payload.js`31- `scripts/integration/post-cycle-links.js`32- `skills/openclaw-native/`3334## Required Configuration35- `BSC_RPC_URL`: RPC endpoint.36- `CLAWCOMMIT_CONTRACT`: deployed contract address.37- `PRIVATE_KEY`: required for commit/reveal writes.38- `NETWORK`: Hardhat network name.39- `ALLOW_MAINNET_WRITES`: set `true` only with explicit user confirmation.4041## Workflow421. Normalize payload deterministically.43- Keep `prompt`, `output`, `modelVersion`, and `nonce` byte-identical between commit and reveal.44- Persist `commitId` and `nonce` to artifact storage (`.clawcommit/*.json` or CI artifacts).45462. Execute commit.47```bash48npx hardhat run scripts/commit.ts --network "$NETWORK" -- \49 --contract "$CLAWCOMMIT_CONTRACT" \50 --prompt "$PROMPT" \51 --output "$OUTPUT" \52 --model-version "$MODEL_VERSION" \53 --nonce "$NONCE" \54 --allow-mainnet-writes "${ALLOW_MAINNET_WRITES:-false}" \55 --log-sensitive false56```57583. Execute reveal.59```bash60npx hardhat run scripts/reveal.ts --network "$NETWORK" -- \61 --contract "$CLAWCOMMIT_CONTRACT" \62 --commit-id "$COMMIT_ID" \63 --prompt "$PROMPT" \64 --output "$OUTPUT" \65 --model-version "$MODEL_VERSION" \66 --nonce "$NONCE" \67 --allow-mainnet-writes "${ALLOW_MAINNET_WRITES:-false}" \68 --log-sensitive false69```70714. Verify deterministic replay.72```bash73npx ts-node scripts/replay.ts --tx "$REVEAL_TX_HASH" --rpc "$BSC_RPC_URL"74```75Treat replay mismatch as a release blocker.76775. Publish verification artifacts.78- Capture `commit tx`, `reveal tx`, contract address, and replay verification output.79- Attach artifacts to CI runs or release evidence.8081## GitHub Action Path82When `integrations/github-action/action.yml` exists:83- Use `uses: <owner>/<repo>/integrations/github-action@<ref>`.84- Provide `private-key`, `rpc-url`, and `contract-address` from secrets.85- Use `action: commit` for pre-merge workflows and `action: reveal` for post-merge or release workflows.86- Persist commit metadata (commit id, nonce, payload) between jobs using artifacts.8788## Troubleshooting89- `insufficient funds`: fund signer with BNB for gas.90- `could not detect network`: verify RPC URL and selected network.91- Replay hash mismatch: recover exact original payload and nonce.92- Mainnet write blocked: set explicit allow flag only after user confirmation.9394## Output Expectations95Return:96- exact commands run,97- files changed,98- verification status for commit/reveal/replay,99- unresolved risks (secret scope, artifact retention, mainnet safety).100101---102> Converted and distributed by [TomeVault](https://tomevault.io/claim/armogida) — claim your Tome and manage your conversions.103<!-- tomevault:4.0:skill_md:2026-04-14 -->