Zum Inhalt
HALOWERK

Govwerk

delegate alignment

Joins caller-supplied vote vectors by proposal ID, encodes against/abstain/for as -1/0/1, and computes weighted cosine similarity plus exact agreement. It describes only supplied overlapping votes and does not infer ideology or future behavior.

POST https://gov.halowerk.com/v1/delegate-alignment

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
delegate_votesarrayJa
reference_votesarrayJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "delegate_votes",
    "reference_votes"
  ],
  "additionalProperties": false,
  "properties": {
    "delegate_votes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10000,
      "items": {
        "type": "object",
        "required": [
          "proposal_id",
          "vote"
        ],
        "additionalProperties": false,
        "properties": {
          "proposal_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "vote": {
            "type": "integer",
            "enum": [
              -1,
              0,
              1
            ]
          },
          "weight": {
            "type": "number",
            "minimum": 1e-06,
            "maximum": 1000000000000
          }
        }
      }
    },
    "reference_votes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10000,
      "items": {
        "type": "object",
        "required": [
          "proposal_id",
          "vote"
        ],
        "additionalProperties": false,
        "properties": {
          "proposal_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "vote": {
            "type": "integer",
            "enum": [
              -1,
              0,
              1
            ]
          }
        }
      }
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "delegate_votes": [
    {
      "proposal_id": "p-101",
      "vote": 1,
      "weight": 2
    },
    {
      "proposal_id": "p-102",
      "vote": -1,
      "weight": 1
    },
    {
      "proposal_id": "p-103",
      "vote": 0,
      "weight": 1
    }
  ],
  "reference_votes": [
    {
      "proposal_id": "p-101",
      "vote": 1
    },
    {
      "proposal_id": "p-102",
      "vote": 1
    },
    {
      "proposal_id": "p-103",
      "vote": 0
    }
  ]
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://gov.halowerk.com/v1/delegate-alignment/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →