Autonomous Verification

Impact Accountability Agent

An autonomous AI agent that monitors milestone evidence, analyzes it with Claude, stores verification reports on Filecoin, and submits onchain verification transactions. Every decision is logged. Every report is permanent. No human bottleneck.

Milestone verification is the bottleneck in impact funding. Donors don't know if their money was used well. Projects hate the overhead of proving it. Manual review is slow, expensive, and subjective. The agent closes this loop: autonomous analysis with a permanent, decentralized audit trail.

Verification Flow
Project uploads         Agent detects           Claude analyzes         Report stored
evidence to          →  EvidenceAttached     →  evidence against     →  permanently on
Storacha/IPFS           event onchain           milestone criteria      Filecoin Pin
                                                      │
                                            confidence ≥ 70%?
                                             yes │         │ no
                                                 ↓         ↓
                                   verifyMilestone()    store report,
                                   submitted onchain    defer to human
                                         │
                                         ↓
                              MilestoneArbiter returns true
                              → Alkahest escrow releases funds

How it works

1Watches

Monitors EvidenceAttached events on ImpactHook. When a project uploads evidence to Storacha or Filecoin and stores the CID onchain, the agent detects it within seconds.

2Fetches

Retrieves the evidence file from Storacha/IPFS gateways using the CID. Supports images, PDFs, JSON reports, CSV data, and text documents. Multiple gateway fallbacks for reliability.

3Analyzes

Sends the evidence and milestone description to Claude for structured evaluation. Returns a confidence score, per-criterion breakdown, and reasoning. Vision capability for image evidence, document analysis for PDFs.

4Verifies

If approved with confidence above the threshold, submits verifyMilestone() onchain. The verification report is stored permanently on Filecoin. MilestoneArbiter gates unlock, releasing Alkahest escrow funds.

Decentralized Storage

Where agent data lives

Agent Memory
Storacha (IPFS)

Past verifications, project knowledge, and processed event history. Persists across sessions. Agent loads its memory from the latest CID on restart.

Verification Reports
Filecoin Pin (Calibration)

Structured JSON reports with per-criterion analysis, confidence scores, and reasoning. Stored via Synapse SDK. Permanent, verifiable audit trail accessible via IPFS CID.

Execution Logs
Filecoin Pin (Calibration)

Structured logs of every decision, tool call, and error. Flushed to Filecoin on shutdown. Proves the agent operated autonomously and made verifiable decisions.

Safety

Guardrails and accountability

70%Confidence threshold

Only auto-verifies when Claude's confidence exceeds 70%. Below that, stores the report but defers the decision to a human verifier.

--Dry-run mode

Full analysis pipeline without submitting onchain transactions. Analyze evidence, generate reports, persist memory, but never call verifyMilestone().

{}Structured audit trail

Every decision is logged with timestamp, action type, and details. Logs are flushed to Filecoin on shutdown. Anyone can audit why the agent approved or rejected.

$Budget awareness

Configurable max Claude calls per hour. Agent tracks gas costs and storage costs per session. Designed to operate under real economic constraints.

Onchain Agent Registry

AgentRegistry.sol on Filecoin Calibration lets agents register identity, store metadata and state CIDs, and build verifiable reputation from their verification history.

Register
Name + agent.json CID
Update
Latest memory CID
Record
Each verification + report CID
Reputation
Approval rate from history
Live Result

Agent verification in action

Clean Water Initiative - Milestone #0Approved
Confidence
85%
Analysis Time
6s
Evidence
1.2 KB
Model
Haiku
Criteria Evaluation
Project officially registeredReport states "Project registered and ready for Phase 1 implementation"
Registration documented in credible recordProfessional baseline report with institutional backing (Universidad Autonoma de Chiapas)
Project scope clearly defined20 schools in rural Chiapas identified with baseline conditions established
Initial planning/setup activities completedWHO/UNICEF protocol testing complete, priority installation order established

Run the agent

cd agent && bun install && bun agent.ts --dry-run