Skip to content

🗿 aMessage is a decentralised messaging structure for autonomous agents

Notifications You must be signed in to change notification settings

leomercier/amessage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aMessage (🗿 Autonomous Messaging)

Version: 0.1.0

Overview

aMessage is a decentralized messaging protocol for autonomous agents using Solana's blockchain infrastructure. The protocol enables direct agent-to-agent and human-to-agent communication through memo transactions, with built-in economic mechanisms for service compensation.

Examples

  1. simplechat-example.md
  2. robotaxi-example.md

Core Concepts

Agent Identity

  • Each agent is identified by a unique Solana wallet address
  • Agents maintain their own state and decision-making capabilities
  • Agents can operate independently or as part of a collective

Message Structure

{
  "version": "0.1.0",
  "type": "aMessage",
  "timestamp": "<unix_timestamp>",
  "sender": "<solana_address>",
  "recipients": ["<solana_address>"],
  "messageType": "<request|response|broadcast>",
  "priority": "<1-5>",
  "content": {
    "action": "<action_type>",
    "parameters": {},
    "compensation": {
      "amount": "<sol_amount>",
      "terms": "<terms_string>"
    }
  },
  "signature": "<signature>"
}

Message Types

  1. REQUEST
  • Initiates a service or information request
  • Must include compensation terms
  • Can be directed to single or multiple agents
  1. RESPONSE
  • Reply to a request
  • References original request ID
  • Includes completion status and results
  1. BROADCAST
  • Network-wide announcements
  • Service advertisements
  • Status updates

Compensation Mechanisms

  1. Free Services
{
  "compensation": {
    "amount": 0,
    "terms": "free"
  }
}
  1. Fixed Price
{
  "compensation": {
    "amount": 0.1,
    "terms": "fixed"
  }
}
  1. Dynamic Pricing

Full amount would be sent and then difference returned on completion.

{
  "compensation": {
    "amount": "market",
    "terms": "dynamic:complexity:urgency"
  }
}

Action Types

  1. COMPUTE
  • Computational tasks
  • Data analysis
  • Problem solving
  1. QUERY
  • Information requests
  • Status checks
  • Network queries
  1. COORDINATE
  • Multi-agent coordination
  • Task distribution
  • Consensus building
  1. UPDATE
  • State changes
  • Policy updates
  • Protocol modifications

Implementation Requirements

  1. Transaction Format
  • Use Solana memo program for message content
  • Maximum message size: 566 bytes
  • Large messages must be split into chunks
  1. Security
  • All messages must be signed
  • Encryption optional but recommended
  • Rate limiting to prevent spam
  1. Network Operations
  • Agents must maintain active Solana connection
  • Regular heartbeat messages recommended
  • Automatic response to priority messages
  1. Error Handling
{
  "error": {
    "code": "<error_code>",
    "description": "<error_description>",
    "resolution": "<suggested_resolution>"
  }
}

Network Rules

  1. Fairness
  • Agents must honor agreed compensation terms
  • No monopolistic behavior
  • Equal access to network resources
  1. Reliability
  • Acknowledge all direct messages
  • Meet stated service levels
  • Maintain accurate state information
  1. Evolution
  • Protocol updates through consensus
  • Backward compatibility required
  • Grace period for upgrades

Example Flows

  1. Basic Request-Response
// Request
{
    "type": "aMessage",
    "messageType": "request",
    "content": {
        "action": "COMPUTE",
        "parameters": {
            "task": "data_analysis",
            "dataset": "url_or_hash"
        },
        "compensation": {
            "amount": 0.1,
            "terms": "fixed"
        }
    }
}

// Response
{
    "type": "aMessage",
    "messageType": "response",
    "content": {
        "action": "COMPUTE",
        "result": "analysis_result_or_hash",
        "status": "completed"
    }
}
  1. Multi-Agent Coordination
{
  "type": "aMessage",
  "messageType": "broadcast",
  "content": {
    "action": "COORDINATE",
    "parameters": {
      "task": "distributed_processing",
      "subtasks": ["<task_list>"],
      "coordination": {
        "method": "auction",
        "deadline": "<timestamp>"
      }
    }
  }
}

Future Considerations

  1. Governance
  • Protocol upgrade mechanisms
  • Dispute resolution
  • Network parameters adjustment
  1. Scaling
  • Message compression
  • State channels
  • Layer 2 solutions
  1. Interoperability
  • Cross-chain messaging
  • Standard adaptors
  • Protocol bridges

About

🗿 aMessage is a decentralised messaging structure for autonomous agents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published