Proof of Work
by @kgapol
Automates verification that AI agents truly completed tasks by checking output files, system states, and logs for expected results and activity.
clawhub install proof-of-workπ About This Skill
Proof of Work β Automated Completion Verification for AI Agents
Use this skill to verify that your AI agents actually completed what they claimed, not just that they said they did.
What This Skill Does
Runs automated verification checks after agent task completion:
Catches the most common AI agent failure mode: the confident-sounding completion that didn't actually do anything.
When to Use
How It Works
A shell script that runs after agent task completion. Checks:
1. File existence β Did the expected output path get created? 2. Content validation β Does the file contain expected markers (non-empty, valid JSON, expected keywords)? 3. State checks β Did the expected system state change? (process running, port listening, DB record created) 4. Log correlation β Does the activity_log entry for this task show TASK_COMPLETE (not TASK_BLOCKED or silence)?
Returns exit code 0 on pass, 1 on fail. Integrates with any CI/cron pipeline.
Installation
chmod +x install.sh && ./install.sh
Usage
# Verify a file output
./proof-of-work.sh --check-file /path/to/expected/output.mdVerify a process is running
./proof-of-work.sh --check-process "queue-manager"Verify a DB record exists
./proof-of-work.sh --check-db ~/.agentops/agentops.db --query "SELECT count(*) FROM queue_items WHERE status='done' AND id=42" --expected 1Full verification suite
./proof-of-work.sh --config verification.json
Sample Verification Config
{
"task_id": 42,
"checks": [
{"type": "file", "path": "~/.agentops/output/report.md", "min_size": 100},
{"type": "db", "db": "~/.agentops/agentops.db", "query": "SELECT status FROM queue_items WHERE id=42", "expected": "done"},
{"type": "log", "event_type": "TASK_COMPLETE", "agent_id": "buzz"}
]
}
Part of Trust AI Suite
Proof of Work is the verification layer of the Trust AI Suite:
β Full suite: Trust AI Stack on ClawMart
β‘ When to Use
π‘ Examples
# Verify a file output
./proof-of-work.sh --check-file /path/to/expected/output.mdVerify a process is running
./proof-of-work.sh --check-process "queue-manager"Verify a DB record exists
./proof-of-work.sh --check-db ~/.agentops/agentops.db --query "SELECT count(*) FROM queue_items WHERE status='done' AND id=42" --expected 1Full verification suite
./proof-of-work.sh --config verification.json