> For the complete documentation index, see [llms.txt](https://docs.trover.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trover.tech/engineering/verify-2026-09-08-contracts-rescue-paths.md).

# Verify 2026-09-08 — contract rescue paths, two-road levels, deploy-stack

**Migration:** none. **Server deploy:** none (the three new env keys default to empty). **Chain deploy:** none in this round; rehearsal and mainnet are separate rounds in `docs/contracts-runbook.md`.

## Changed (packages/contracts)

* `TroverLeagueVault.sol`: `Pausable`; `Result` gains `publishedAt`, `recovered`; `totalAttributed`; `recoverUnclaimed(epoch, to)` after a 30-day grace; `sweep(to)`; `recoverable(epoch)` view; `claim` can no longer overdraw a recovered epoch.
* `TroverRevenueRouter.sol`: recipient failures and pause defer into `owed` instead of reverting the receipt; `withdrawOwed`, `reassignOwed`, `sweep`, `pause/unpause`, `RecipientsUpdated`.
* `TroverAtomicFeeExecutor.sol`: `Pausable`, `sweep(token, to, amount)`.
* `TroverPlanets.sol`: `royaltyReceiver` mutable, `setRoyaltyReceiver`, `setRoyaltyInfo` accepts any receiver at 5%.
* `TroverXClaimEscrow.sol`: `forceRelease(claimId, to)` for `RECOVERY_ROLE` after six recovery delays.
* `TroverAgentProgress.sol`: two-road levels (`levelByActions` 10/40/120/300, `levelByBurn`, `max` of both), `troverToken` settable once, `BurnsDisabled` while unset, constructor accepts `address(0)`.
* Tests: `test/TroverRescuePaths.test.ts` (new, 9 cases), the economics test's progression case rewritten for two roads, the ETH distributor gains the `releaseExpired → recoverUnreserved` case. Helpers `contracts/test/ RejectingReceiver.sol`, `ForceSend.sol`.
* `scripts/deploy-stack.mjs` (new, idempotent, both chains, manifest + ABI export, gates, assertions, env printout), `scripts/safe-rescue.mjs` (new, build/sign/exec), `deploy-planets-testnet.mjs` retired.
* `packages/core/src/env.ts`: `LEAGUE_VAULT_ADDRESS`, `AGENT_PROGRESS_ADDRESS`, `PLANET_RENDERER_ADDRESS`, `CONTRACT_BALANCE_ALERT_ETH`.
* `docs/contracts-runbook.md` (new).

## Verify (you run; compile/test are builds)

```
pnpm --filter @trover/contracts build
pnpm --filter @trover/contracts test        # expect 20 passing (was 11)
slither packages/contracts --filter-paths node_modules --exclude-informational
node --check packages/contracts/scripts/deploy-stack.mjs && node --check packages/contracts/scripts/safe-rescue.mjs
```

I ran the `node --check` pair and `tsc` for `packages/core`; I did not compile or run the Hardhat tests, per the no-build rule. Expect the compiler to flag anything I mis-typed in Solidity; the test file names the case that failed.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.trover.tech/engineering/verify-2026-09-08-contracts-rescue-paths.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
