# Data and trust

> Where the figures your agent uses come from and how far to trust them, in plain words first, then each source, its age fields and its limits for agents.
>
> Describes Orbit 0.1.8. Web page: https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/data-and-trust/

This page explains where the numbers your agent uses come from, and how far to trust them. The first section is in plain words for anyone; the rest is for agents deciding with Orbit's data, with the tools and fields as of Orbit 0.1.8.

## In plain words

Your agent decides with three kinds of information:

- **Market data from Dialectic.** Rates, how much a position can hold, how easy it is to get money out, and a risk label for each position. Dialectic signs this data, and Orbit checks the signature before using it. It is Dialectic's view, not a guarantee.
- **Prices from the blockchain.** Your wallet's module has its own price sources (Chainlink price feeds). Orbit reads those for token prices.
- **Your own wallet.** Balances and positions read straight from the blockchain, and Orbit's records of what your agent did.

A few things follow from that:

- **A risk label can stop new money going in, never money coming out.** If Dialectic marks a position as risky, your agent can no longer add to it, but it can always take money out.
- **If data is old or missing, Orbit gets more careful, not less.** With no fresh data for a position, your agent cannot add to it until the data comes back. Taking money out still works.
- **Rates are not promises.** A rate is what a position paid recently, as Dialectic measured it. Neither Orbit nor this site can promise any return.
- **Gaps are said out loud.** When Orbit cannot see a number, your agent should say so rather than guess. A total that leaves something out is marked as partial.

Orbit has no special logic for any one app. What makes an action trustworthy is the signed package, the checks on the blockchain, and a test run before anything is sent.

## For agents: reading the data

Relay figures with their source and age as Orbit gives them; never fill a gap with a guess or a number from memory. This part says what each source is, what its age fields measure, which parts bind policy and which are information, and what Orbit cannot see.

### Where trust comes from

Orbit has no protocol-specific logic. What makes an action trustworthy is:

