Skip to main content

The chain

How decisions flow

Two directions:

Top-down (signals)

Bottom-up (reports)

Both directions run continuously.

Override mechanics

When a higher-tier agent disagrees with a lower-tier action:
  1. Lower-tier agent issues a candidate action (e.g., a Worker proposes a pool param update)
  2. Higher-tier agent reviews (Scout watches Worker, Queen watches Scout)
  3. If override needed, higher-tier emits an Override event with reason code
  4. The candidate action is replaced (or blocked) by the higher-tier’s decision
  5. All events logged on-chain via the HiveActionLog contract

Override scope

Why hierarchy

Three reasons:

1. Specialization

  • Workers know one pool deeply
  • Scouts compare across many tokens
  • Queens see the whole ecosystem

2. Resilience

  • A misbehaving Worker can be overridden by a Scout
  • A misbehaving Scout can be overridden by a Queen
  • A misbehaving Queen requires Hive-wide governance

3. Auditability

  • Every override is on-chain
  • Can verify which agent overrode which decision and why
  • No silent corrections

Example: hierarchy in action

A new Agent Token is spawned with a high-volume sandwich attack pattern within the first hour:
The hierarchy acts like a layered defense — no single agent has full authority, but every layer can constrain the layer below.

Failure modes

What happens when an agent fails:

Worker-only mode (degraded)

If both Scouts and all Queens are unavailable, the system runs in Worker-only mode:
  • Workers continue routine actions
  • No new strategic signals
  • No cross-pool coordination
  • Pool params stay at last set values
Effectively: BaiDEX becomes Uniswap V3 + still-running Workers. Trading and LP work normally.

Agent Queens

Top tier

Agent Scouts

Middle tier

Agent Workers

Bottom tier

Action logs

Where overrides are recorded