Description: Leaderless P2P AI Gateway
The DGrid AI Gateway is a resilient, sovereign settlement layer built for the Vertex Swarm Challenge. It utilizes Tashi P2P rails to ensure that AI agents can coordinate, settle IOUs, and maintain state integrity during network blackouts without a central leader.
- Role: Detects x402 settlement triggers.
- Function: Broadcasts state changes to the mesh for immediate reconciliation.
- Role: Validates the P2P sync.
- Function: Mirrors the ledger for redundancy and handles failover during blackouts.
- Role: The Tashi-backed decentralized logic.
- Function: Prevents double-spends and manages real-time agent reputation scores.
- Vertex / Tashi: P2P messaging and leaderless consensus.
- x402 Intercepts: Automated agentic fee redirection.
- Stateful Handshake: Sub-second P2P state replication for high-stakes "PayFi."
- /agents/aether_agent.py — The executable core of the "Stateful Handshake."
- /docs/PLAYBOOK.md — The governance and "Arbiter Role" specifications.
- LICENSE — MIT License.
To verify Bounty #1338 (Stateful Handshake) and Bounty #1337 (Leaderless Coordination):
- Initialize Swarm: Launch two instances of
aether_agent.pyfrom the/agentsfolder. - Verify Handshake: Observe the logs for "Handshake Successful" and "State Synchronized."
- Simulate Blackout: Force-close one agent; observe the second agent maintaining IOU ledger integrity via the Mesh Arbiter. 🛠️ Quick Start
- Prerequisite: DGrid API Key Before running the gateway, ensure you have a valid DGrid API key.
Generate one at the DGrid Console.
Ensure your Web3 wallet is connected for authentication.
-
Environment Setup Copy the example environment file: cp .env.example .env Open .env and paste your DGRID_API_KEY.
-
Launch the Gateway
npm install
npm start
This project is licensed under the MIT License.
Contact: [ramanarolla/AetherUX]
Sovereign Agentic Rails for the New Internet.
