Skip to content
HALOWERK

Govwerk

governance rule amendment diff

Find a minimal integer tally where two declared quorum/approval rules differ inside a bounded electorate domain.

POST https://gov.halowerk.com/v1/governance-rule-amendment-diff

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
beforeReferenceYes
afterReferenceYes
max_eligibleintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "before": {
      "$ref": "#/$defs/s0"
    },
    "after": {
      "$ref": "#/$defs/s0"
    },
    "max_eligible": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    }
  },
  "required": [
    "before",
    "after",
    "max_eligible"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w3:J9:input",
  "$defs": {
    "s0": {
      "type": "object",
      "properties": {
        "quorum_fraction": {
          "$ref": "#/$defs/s1"
        },
        "approval_fraction": {
          "$ref": "#/$defs/s1"
        },
        "abstain_counts": {
          "type": "boolean"
        },
        "approval_inclusive": {
          "type": "boolean"
        }
      },
      "required": [
        "quorum_fraction",
        "approval_fraction",
        "abstain_counts",
        "approval_inclusive"
      ],
      "additionalProperties": false
    },
    "s1": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    }
  }
}

Open original schema

Published input example

{
  "before": {
    "quorum_fraction": 0.5,
    "approval_fraction": 0.5,
    "abstain_counts": true,
    "approval_inclusive": true
  },
  "after": {
    "quorum_fraction": 0.5,
    "approval_fraction": 0.75,
    "abstain_counts": true,
    "approval_inclusive": true
  },
  "max_eligible": 10
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’