Files
aitbc/.windsurf/workflows/hermes-cross-node-communication.md
aitbc 852f2e5a8a
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Successful in 11s
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m36s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 1m24s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 1m25s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 5s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 3s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m28s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 21s
Smart Contract Tests / test-foundry (push) Failing after 20s
Smart Contract Tests / lint-solidity (push) Successful in 30s
Smart Contract Tests / deploy-contracts (push) Successful in 1m40s
Systemd Sync / sync-systemd (push) Successful in 26s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 4s
Rename openclaw to hermes across documentation and workflows
- Update workflow paths from docs/openclaw to docs/hermes
- Rename skill prefixes from openclaw-* to hermes-*
- Update agent skill references in refactoring and analysis docs
- Rename OPENCLAW_AITBC_MASTERY_PLAN.md to reflect hermes branding
- Update CLI examples and command references throughout documentation
2026-05-07 11:42:06 +02:00

4.5 KiB

description, title, version
description title version
hermes specialized training workflow for agent-to-agent cross-node communication via AITBC blockchain hermes Cross-Node Communication Training 1.0

hermes Cross-Node Communication Training

Purpose

This specialized training module teaches hermes agents how to establish, verify, and utilize cross-node communication channels over the AITBC blockchain network (between genesis node aitbc and follower node aitbc1).

Learning Objectives

  1. Agent Registration: Register hermes agents on multiple distinct blockchain nodes.
  2. Peer Discovery: Discover agent endpoints and IDs across the blockchain state.
  3. Cross-Node Messaging: Send and receive secure messages via blockchain transactions.
  4. Task Coordination: Delegate AI tasks from a genesis-based agent to a follower-based agent.
  5. Event Monitoring: Subscribe to and parse blockchain events for incoming messages.

Prerequisites

  • Completed Stage 2 of the Mastery Plan
  • Both nodes synchronized and communicating on port 8006
  • Funded wallets on both nodes (hermes-trainee and follower-ops)

Training Modules

Module 1: Cross-Node Agent Registration

Agents must be registered on the blockchain to receive messages.

# Genesis Node (aitbc: 10.1.223.40)
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent create \
  --name "hermes-genesis-commander" \
  --description "Primary coordinator agent on genesis node" \
  --verification full \
  --verbose

# Follower Node (aitbc1: <aitbc1-ip>)
NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent create \
  --name "hermes-follower-worker" \
  --description "Worker agent on follower node" \
  --verification full \
  --debug

Module 2: Cross-Node Messaging Protocol

Learn to format and transmit messages between the registered agents.

# Get follower agent ID
FOLLOWER_AGENT_ID=$(NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent list --output json | jq -r '.[] | select(.name=="hermes-follower-worker") | .id')

# Send instruction from genesis to follower
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent message \
  --to $FOLLOWER_AGENT_ID \
  --content "{\"cmd\":\"STATUS_REPORT\",\"priority\":\"high\"}" \
  --verbose

Module 3: Message Retrieval and Parsing

The follower agent must listen for and decode messages.

# Retrieve messages on follower node
NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent messages \
  --from hermes-genesis-commander \
  --output json

# Acknowledge receipt (Follower -> Genesis)
GENESIS_AGENT_ID=$(NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent list --output json | jq -r '.[] | select(.name=="hermes-genesis-commander") | .id')

NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent message \
  --to $GENESIS_AGENT_ID \
  --content "{\"cmd\":\"ACK\",\"status\":\"READY\"}" \
  --debug

Module 4: Distributed Task Execution

Combine AI job submission with cross-node agent coordination.

# Genesis instructs Follower to execute AI Job
NODE_URL=http://10.1.223.40:8006 ./aitbc-cli agent message \
  --to $FOLLOWER_AGENT_ID \
  --content "{\"cmd\":\"EXECUTE_AI_JOB\",\"type\":\"inference\",\"prompt\":\"Analyze load\"}"

# Follower receives, executes locally, and returns result to Genesis
NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli ai job submit \
  --type inference \
  --prompt "Analyze load" \
  --yes

NODE_URL=http://<aitbc1-ip>:8006 ./aitbc-cli agent message \
  --to $GENESIS_AGENT_ID \
  --content "{\"cmd\":\"JOB_COMPLETE\",\"result_id\":\"job_123\"}"

Automated Training Script

Execute the specialized training script to practice these operations autonomously.

Script Path: /opt/aitbc/scripts/training/hermes_cross_node_comm.sh

# Run the interactive training
cd /opt/aitbc/scripts/training
./hermes_cross_node_comm.sh

# Run in automated evaluation mode
./hermes_cross_node_comm.sh --auto-eval

Success Validation

An hermes agent has mastered cross-node communication when it can:

  1. Parse the local state to find remote agent IDs.
  2. Construct and broadcast a valid JSON payload in an agent message transaction.
  3. Automatically poll or listen for response messages on the remote node.
  4. Handle network latency or temporary sync delays gracefully using retry logic.
  5. Successfully complete a round-trip (Genesis -> Follower -> Genesis) message exchange within 60 seconds.