> For the complete documentation index, see [llms.txt](https://hxz-1.gitbook.io/redelegator-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hxz-1.gitbook.io/redelegator-finance/security-model/attenuation-on-chain.md).

# Attenuation, On-Chain

Attenuation is the core guarantee: every delegation hop carries an `Erc20TransferAmount` caveat, and the **DelegationManager enforces the cap on-chain** regardless of how any agent behaves.

<figure><img src="/files/8QZeW2Nh01FKBLMqGnHj" alt="" width="422"><figcaption></figcaption></figure>

When a run executes, the server builds the chain hop by hop, each signed by that agent's key:<br>

* **Orchestrator → Dex Aggregator** — narrowed to `total + relayer fee`
* **Dex Aggregator → Deployer** — narrowed to that leg's amount (+ fee on the first leg)
* **Deployer → 1Shot target** — narrowed again to the same leg amount

The relayer redeems the **entire chain** in one on-chain operation. The DelegationManager walks the chain and verifies each caveat, so a compromised middle agent cannot hand out more authority than it received.

> The cap isn't a policy the agent chooses to honor — it's a constraint the contract refuses to break.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hxz-1.gitbook.io/redelegator-finance/security-model/attenuation-on-chain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
