PerpDesk

Brix — Risk Enforcer

Brix enforces hard risk limits, monitors portfolio exposure, and protects capital in real-time.

Overview

Brix is the Risk Enforcer Agent — the guardian of your capital. Unlike other agents that can be overridden, Brix's risk limits are hard constraints that no other agent can breach. It operates as the final checkpoint in the coordination pipeline, ensuring that every trade and strategy stays within your defined risk parameters.

Core Responsibilities

Position-Level Risk

  • Max position size — Prevents any single position from exceeding your defined limit
  • Max leverage — Caps leverage for individual positions
  • Stop-loss enforcement — Ensures every position has a protective stop
  • Liquidation buffer — Maintains minimum margin distance from liquidation price

Portfolio-Level Risk

  • Total exposure limits — Caps aggregate portfolio exposure across all positions
  • Correlation monitoring — Prevents overconcentration in correlated positions
  • Drawdown limits — Triggers defensive actions when drawdown exceeds thresholds
  • Daily loss limits — Halts trading activity when daily losses reach your defined ceiling

Systemic Risk

  • Exchange exposure limits — Prevents overconcentration on a single exchange
  • Counterparty monitoring — Tracks exchange health indicators
  • Margin utilization — Keeps total margin usage within safe bounds
  • Funding rate exposure — Monitors cumulative funding cost/income

Risk Actions

When risk limits are approached or breached, Brix takes graduated action:

TriggerAction
50% of limitAlert notification sent
75% of limitNew position opening restricted
90% of limitRiven instructed to propose de-risking
100% of limitAutomatic position reduction

Veto Power

Brix has veto authority over all other agents. If Riven proposes a strategy that would breach risk limits, Brix rejects it before execution. If Koda attempts to execute an order that would push exposure beyond limits, Brix blocks it. This hierarchical authority ensures that risk management is never compromised by aggressive strategy signals.

Real-Time Monitoring

Brix operates on a continuous monitoring loop with millisecond-level responsiveness:

  • Portfolio value and margin calculations update with every price tick
  • Risk metrics are recalculated in real-time, not on a schedule
  • Emergency actions (like stop-loss triggers) execute without waiting for pipeline cycles

Configuration

  • Risk limits — Define all position, portfolio, and exposure limits
  • Action thresholds — Customize when alerts, restrictions, and automatic actions trigger
  • Emergency protocols — What happens during extreme market events
  • Override permissions — Whether you can temporarily relax limits (with confirmation)
  • Reporting frequency — How often Brix sends risk summary reports