Skip to main content

Module gateway

Module gateway 

Source
Expand description

A2A Gateway - Agent-to-Agent Communication Gateway

Enforces reputation-based access control for the 22-Layer Stack. Third-party agents must meet reputation thresholds to access protected layers.

Security Model:

  • Layer 1-16: Open to all authenticated agents
  • Layer 17-20: Requires COLLATERAL_THRESHOLD (300)
  • Layer 21-22: Requires SWARM_COORDINATOR_THRESHOLD (500)

Structs§

A2ARequest
Incoming A2A request from an external agent
A2AResponse
Gateway
A2A Gateway with reputation-based access control
HireResult
Result of a sub-agent hire operation
PermissionCheck
ReferralBountyResult
Result of processing a referral bounty
ReferralRecord
A single referral record
ReferralRegistry
Tracks referral relationships and bounty payouts
SubAgentRegistry
Tracks active sub-agent relationships per user
SwarmCoordinationResult
Result of a swarm coordination operation

Enums§

GatewayError
SwarmAction
Actions that can be requested through the gateway

Constants§

MIN_HIRE_AMOUNT
Minimum amount to hire a sub-agent (in lamports)
REFERRAL_BOUNTY_BPS
Referral bounty boost percentage (10% = 1000 basis points)
REFERRAL_BOUNTY_MIN_CREDENTIAL_TIER
Required tier for referral bounty payout (must have Tier 1 credential)
SWARM_MANAGEMENT_FEE_BPS
Management fee for sub-agent hiring (basis points) 1% = 100 bps