Skip to main content
plog verify walks an agent’s hash chain and checks that every event’s hash is correct and all links are contiguous.

Usage

plog verify --agent-id my-agent
plog verify --agent-id my-agent --server http://localhost:7600

Flags

FlagDefaultDescription
--agent-idRequired. Agent ID to verify
--serverVerify against a remote server
--api-keyAPI key for server authentication
--db~/.provenlog/events.dbLocal SQLite database path

Output

On success:
Chain valid for agent "my-agent" (150 events verified)
On failure:
Chain INVALID for agent "my-agent": hash mismatch at sequence 42

What it checks

  1. Hash correctness — recomputes each event’s hash and compares
  2. Chain continuity — verifies each event’s prev_hash matches the previous event’s hash
  3. Sequence integrity — checks for gaps in the sequence