- Decentralization Manager
- Concepts and development
- Governance lifecycle
Governance lifecycle
Complete your first governance action
Lifecycle summary
Section titled “Lifecycle summary”Decentralization Manager runs governance on the ledger as propose, confirm and execute. A GovernanceRules contract holds the rules for one Decentralized Party. The rules decide who can propose, who can confirm and execute, and how many confirmations an action needs.
Governance has two paths. A self-management action changes the rules contract itself. A domain action runs the logic of a separate proposal contract. The API field governance_type names the path: core_self or core_domain.
1. Governance rules
Section titled “1. Governance rules”| Field | Meaning | Rule |
|---|---|---|
governanceParty | The Decentralized Party that the rules govern | The only signatory of the rules contract |
members | The member parties that can confirm and execute | Must not be empty |
threshold | The number of member confirmations that an action needs | At least 1 and at most the number of members |
actionConfirmationTimeout | The time that a confirmation stays valid | At least 10 seconds |
additionalProposers | Optional non-member parties that can propose | They cannot confirm or execute |
The governance members are Daml parties. They are not the namespace owners of the party. See Decentralized Party and Canton topology.
Read the active rules before you propose or execute. Most self-management actions replace the rules contract, so the contract ID of the rules changes after the execution. The cancel vote is the exception. It cancels a domain proposal and keeps the rules contract.
2. Two paths: core_self and core_domain
Section titled “2. Two paths: core_self and core_domain”Self-management (core_self) | Domain action (core_domain) | |
|---|---|---|
| What it changes | The rules contract: its members, threshold, timeout, additional proposers or disclosure observers. The cancel vote cancels a domain proposal instead | Anything that a GovernableAction template does: votes, transfers, utility onboarding, rewards and custom actions |
| Proposal | No proposal contract. Each confirmation carries the action, and execution matches the confirmations by value | A proposal contract that implements GovernableAction. Each confirmation names the proposal contract ID |
| First step | The first member confirms with POST /governance/confirm | POST /governance/propose creates the proposal and confirms it as the proposer |
| Confirm | POST /governance/confirm with the same action | POST /governance/confirm with the proposal_cid |
| Execute | POST /governance/execute. The result is a new rules contract, except for the cancel vote | POST /governance/execute. The action runs, and a GovernanceExecutionResult records it |
The governance_type field defaults to core_self. The core_self path accepts only the eight self-management actions. A confirm or execute request with any other action on that path returns HTTP 400. On the core_domain path, the node ignores the action field and uses the proposal_cid.
3. Proposal
Section titled “3. Proposal”A domain proposal is a contract of a template that implements GovernableAction. The interface comes from the governance-action-v1 package. Its view gives the governance party, the proposer, an action label and a description.
POST /governance/propose makes two submissions. The first submission creates the proposal. The second submission confirms the proposal as the proposer. When the second submission fails, the proposal still exists. The error names the contract ID of the proposal. Confirm that proposal instead of proposing again.
Any party can create a proposal contract. Confirmations succeed only when the live rules list the proposer as a member or as an additional proposer.
An additional proposer can create a proposal but cannot confirm it. On a node whose member party is an additional proposer, POST /governance/propose creates the proposal and then returns an error.
4. Confirmation
Section titled “4. Confirmation”Each eligible member reviews the proposal and confirms it independently. A domain confirmation names one proposal contract ID. A self-management confirmation carries one exact action value. A confirmation expires actionConfirmationTimeout after the member confirms.
The Review panel of a proposal card on the Approvals page shows the proposal template and every create argument. When DECPM_ADMIN_ROLE names a role, a caller without that role does not receive the proposal payload.
The ledger accepts a domain confirmation only when these rules hold:
- The confirmer is a current member.
- The proposal targets the governance party of the rules contract.
- The live rules list the proposer as a member or as an additional proposer.
Unauthorized proposer
Section titled “Unauthorized proposer”A proposer can leave the member set and the additional proposer set after the proposal exists. The ledger then rejects every new confirmation of that proposal. Decentralization Manager marks such a card Proposer not authorized and withholds Confirm.
The card still offers Revoke, Cancel proposal and Execute where they apply. These choices do not check the proposer. Confirmations that members gave before the proposer left therefore still count. A proposal that already has enough unexpired confirmations can still execute. Only the proposer can cancel the proposal.
5. Execution
Section titled “5. Execution”Any member can execute an action when the confirmations reach the threshold. The confirmations response then shows can_execute: true. The executor passes the confirmation contract IDs with the request.
For a domain action, the ledger checks these rules:
- The executor is a current member.
- Every confirmation in the request names this proposal.
- Every confirmation comes from a current member and has not expired.
- No member appears twice.
- The number of confirmations is at least the threshold.
One invalid confirmation in the list stops the whole execution. Leave out an expired confirmation or the confirmation of a removed member.
For a self-management action, every confirmation must carry the same action value. The ledger drops confirmations from non-members before it counts. An expired confirmation stops the execution.
A successful domain execution runs the action with the authority of the governance party. The execution consumes the proposal and the confirmations. A failed action rolls back the whole transaction. The proposal and its confirmations then stay active.
6. Result and audit record
Section titled “6. Result and audit record”A successful domain execution creates one GovernanceExecutionResult contract. The governance party is its signatory. The contract has these fields:
| Field | Content |
|---|---|
governanceParty | The governance party that executed the action |
actionLabel | The label of the action, for example Transfer or GenericVote |
description | The description from the proposal |
executor | The member who executed the action |
confirmers | The members whose confirmations counted |
executedAt | The ledger time of the execution |
The result has no proposer field and no copy of the proposal payload. The description is the permanent record of what the members approved. A self-management execution creates no GovernanceExecutionResult. For most actions, the new rules contract is its result. The cancel vote creates no new rules contract.
Decentralization Manager also keeps two audit views. GET /governance/audit lists the governance requests of this node. GET /governance/chain-audit reads the governance events of the party from the ledger.
Cancel, revoke and expire
Section titled “Cancel, revoke and expire”| Action | Who | Effect | Route and UI |
|---|---|---|---|
| Revoke confirmation | The confirmer, at any time | Archives the confirmation of that member | POST /governance/cancel, Revoke |
| Cancel proposal | The proposer only, with no vote | Archives the proposal. The request can include the confirmation of the proposer, and the same transaction then archives it | POST /governance/cancel-proposal, Cancel proposal |
| Expire confirmation | Any member, after the confirmation expires | Archives the expired confirmation | POST /governance/expire. On an orphaned card, Dismiss |
| Retry execution | Any member | Executes again after a failed attempt | POST /governance/execute |
Nobody can remove the live confirmation of another member before it expires. The expiry check prevents one member from removing the vote of another member.
A cancelled proposal can leave the confirmations of other members on the ledger. These confirmations have no effect, because execution needs the proposal. Decentralization Manager marks such a card Orphaned. Each member revokes their own confirmation. Any member can expire the remaining confirmations after their timeout ends.
The governance party can also archive a proposal with the GovernableAction_Cancel choice. Decentralization Manager has no route for that choice.
Concurrent governance changes
Section titled “Concurrent governance changes”A pending domain action can overlap a change to the members or the threshold. The ledger checks the confirmations against the rules at execution time:
- Confirmations do not record the rules contract or the member set.
- A lower threshold can make a pending proposal executable at once.
- A removed member’s confirmation stops an execution that includes it.
- A new timeout does not change the expiry of existing confirmations.
- A proposal from a removed additional proposer gets no new confirmations.
Outcome metrics
Section titled “Outcome metrics”Each node counts its own governance write attempts in the metric decman_governance_actions_total. The step label is propose, confirm, execute, expire, cancel_confirmation or cancel_proposal. The outcome label is ok or error.
The metric does not count a request that fails validation before the ledger call. See Monitoring and logging.
Module-specific actions
Section titled “Module-specific actions”The governance core supplies the lifecycle. Application packages define the action that runs after approval: token custody, utility onboarding, credentials, reward automation and custom Daml. A package can add its own validation and authorization rules. See Module selection and custom Daml.
Operator checklist
Section titled “Operator checklist”- Confirm the governance party and the rules contract ID.
- Read the current members, the threshold and the timeout.
- Check the proposal template and every argument under Review.
- Confirm as the intended member party.
- Check that
can_executeis true before you execute. - Query the
GovernanceExecutionResultand the resulting application state. - Read the current contract state before you retry a failed execution.
Technical sources
Section titled “Technical sources”- Architecture: Governance System
- GovernanceRules template
- GovernanceExecutionResult template
- GovernanceConfirmation template
- GovernableAction interface
- Governance handlers
- Custom Daml templates
Related pages
Section titled “Related pages”- Complete your first governance action
- Module selection and custom Daml
- Package and contract operations
- Membership and governance changes
- API and workflow reference
Next step
Section titled “Next step”Choose the governed capability: Module selection and custom Daml.
Ask the docs
Answers come only from this documentation and can be wrong. Check the linked pages.
Ask a question about BitSafe, CBTC or the developer guides. For example: