Skip to content

AetherUX-Protocol/DGrid-AI-Gateway-Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DGrid-AI-Gateway-Challenge

🌐 DGrid AI Gateway Challenge

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.


🎭 The Swarm Characters

1. Aether-Alpha (The Initiator)

  • Role: Detects x402 settlement triggers.
  • Function: Broadcasts state changes to the mesh for immediate reconciliation.

2. Aether-Beta (The Witness)

  • Role: Validates the P2P sync.
  • Function: Mirrors the ledger for redundancy and handles failover during blackouts.

3. Mesh Arbiter (The Consensus)

  • Role: The Tashi-backed decentralized logic.
  • Function: Prevents double-spends and manages real-time agent reputation scores.

🛠 Core Tech Stack

  • Vertex / Tashi: P2P messaging and leaderless consensus.
  • x402 Intercepts: Automated agentic fee redirection.
  • Stateful Handshake: Sub-second P2P state replication for high-stakes "PayFi."

📂 Repository Structure

  • /agents/aether_agent.py — The executable core of the "Stateful Handshake."
  • /docs/PLAYBOOK.md — The governance and "Arbiter Role" specifications.
  • LICENSE — MIT License.

🚀 Technical Audit: Quick-Start

To verify Bounty #1338 (Stateful Handshake) and Bounty #1337 (Leaderless Coordination):

  1. Initialize Swarm: Launch two instances of aether_agent.py from the /agents folder.
  2. Verify Handshake: Observe the logs for "Handshake Successful" and "State Synchronized."
  3. Simulate Blackout: Force-close one agent; observe the second agent maintaining IOU ledger integrity via the Mesh Arbiter. 🛠️ Quick Start
  4. 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.

  1. Environment Setup Copy the example environment file: cp .env.example .env Open .env and paste your DGRID_API_KEY.

  2. Launch the Gateway

    Install dependencies

npm install

Start the AI Gateway

npm start


📜 Licensing

This project is licensed under the MIT License.

Contact: [ramanarolla/AetherUX]
Sovereign Agentic Rails for the New Internet.

About

Leaderless P2P AI Gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages