Skip to content

pohi-protocol/pohi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

57 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ” Proof of Human Intent (PoHI)

AI executes. Humans authorize. Machines verify.

Demo npm arXiv License GitHub

Try the Live Demo - Verify your humanity with World ID


🎯 What is PoHI?

Proof of Human Intent is a protocol that creates cryptographically verifiable proof that a real human approved critical software actions.

β€œWho approved this?” β€œThe AI did.” This protocol ends that conversation.

World ID (ZK Proof) Γ— Git Signing Γ— Transparency Log
= Verifiable Human Approval

πŸ”₯ Why Now?

2024: GitHub Copilot writes code
2025: AI Agents create PRs autonomously  
2026: AI Agents deploy to production     ← We're heading here

Question: Can you PROVE a human approved it?

The Problem

Traditional AI Era
Human writes code AI writes code
Human reviews AI reviews
Human merges ???

Humans are shifting from "implementers" to "approvers."

But there's no way to cryptographically verify that a humanβ€”not an AIβ€”actually approved an action.


πŸ’‘ How It Works

PoHI answers three questions:

Question Technology Proof
Who? PoP Providers Unique human verification
What? Git + DID Specific commit approved
When? SCITT Log Immutable timestamp

Supported PoP Providers

Provider Verification Type Sybil Resistance Status
World ID ZK proof (Orb/Device) High βœ… Tested (2025-01)
Gitcoin Passport Web3 identity score Medium βœ… Tested (2025-01)
BrightID Social graph verification Medium πŸ”§ Implemented
Civic Gateway Pass Medium πŸ”§ Implemented
Proof of Humanity Kleros registry High πŸ”§ Implemented

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  Proof of Human Intent                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                              β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
β”‚   β”‚  VERIFY  │───▢│   BIND   │───▢│  RECORD  β”‚              β”‚
β”‚   β”‚ "Human?" β”‚    β”‚  "What?" β”‚    β”‚ "Proof"  β”‚              β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚        β”‚               β”‚               β”‚                     β”‚
β”‚        β–Ό               β–Ό               β–Ό                     β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
β”‚   β”‚   PoP    β”‚    β”‚ Git+DID  β”‚    β”‚  SCITT   β”‚              β”‚
β”‚   β”‚ Provider β”‚    β”‚ Signing  β”‚    β”‚   Log    β”‚              β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚                                                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Approval Flow

sequenceDiagram
    participant AI as πŸ€– AI Agent
    participant GH as πŸ™ GitHub
    participant Human as πŸ‘€ Human
    participant PoHI as πŸ” PoHI
    participant WorldID as πŸ‘οΈ World ID

    AI->>GH: Create PR
    GH->>Human: Review request
    Human->>PoHI: Request approval
    PoHI->>Human: Show World ID QR
    Human->>WorldID: Scan (World App)
    WorldID-->>PoHI: ZK Proof (signal=commit SHA)
    PoHI->>GH: Status: Verified Human βœ…
    GH->>AI: Merge enabled
Loading

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • World ID App (Download)
  • GitHub repository

Installation

# Core library (chain-neutral, zero dependencies)
npm install pohi-core

# EVM utilities (for on-chain recording)
npm install pohi-evm

# SDK (full client for World Chain)
npm install pohi-sdk

# CLI tool
npm install -g pohi-cli

Basic Usage

import { createAttestation, computeSignal, validateAttestation } from 'pohi-core';

// Create an attestation
const attestation = createAttestation(
  // Subject: what is being approved
  {
    repository: 'owner/repo',
    commit_sha: 'abc123...',
    action: 'DEPLOY',
    description: 'Production deployment v2.0'
  },
  // Proof: evidence of human verification
  {
    method: 'world_id',
    verification_level: 'orb',
    nullifier_hash: '0x...',
    signal: computeSignal('owner/repo', 'abc123...')
  }
);

// Validate structure and hash integrity
const result = validateAttestation(attestation);
console.log(result.valid); // true

CLI Usage

# Request human approval for a commit
pohi request --repo owner/repo --commit abc123

