Skip to content

Governance lifecycle

Complete your first governance action

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.

FieldMeaningRule
governancePartyThe Decentralized Party that the rules governThe only signatory of the rules contract
membersThe member parties that can confirm and executeMust not be empty
thresholdThe number of member confirmations that an action needsAt least 1 and at most the number of members
actionConfirmationTimeoutThe time that a confirmation stays validAt least 10 seconds
additionalProposersOptional non-member parties that can proposeThey 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.

Self-management (core_self)Domain action (core_domain)
What it changesThe rules contract: its members, threshold, timeout, additional proposers or disclosure observers. The cancel vote cancels a domain proposal insteadAnything that a GovernableAction template does: votes, transfers, utility onboarding, rewards and custom actions
ProposalNo proposal contract. Each confirmation carries the action, and execution matches the confirmations by valueA proposal contract that implements GovernableAction. Each confirmation names the proposal contract ID
First stepThe first member confirms with POST /governance/confirmPOST /governance/propose creates the proposal and confirms it as the proposer
ConfirmPOST /governance/confirm with the same actionPOST /governance/confirm with the proposal_cid
ExecutePOST /governance/execute. The result is a new rules contract, except for the cancel votePOST /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.

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.

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.

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.

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.

A successful domain execution creates one GovernanceExecutionResult contract. The governance party is its signatory. The contract has these fields:

FieldContent
governancePartyThe governance party that executed the action
actionLabelThe label of the action, for example Transfer or GenericVote
descriptionThe description from the proposal
executorThe member who executed the action
confirmersThe members whose confirmations counted
executedAtThe 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.

ActionWhoEffectRoute and UI
Revoke confirmationThe confirmer, at any timeArchives the confirmation of that memberPOST /governance/cancel, Revoke
Cancel proposalThe proposer only, with no voteArchives the proposal. The request can include the confirmation of the proposer, and the same transaction then archives itPOST /governance/cancel-proposal, Cancel proposal
Expire confirmationAny member, after the confirmation expiresArchives the expired confirmationPOST /governance/expire. On an orphaned card, Dismiss
Retry executionAny memberExecutes again after a failed attemptPOST /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.

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.

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.

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.

  • 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_execute is true before you execute.
  • Query the GovernanceExecutionResult and the resulting application state.
  • Read the current contract state before you retry a failed execution.

Choose the governed capability: Module selection and custom Daml.