{
  "title": "OpenSSF Scorecard Monitor – Repository Posture Changes",
  "type": "object",
  "schemaVersion": 1,
  "properties": {
    "repositories": {
      "title": "GitHub repositories",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "description": "Public GitHub owner/repository names or exact repository URLs. Empty means ossf/scorecard and nodejs/node. A repository must already have a published OpenSSF scan.",
      "default": [],
      "prefill": [
        "ossf/scorecard",
        "nodejs/node"
      ],
      "maxItems": 20
    },
    "checkNames": {
      "title": "Selected Scorecard checks",
      "type": "array",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "description": "Optional exact check names such as Dangerous-Workflow and Pinned-Dependencies. Empty includes all published checks. Missing or inconclusive checks remain explicit.",
      "default": [],
      "prefill": [],
      "maxItems": 100
    },
    "maxScanAgeDays": {
      "title": "Stale scan threshold (days)",
      "type": "integer",
      "description": "Mark published scans older than this threshold as stale. Stale scans remain source observations but cannot produce a fresh regression alert.",
      "default": 14,
      "prefill": 14,
      "minimum": 1,
      "maximum": 365
    },
    "maxResults": {
      "title": "Maximum saved observations",
      "type": "integer",
      "description": "Limit validated saved rows. If lower than the selected source count, the run is incomplete and does not advance history.",
      "default": 2,
      "prefill": 2,
      "minimum": 1,
      "maximum": 20
    },
    "comparePrevious": {
      "title": "Compare with saved observations",
      "type": "boolean",
      "description": "A complete first run establishes a private baseline. Incomplete sources, output, time or spending limits preserve previous history. Avoid overlapping runs for the same watchlist.",
      "default": false,
      "prefill": false
    },
    "onlyChanges": {
      "title": "Save only new or changed observations",
      "type": "boolean",
      "description": "Enables comparison. An unchanged run may legitimately save zero rows. First complete run saves all observations. No removal inference from missing sources.",
      "default": false,
      "prefill": false
    },
    "snapshotName": {
      "title": "Watchlist history name",
      "type": "string",
      "editor": "textfield",
      "description": "A stable name for this watchlist: 1–80 letters, numbers, underscores or hyphens.",
      "default": "default",
      "prefill": "default",
      "pattern": "^[-\\w]{1,80}$"
    },
    "maxRunSeconds": {
      "title": "Time budget in seconds",
      "type": "integer",
      "description": "Network requests honor the remaining budget. Smaller watchlists improve completeness. Platform timeout is also respected.",
      "default": 120,
      "prefill": 120,
      "minimum": 30,
      "maximum": 120
    },
    "reviewBelowScore": {
      "title": "Review checks below this score",
      "type": "integer",
      "description": "Make an evidence-backed review list of scored checks below this value. Sorted by actual published check score, not an invented security rating. Inconclusive and missing checks are listed separately.",
      "default": 5,
      "prefill": 5,
      "minimum": 1,
      "maximum": 10
    }
  },
  "required": []
}
