Skip to content

politiclaw_record_stance_signal

  • Label: Record PolitiClaw stance signal
  • Group: Configuration and preferences
  • Source file: packages/politiclaw-plugin/src/tools/preferences.ts

Description

Record a single agree/disagree/skip signal from the user on a specific bill. Rep scoring reads the latest agree/disagree signal per bill to decide whether a rep's vote was aligned or conflicted. For first-time setup or full reconfiguration, prefer politiclaw_configure.

Parameters

NameRequiredTypeDescription
directionyes"agree" | "disagree" | "skip"
sourceyes"onboarding" | "monitoring" | "dashboard" | "review"
billIdyesstringBill id this signal applies to.
weightnonumberSignal strength (> 0); defaults to 1.0.

Raw Schema

json
{
  "type": "object",
  "required": [
    "direction",
    "source",
    "billId"
  ],
  "properties": {
    "direction": {
      "anyOf": [
        {
          "const": "agree",
          "type": "string"
        },
        {
          "const": "disagree",
          "type": "string"
        },
        {
          "const": "skip",
          "type": "string"
        }
      ]
    },
    "source": {
      "anyOf": [
        {
          "const": "onboarding",
          "type": "string"
        },
        {
          "const": "monitoring",
          "type": "string"
        },
        {
          "const": "dashboard",
          "type": "string"
        },
        {
          "const": "review",
          "type": "string"
        }
      ]
    },
    "billId": {
      "description": "Bill id this signal applies to.",
      "type": "string"
    },
    "weight": {
      "exclusiveMinimum": 0,
      "description": "Signal strength (> 0); defaults to 1.0.",
      "type": "number"
    }
  }
}

Built for people who want local-first political tooling.