Skip to content

Complete your first governance action

Overview · Create a Decentralized Party

A generic vote runs the full propose, confirm, and execute flow. It pauses no service, moves no token, and changes no membership or threshold. Execution records the vote in a GovernanceExecutionResult contract. The vote has no other effect on the ledger.

  • A Decentralized Party exists, and the participant node of each organization hosts it.
  • Each node stores party credentials for the party, and Test Auth succeeds. See Create a Decentralized Party.
  • The party has an active GovernanceRules contract. The party page then shows a Governance section and a Gov Threshold card. To deploy the contract, see Package and contract operations.
  • On each node, the Authentication section shows the member party as Member.
  • On each node, the operator holds the admin role when DECPM_ADMIN_ROLE is set. Propose, confirm, execute, expire, and cancel-proposal require that role. See Authentication and operator roles.
  • The Action Timeout card shows enough time for every member to confirm.

The party page shows three thresholds:

  • Threshold is the topology threshold. It counts the namespace owners that must sign a topology change. You set it when you create the party.
  • Confirmation Threshold counts the hosts that must confirm each transaction that needs the party’s approval. By default it equals Threshold.
  • Gov Threshold is the governance threshold from the GovernanceRules contract. It counts the member confirmations that an action needs before execution.

A governance action needs Gov Threshold confirmations.

Write a short, clear statement that the members can approve or reject as written. Include no secrets, no personal data, no contract IDs that can change, and no promises that the vote cannot keep.

Example development decision:

Approve the documentation workflow test for this development Decentralized Party.

Create the first proposal from one Decentralization Manager node. On that node:

  1. Open Parties and click the party.
  2. Click New Proposal. The New Proposal dialog opens.
  3. In Proposal Type, select Generic Vote.
  4. Enter the decision in Vote Description.
  5. Click Submit Proposal.

Decentralization Manager creates a GenericVoteProposal contract. It then submits a confirmation for the member party of the proposer. The proposal therefore starts with one confirmation.

To use the API, send an operator access token. First, read the ID of the rules contract:

Terminal window
curl -sS "http://localhost:8080/governance/state?party_id=my-party::1220..." \
-H "Authorization: Bearer $TOKEN"

The response holds state.contract_id, state.members, and state.threshold. Then create the proposal:

Terminal window
curl -sS -X POST http://localhost:8080/governance/propose \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"party_id": "my-party::1220...",
"rules_contract_id": "<rules-contract-id>",
"proposal": {
"type": "generic_vote",
"description": "Approve the documentation workflow test for this development Decentralized Party."
}
}'

A successful call returns {"message": "Proposal created and confirmed"}.

On each Decentralization Manager node:

  1. Open Approvals. On the other Decentralization Manager nodes, the GenericVote card is under Needs your action. On the node of the proposer, the card is under In progress and shows Awaiting others.
  2. Click Review ▾ on the card.
  3. Check the description and the proposal contract ID.
  4. Read the Full payload JSON. It holds the contract_id, the template_id, and every create argument of the proposal under create_arguments.

Match the proposal by its contract ID, label, description, and proposer. Do not confirm a proposal based on its description alone.

With the API, GET /governance/confirmations returns the open proposals under domain_actions:

Terminal window
curl -sS "http://localhost:8080/governance/confirmations?party_id=my-party::1220..." \
-H "Authorization: Bearer $TOKEN"

Each entry holds proposal_cid, action_label, description, proposer, confirmations, confirmation_count, executable_confirmation_cids, and can_execute. The entry also holds proposal_template_id and proposal_payload under the same role rule as the Full payload JSON.

On each other Decentralization Manager node, click Confirm on the card. The ring on the card shows the confirmation count against Gov Threshold. Stop when the count reaches the threshold.

With the API:

Terminal window
curl -sS -X POST http://localhost:8080/governance/confirm \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"party_id": "my-party::1220...",
"rules_contract_id": "<rules-contract-id>",
"action": { "type": "governance_set_threshold", "new_threshold": 0 },
"governance_type": "core_domain",
"proposal_cid": "<proposal-cid>"
}'

The request schema requires action. A core_domain confirmation does not use it. The proposal_cid identifies the proposal.

When the count reaches Gov Threshold, the card shows Execute on each Decentralization Manager node. One member clicks Execute.

With the API:

Terminal window
curl -sS -X POST http://localhost:8080/governance/execute \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"party_id": "my-party::1220...",
"rules_contract_id": "<rules-contract-id>",
"action": { "type": "governance_set_threshold", "new_threshold": 0 },
"confirmation_cids": ["<confirmation-cid-1>", "<confirmation-cid-2>"],
"disclosed_contracts": [],
"governance_type": "core_domain",
"proposal_cid": "<proposal-cid>"
}'

Take the confirmation_cids from executable_confirmation_cids in the confirmations response. Execution archives the proposal and consumes the confirmations.

Confirm that:

  • The proposal no longer appears under Needs your action or In progress, or in domain_actions.
  • A GovernanceExecutionResult contract exists. It records actionLabel (GenericVote), description, executor, confirmers, and executedAt.
  • The Audit Trail section of the party page lists the proposal, the confirmations, and the execution in the Governance view. The API call is GET /governance/chain-audit?party_id=<party-id>.
  • No membership, threshold, or application contract changed.
  • Every Decentralization Manager node can see the result.

Under Approvals, the Completed section of the node that executed the proposal shows Executed. The other nodes show You proposed or You confirmed, because each node records only its own actions.

Before execution, three separate actions remove governance state:

ActionWhoUIAPI
Revoke a confirmationThe member that confirmedRevoke on the cardPOST /governance/cancel with party_id, confirmation_cid, and governance_type
Cancel the proposalThe proposer onlyCancel proposal on the cardPOST /governance/cancel-proposal with party_id, proposal_cid, and confirmation_cid
Expire a confirmationAny member, after the confirmation expiresDismiss on an orphaned cardPOST /governance/expire with party_id, rules_contract_id, confirmation_cid, and governance_type

Cancel proposal archives the proposal and the confirmation of the proposer in one transaction. The confirmations of the other members stay on the ledger. Their card then shows Orphaned. Each member revokes its own confirmation, or any member expires it after its expiry time.

Membership, the governance threshold, or the rights of the proposer can change while a proposal is open. The rules contract that is active at execution decides whether the confirmations are enough.

When the rules no longer list the proposer as a member or an additional proposer, the card shows Proposer not authorized. The ledger then rejects every new confirmation. The UI therefore hides Confirm. Only the proposer can cancel that proposal.

Keep the first test short. Do not run other governance changes at the same time.

SymptomCheckNext action
New Proposal opens the Deploy Contracts dialogWhether the party has a GovernanceRules contractDeploy the governance rules first. See Package and contract operations.
Propose fails with “No credentials configured for party”The party credentials on this nodeStore the party credentials, then propose again.
Propose reports that the proposal exists but the confirmation failedThe member party of this node and its user rightsFix the cause, then click Confirm on the card.
The proposal does not appear on a nodeParty credentials, Test Auth, and the target networkFind the proposal contract ID before you create a new proposal.
Confirm does not appearYour own confirmation on the card, or the Proposer not authorized pillWait for the other members, or ask the proposer to cancel.
Execute does not appearThe confirmation count against Gov ThresholdCollect more confirmations from current members.
Confirmations expireAction Timeout and the ledger timeExpire the old confirmations, then propose again if necessary.
The result does not appearParty visibility and the Audit Trail viewRefresh the audit trail. Record the sanitized contract and update IDs.

Understand the control flow: Governance lifecycle.