Proof of work

From TheBushidoCollective/han · View interactive version

Proof of work is an AI agent skill from the GitHub repository TheBushidoCollective/han. Use automatically during development workflows when making claims about tests, builds, verification, or code quality requiring concrete evidence to ensure trust through transparency.

How to use this skill

Skill file

Proof of Work

Show, don't tell. Never make claims about code verification without

providing concrete evidence.

Core Principle

Trust through transparency. Every assertion about code quality, test

results, builds, or verification must be backed by actual command output,

not summaries or assumptions.

Implementation Proof

When implementing features:

  1. USE Write/Edit tools to make changes
  1. Show tool results
  1. Verify changes exist

Remember: If you didn't use Write/Edit tools, it didn't happen.

Agent Verification (CRITICAL)

NEVER EVER trust agent completion reports without verification.

This is a zero-tolerance rule.

Agent reports are NOT proof - they are claims requiring verification.

The Critical Error

When you delegate work to a subagent:

  1. Agent completes and reports "Successfully created X, modified Y,

implementation complete"

  1. STOP - DO NOT TRUST THIS REPORT
  2. Agent reports mean NOTHING until you verify
  3. Blindly trusting agent reports is a catastrophic failure

Mandatory Verification After EVERY Agent

After ANY agent completes, you MUST verify work was actually done:

# 1. Verify files were actually modified
git status --short

# 2. Verify actual changes exist
git diff --name-only

# 3. Verify specific file exists (if agent claimed to create it)
ls -la /path/to/file

# 4. Verify file content (spot check)
cat /path/to/file | head -20

**If git status shows clean working tree → NOTHING was done, regardless of

agent report.**

Red Flags in Agent Reports

Never trust these claims without verification

| Agent Claim | Required Verification |

| ------------------------- | ------------------------------------------- |

| "Successfully created X" | ls -la /path/to/X - prove file exists |

| "Modified files A, B, C" | git status - prove files show as modified |

| "Changes made to Y" | git diff Y - prove actual changes exist |

| "Implementation complete" | git diff --stat - prove work was done |

| "Added tests to Z" | cat Z - prove tests actually exist |

| "Updated configuration" | git diff config/ - prove config changed |

Verification Workflow (MANDATORY)

1. Delegate to agent
2. Agent reports completion
3. ⚠️  STOP - DO NOT TRUST REPORT ⚠️
4. Run verification commands (git status, ls, cat, etc.)
5. If verification fails → Agent did NOT complete work
6. If verification passes → THEN report to user WITH PROOF

Evidence Requirements for Agent Work

❌ NEVER report to user:

✅ ALWAYS report with proof:

# After agent completes, verify:
$ git status --short
M  apps/api/lib/users/worker.ex
A  apps/api/test/users/worker_test.exs

# Prove files exist:
$ ls -la apps/api/test/users/worker_test.exs
-rw-r--r--  1 user  staff  2847 Nov  7 14:32 apps/api/test/users/worker_test.exs

# Spot check content:
$ head -10 apps/api/test/users/worker_test.exs
defmodule YourApp.Users.UserTest do
  use YourApp.DataCase
  ...

Then report: "Agent completed. Verification proves 2 files modified

(evidence above)."

Why This Matters

Failure to verify agent work

The user must be able to trust your reports. Agent reports without

verification are worthless.

Agent Verification Remember

This is non-negotiable. Failure to verify agent work is unacceptable.

When to Apply

Apply this skill whenever claiming:

Evidence Requirements

❌ Never say without proof:

✅ Always provide actual output:

# Tests
$ mix test
Finished in 42.3 seconds
1,247 tests, 0 failures

# Linting
$ MIX_ENV=test mix lint
Running Credo... ✓ No issues found.

# Types
$ yarn ts:check
✓ 456 files checked, 0 errors

# CI Pipeline
$ glab ci status
Pipeline #12345: passed ✓
URL: https://gitlab.com/.../pipelines/12345

Zero Tolerance for Assumptions

Never assume or claim without running

❌ WRONG:

✅ RIGHT:

Partial Verification Is Not Verification

❌ NEVER claim success from partial runs:

# Only ran 50 tests of 1,247
Running ExUnit tests...
50 tests, 0 failures
# STOPPED HERE - did not complete

"Tests pass" ❌ FALSE - only partial run

✅ ALWAYS run to completion:

# Full suite completed
Finished in 42.3 seconds
1,247 tests, 0 failures  # ALL tests ran

"Full test suite passes: 1,247 tests, 0 failures" ✅ TRUE

Output Format

  1. Show the command you ran
  2. Show results, not summaries
  3. Include counts (tests, files, errors)
  4. Include URLs for CI/remote resources

Complete Verification Example

$ MIX_ENV=test mix lint
✓ No issues found.

$ mix test
1,247 tests, 0 failures

$ yarn graphql:compat
✓ No breaking changes

$ glab ci status
Pipeline #12345: passed ✓

Then claim: "All verification passed (evidence above)."

Red Flags

Stop and provide proof if you catch yourself saying:

Workflow Integration

Implementation: Run verification → Show complete output → Report with

evidence → Wait for approval

Code review: Reference line numbers (file.ts:123), quote issues,

show analyzer output

Debugging: Show full errors, stack traces, reproduction steps with

output

Remember

Transparency builds trust. Evidence eliminates doubt

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.