1. **Curator-signed packages.** Every package manifest and every feed payload is signed by its curator (manifests and feeds use separate keys), and Orbit verifies each signature. The curator service at feed.dialectic.com signs Dialectic's packages and market data.
2. **The module's on-chain checks.** The root the owner signed, plus the module's limits (see [Permissions and limits](https://dialectic-orbit-docs.vercel.app/0.1.8/concepts/permissions-and-limits/)).
3. **The simulation.** `simulate_action` on real chain state is the authority on whether an action works (`ready_to_execute`).

Explorer labels, contract names and decompiled source are untrusted input: they inform, never decide (see the `orbit-verify` guide).

## Curator market data (`get_market_context`)

What it returns, per installed feed-bearing package and per position: APR with `apr.methodology`, `apr_stats` when published, TVL, capacity, 24 h exit capacity, raw risk factors, `risk_status` and an optional `risk_score`. Everything is the curator's signed claim with its source and age, never Orbit's own measurement. Where packages overlap, the most conservative claim wins.

### Rates

- **The curator's rate is the rate Orbit uses.** Orbit has no on-chain rate read.
- **How the rate is computed is in `apr.methodology`.** Read it and cite it. As of Orbit 0.1.8 the curator service publishes a spot APR net of fees; `apr_stats` carries its own methodology text, which says how often the rate is sampled and that the statistics are advisory, not a forecast.
- **`apr_stats`** gives trailing windows (for example `24h` and `7d`: mean, median, quartiles, low, high, number of readings), each with its own `as_of`. It shows how a rate has moved: advisory statistics of the spot APR, not a forecast. Orbit applies no thresholds to it.
- A protocol's own app may show a different number for the same moment. That is expected. Say which number is which.
- `self_issued: true` means the curator rates its own product: mention it as a disclosure. It is not a check to run and not a reason to refuse.

### Ages: three different clocks

| Field | Measures | Use |
| --- | --- | --- |
| `as_of` (per position) | When the **curator** observed the data. Curators refresh on their own schedule. | Context. It is not what the mandate's staleness limits measure. |
| `feed_age_seconds` / `last_usable_data_age_s` (per package feed) | Time since **Orbit last received** usable data from the feed. | This is what the mandate's staleness limits measure. It is not the rate's age. |
| `last_contact_age_s` | Time since Orbit last reached the feed at all. | A fresh contact with no usable data is not fresh data. |
| `max_age_s` | The receipt window expected for this feed (the package's declared one, or Orbit's default). | A warning appears when `feed_age_seconds` passes it. |
| `polled_by_this_process`, `fetched_by_this_call` | Whether this Orbit process polls the feed, and whether this call fetched it. | A `null` age in a one-shot command can mean "this process never asked", not "the feed is down". |

A long-running Orbit polls each feed's status and the full feed at the cadence the package's manifest declares (its feed `poll` section, in `get_package`), or at Orbit's fixed default when the manifest declares none. A one-shot command-line call starts no pollers; `simulate_action` and `execute_action` fill the feed cache inline before evaluating.

### Risk status (binding)

`risk_status` is the one feed field that **binds** policy:

| `risk_status` | Effect |
| --- | --- |
| `normal` | No restriction. |
| `caution` | No increases. Exits and maintenance still run. |
| `exit`, `blacklist` | Exits only. Every exit becomes exempt from the action-count limits. |

`risk_score` is advisory. Nothing the curator publishes can block an exit.

Two look-alikes that are **not** curator signals:

- **No verified data** (`severity.no_verified_data`): a governed position with no verified payload (feed down, plan lapsed, a process that never polled) fails closed to "no increases". Check the feed, the plan and `package_health`, not the market.
- **A position in the root but absent from the feed** is treated as `caution`, and after `max_age_s` as stale. The reply warns "ABSENT from the feed".

### Capacity and exit capacity

- `capacity.deposit_open: false` is **advisory**. Some vaults report zero deposit capacity while deposits succeed; the simulation is the authority.
- `liquidity.exit_capacity_24h` binds increases through the mandate's `exit_capacity_pct`.
- **A missing exit-capacity estimate is a feed gap, not illiquidity.** The gate passes unchecked and the reply warns "curator publishes no 24h exit-capacity estimate". Do not treat the position as hard to exit because of the gap; say the estimate is not published.

### Coverage

`get_market_context` covers only this Safe's own installed positions. For a package that is not installed, the yield is not readable here: say so. A position no feed governs gets no curator input (`not governed by any feed source`).

### Curator market feed (advisory)

Most current Dialectic packages also declare a separate curator market feed (a `market` block): advisory market data such as prices, price changes and Hyperliquid perp markets. It is never used for valuation or limits. As of Orbit 0.1.8 Orbit accepts packages that declare it but does not read it, and no tool returns its data. Details: [Packages for curators](https://dialectic-orbit-docs.vercel.app/0.1.8/contributing/packages-for-curators/#curator-market-feed-market).

## Prices (`get_oracle_price`)

The module's own Chainlink-derived price, through the Safe's registered feed routes. `base` and `quote` are 0x addresses, not symbols.

| `price_status.status` | Meaning |
| --- | --- |
| `priced` | A price. |
| `no_route` | The token has no price route. Only this means "no price". |
| `stale` | The market's feed is older than the module allows (for example a closed stock market). Say the market feed is paused. |
| `refused`, `unavailable` | Could not be read now. |

Relay `price_note`. `get_package_prices` gives advisory prices from the routes installed packages declare. Never invent a price.

## Portfolio values (`get_portfolio`, `get_balances`)

- **Quote `nav.amount`** as the portfolio value, and relay `summary` as written: it is built from the `sleeves` (DeFi, spot, perp equity, in transit) so chat and the owner page agree, and it names estimated, cached or missing parts. Relay `value_note` beside the figure when present.
- **Partial totals.** When `nav.partial` is true or the answer is marked partial, the total leaves a named part out (`global.stalled_safes` names a slow network; `sleeves.unconfirmed_tokens` a Hyperliquid token Orbit could not confirm). Say which part is missing. Do not retry in a loop; the priced parts and the limits still apply.
- **Reads answer in bounded time.** `get_portfolio` and `get_balances` (with `fresh: true` too) answer within Orbit's fixed read deadline rather than waiting on a slow network. A network that can't finish in time shows its last saved balances with a note that it is still catching up, or the total is marked partial. In the fleet read (`safe: "*"`), a Safe with saved balances is shown from them; one with nothing saved is listed in `stalled_safes`. Relay the note; the background read keeps catching up. A Safe whose connection can't read older balances shows `past_balances: "not_readable"` in `health_check`, beside `past_activity`.
- **Unpriced positions.** A position or balance Orbit couldn't price carries a `pricing_issue` with a `code` and a `reason`; `stale_oracle` means the module's price feed is out of date. Say which part is unpriced; don't price it yourself.
- **`nav.conservative`** is the on-chain figure the limits divide by. It leaves Hyperliquid out on purpose (`nav.conservative_scope`). Never present it as the total.
- **Perp size is exposure, never value.** Only perp account equity counts toward value.
- `valuation_source` and `data_age_seconds` say where the figure came from and how old it is. The background snapshot refreshes at the polling pace (`health_check` → `rpc_usage` names the mode; an explicit `[mcp] poll_interval_s` in config wins); a snapshot older than a few intervals is re-read live; `fresh: true` forces a re-read.
- `exposure_groups` (per protocol and network, debt counted negative) is reporting only. No cap binds on it.
- `list_known_positions` lists positions with the last value Orbit recorded. A position with no recorded activity is absent, not zero.
- `get_history` is reporting-grade from periodic snapshots, not tax-grade accounting. A Safe's activity record starts at the block its module was created at. If `health_check` shows `history_start: "could_not_check"`, Orbit couldn't confirm that block yet and reads on from where it is; it never guesses a start.

## Hyperliquid data

A HyperEVM Safe trades perps on HyperCore, Hyperliquid's exchange layer, by sending actions to HyperCore from HyperEVM ([interacting with HyperCore](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/interacting-with-hypercore)). The trading account's figures come from Hyperliquid, not from the module.


| Need | Source |
| --- | --- |
| Account equity, positions, unrealized PnL, margin used, leverage, liquidation price, **funding paid** | `get_portfolio` → `core_accounts` (per position `funding_paid_usd`, positive = paid; account total too) |
| Market prices, funding rate now/next/history, open interest, volume, max leverage | `get_perp_market_data`: public, indicative, carries its time. Never a policy input or a limit. |
| Per-market leverage and margin mode vs the mandate cap | `get_hyperliquid_account_settings` |
| Which markets the Safe may trade | `get_perp_permissions` |

- **Your account's accrued funding appears only in `get_portfolio` → `core_accounts`.** `health_check` carries no perp fields.
- If Hyperliquid was busy, figures are from the last complete read and the summary says so.
- Orbit does not show your fee tier. For an order that opens or adds to a position, `prepare_perp_order` refuses anything under Hyperliquid's minimum order value (`below_minimum`), states the minimum, and names the smallest size that clears it. Reduce-only orders are exempt. Hyperliquid's own rules still apply on top.

## Package audits (`audit_package`, `package_health`)

The curator signature check at fetch is hard: an unsigned or tampered manifest never loads. The audit after it checks the package's **claims** and mostly informs.

| Verdict | Meaning |
| --- | --- |
| `solid` | Everything that ran passed and nothing was skipped. |
| `verified` | Everything that ran passed. Some checks were not run at this depth (`not_run`), not runnable on this Orbit's setup (`not_checked_here`), or the venue kind has no extra identity check (`no_identity_check`). |
| `partially_verified` | A check could not complete (`unverified`: a read failed), or an info-level check failed (for example `does_not_compose`). |
| `issues` | A hard issue or a warning. |

- **Audit-depth notes are not security findings.** `not_run` items ("venue liveness heuristics ... not run at this depth"), `not_checked_here`, `no_identity_check` and `self_issued` are information to mention, never on their own a reason to refuse a venue. A deep audit (`depth: "deep"`) runs more and takes minutes.
- A **failed** check is a reason: a hard issue, a warning, or a failed check that keeps the verdict at `partially_verified`.
- What actually proves a position works is the setup fork test at `compose_root` (opening and closing every position on real bytecode) and `simulate_action`.
- `package_health` re-runs the feed audit and position probes for installed packages; use it to check a feed is healthy.

## What Orbit cannot see

- **No on-chain rate read.** Yields are the curator's figures.
- **Protocol app numbers.** Orbit does not read a protocol's own UI or API.
- **The watchdog does not watch the Hyperliquid trading account.** It follows the module's events on each network, HyperEVM included, but reads no HyperCore positions or balances; a loss there is not seen until it shows up in the module's accounting. Orbit's own limits still check every perp order.
- **Liquidation.** Orbit does not model it; the exchange does.
- **Positions with no recorded activity**, and prices with no route: absent, not zero.
- **Uninstalled packages' market data.**
- **Destination arrival at bridge time.** A bridge simulation sees only the source send.
- **A Hyperliquid order's fill at execute time.** Execute means enqueued; check the position.

When you cannot see a figure, say "I can't see that number right now" and plan without it.