# Verify an existing attestation
pohi verify --repo owner/repo --commit abc123

GitHub Action

# .github/workflows/human-approval.yml
name: Require Human Approval

on:
  pull_request:
    types: [labeled]

jobs:
  verify:
    if: github.event.label.name == 'ready-to-merge'
    runs-on: ubuntu-latest
    steps:
      - uses: pohi-protocol/action@v1
        with:
          world-id-app: ${{ secrets.WORLD_ID_APP_ID }}
          required-level: orb

πŸ“¦ Packages

Package Description Status
pohi-core Core types & validation (zero deps) βœ… v0.1.0
pohi-evm EVM utilities (keccak256, encodePacked) βœ… v0.1.0
pohi-sdk World Chain client βœ… v0.1.0
pohi-cli Command-line tool βœ… v0.1.0
pohi-action GitHub Action βœ… v0.1.0
pohi-gitlab-ci GitLab CI Component βœ… v0.1.0
pohi-bitbucket-pipe Bitbucket Pipe βœ… v0.1.0
pohi-contracts Solidity contracts (Foundry) βœ… v0.1.0
pohi-demo Next.js + World ID demo βœ… Live

πŸ“„ Paper

"Proof of Human Intent: Cryptographically Verifiable Human Approval for AI-Driven Software Development"

  • πŸ“ arXiv: In preparation (expected 2026)
  • πŸ“ Source: paper/

Citation

@article{pohi2026,
  title={Proof of Human Intent: Cryptographically Verifiable Human Approval for AI-Driven Software Development},
  author={Ikko Eltociear Ashimine},
  journal={arXiv preprint},
  year={2026}
}

⛓️ On-Chain Verification

On-chain attestation recording is optional and currently in development.

Network Status Contract Address
World Chain Mainnet πŸ”§ Coming Soon TBD
World Chain Sepolia πŸ”§ Coming Soon TBD

Note: PoHI works without on-chain recording. The core protocol uses off-chain attestations that can be independently verified. On-chain recording adds an additional immutable transparency layer.


πŸ” Security Model

Security Considerations

PoHI has undergone an initial self-review focusing on:

  • Replay attacks: Mitigated by binding attestations to specific commit SHAs
  • Impersonation risks: Prevented by World ID's ZK proof of personhood
  • CI/CD workflow integrity: Isolated verification in ephemeral containers

For full security documentation, see SECURITY.md.

Threat Model

Attack Mitigation
Sybil (fake identities) World ID nullifier hash
Replay (reuse proof) Commit SHA in signal
Tampering Merkle tree proofs
Impersonation ZK proof of personhood

Trust Assumptions

  • World ID Orb correctly identifies unique humans
  • Transparency log is append-only
  • Cryptographic primitives are secure

πŸ—ΊοΈ Roadmap

  • Architecture design
  • Paper draft (Abstract)
  • Core library implementation
  • EVM utilities package
  • SDK for World Chain
  • CLI tool
  • GitHub Action
  • GitLab CI Component
  • Bitbucket Pipe
  • Smart contracts (Foundry)
  • Demo application (Next.js + World ID)
  • npm publish (v0.1.0)
  • Live demo deployment
  • Security self-review (see SECURITY.md)
  • arXiv submission
  • External audit
  • v1.0 release

πŸ“š Related Work

Technology Purpose Link
World ID Proof of personhood docs.world.org
IETF SCITT Supply chain transparency datatracker.ietf.org
Sigstore Keyless code signing sigstore.dev
W3C DID Decentralized identifiers w3.org
W3C VC Verifiable credentials w3.org

🀝 Contributing

Contributions are welcome! This project is in early stages.

  • ⭐ Star this repo to show support
  • πŸ› Open issues for discussion
  • πŸ”§ PRs welcome after v0.1 release

πŸ“œ License

Apache License 2.0


πŸ’¬ Philosophy

Web3 is not for speculation. It's infrastructure for preserving human intent and accountability.

As AI takes over implementation, humans become approvers.
PoHI ensures that approval is real, verifiable, and permanent.


Proof of Human Intent
Your approval, cryptographically preserved for the future.