{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usedby-ai/json-schema/usedby-ai-shortlist-schema.json",
  "title": "Shortlist",
  "description": "Bounded result with cited requirement decisions, usage passages and missing checks. The canonical HTML and Markdown source URLs preserve the complete request.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usedby-ai-openapi.json#/components/schemas/Shortlist",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "version": {
      "type": "integer",
      "const": 1
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "unsupported_task",
        "unsupported_operation",
        "invalid_request",
        "unavailable"
      ]
    },
    "task": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "taskOptions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      }
    },
    "operation": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      }
    },
    "operationOptions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      }
    },
    "eligible": {
      "type": "array",
      "maxItems": 3,
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "tool": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "status": {
            "type": "string"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operationEvidence": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "documented",
                  "unknown"
                ]
              },
              "storyIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "operationalStatus": {
                "type": "string",
                "const": "not_tested"
              }
            }
          },
          "required": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {}
            }
          },
          "preferred": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {}
            }
          },
          "documentedUsages": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {}
            }
          },
          "peerExamples": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true,
              "properties": {}
            }
          }
        }
      }
    },
    "eligibleOverflow": {
      "type": "integer",
      "description": "Number of additional eligible tools omitted from the three-result shortlist."
    },
    "needsVerification": {
      "type": "array",
      "maxItems": 8,
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "journeyPeers": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "company",
                "proofLevel",
                "whatTheyDo",
                "sourceUrl",
                "checkedAt"
              ],
              "properties": {
                "company": {
                  "type": "string"
                },
                "proofLevel": {
                  "type": "string",
                  "enum": [
                    "CONFIRMED",
                    "DECLARED",
                    "OBSERVED",
                    "SIGNAL"
                  ],
                  "description": "Proof level, strongest first. DECLARED: the company states it uses the tool, to usedby or by listing the vendor as a sub-processor on its own legal page. SIGNAL (a job post) is the weakest."
                },
                "whatTheyDo": {
                  "type": "string"
                },
                "sourceUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "checkedAt": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "Public company examples for a reviewed comparison. An empty list means no reviewed example is available. These examples do not affect eligibility."
          }
        }
      }
    },
    "needsVerificationOverflow": {
      "type": "integer",
      "description": "Additional candidates needing verification omitted from this response; never infer eligibility from omission."
    },
    "excluded": {
      "type": "array",
      "maxItems": 8,
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {}
      }
    },
    "excludedOverflow": {
      "type": "integer",
      "description": "Additional excluded candidates omitted from this response."
    },
    "coverage": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "considered": {
          "type": "integer"
        },
        "eligible": {
          "type": "integer"
        },
        "returnedEligible": {
          "type": "integer"
        },
        "eligibleOverflow": {
          "type": "integer"
        },
        "needsVerification": {
          "type": "integer"
        },
        "excluded": {
          "type": "integer"
        }
      }
    },
    "requiredReview": {
      "type": "object",
      "additionalProperties": true,
      "description": "Full named support review across evaluated candidates. Each check applies to the requirement at the same index. Resolve question keys in questions. A source on an open check is a lead to verify.",
      "properties": {
        "workflowEvidenceUrl": {
          "type": "string",
          "description": "Dated vendor documentation on plans, channels and data flows for Decagon, Ada and Tidio."
        },
        "requirements": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true,
            "properties": {}
          }
        },
        "questions": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "source": {
              "type": "string"
            },
            "residency": {
              "type": "string"
            },
            "zendesk": {
              "type": "string"
            },
            "scope": {
              "type": "string"
            }
          }
        },
        "rows": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "toolSlug": {
                "type": "string"
              },
              "toolName": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "checks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "question": {
                      "type": "string"
                    },
                    "source": {
                      "type": "object",
                      "additionalProperties": true,
                      "properties": {
                        "url": {
                          "type": "string"
                        },
                        "evidenceId": {
                          "type": "string"
                        },
                        "checkedAt": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "guidance": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "version": {
          "type": "integer",
          "const": 1
        },
        "questions": {
          "type": "array",
          "maxItems": 2,
          "items": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "plan",
                  "operation"
                ]
              },
              "criterionIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 5
              },
              "question": {
                "type": "string"
              },
              "options": {
                "type": "array",
                "maxItems": 4,
                "items": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "request": {
                      "type": "object",
                      "additionalProperties": true,
                      "properties": {
                        "task": {
                          "type": "string"
                        },
                        "operation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "required": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true,
                            "properties": {}
                          }
                        },
                        "preferred": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true,
                            "properties": {}
                          }
                        },
                        "context": {
                          "type": "object",
                          "additionalProperties": true,
                          "properties": {}
                        }
                      }
                    },
                    "changes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "toolSlug": {
                            "type": "string"
                          },
                          "from": {
                            "type": "string"
                          },
                          "to": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "evidence": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "nextChecks": {
          "type": "array",
          "maxItems": 24,
          "items": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "toolSlug": {
                "type": "string"
              },
              "claim": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": true,
                    "properties": {
                      "kind": {
                        "const": "task"
                      },
                      "taskId": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": true,
                    "properties": {
                      "kind": {
                        "const": "operation"
                      },
                      "operationId": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": true,
                    "properties": {
                      "kind": {
                        "const": "constraint"
                      },
                      "constraint": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {}
                      }
                    }
                  }
                ]
              },
              "reason": {
                "type": "string"
              },
              "sourceState": {
                "type": "string",
                "enum": [
                  "available",
                  "unavailable",
                  "missing"
                ]
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true,
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "evidenceId": {
                      "type": "string"
                    }
                  }
                }
              },
              "owner": {
                "type": "string",
                "enum": [
                  "evidence_reviewer",
                  "source_operator"
                ]
              },
              "documentationStatus": {
                "type": "string",
                "enum": [
                  "documented",
                  "not_documented"
                ]
              },
              "operationalStatus": {
                "type": "string",
                "const": "not_tested"
              },
              "action": {
                "type": "string"
              },
              "acceptableEvidence": {
                "type": "string"
              },
              "completionCondition": {
                "type": "string"
              }
            }
          }
        },
        "truncated": {
          "type": "object",
          "additionalProperties": true,
          "properties": {
            "questions": {
              "type": "boolean"
            },
            "nextChecks": {
              "type": "boolean"
            }
          }
        },
        "followUps": {
          "type": "array",
          "maxItems": 1,
          "description": "Unsupported task: a what_peers_use request built from the submitted task (and context.profession). Peer usage is not eligibility; taskOptions stays a secondary option.",
          "items": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "id": {
                "type": "string",
                "const": "peer-usage"
              },
              "tool": {
                "type": "string",
                "const": "what_peers_use"
              },
              "request": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                  "task": {
                    "type": "string"
                  },
                  "profession": {
                    "type": "string"
                  }
                }
              },
              "reason": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "evaluatedAt": {
      "type": "string"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "source": {
      "$ref": "#/$defs/Source"
    }
  },
  "$defs": {
    "Source": {
      "type": "object",
      "additionalProperties": true,
      "description": "Quote with a link to source.url. Bulk reuse needs written consent.",
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "description": "The usedby page to cite."
        },
        "markdown": {
          "type": [
            "string",
            "null"
          ],
          "description": "Its Markdown version."
        },
        "terms": {
          "type": "string"
        },
        "citation": {
          "type": "string"
        }
      }
    }
  }
}