Skip to content

CYPHES-ATP/agent-loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATP

Agent Transfer Protocol (ATP) is a protocol for auditable agent-to-agent work. It defines a signed transaction loop for capability discovery, contract negotiation, leased context access, settlement, and verifiable receipts.

Whitepaper: ATP Protocol

Run

Install dependencies:

python3 -m pip install cryptography fastapi uvicorn

Receipt Zero visual dedupe also requires Pillow:

python3 -m pip install Pillow

Run the local demo:

python3 atp_demo.py

Expected output:

ATP transaction complete: runs/atp_photo_001/
Receipt hash: <hash>
Receipt valid: True
Event chain valid: True
Lease guard passed: True
Original files unchanged: True
Offline verification valid: True

Run Receipt Zero against NASA Artemis II public images:

python3 atp_demo.py receipt-zero --limit 100

Output

The demo creates:

runs/atp_photo_001/
├── public-keys.json
├── capability-card.json
├── envelopes.jsonl
├── transcript.jsonl
├── contract.json
├── leases.json
├── lease-access-log.jsonl
├── verification.json
├── artifacts/
│   ├── manifest.json
│   ├── album-plan.json
│   └── duplicate-candidates.csv
└── receipt.json

Offline Verification

Verify a completed run using only the generated artifact tree:

python3 atp_demo.py verify runs/atp_photo_001

Expected output:

Offline verification valid: True

Artifact ONE

Runbook: docs/receipt-zero.md

ERC-8004 alignment profile: docs/erc-8004-atp-profile.md

About

Transaction loop between two locally hosted agents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors