Skip to main content
Skip to content
DN Research

The agent obeyed its limit until collateral moved

A token allowance, a dollar budget and margin headroom are different controls. A worked example shows where valuation timing changes the result.

A glass collateral block sits inside a fixed measuring ring above a tilted platform, headed The collateral moved. Editorial illustration.
Reading options: audio, text size & sections

Research scope: Documentary analysis with a hypothetical worked example. Sources reviewed 5 December 2026; this is a planning and interpretation guide, not a report of 2027 observations.

An agent can remain inside a token allowance while exceeding the owner's intended currency budget. It can also remain inside a transfer budget while the collateral supporting its positions loses value. The control needs a unit of account, a valuation timestamp and a rule for what happens between approval and execution.

This is an economic control question, beyond whether a wallet signature was authorized. Deribit's documentation distinguishes collateral arrangements and margin models; its portfolio-margin framework treats exposures across price and volatility scenarios. Those mechanics illustrate why a fixed transfer amount does not define a complete financial risk limit. [1][2]

Three limits that should not share one label

A token allowance limits a quantity of an asset. A dollar spending budget limits value under a specified conversion rule. Margin headroom measures how much eligible collateral remains after the relevant risk requirements. Each can change differently.

If the mandate explicitly permits spending 0.5 ETH, a price rise does not make a 0.5 ETH transfer violate that quantity mandate. If the mandate permits spending no more than $1,000, using an old conversion from dollars to ETH can violate the economic intent. The problem is an ambiguous or incomplete specification, not necessarily a compromised key.

Likewise, depositing less than $1,000 into a trading account does not guarantee that every position opened there has a maximum loss of $1,000. Instrument terms, margin arrangements, other collateral and obligations matter. A permission system should not present its transfer cap as a comprehensive loss ceiling unless the full arrangement supports that claim.

A worked approval-to-settlement example

Assume a fictional agent has a $1,000 purchase budget. At approval, ETH is valued at $2,000, so the system authorizes a transfer of 0.5 ETH. The mandate fails to say whether its dollar cap must hold only at approval or also when the transfer executes.

If ETH is valued at $2,400 at execution, the transfer is worth $1,200. The token amount is unchanged, but the execution-time dollar value is 20% above the original budget. At $1,600, the same transfer is worth $800. No software arithmetic has to be wrong for the economic outcomes to differ.

Execution valuation Authorized quantity Execution value Difference from $1,000
$1,600 per ETH 0.5 ETH $800 -$200
$2,000 per ETH 0.5 ETH $1,000 $0
$2,400 per ETH 0.5 ETH $1,200 +$200

The prices are hypothetical, not current market quotes. They show why the budget must state its numeraire, meaning the currency or asset in which it is measured. A system cannot decide between a fixed token obligation and a fixed dollar obligation merely by reading the word limit.

If the rule instead requires a fresh execution-time dollar check, the authorized quantity at $2,400 would be at most $1,000 divided by $2,400, approximately 0.416667 ETH before fees. A real implementation also needs price-source, rounding, fee and transaction-expiry rules. Rechecking a price is useful only if the action is bound to the result being checked.

Collateral can shrink while the spending cap stays intact

Now consider a separate fictional account holding 10 units of collateral. Each unit is valued at $2,000, and an assumed 20% haircut produces eligible collateral of $16,000. A modeled requirement of $15,000 leaves $1,000 of headroom.

If the collateral price falls to $1,600 while quantity, haircut and requirement stay fixed, eligible collateral falls to $12,800. The modeled shortfall becomes $2,200. The agent need not send another transfer for the account to move from surplus to shortfall.

The haircut and requirement are invented, not Deribit parameters. Actual venues can change requirements as positions and market conditions change. Deribit's published material distinguishes standard and portfolio approaches and explains that cross-collateral arrangements can apply haircuts. A live account must use its own mode, instruments and current parameters. [1][2]

A valuation contract for an autonomous system

Write the mandate in terms a separate checker can evaluate. Name the budget currency, allowed assets, source of conversion, maximum price age, treatment of fees, rounding direction and permitted deviation. Record whether the limit applies to instructions, execution value, settlement value or a continuing marked exposure.

A long-lived order deserves a different treatment from an immediate payment. Its fill price, quantity and execution time may be uncertain. A conservative reservation can help, but only if it matches the instrument and is released when an authoritative event establishes that the reservation is no longer needed.

NIST's AI risk framework encourages measurement tied to the system's context and intended behavior. For this problem, the measurable claim is specific: under the declared valuation convention, does every accepted action and resulting obligation remain within the mandate? A generic confidence score from the agent cannot answer that. [3]

The decision table

Intended control Evidence to retain Trigger for another check
Token quantity cap Asset, quantity, period, recipient Allowance or asset changes
Currency budget Reference price, time, fees, expiry Price age or value deviation exceeds rule
Collateral headroom Eligible assets, haircuts, requirements Price, position or parameter changes
Continuing risk limit Marked exposure and stress loss Repricing, new fill or liability accrual

An implementation should reject missing valuation inputs rather than silently reuse a convenient old price. However, the exact failure response belongs to the mandate. Automatically closing a position can itself create costs or violate other constraints. A paused decision and escalation path may be the appropriate response when the system cannot establish the required value.

Implications for institutions and smaller users

A fund should keep permission checks and economic-risk checks independently visible. The operations team can confirm that a signed action was allowed; the risk engine must establish its current economic consequences. Record the account's margin mode and collateral treatment so a configuration change cannot silently alter the meaning of an unchanged allowance.

A smaller user should ask a product a concrete question: is the advertised cap in tokens, dollars at approval, or dollars at execution? Then ask whether fees, open orders and existing positions are included. These questions do not require a trading strategy or a costly terminal. They require a product to define what its own promise means.

The downloadable scenario ledger preserves approval and execution values separately. It is deliberately simple enough to recompute by hand. It does not connect to a wallet, place trades or certify a provider's controls.

What would change the conclusion

A fixed-token mandate may be entirely appropriate when the obligation itself is denominated in that token. A currency mandate can be enforceable if its valuation and execution controls are adequately specified. A fully collateralized arrangement can still require monitoring when collateral eligibility or contractual obligations change.

No agent or wallet has been shown to fail in this article. The worked examples establish two possible mismatches: price movement changes the currency value of a quantity allowance, and collateral movement changes headroom without new spending. A serious limit names the thing being limited and the moment at which compliance must hold.

Use the worked example

Fictional $1,000 approval at $2,000 per token, followed by three alternative execution valuations. Approval and execution values are preserved separately; these are not market observations.

To check the arithmetic and CSV/JSON agreement locally, save both files beside the Python verification script and run python3 verify.py p21.json. Python 3 is required; no third-party packages are needed. The check does not verify source claims or provider performance.

These are downloadable research records. They do not connect to an account, execute a trade or provide live market data.

Frequently asked questions

Does a token cap enforce a dollar cap?

Only under a specified conversion and enforcement rule. Token quantities and currency values change differently.

Can collateral headroom fall without a new trade?

Yes. Collateral prices, eligibility and risk requirements can change while position quantities stay fixed.

Does this article prove a provider control failed?

No. The cases are fictional arithmetic illustrating mandate design.

Continue the research

Optional research services and tools

The free example above can be used without buying a product. For a defined team question, the DN Research Desk offers separately agreed documentary briefs, source registers and worked examples. Scope, fee, delivery date and usage terms are agreed before work begins; an enquiry creates no payment obligation.

Commercial disclosure: DN’s own service and any referral relationship are separate from the research method. No provider paid for a favourable finding in this article.

Sources and review scope

Sources reviewed on 5 December 2026. Review dates are distinct from each source’s observation, publication and effective dates.

  1. Deribit: Margin types and usage. Collateral and margin model distinctions, including haircuts for cross collateral. Evidence: Exchange documentation.
  2. Deribit: Portfolio Margin. Scenario-based portfolio margin and settlement-currency treatment. Evidence: Exchange documentation.
  3. NIST AI RMF Playbook: Measure. Context-specific AI measurement and validation. Evidence: Risk framework.

Corrections and limitations

To flag a possible error, use the DN contact route with this article’s URL, the disputed claim and the supporting source. The analysis is educational, not personalised investment, legal or tax advice. Documentation and synthetic examples do not establish realised returns or individual eligibility.

The DN briefing: what changed and why it matters

Follow documented changes in AI, crypto and financial technology, with practical analysis and source context. Unsubscribe anytime.