# Permissions and limits

> The three layers that limit your agent, in plain words, then who enforces what, the module's operating modes, the signed mandate's fields, how to verify a setup, and how agents should treat the limits.
>
> Describes Orbit 0.1.8. Web page: https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/permissions-and-limits/

This page explains exactly what stops your agent from doing something you did not want. It opens in plain words: there are three layers, and each works on its own, so a problem in one is caught by the next. Later sections are for agents and contributors: who enforces each limit, what the module checks in each operating mode, the fields of the signed mandate, and how to verify a setup. Facts are as of Orbit 0.1.8.

## Layer 1: the permission list, fixed on the blockchain

Your wallet keeps a **permission list**: every action your agent's wallet may run, written down exactly. "Put USDC into this savings vault" is one entry. "Take it back out" is another.

- The list lives on the blockchain, in your wallet's module. Orbit cannot change it. Your agent cannot change it.
- Only your approval keys can change it, with a wallet transaction you approve in the Safe app.
- Each entry fixes **where** money may go. Your agent cannot point an action at a new address. If an address is not already on the list, it is not reachable, and your agent has no way to add it.
- When your wallet is in restricted mode (Orbit sets new wallets up this way), the module also has **on-chain safety limits**: the most value one action may lose, and how long to wait before the same action runs again. You see them under **Rules → On-chain limits**.

The list is built from the packages you install. See [Packages and plans](https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/packages-and-plans/).

### Sending tokens to other wallets

By default your agent cannot send tokens to anyone. Two optional permissions change that, and both need your approval:

- **Token Transfers**: you choose which token may go to which wallet. With it on, your agent can send that token to those wallets. The Orbit page says it plainly: "It can send any amount, any time, so only add wallets you trust." Your agent still cannot add a wallet to the list.
- **Gas Top Up**: your wallet may send a fixed small amount of gas money to the wallets you list (usually your agent's wallet and Orbit's protection key), so they can keep paying network fees. Receiving gas gives these wallets no control over your wallet.

## Layer 2: your rules, which you sign

Inside what the permission list allows, **your rules** say how much and how often. You pick a starting point when you set up (Cautious, Balanced or Active) and can change any number later. Every change needs your signature. As of Orbit 0.1.8, the starting point also sets the module's wait between actions on the blockchain, unless you already chose a wait yourself; a wallet on a new network copies the wait of the wallet it was added from. You see both your rules and the wait under **Rules** on your Orbit page.

Your rules can set:

| Rule | What it means |
| --- | --- |
| Limit for one action | No single action may be bigger than this. |
| Daily limit | The total put to work over any 24 hours. |
| Review line | Actions above this wait for you first. |
| How you review | "You approve larger actions first", or "you can stop larger actions before they run" (a waiting time, after which it goes ahead unless you said no). |
| Actions per hour and per day | A cap on how busy your agent is. |
| Old market data | If prices have not been updated for a while, no new positions; taking money out still works. |
| Too much in one place | How much of your money may sit in one position. |
| Borrowing | Whether your agent may borrow at all. |
| Loss limit | The automatic brake, see Layer 3. |

Orbit checks your rules twice: when the action is tested, and again right before it is sent. If a rule says no, nothing is sent, and the Orbit page shows "Stopped by your limits" with the reason in plain words.

Without signed rules, your agent cannot open positions at all.

On your Orbit page, **Rules** and the limits review show each setting once, in plain words with its unit (for example the loss limit as "Pause when losses in one window reach: … of everything in your Orbit wallets"). A first set of limits shows the main ones up front and every other setting under **All settings**; a change shows "old → new" and whether it loosens or tightens. The perpetuals rows show only when a perps package is installed or chosen.

## Layer 3: the automatic brakes

Even inside your rules, a run of bad results should stop things. Two brakes do that.

**Your loss limit (the circuit breaker).** Orbit watches how much each action lost compared with what was allowed. Several losing actions in a short time, or too much total loss, trips it. Then:

- new positions and swaps out of your money are refused,
- **closing positions still works**, so your agent can always reduce risk,
- it restarts by itself when the losses age out. If it trips again soon after, it stays stopped until you look and restart it.

