- Updated
- v5.0.2
- 38 revisions
Cite
Caper. "Execution." November 25, 2026. https://caper.network/wiki/governance/execution
Execution is the step that carries out a passed proposal. A caper decides in two phases: members rank the options on a ballot, and if an action wins, the caper's market gets a window to object before the action runs. This page covers what happens after the ballot: the market's verdict, then the action itself. Anyone can make each of those calls, and the result is the same whoever makes them.
How does the market approve a passed action?
By holding. Once the count records a winning action, anyone can open the market window with trigger_proposal, which fixes the token's recent average price as the baseline. When the window closes, anyone can call resolve_proposal, and the action passes if the token's average price across the window held at or above that baseline. Holding or buying is consent; only selling that keeps the price down for a real share of the window blocks the action. A tie ratifies.
The verdict reads an average over the whole window rather than the price at one moment, so a buy placed just before the resolve call and sold straight after it cannot change the result. The average is taken at the window's end, so a resolve made later reads the same verdict as one made the minute the window closed. The baseline, the window's average and the verdict are written to the ledger together, so anyone can audit the decision afterwards.
Which proposals never execute?
Three kinds. A proposal that fails its ballot never reaches the market: either its leading option fell short of the supermajority, or "Do nothing", which every ballot carries, came first. A proposal won by a DEBATE option, a ranked position with no action attached (since 5 September 2026), is decided at the count: trigger_proposal refuses it, so it opens no market window and has nothing to execute. A proposal the market vetoes is settled as failed and can never be executed.
What happens if nobody executes a passed action?
It lapses. The resolve call opens an execution window, and every execute call is refused once that window has closed, so a passed action nobody carries out cannot lie armed. The deadline arrived with the redeploy of 11 September 2026 and closes a specific failure: an action larger than the treasury can cover aborts and stays armed, so without a deadline a payout voted through could sit for years and fire the moment the treasury happened to fill. UPGRADE's second step has a window of its own, which since the logic upgrade of 1 October 2026 opens when the registry's timelock lets the candidate in.
Can an action run twice?
No. Four once-only flags guard the path, so the count, the trigger, the verdict and the execution each happen once. A second trigger cannot fix a more convenient baseline, and a verdict cannot be recalculated later.
Every execute call opens with the same check, made in one step: the proposal is settled, it passed, it has not already executed, and its execution window is still open. Only then is it marked executed. If any check fails, or the action itself aborts later in the transaction, the mark rolls back with it, so a caper never spends its one execution on an action that did not happen.
Who pays to execute?
Whoever makes the call pays its network fee. Until 11 September 2026 the caper's treasury covered part of the fee for each counting and settling call. The subsidy was removed because of how the Radix Engine, the software that runs every transaction on Radix, spends locked fees: it draws them in reverse lock order, so the treasury's contribution paid the opening cost of the caller's whole transaction, whatever else that transaction did, and not only the governance call inside it. What it could pay was capped by the proposer's own fee, but it paid for work that was not the caper's.
Since 6 October 2026 the proposer pays a single fee when creating the proposal, and opening the market window is free. Material that describes a fee charged when the winning action is triggered describes an earlier deployment.
The executive actions
Each action kind has its own execute call, and each call checks the stored action's kind before it does anything, so the wrong call is refused.
- PAYOUT pays the stored currency and amount out of the treasury to the stored recipient, through an account locker rather than a direct deposit: a recipient whose account refuses the asset cannot abort the execution, and the payment waits to be claimed. The event reports the amount moved, never more.
- INVEST withdraws the treasury's $XRD, buys the target caper's token and banks it, all inside the contract, so the $XRD never passes through the transaction where a manifest could skim it. The tokens bought are checked to be the target caper's own before they are banked.
- DIVEST is the same trade reversed: it sells the stored amount of a caper token the treasury holds into that caper's curve and banks the $XRD. It aborts if the treasury now holds less than the amount that passed, because a smaller trade than the one voted on would not be the action members approved. The sale appears on the target caper's ordinary trade feed.
- METADATA rewrites the editable metadata of the caper's own token. The target is pinned to that token when the proposal is created, so the action cannot be aimed at the vote token or the founder badge.
- UPGRADE is the only action in two steps. The first nominates new logic to the registry; the second activates it once the registry's timelock has passed and before its own window closes. Only $CAPER can run it, because one activation changes the logic every caper on the platform runs.
Neither INVEST nor DIVEST earns vote tokens. They are the treasury's trades, and a treasury is not a member.
Where each action runs – state tier vs logic tier
A caper's contract is split into an immortal state tier that holds the treasury and the durable proposal record, and a swappable logic tier that carries the math and the executive plumbing. Which tier performs a winner depends on what the action touches.
PAYOUT executes inside the state tier, because the stored recipient is a global account reference that only stays invokable as a stable substate reference – it cannot be handed out to the logic tier and called there. Every other kind binds its frozen action in the state tier and is then driven by the logic tier, which is where the curve math and the registry calls live. The split is why a logic upgrade can change how an action executes without migrating a single caper's treasury or proposal history.
Hand-rolling an executor manifest
If you build an executor manifest by hand, end it with a try_deposit_*_or_abort: the Radix Engine's General transaction classifier only whitelists the _or_abort deposit variants, and the _or_refund forms make the wallet display a “Complex transaction” warning instead of a clean summary.
Three eras of execution
This path was rebuilt twice in August and September 2026, and older material still circulating describes one of the two retired shapes.
- To 27 August 2026: escrowed ballots. Members staked governance tokens into a ballot box for each caper. Ballots were released in batches and counted by a ranked tally behind a supermajority, and a market veto could cancel a passed tally if the price fell far enough while the decision was pending. Release, finalize and execute were three separate guarded steps, and a large proposal took hundreds of transactions to settle.
- 27 to 29 August 2026: price only. The ballots were removed. A proposal named one action, fixed a baseline price at creation and passed at the end of its window on a single price comparison. There was no vote to cast.
- From 29 August 2026: both, in sequence. The ranked ballot returned in front of the market window rather than in place of it. The ballot decides which option wins, and the market then vetoes the winning action or lets it run. Neither phase carries an action alone; a DEBATE winner, since 5 September 2026, is decided by the ballot and carries no action. The redeploy of 7 September 2026 made the window's average exact rather than sampled, the redeploy of 11 September 2026 added the execution deadline and removed the fee subsidy, and the redeploy of 6 October 2026 moved the whole proposal fee to creation.
The escrow did not come back. A ballot is now an ordinary wallet transaction: the contract reads the voter's balance instead of taking custody of it, and a member who sells after voting has their ballot counted at the smaller stake.
Further reading
The Binding Vote argues why splitting the count from the deed, with no executor to trust, does what an advisory vote and a multisig both fail to do. It was first published in the ballot era and has been revised for the two-phase design.