It shows under **Needs you** as "Your loss limit paused new positions".

**The watchdog.** A separate small program, with its own key (Orbit's protection key), watches your wallet on the blockchain. If it sees losses add up, it pauses your wallet's module on-chain. While the module is paused, it refuses every action from your agent's wallet, closing positions included, until you lift the pause. It shares nothing with Orbit, so it still works if Orbit is broken or its key was stolen. See [Safety and pausing](https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/safety-and-pausing/).

## What your agent can never do

- **Add a destination.** It cannot add a new address to the permission list or to Token Transfers.
- **Change the permission list.** Only your approval keys can.
- **Change your rules.** It can suggest new limits. They only take effect when you sign.
- **Go past your hard limits.** The limit for one action and the daily limit are refused, not asked about.
- **Lift an on-chain pause.** Orbit only ever prepares that for your approval.
- **Sign for you.** Orbit never holds your approval keys.

### One honest note about reviews

Reviews (actions above your review line) are there to catch your agent's mistakes. You can approve on your Orbit page, or by replying in chat. A reply in chat is recorded with your exact words, works only for an action inside your hard limits, and still waits for your waiting time; you can reject it on the Orbit page while it waits. Your hard limits, the permission list and the on-chain checks are what hold even if the agent misbehaves. See [Approvals](https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/approvals/).

## Who enforces what

From here on the page uses Orbit's terms. Layer 1 is the module's instruction **root** plus its loss caps and cooldowns. Layer 2 is the **mandate**. Layer 3 is the mandate's circuit breaker plus `orbit-watchdog` with a guardian key. Counted separately, there are five independent layers. The first is on chain and binds even a stolen operator key; the others run in software.

| Layer | Enforced by | What it checks | Binds a stolen operator key? | Who can change it |
| --- | --- | --- | --- | --- |
| **On-chain module** (`MakinaXModule`, Makina's makinaX) | The chain | The instruction's merkle leaf is in `allowedInstrRoot` (the **root**), the operator role, guardian pause and provider suspension, in every mode. The swap output floor (`minOutputAmount`) in every mode. Value caps and cooldowns depending on the operating mode (next section). | **Yes** | The Safe (owner transactions): root via `setAllowedInstrRoot`, caps, cooldowns, recipients, operators, guardians, mode. Makina's provider account: suspension and swap fee. |
| **Signed mandate** (`~/.orbit/mandates/global.toml`) | Orbit's policy engine, at simulate **and again at execute** | Caps, review thresholds, cadence, staleness, concentration, scope, curator risk status, exit capacity, perp leverage, auto-renew consent. | No (runs in Orbit's process) | Only the owner: one EIP-191 signature from a wallet that owns every governed Safe. |
| **Loss circuit breaker** | Orbit's policy engine | Cumulative realized loss of the agent's own actions over a rolling window. When tripped: increases and outbound swaps denied, exits into the accounting currency allowed. | No | Settings are part of the mandate. Auto-resets when the window slides clean, never while the portfolio value can't be read (it shows as `unverifiable`); an escalated re-trip needs the owner. |
| **Soft local pause** (`set_execution_paused`) | Orbit | Halts new risk; exits still run. | No | **Anyone who can call the tool, including you.** A convenience stop, not a security boundary. |
| **Watchdog** (`orbit-watchdog`) | A separate process with its own guardian key | Follows the module's events, prices each action's value change, and calls `pause()` on the module when losses trip its thresholds. | **Yes** (it shares no process, key or config with Orbit) | Its settings (`get_watchdog_settings`); a weaker setting needs an owner signature. |

What each layer does **not** do:

- The module's loss caps bound **per-action** loss, and which caps apply depends on the operating mode. Outside `WALLED` every simulation carries `policy_is_primary: true` and a mandate is mandatory, because nothing on chain bounds the value of a position change. Every signed mandate must carry a review rail (`[global.review]`), in every mode, or activation refuses; outside `WALLED` that rail is the only human checkpoint above the thresholds. `no_review` is allowed only in `WALLED`. Orbit deploys new modules in `WALLED`.
- Cooldowns are a spam brake, not a loss bound.
- The breaker binds the agent, not a leaked key. That is the watchdog's job.
- The watchdog reacts after losses accumulate within its window; it does not prevent. It follows the module's events on each configured network, HyperEVM included. It does not read the Safe's Hyperliquid trading account (HyperCore positions or balances): a loss there is not seen until it shows up in the module's accounting.
- An unreadable RPC never counts toward a watchdog pause; `health_check` and `verify_setup` (`watchdog_live`) say when protection is not confirmed.

## Operating modes: what the module enforces on chain

The module has three operating modes. Each adds checks to the one before it. The mode is set only by the Safe (`setOperatingMode`), and every cap and cooldown setter is Safe-only and works in any mode; values set in `OPEN` take effect when the mode is raised. This table is confirmed from the module's contract source.

| Check | `OPEN` | `FENCED` | `WALLED` |
| --- | --- | --- | --- |
| Instruction leaf in `allowedInstrRoot` | yes | yes | yes |
| Operator role, guardian pause, provider suspension | yes | yes | yes |
| The operator's own swap `minOutputAmount` | yes | yes | yes |
| Swap loss cap (`maxSwapLossBps`, oracle-priced; also covers the swaps inside a harvest) | no | yes | yes |
| Swap cooldown (one global timer) | no | yes | yes |
| Bridge loss cap per bridge id (`getMaxBridgeLossBps`, checked against the order's `minOutputAmount`, no oracle) | no | yes | yes |
| Bridge cooldown (one duration, a timer per bridge id) | no | yes | yes |
| Bridge recipient whitelist (destination network and recipient) | no | yes | yes |
| Across route and LayerZero OFT must be registered | no | yes | yes |
| Mandatory accounting on position changes (`AccountingMandatory`) | no | no | yes |
| Position increase and decrease loss caps, and the direction check | no | no | yes |
| Instruction cooldown (per position, commands and direction) | no | no | yes |

**The swap fee.** A module can charge a fee on each swap, taken from the output before it reaches the Safe. The fee comes **on top of** the owner's swap-loss limit; it is not counted inside it. Read it from a swap's simulation: `simulate_action` → `policy.swap_constraints` → `swap_fee_rate_pct` (with `fee_on_top_of_loss_limit: true` when it is above zero). Relay `swap_fee_note` as written. An unreadable fee is said to be unreadable, never shown as zero.

Not mode-gated: the Circle CCTP bridge encoder does not read the mode, and flash loans, standalone accounting and harvest instruction execution do not depend on it.

What this means for an agent:

- In `WALLED` the chain bounds position, swap and bridge losses per action. The mandate adds totals, cadence and review on top.
- In `FENCED` the chain still bounds swaps and bridges, but not position value. The mandate is the primary brake for positions.
- In `OPEN` the chain checks only membership in the root, roles and pause. The mandate is the primary brake for everything.

Read the mode with `get_module_state` (`operating_mode`). Contributor detail: [The makinaX library and the module](https://dialectic-orbit-docs.vercel.app/0.1.8/contributing/makinax-and-the-module/#loss-caps-cooldowns-and-operating-mode). Makina's [operator role](https://docs.makina.finance/concepts/governance/operator) and [root update lifecycle](https://docs.makina.finance/concepts/governance/root-update-lifecycle) pages describe the same ideas for Makina machines, which are not the same thing as an Orbit Safe; read them as background.

## Your setup, and how to verify it

Your Safe is controlled by:

- **The owner**, who holds the Safe: its owner wallets, at the Safe's threshold. You hold no owner key.
- **The makinaX module** enabled on the Safe. Orbit's operator key acts only through it, and can only ask it to run rooted instructions.
- **The root the owner signed.** It is built from the curator-signed packages installed on that Safe plus any transfer recipients the owner added. Anything outside it is refused on chain. `list_actions` shows what it covers.
- **The mandate the owner signed**: caps, concentration, exit capacity, perp leverage, cadence, review, staleness and the loss circuit breaker ([fields below](#the-mandate-fields-and-meaning)).
- **The guardians**: the Safe itself always, plus the watchdog's guardian key. A guardian key can only pause the module.
- **The watchdog**, which follows the module's events, estimates realised losses from on-chain values, and pauses the module with its guardian key when its check trips. It does not read the Hyperliquid trading account.
- **Makina's provider account**: suspension only.

On HyperEVM, a Hyperliquid signer the owner registers acts at the exchange outside the module and the mandate ([Hyperliquid perps](https://dialectic-orbit-docs.vercel.app/0.1.8/using/hyperliquid-perps/#what-a-signer-can-do)).

Verify your own setup with these reads rather than assuming:

| Question | Tool and field |
| --- | --- |
| Which module, on which Safe and network? | `list_safes` → `safe`, `module`, `chain`, `chain_id` |
| Is that module enabled on the Safe? | `health_check` → `machines[].module_enabled` (`null` = could not ask, `false` = not enabled) |
| Is the root Orbit uses the one the module enforces? | `health_check` → `machines[].root_matches` (`true` / `false` / `"unverifiable"`), `onchain_root`, `library_root`, `root_state` with its sentence `root_state_note`; or `check_root` |
| Operating mode, pause, suspension, loss caps, cooldowns, guardians, operators, bridge recipients | `get_module_state` → `operating_mode`, `paused`, `suspended_by_provider`, `loss_caps_bps`, `cooldowns_s`, `guardians`, `operators`, `recipients` |
| Every requirement at once, with who fixes each gap | `verify_setup` (omit `safe` for all). Gaps are classified by fixer (`safe_owner`, `makina`, `curator`, `provider`); `missing` is a real gap, `unverified` means the read failed |
| Is the watchdog live for this Safe? | `verify_setup` → `watchdog_live`; `get_watchdog_settings`; `get_portfolio` → `protection_note` |
| What may the Safe do? | `list_actions` (rooted positions), `get_perp_permissions` (Hyperliquid markets), `get_gas_top_up`, `get_erc20_allowlist` |
| What limits are signed? | `get_mandate_interview` shows each field with the active values. It is in the read-write build only; the read-only build has no tool that returns the active mandate values. The owner sees them on the owner page under **Rules**. |
| Guardrail state at a glance | `get_portfolio` (lockdown, pause, suspension, loss bps, root match) |

Call `health_check` at session start and when diagnosing. Use `verify_setup` after setup and to troubleshoot, not before every action: `execute_action` checks what its own call needs.

An action blocked by a module cooldown is refused at simulation with a `refusal` block, code `wait_not_over`, that states the wait and the time left (`limit.wait_s`, `limit.left_s`); Orbit does not check module cooldowns before sending. To see the waits in advance, read `get_module_state` → `cooldowns_s` (keys `instruction`, `swap`, `bridge`). These are configured durations in seconds, not time remaining; Orbit exposes no countdown. `get_portfolio` → `guardrails.instr_cooldown_s` also shows the instruction wait. The scope differs by kind: the instruction wait is per position, commands and direction (`WALLED` only); the swap wait is one timer for every guarded swap; the bridge wait runs a timer per bridge id (swap and bridge waits apply in `FENCED` and `WALLED`). Retry once the time left has passed, and tell the owner it is the module's wait.

As of Orbit 0.1.8 the care level the owner picks (Cautious, Balanced or Active) sets the module's instruction and swap waits, unless the owner chose a wait themselves; it does not set the bridge wait. A Safe added on a new network copies the source Safe's wait. The applied values are in `cooldowns_s`; the choices offered when Orbit needs the owner to pick are in the `module_cooldown_choice_needed` refusal's `options_seconds`.

## The mandate: fields and meaning

The mandate is one signed document for every Safe the owner governs (`schema = "g1"`), with optional per-network overlays. Amounts are in the accounting currency, as human figures. Where the file lives is on [Config and state](https://dialectic-orbit-docs.vercel.app/0.1.8/reference/config-and-state/).

### Header

| Field | Meaning |
| --- | --- |
| `[mandate] version` | Monotonic; bumped on every change. |
| `safes` | The Safes this document governs. A Safe it does not name is not covered (see [Adding a Safe](#adding-a-safe-under-active-limits)). |
| `activated_at`, `activated_by`, `activation_keccak` | When, by which owner wallet, and over which exact message it was activated. |

### `[global.caps]`

| Field | Meaning |
| --- | --- |
| `per_tx` | Hard cap per action (increases and swaps out). |
| `per_token` | Optional per-token overrides of `per_tx` on the outflow token. |
| `daily_deployment` | Rolling 24 h cap on value deployed, across every Safe. A swap then a deposit counts twice. Exits never consume it. |
| `max_position_concentration_pct` | Post-action position value as a share of total value, on increases. Debt increases are exempt. |
| `max_protocol_concentration_pct` | Net exposure to one protocol across networks, as a share of total value. |
| `max_group_leverage` | Gross credit ÷ net per deployment, on increases into it. |
| `max_perp_leverage` | Gross open perp notional (plus resting non-reduce-only orders plus this order) ÷ verified trading-account equity, on increases. Absent = no perp cap; `"no perps"` = perps disallowed. If absent and `max_group_leverage` is set, the group cap applies to perps, and a denial under it shows rule `global.caps.max_perp_leverage.from_group_leverage`; with neither set, perps have no leverage cap. The preset values are in `get_mandate_interview`'s preset columns. |
| `exit_capacity_pct` | A position may grow only to this percent of the curator's 24 h exit-capacity estimate. The preset values are in `get_mandate_interview`; a mandate that omits the field gets a fixed default from Orbit, and the active value is in `get_mandate_interview`. No estimate, no check. |
| `per_target`, `per_target_daily` | Per-recipient caps for owner-named transfer recipients. A recipient with no entry is refused. |

### Other sections

| Field | Meaning |
| --- | --- |
| `[global.cadence] max_actions_per_hour`, `max_actions_per_day` | Action counts across all Safes. Declared exits are exempt from the limit (they still count). `get_portfolio` → `policy.derived.cadence` shows `hour_used` and `day_used` in the scope the check counts (`scope`: `all_safes` or `this_safe`, with `scope_note` for `all_safes`). |
| `[global.review] mode` | `explicit_approval` (waits for an approval), `veto_window` (runs at the deadline unless the owner objects), or `no_review` (no human checkpoint; caps still apply). |
| `above_per_tx`, `above_daily` | Actions above these go to review. Must be below the matching caps. |
| `window_s`, `quiet_hours`, `expiry_multiplier` | Veto window length; owner-local hours that pause the veto clock; an `explicit_approval` item expires after `window_s` × `expiry_multiplier`. |
| `[global.scope] allow_debt_positions` | `false` denies debt increases; deleveraging always allowed. |
| `denied_position_ids` | Untouchable in both directions. |
| `[global.staleness] l1_after_s`, `l2_after_s`, `l2_policy`, `require_market_data` | How old curator data may be. L1: no increases. L2: `hold` or `exit_only`, both still allow exits, repays and closes. A governed feed never received counts as L2. |
| `circuit_breaker_enabled`, `[global.circuit_breaker]` | The loss breaker and its parameters (`bleed_threshold`, `window_cooldown_multiple`, `max_bleeding_actions`, `max_window_loss_bps_of_nav`, `retrip_escalation_window_s`). |
| `[global.auto_renew] tier`, `max_price_per_period` | Consent for the agent to renew one plan period at a time (`renew_subscription`). Absent = no automatic renewal. |
| `[chains.<network>]` | Overlays: `max_nav_allocation_pct` (share of total value on that network), cadence, debt scope, denied positions, concentration. An unset overlay field inherits the global value. |

### Order of checks

First deny wins: unparseable cap → debt scope → denied positions → circuit breaker → curator risk status → exit capacity → staleness → pricing → `per_tx` → per-recipient → `daily_deployment` → concentration → breaker value check → cadence → review thresholds. The fleet-wide checks (protocol concentration, network allocation, perp leverage) are evaluated alongside. Exits, repays and closes are never blocked by curator status, staleness, value caps or exit capacity.

### Changing the mandate

The limits rows Orbit returns (the `mandate` rows of `present_mandate_for_signing` and the setup approval, and the owner page) read in plain words with units: each loss-breaker setting once, and whole-portfolio caps as a share of everything in the owner's Orbit wallets ("… on this network" for an overlay). Show them word for word. Only the wording changed; the signed document and its message are the same. In a first setup, before the module exists, cap rows show planned dollar amounts from the planned accounting currency.

You can propose (`propose_global_mandate`, with `profile` or `answers`; `based_on_proposal` to build on your pending one). The owner signs through a sign link (`present_mandate_for_signing`, then `submit_mandate_signature` with their pasted signature) or on the owner page. The owner says no: `present_mandate_for_signing` with `decline: true`. Loosening changes are flagged to the owner. You can never activate or loosen limits yourself. The steps are on [Approvals](https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/approvals/#limits-the-mandate-signature); the interview is on [Setup and networks](https://dialectic-orbit-docs.vercel.app/0.1.8/using/setup-and-networks/#the-mandate-interview).

### Adding a Safe under active limits

As of Orbit 0.1.8, the signed mandate governs only the Safes it names. A Safe added on a new network is not covered until the owner signs a revision that names it:

- Its setup batch is refused with `limits_cover_new_safe_first` until then (`generate_onboarding_batch`, `propose_onboarding_batch`, `present_batch_for_signing`). Sign the limits first, then prepare the setup.
- To draft that revision, call `propose_global_mandate` with `carry_over: true`: it keeps every signed value and adds the new Safe. `run_quick_setup` for the new network drafts the same thing.
- If a Safe's setup ran before the limits named it, the fleet is mixed: only exits run (decreases, reduce-only and close orders, swaps into the accounting token) until the owner signs. Everything else is refused with "Your signed limits don't include every wallet yet (…), so only withdrawals and exits can run."

## For agents: the limits are the risk budget

The signed root and mandate are the owner's decision about risk, made once with a signature. Treat them that way.

- **An action inside the signed limits is authorized.** Orbit asks for the owner only for something outside the mandate, anything that changes authority (mandate, permissions, a new delegation), or wherever a tool asks for a confirmation.
- **The signed limits are the boundary Orbit enforces.** Any stricter rule you set yourself is your own choice, not an Orbit limit. A change to the signed limits is a mandate proposal the owner signs.
- **What the limits do not cover is the owner's to say.** Read the signed values with `get_mandate_interview` (read-write build only; in the read-only build, ask the owner to check **Rules** on the owner page); for anything else, ask the owner and record the answer where you keep instructions.
- **The exchange's leverage setting is not the mandate's cap.** On Hyperliquid, the account's per-market leverage (`get_hyperliquid_account_settings`) is the exchange's setting; Orbit enforces `max_perp_leverage` per order. Liquidation is the exchange's rule and Orbit does not model it. See Hyperliquid's [margining](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/margining) and [Hyperliquid perps](https://dialectic-orbit-docs.vercel.app/0.1.8/using/hyperliquid-perps/).
- **Read refusals for what they say.** A denial is a limit doing its job. A failed simulation may be your own input (see [Refusals](https://dialectic-orbit-docs.vercel.app/0.1.8/reference/refusals/)).
- Never promise returns.

## Emergency stops, in order of strength

1. **Guardian pause** (`pause()` on the module): blocks every operator action on chain, exits included. Done by a guardian (the Safe, or the watchdog's key). Orbit never sends `unpause()`; it only prepares the lift for the owner. A simulation then fails with `paused`.
2. **Provider suspension**: Makina's provider account can suspend the module (`suspended`).
3. **Loss circuit breaker**: automatic, Orbit-side.
4. **Soft local pause**: `set_execution_paused` with `paused: true`. It holds new risk on every network, not only Ethereum (its tool description says "mainnet", meaning live sends); a declared exit still runs. Orbit's own sends from its wallet, such as gas refills, wait too. Use it on the owner's word to stop new risk quickly; say plainly that it is not a security boundary.

To clear a tripped breaker or lift a hold on positions that could not be checked for loss: `set_execution_paused` with `reset_loss_breaker` set to the Safe's name. The first call returns a sign link; it clears only with the owner's pasted signature. See [Safety and pausing](https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/safety-and-pausing/).
