{
  "components": {
    "schemas": {
      "BenchmarkScore": {
        "additionalProperties": false,
        "properties": {
          "domain": {
            "title": "Domain",
            "type": "string"
          },
          "justification": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Justification"
          },
          "score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "strengths": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Strengths",
            "type": "array"
          },
          "top_issue": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top Issue"
          },
          "top_strength": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top Strength"
          },
          "weaknesses": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Weaknesses",
            "type": "array"
          }
        },
        "required": [
          "domain"
        ],
        "title": "BenchmarkScore",
        "type": "object"
      },
      "CancelJobResponse": {
        "additionalProperties": false,
        "properties": {
          "ok": {
            "title": "Ok",
            "type": "boolean"
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "completed",
              "failed",
              "cancelled"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "ok",
          "status"
        ],
        "title": "CancelJobResponse",
        "type": "object"
      },
      "CitationCheck": {
        "properties": {
          "checked_at_stage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checked At Stage"
          },
          "line_in_range": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Line In Range"
          },
          "missing_identifiers": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Missing Identifiers"
          },
          "path_resolved": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Path Resolved"
          }
        },
        "title": "CitationCheck",
        "type": "object"
      },
      "CoAuthor": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "title": "Email",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "email"
        ],
        "title": "CoAuthor",
        "type": "object"
      },
      "CompleteObservationRequest": {
        "additionalProperties": false,
        "properties": {
          "note": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note"
          },
          "url": {
            "anyOf": [
              {
                "maxLength": 2000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          }
        },
        "title": "CompleteObservationRequest",
        "type": "object"
      },
      "ContextActor": {
        "additionalProperties": true,
        "properties": {
          "api_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContextActorKey"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "title": "Kind",
            "type": "string"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label"
          },
          "label_verified": {
            "default": false,
            "title": "Label Verified",
            "type": "boolean"
          },
          "user_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id"
          }
        },
        "required": [
          "kind"
        ],
        "title": "ContextActor",
        "type": "object"
      },
      "ContextActorKey": {
        "additionalProperties": true,
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "prefix": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prefix"
          }
        },
        "title": "ContextActorKey",
        "type": "object"
      },
      "ContextDigest": {
        "additionalProperties": true,
        "properties": {
          "ancestry_fingerprint": {
            "title": "Ancestry Fingerprint",
            "type": "string"
          },
          "chain_ok": {
            "title": "Chain Ok",
            "type": "boolean"
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/ContextDigestRow"
            },
            "title": "Entries",
            "type": "array"
          },
          "head_etag": {
            "title": "Head Etag",
            "type": "string"
          },
          "project": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project"
          },
          "resolved_from": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DigestResolution"
              },
              {
                "type": "null"
              }
            ]
          },
          "truncated": {
            "title": "Truncated",
            "type": "boolean"
          }
        },
        "required": [
          "chain_ok",
          "ancestry_fingerprint",
          "head_etag",
          "truncated",
          "entries"
        ],
        "title": "ContextDigest",
        "type": "object"
      },
      "ContextDigestRow": {
        "additionalProperties": true,
        "properties": {
          "distance": {
            "title": "Distance",
            "type": "integer"
          },
          "etag": {
            "title": "Etag",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "kind": {
            "enum": [
              "decision",
              "convention",
              "runbook",
              "warning",
              "note",
              "flag"
            ],
            "title": "Kind",
            "type": "string"
          },
          "labels": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "level": {
            "enum": [
              "own",
              "inherited",
              "workspace"
            ],
            "title": "Level",
            "type": "string"
          },
          "source_hidden": {
            "default": false,
            "title": "Source Hidden",
            "type": "boolean"
          },
          "source_project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Project Slug"
          },
          "status": {
            "enum": [
              "proposed",
              "live"
            ],
            "title": "Status",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          }
        },
        "required": [
          "key",
          "kind",
          "summary",
          "status",
          "level",
          "distance",
          "etag"
        ],
        "title": "ContextDigestRow",
        "type": "object"
      },
      "ContextEntriesPage": {
        "properties": {
          "chain_ok": {
            "title": "Chain Ok",
            "type": "boolean"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/ContextEntrySummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "default": false,
            "title": "Has More",
            "type": "boolean"
          },
          "head_etag": {
            "title": "Head Etag",
            "type": "string"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          },
          "proposed_count": {
            "title": "Proposed Count",
            "type": "integer"
          }
        },
        "required": [
          "data",
          "head_etag",
          "chain_ok",
          "proposed_count"
        ],
        "title": "ContextEntriesPage",
        "type": "object"
      },
      "ContextEntry": {
        "additionalProperties": true,
        "properties": {
          "body_md": {
            "title": "Body Md",
            "type": "string"
          },
          "corroborated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Corroborated At"
          },
          "corroborated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContextActor"
              },
              {
                "type": "null"
              }
            ],
            "description": "The API key that corroborated this proposed entry, or null. A key cannot corroborate an entry it created or last changed, and any later change, confirm, disable or restore clears it. Several API keys can belong to the same person, so a corroboration shows that a different KEY checked the entry, not that a different person or an independent review did."
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/ContextActor"
          },
          "data": {
            "additionalProperties": true,
            "title": "Data",
            "type": "object"
          },
          "disabled_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled At"
          },
          "disabled_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled Reason"
          },
          "distance": {
            "title": "Distance",
            "type": "integer"
          },
          "etag": {
            "title": "Etag",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "kind": {
            "enum": [
              "decision",
              "convention",
              "runbook",
              "warning",
              "note",
              "flag"
            ],
            "title": "Kind",
            "type": "string"
          },
          "labels": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "last_confirmed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Confirmed At"
          },
          "last_confirmed_by_user_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Confirmed By User Id"
          },
          "level": {
            "enum": [
              "own",
              "inherited",
              "workspace"
            ],
            "title": "Level",
            "type": "string"
          },
          "project": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project"
          },
          "replaces": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/ContextReplaced"
            },
            "title": "Replaces",
            "type": "array"
          },
          "scope": {
            "enum": [
              "project",
              "subtree"
            ],
            "title": "Scope",
            "type": "string"
          },
          "secret_warnings": {
            "description": "Only on a write's response, never on a read. Present when this write was saved and a field looks like it could hold a credential. Each item names the field and the kind of match, never the value. Labelled IDs, random IDs and hashes can match too.",
            "items": {
              "$ref": "#/components/schemas/ContextSecretWarning"
            },
            "title": "Secret Warnings",
            "type": "array"
          },
          "source_hidden": {
            "default": false,
            "title": "Source Hidden",
            "type": "boolean"
          },
          "source_project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Project Slug"
          },
          "status": {
            "enum": [
              "proposed",
              "live"
            ],
            "title": "Status",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "updated_by": {
            "$ref": "#/components/schemas/ContextActor"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "key",
          "version",
          "etag",
          "status",
          "kind",
          "title",
          "summary",
          "scope",
          "level",
          "distance",
          "created_by",
          "updated_by",
          "created_at",
          "updated_at",
          "body_md",
          "data"
        ],
        "title": "ContextEntry",
        "type": "object"
      },
      "ContextEntryCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "agent_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Label"
          },
          "body_md": {
            "default": "",
            "title": "Body Md",
            "type": "string"
          },
          "data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "key": {
            "minLength": 1,
            "title": "Key",
            "type": "string"
          },
          "kind": {
            "enum": [
              "decision",
              "convention",
              "runbook",
              "warning",
              "note",
              "flag"
            ],
            "title": "Kind",
            "type": "string"
          },
          "scope": {
            "anyOf": [
              {
                "enum": [
                  "project",
                  "subtree"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          },
          "summary": {
            "minLength": 1,
            "title": "Summary",
            "type": "string"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "title": {
            "minLength": 1,
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "key",
          "kind",
          "title",
          "summary"
        ],
        "title": "ContextEntryCreateRequest",
        "type": "object"
      },
      "ContextEntryDisableRequest": {
        "additionalProperties": false,
        "properties": {
          "reason": {
            "minLength": 1,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "title": "ContextEntryDisableRequest",
        "type": "object"
      },
      "ContextEntryPatchRequest": {
        "additionalProperties": false,
        "properties": {
          "agent_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Label"
          },
          "body_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Body Md"
          },
          "data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "decision",
                  "convention",
                  "runbook",
                  "warning",
                  "note",
                  "flag"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kind"
          },
          "scope": {
            "anyOf": [
              {
                "enum": [
                  "project",
                  "subtree"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          },
          "summary": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "title": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "title": "ContextEntryPatchRequest",
        "type": "object"
      },
      "ContextEntryPutRequest": {
        "additionalProperties": false,
        "properties": {
          "agent_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Label"
          },
          "body_md": {
            "default": "",
            "title": "Body Md",
            "type": "string"
          },
          "data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "kind": {
            "enum": [
              "decision",
              "convention",
              "runbook",
              "warning",
              "note",
              "flag"
            ],
            "title": "Kind",
            "type": "string"
          },
          "scope": {
            "anyOf": [
              {
                "enum": [
                  "project",
                  "subtree"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          },
          "summary": {
            "minLength": 1,
            "title": "Summary",
            "type": "string"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "title": {
            "minLength": 1,
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "title",
          "summary"
        ],
        "title": "ContextEntryPutRequest",
        "type": "object"
      },
      "ContextEntrySummary": {
        "additionalProperties": true,
        "properties": {
          "corroborated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Corroborated At"
          },
          "corroborated_by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ContextActor"
              },
              {
                "type": "null"
              }
            ],
            "description": "The API key that corroborated this proposed entry, or null. A key cannot corroborate an entry it created or last changed, and any later change, confirm, disable or restore clears it. Several API keys can belong to the same person, so a corroboration shows that a different KEY checked the entry, not that a different person or an independent review did."
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "created_by": {
            "$ref": "#/components/schemas/ContextActor"
          },
          "disabled_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled At"
          },
          "disabled_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled Reason"
          },
          "distance": {
            "title": "Distance",
            "type": "integer"
          },
          "etag": {
            "title": "Etag",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "kind": {
            "enum": [
              "decision",
              "convention",
              "runbook",
              "warning",
              "note",
              "flag"
            ],
            "title": "Kind",
            "type": "string"
          },
          "labels": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Labels",
            "type": "array"
          },
          "last_confirmed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Confirmed At"
          },
          "last_confirmed_by_user_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Confirmed By User Id"
          },
          "level": {
            "enum": [
              "own",
              "inherited",
              "workspace"
            ],
            "title": "Level",
            "type": "string"
          },
          "replaces": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/ContextReplaced"
            },
            "title": "Replaces",
            "type": "array"
          },
          "scope": {
            "enum": [
              "project",
              "subtree"
            ],
            "title": "Scope",
            "type": "string"
          },
          "secret_warnings": {
            "description": "Only on a write's response, never on a read. Present when this write was saved and a field looks like it could hold a credential. Each item names the field and the kind of match, never the value. Labelled IDs, random IDs and hashes can match too.",
            "items": {
              "$ref": "#/components/schemas/ContextSecretWarning"
            },
            "title": "Secret Warnings",
            "type": "array"
          },
          "source_hidden": {
            "default": false,
            "title": "Source Hidden",
            "type": "boolean"
          },
          "source_project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Project Slug"
          },
          "status": {
            "enum": [
              "proposed",
              "live"
            ],
            "title": "Status",
            "type": "string"
          },
          "summary": {
            "title": "Summary",
            "type": "string"
          },
          "tags": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Tags",
            "type": "array"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "title": "Updated At",
            "type": "string"
          },
          "updated_by": {
            "$ref": "#/components/schemas/ContextActor"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "key",
          "version",
          "etag",
          "status",
          "kind",
          "title",
          "summary",
          "scope",
          "level",
          "distance",
          "created_by",
          "updated_by",
          "created_at",
          "updated_at"
        ],
        "title": "ContextEntrySummary",
        "type": "object"
      },
      "ContextEntryWriteAck": {
        "additionalProperties": true,
        "properties": {
          "etag": {
            "title": "Etag",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "key": {
            "title": "Key",
            "type": "string"
          },
          "secret_warnings": {
            "description": "Only on a write's response, never on a read. Present when this write was saved and a field looks like it could hold a credential. Each item names the field and the kind of match, never the value. Labelled IDs, random IDs and hashes can match too.",
            "items": {
              "$ref": "#/components/schemas/ContextSecretWarning"
            },
            "title": "Secret Warnings",
            "type": "array"
          },
          "status": {
            "enum": [
              "proposed",
              "live"
            ],
            "title": "Status",
            "type": "string"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "key",
          "version",
          "etag",
          "status"
        ],
        "title": "ContextEntryWriteAck",
        "type": "object"
      },
      "ContextEvent": {
        "additionalProperties": true,
        "properties": {
          "actor": {
            "$ref": "#/components/schemas/ContextActor"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "detail": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detail"
          },
          "event": {
            "enum": [
              "created",
              "updated",
              "deleted",
              "restored",
              "confirmed",
              "corroborated"
            ],
            "title": "Event",
            "type": "string"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "prev": {
            "$ref": "#/components/schemas/ContextEventPrev"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "version",
          "event",
          "actor",
          "prev",
          "created_at"
        ],
        "title": "ContextEvent",
        "type": "object"
      },
      "ContextEventPrev": {
        "additionalProperties": true,
        "properties": {
          "body_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Body Md"
          },
          "data": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kind"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "title": "ContextEventPrev",
        "type": "object"
      },
      "ContextHistoryPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ContextEvent"
            },
            "title": "Data",
            "type": "array"
          },
          "entry_id": {
            "format": "uuid",
            "title": "Entry Id",
            "type": "string"
          },
          "has_more": {
            "default": false,
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data",
          "entry_id"
        ],
        "title": "ContextHistoryPage",
        "type": "object"
      },
      "ContextReplaced": {
        "additionalProperties": true,
        "properties": {
          "entry_id": {
            "format": "uuid",
            "title": "Entry Id",
            "type": "string"
          },
          "level": {
            "enum": [
              "own",
              "inherited",
              "workspace"
            ],
            "title": "Level",
            "type": "string"
          },
          "source_hidden": {
            "default": false,
            "title": "Source Hidden",
            "type": "boolean"
          },
          "source_project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Project Slug"
          },
          "version": {
            "title": "Version",
            "type": "integer"
          }
        },
        "required": [
          "entry_id",
          "version",
          "level"
        ],
        "title": "ContextReplaced",
        "type": "object"
      },
      "ContextSecretWarning": {
        "additionalProperties": true,
        "properties": {
          "field": {
            "description": "The request field that matched, such as body_md or data.",
            "title": "Field",
            "type": "string"
          },
          "message": {
            "description": "What was found and what to do about it.",
            "title": "Message",
            "type": "string"
          },
          "secret_kind": {
            "description": "Which check matched: a rule id, generic-api-key for a labelled key, or high-entropy-string for a long random-looking value.",
            "title": "Secret Kind",
            "type": "string"
          }
        },
        "required": [
          "field",
          "secret_kind",
          "message"
        ],
        "title": "ContextSecretWarning",
        "type": "object"
      },
      "DetectionQueryCheck": {
        "properties": {
          "absence_hint": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Absence Hint"
          },
          "match_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Match Count"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          }
        },
        "title": "DetectionQueryCheck",
        "type": "object"
      },
      "DigestResolution": {
        "additionalProperties": true,
        "properties": {
          "ambiguous": {
            "title": "Ambiguous",
            "type": "boolean"
          },
          "candidates": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Candidates",
            "type": "array"
          },
          "fell_back_to_workspace": {
            "title": "Fell Back To Workspace",
            "type": "boolean"
          },
          "repo": {
            "title": "Repo",
            "type": "string"
          }
        },
        "required": [
          "repo",
          "ambiguous",
          "fell_back_to_workspace"
        ],
        "title": "DigestResolution",
        "type": "object"
      },
      "DiscoveryFilesResponse": {
        "additionalProperties": false,
        "properties": {
          "domain_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Md"
          },
          "env_vars_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Env Vars Md"
          },
          "guidance_slots": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "default": {},
            "title": "Guidance Slots",
            "type": "object"
          },
          "guides": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/DiscoveryGuideFile"
            },
            "title": "Guides",
            "type": "array"
          },
          "hyrax_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hyrax Md"
          },
          "last_discovery_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Discovery At"
          },
          "last_failure": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DiscoveryLastFailure"
              },
              {
                "type": "null"
              }
            ]
          },
          "patterns_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Patterns Md"
          },
          "principles_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Principles Md"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile"
          },
          "skills": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/DiscoverySkillFile"
            },
            "title": "Skills",
            "type": "array"
          },
          "stage_metrics": {
            "additionalProperties": {
              "additionalProperties": true,
              "type": "object"
            },
            "default": {},
            "title": "Stage Metrics",
            "type": "object"
          },
          "unknown_skill_extends": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Unknown Skill Extends",
            "type": "array"
          },
          "unverified_symbols_skipped_time": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "default": {},
            "title": "Unverified Symbols Skipped Time",
            "type": "object"
          }
        },
        "title": "DiscoveryFilesResponse",
        "type": "object"
      },
      "DiscoveryGuideFile": {
        "additionalProperties": false,
        "properties": {
          "content": {
            "title": "Content",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "slug": {
            "title": "Slug",
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Title"
          }
        },
        "required": [
          "slug",
          "content"
        ],
        "title": "DiscoveryGuideFile",
        "type": "object"
      },
      "DiscoveryLastFailure": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "failed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failed At"
          },
          "job_id": {
            "format": "uuid",
            "title": "Job Id",
            "type": "string"
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "completed",
              "failed",
              "cancelled"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "job_id",
          "status"
        ],
        "title": "DiscoveryLastFailure",
        "type": "object"
      },
      "DiscoverySkillFile": {
        "additionalProperties": false,
        "properties": {
          "content": {
            "title": "Content",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "extends": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extends"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "content"
        ],
        "title": "DiscoverySkillFile",
        "type": "object"
      },
      "DismissRequest": {
        "additionalProperties": false,
        "properties": {
          "dismissal_category": {
            "enum": [
              "false_positive",
              "wont_fix",
              "out_of_scope",
              "stale",
              "exhausted_fix_attempts",
              "no_longer_found",
              "other"
            ],
            "title": "Dismissal Category",
            "type": "string"
          },
          "dismissal_note": {
            "maxLength": 500,
            "minLength": 10,
            "title": "Dismissal Note",
            "type": "string"
          }
        },
        "required": [
          "dismissal_category",
          "dismissal_note"
        ],
        "title": "DismissRequest",
        "type": "object"
      },
      "FixObservationResponse": {
        "additionalProperties": false,
        "properties": {
          "attempt_id": {
            "title": "Attempt Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "observation": {
            "$ref": "#/components/schemas/ObservationRow"
          }
        },
        "required": [
          "observation",
          "attempt_id",
          "job_id"
        ],
        "title": "FixObservationResponse",
        "type": "object"
      },
      "FixPrSummary": {
        "additionalProperties": false,
        "properties": {
          "attempt_id": {
            "title": "Attempt Id",
            "type": "string"
          },
          "dismissal_category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissal Category"
          },
          "dismissal_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissal Note"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "last_failure_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Failure Reason"
          },
          "number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number"
          },
          "observation_id": {
            "title": "Observation Id",
            "type": "string"
          },
          "outcome": {
            "anyOf": [
              {
                "enum": [
                  "started",
                  "pr_merged",
                  "pr_rejected",
                  "cancelled",
                  "failed",
                  "declined",
                  "withdrawn"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome"
          },
          "pr_url": {
            "title": "Pr Url",
            "type": "string"
          },
          "ref": {
            "title": "Ref",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "enum": [
              "in_review",
              "revising",
              "merged",
              "closed",
              "needs_attention",
              "abandoned"
            ],
            "title": "Status",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "attempt_id",
          "observation_id",
          "ref",
          "title",
          "pr_url",
          "status"
        ],
        "title": "FixPrSummary",
        "type": "object"
      },
      "FixPrsPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/FixPrSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "default": false,
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data"
        ],
        "title": "FixPrsPage",
        "type": "object"
      },
      "FixRequest": {
        "additionalProperties": false,
        "properties": {
          "extra_attempt": {
            "default": false,
            "title": "Extra Attempt",
            "type": "boolean"
          }
        },
        "title": "FixRequest",
        "type": "object"
      },
      "Forecast": {
        "additionalProperties": false,
        "properties": {
          "agent_runner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Runner"
          },
          "confidence": {
            "enum": [
              "high",
              "medium",
              "low",
              "none"
            ],
            "title": "Confidence",
            "type": "string"
          },
          "cost_high": {
            "title": "Cost High",
            "type": "number"
          },
          "cost_low": {
            "title": "Cost Low",
            "type": "number"
          },
          "cost_mid": {
            "title": "Cost Mid",
            "type": "number"
          },
          "duration_high": {
            "title": "Duration High",
            "type": "number"
          },
          "duration_low": {
            "title": "Duration Low",
            "type": "number"
          },
          "duration_mid": {
            "title": "Duration Mid",
            "type": "number"
          },
          "repo_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repo Name"
          },
          "sample_size": {
            "minimum": 0.0,
            "title": "Sample Size",
            "type": "integer"
          },
          "source": {
            "enum": [
              "stage_models_hash_exact",
              "stage_models_per_stage_sum",
              "repo+workflow+agent_runner",
              "repo+workflow",
              "tenant+workflow+agent_runner",
              "tenant+workflow",
              "default"
            ],
            "title": "Source",
            "type": "string"
          },
          "workflow": {
            "title": "Workflow",
            "type": "string"
          }
        },
        "required": [
          "workflow",
          "cost_low",
          "cost_mid",
          "cost_high",
          "duration_low",
          "duration_mid",
          "duration_high",
          "sample_size",
          "confidence",
          "source"
        ],
        "title": "Forecast",
        "type": "object"
      },
      "ForecastBatchResponse": {
        "additionalProperties": false,
        "properties": {
          "forecasts": {
            "items": {
              "$ref": "#/components/schemas/Forecast"
            },
            "title": "Forecasts",
            "type": "array"
          },
          "repo_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repo Name"
          }
        },
        "required": [
          "forecasts"
        ],
        "title": "ForecastBatchResponse",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "JobEvent": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobEventMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "detail": {
            "default": "",
            "title": "Detail",
            "type": "string"
          },
          "stage": {
            "title": "Stage",
            "type": "string"
          },
          "ts": {
            "title": "Ts",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "ts",
          "stage",
          "type"
        ],
        "title": "JobEvent",
        "type": "object"
      },
      "JobEventMetadata": {
        "additionalProperties": true,
        "properties": {
          "artifact_namespace": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Artifact Namespace"
          },
          "artifact_namespaces": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Artifact Namespaces"
          },
          "attempt_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Attempt Number"
          },
          "content_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content Hash"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "duration_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration S"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "error_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Kind"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          },
          "failure_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Kind"
          },
          "gate_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gate Reason"
          },
          "gate_result": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gate Result"
          },
          "intended_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Intended Status"
          },
          "iteration": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Iteration"
          },
          "job_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Type"
          },
          "output_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Count"
          },
          "reap_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reap Reason"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "repo_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repo Name"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "retry_in_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retry In S"
          },
          "reviewer_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer Cost Usd"
          },
          "reviewer_duration_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer Duration S"
          },
          "reviewer_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer Notes"
          },
          "reviewer_verdict": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer Verdict"
          },
          "stages": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stages"
          },
          "sub_artifact_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sub Artifact Ref"
          },
          "submission_source": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Submission Source"
          },
          "total_duration_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total Duration S"
          },
          "wasted_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wasted Cost Usd"
          },
          "worker_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Worker Id"
          },
          "workflow": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow"
          },
          "writer_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Writer Cost Usd"
          },
          "writer_duration_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Writer Duration S"
          }
        },
        "title": "JobEventMetadata",
        "type": "object"
      },
      "JobResponse": {
        "properties": {
          "budget_status": {
            "anyOf": [
              {
                "enum": [
                  "within",
                  "over_soft",
                  "over_hard"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Budget Status"
          },
          "chain_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chain Cost Usd",
            "visibility": "provider_cost"
          },
          "chain_customer_charge_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chain Customer Charge Usd",
            "visibility": "customer_charge"
          },
          "chain_finalized_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chain Finalized Cost Usd",
            "visibility": "provider_cost"
          },
          "chain_reconciled_customer_charge_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chain Reconciled Customer Charge Usd",
            "visibility": "customer_charge"
          },
          "commit_sha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commit Sha"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "cost_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Source"
          },
          "cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Usd",
            "visibility": "provider_cost"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Id"
          },
          "customer_charge_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customer Charge Usd",
            "visibility": "customer_charge"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "events": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/JobEvent"
            },
            "title": "Events",
            "type": "array"
          },
          "executor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Executor"
          },
          "failure_classification": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Classification"
          },
          "failure_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Kind"
          },
          "finalized_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finalized Cost Usd",
            "visibility": "provider_cost"
          },
          "forecast_duration_high_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Forecast Duration High S"
          },
          "forecast_duration_low_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Forecast Duration Low S"
          },
          "forecast_duration_mid_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Forecast Duration Mid S"
          },
          "github_base_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Base Branch"
          },
          "github_default_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Default Branch"
          },
          "github_org": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Org"
          },
          "github_repo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Repo"
          },
          "heartbeat_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Heartbeat At"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "input_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input Tokens",
            "visibility": "tokens"
          },
          "is_partial_scope": {
            "default": false,
            "title": "Is Partial Scope",
            "type": "boolean"
          },
          "last_progress_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Progress At"
          },
          "last_progress_stage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Progress Stage"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "output_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Tokens",
            "visibility": "tokens"
          },
          "params": {
            "additionalProperties": true,
            "default": {},
            "title": "Params",
            "type": "object"
          },
          "persistence": {
            "default": "full",
            "enum": [
              "full",
              "dry"
            ],
            "title": "Persistence",
            "type": "string"
          },
          "pinned": {
            "default": false,
            "title": "Pinned",
            "type": "boolean"
          },
          "pinned_commit_sha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned Commit Sha"
          },
          "queue_position": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queue Position"
          },
          "reconciled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reconciled At"
          },
          "reconciled_customer_charge_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reconciled Customer Charge Usd",
            "visibility": "customer_charge"
          },
          "reconciler_ran_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reconciler Ran At"
          },
          "repo_name": {
            "title": "Repo Name",
            "type": "string"
          },
          "result": {
            "additionalProperties": true,
            "default": {},
            "title": "Result",
            "type": "object"
          },
          "revision_chain": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RevisionChainMetadata"
              },
              {
                "type": "null"
              }
            ]
          },
          "runner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Runner"
          },
          "stage_models": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stage Models"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "started_automatically": {
            "default": false,
            "title": "Started Automatically",
            "type": "boolean"
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "completed",
              "failed",
              "cancelled"
            ],
            "title": "Status",
            "type": "string"
          },
          "submitted_with_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobSubmittingKey"
              },
              {
                "type": "null"
              }
            ]
          },
          "tinker_set_ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tinker Set Ref"
          },
          "trace_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trace Id"
          },
          "workflow": {
            "enum": [
              "audit",
              "standard_audit",
              "scan",
              "mini_audit",
              "discover",
              "improve",
              "learn",
              "revalidate",
              "review",
              "meta_review",
              "task",
              "fix",
              "publish",
              "suggest",
              "program",
              "review_verify",
              "review_fix",
              "tinker",
              "change_review",
              "project_criteria",
              "project_map",
              "benchmark"
            ],
            "title": "Workflow",
            "type": "string"
          },
          "workflow_version": {
            "title": "Workflow Version",
            "type": "string"
          }
        },
        "required": [
          "id",
          "repo_name",
          "workflow",
          "status",
          "workflow_version"
        ],
        "title": "JobResponse",
        "type": "object"
      },
      "JobSubmissionRequest": {
        "additionalProperties": false,
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "params": {
            "additionalProperties": true,
            "default": {},
            "title": "Params",
            "type": "object"
          },
          "workflow": {
            "enum": [
              "audit",
              "standard_audit",
              "discover",
              "revalidate",
              "review",
              "fix"
            ],
            "title": "Workflow",
            "type": "string"
          }
        },
        "required": [
          "workflow"
        ],
        "title": "JobSubmissionRequest",
        "type": "object"
      },
      "JobSubmittingKey": {
        "additionalProperties": false,
        "properties": {
          "agent_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The agent the key belongs to, as minted, or null for a person's key.",
            "title": "Agent Label"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The key's name, as minted, or null when it has none.",
            "title": "Name"
          }
        },
        "title": "JobSubmittingKey",
        "type": "object"
      },
      "JobSummary": {
        "additionalProperties": false,
        "properties": {
          "abandoned_groups": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Abandoned Groups",
            "type": "array"
          },
          "audit_quality": {
            "default": "ok",
            "title": "Audit Quality",
            "type": "string"
          },
          "auto_requeued_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Requeued Reason"
          },
          "chain_depth": {
            "default": 0,
            "title": "Chain Depth",
            "type": "integer"
          },
          "commit_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commit Message"
          },
          "commit_sha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commit Sha"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "cost_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Source"
          },
          "cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cost Usd",
            "visibility": "provider_cost"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By"
          },
          "created_by_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By Id"
          },
          "customer_charge_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customer Charge Usd",
            "visibility": "customer_charge"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "executor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Executor"
          },
          "failed_groups": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Failed Groups",
            "type": "array"
          },
          "failure_classification": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Classification"
          },
          "failure_kind": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Kind"
          },
          "finalized_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finalized Cost Usd",
            "visibility": "provider_cost"
          },
          "forecast_duration_high_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Forecast Duration High S"
          },
          "forecast_duration_low_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Forecast Duration Low S"
          },
          "forecast_duration_mid_s": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Forecast Duration Mid S"
          },
          "github_base_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Base Branch"
          },
          "github_default_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Default Branch"
          },
          "github_org": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Org"
          },
          "github_repo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Repo"
          },
          "head_sha_diverged": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Head Sha Diverged"
          },
          "heartbeat_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Heartbeat At"
          },
          "id": {
            "format": "uuid",
            "title": "Id",
            "type": "string"
          },
          "input_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input Tokens",
            "visibility": "tokens"
          },
          "is_partial_scope": {
            "default": false,
            "title": "Is Partial Scope",
            "type": "boolean"
          },
          "last_stage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Stage"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "output_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Tokens",
            "visibility": "tokens"
          },
          "params": {
            "additionalProperties": true,
            "default": {},
            "title": "Params",
            "type": "object"
          },
          "persistence": {
            "default": "full",
            "enum": [
              "full",
              "dry"
            ],
            "title": "Persistence",
            "type": "string"
          },
          "pinned": {
            "default": false,
            "title": "Pinned",
            "type": "boolean"
          },
          "pinned_commit_sha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pinned Commit Sha"
          },
          "pr_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pr Url"
          },
          "reconciled_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reconciled At"
          },
          "reconciled_customer_charge_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reconciled Customer Charge Usd",
            "visibility": "customer_charge"
          },
          "reconciler_ran_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reconciler Ran At"
          },
          "repo_name": {
            "title": "Repo Name",
            "type": "string"
          },
          "review_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Review Reason"
          },
          "runner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Runner"
          },
          "stage_models": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stage Models"
          },
          "started_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "completed",
              "failed",
              "cancelled"
            ],
            "title": "Status",
            "type": "string"
          },
          "submitted_with_key": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JobSubmittingKey"
              },
              {
                "type": "null"
              }
            ]
          },
          "tinker_publish_refusal": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a completed Tinker options or gameplan job saved nothing (no set, or no plan version), as an internal reason code (for example `ideas_missing`, `no_project` or `invalid_gameplan`). Codes are not customer copy: map them to your own text. Null means no refusal was recorded, which is not the same as published: it is also null before the publisher runs, when it stopped at one of its own checks on the job's result (no payload for the job's stage, or one naming another stage), and when the refusal could not be saved. A publisher that failed with an error records `publish_failed`.",
            "title": "Tinker Publish Refusal"
          },
          "tinker_publish_settled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a completed Tinker options or draw job: true once the server has stopped waiting for its publish, because the server's grace window after `completed_at` has passed, `completed_at` is unset, or (options only) a refusal is stored (`tinker_publish_refusal`); false while the server is still waiting. What the publish saved, or a draw's refusal, is read from the set, not from this field. Null for every other job.",
            "title": "Tinker Publish Settled"
          },
          "warnings": {
            "default": [],
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Warnings",
            "type": "array"
          },
          "workflow": {
            "enum": [
              "audit",
              "standard_audit",
              "scan",
              "mini_audit",
              "discover",
              "improve",
              "learn",
              "revalidate",
              "review",
              "meta_review",
              "task",
              "fix",
              "publish",
              "suggest",
              "program",
              "review_verify",
              "review_fix",
              "tinker",
              "change_review",
              "project_criteria",
              "project_map",
              "benchmark"
            ],
            "title": "Workflow",
            "type": "string"
          },
          "workflow_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workflow Version"
          }
        },
        "required": [
          "id",
          "repo_name",
          "workflow",
          "status"
        ],
        "title": "JobSummary",
        "type": "object"
      },
      "JobsPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/JobSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "default": false,
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data"
        ],
        "title": "JobsPage",
        "type": "object"
      },
      "KnowledgeDirective": {
        "properties": {
          "category": {
            "anyOf": [
              {
                "enum": [
                  "security",
                  "correctness",
                  "maintainability",
                  "performance",
                  "architecture",
                  "operations"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category"
          },
          "file": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File"
          },
          "line": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Line"
          },
          "ref": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ref"
          },
          "severity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Severity"
          },
          "title": {
            "default": "",
            "title": "Title",
            "type": "string"
          }
        },
        "title": "KnowledgeDirective",
        "type": "object"
      },
      "KnowledgeSkill": {
        "properties": {
          "content": {
            "default": "",
            "title": "Content",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "extends": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extends"
          },
          "globs": {
            "items": {
              "type": "string"
            },
            "title": "Globs",
            "type": "array"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "KnowledgeSkill",
        "type": "object"
      },
      "ObservationCounts": {
        "additionalProperties": false,
        "properties": {
          "advisories_count": {
            "default": 0,
            "title": "Advisories Count",
            "type": "integer"
          },
          "by_category": {
            "additionalProperties": {
              "type": "integer"
            },
            "default": {},
            "title": "By Category",
            "type": "object"
          },
          "by_priority": {
            "additionalProperties": {
              "type": "integer"
            },
            "default": {},
            "title": "By Priority",
            "type": "object"
          },
          "by_priority_findings": {
            "additionalProperties": {
              "type": "integer"
            },
            "default": {},
            "title": "By Priority Findings",
            "type": "object"
          },
          "closed": {
            "default": 0,
            "title": "Closed",
            "type": "integer"
          },
          "closed_without_fix_pr": {
            "default": 0,
            "title": "Closed Without Fix Pr",
            "type": "integer"
          },
          "findings_count": {
            "default": 0,
            "title": "Findings Count",
            "type": "integer"
          },
          "needs_review_count": {
            "default": 0,
            "title": "Needs Review Count",
            "type": "integer"
          },
          "open": {
            "default": 0,
            "title": "Open",
            "type": "integer"
          },
          "open_advisories": {
            "default": 0,
            "title": "Open Advisories",
            "type": "integer"
          },
          "open_easy_wins": {
            "default": 0,
            "title": "Open Easy Wins",
            "type": "integer"
          },
          "open_findings": {
            "default": 0,
            "title": "Open Findings",
            "type": "integer"
          },
          "open_suggestions": {
            "default": 0,
            "title": "Open Suggestions",
            "type": "integer"
          },
          "suggestions_count": {
            "default": 0,
            "title": "Suggestions Count",
            "type": "integer"
          },
          "total_count": {
            "default": 0,
            "title": "Total Count",
            "type": "integer"
          }
        },
        "title": "ObservationCounts",
        "type": "object"
      },
      "ObservationDetailResponse": {
        "additionalProperties": false,
        "properties": {
          "attempts": {
            "items": {
              "$ref": "#/components/schemas/ObservationFixAttempt"
            },
            "title": "Attempts",
            "type": "array"
          },
          "fix_refusal_code": {
            "anyOf": [
              {
                "enum": [
                  "fix_declined_repeatedly",
                  "fix_attempt_cap_reached",
                  "fix_retry_ceiling_reached"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Refusal Code"
          },
          "fix_supported": {
            "default": false,
            "title": "Fix Supported",
            "type": "boolean"
          },
          "locations": {
            "items": {
              "$ref": "#/components/schemas/ObservationLocation"
            },
            "title": "Locations",
            "type": "array"
          },
          "observation": {
            "$ref": "#/components/schemas/ObservationRow"
          },
          "repo_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repo Name"
          },
          "repo_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repo Source"
          }
        },
        "required": [
          "observation",
          "locations",
          "attempts"
        ],
        "title": "ObservationDetailResponse",
        "type": "object"
      },
      "ObservationFixAttempt": {
        "additionalProperties": true,
        "properties": {
          "attempt_number": {
            "title": "Attempt Number",
            "type": "integer"
          },
          "failure_signal": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Signal"
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finished At"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Id"
          },
          "last_failure_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Failure Reason"
          },
          "observation_id": {
            "title": "Observation Id",
            "type": "string"
          },
          "outcome": {
            "anyOf": [
              {
                "enum": [
                  "started",
                  "pr_merged",
                  "pr_rejected",
                  "cancelled",
                  "failed",
                  "declined",
                  "withdrawn"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Outcome"
          },
          "pr_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pr Url"
          },
          "repro_flip_outcome": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repro Flip Outcome"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          }
        },
        "required": [
          "id",
          "observation_id",
          "attempt_number"
        ],
        "title": "ObservationFixAttempt",
        "type": "object"
      },
      "ObservationLocation": {
        "additionalProperties": true,
        "properties": {
          "anchored_at_sha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Anchored At Sha"
          },
          "code_window_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code Window Hash"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "file_path": {
            "title": "File Path",
            "type": "string"
          },
          "fixed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fixed At"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          },
          "line_end": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Line End"
          },
          "line_start": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Line Start"
          },
          "observation_id": {
            "title": "Observation Id",
            "type": "string"
          },
          "symbol": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Symbol"
          }
        },
        "required": [
          "id",
          "observation_id",
          "file_path"
        ],
        "title": "ObservationLocation",
        "type": "object"
      },
      "ObservationRow": {
        "additionalProperties": true,
        "properties": {
          "acknowledged_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Acknowledged At"
          },
          "agent_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Name"
          },
          "blamed_author": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Blamed Author"
          },
          "category": {
            "enum": [
              "security",
              "correctness",
              "maintainability",
              "performance",
              "architecture",
              "operations"
            ],
            "title": "Category",
            "type": "string"
          },
          "change_plan": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Change Plan"
          },
          "close_reason": {
            "anyOf": [
              {
                "enum": [
                  "fixed",
                  "dismissed",
                  "expired",
                  "completed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Close Reason"
          },
          "cluster_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cluster Id"
          },
          "co_authors": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/CoAuthor"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Co Authors"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "completion_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completion Note"
          },
          "completion_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completion Url"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "created_in_job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created In Job Id"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "dismissal_category": {
            "anyOf": [
              {
                "enum": [
                  "false_positive",
                  "wont_fix",
                  "out_of_scope",
                  "stale",
                  "exhausted_fix_attempts",
                  "no_longer_found",
                  "other"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissal Category"
          },
          "dismissal_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissal Note"
          },
          "dismissed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dismissed At"
          },
          "display_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Display Rank"
          },
          "easy_win": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Easy Win"
          },
          "effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effort"
          },
          "external_ticket_linked_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Ticket Linked At"
          },
          "external_ticket_linked_by_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Ticket Linked By User Id"
          },
          "external_ticket_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "External Ticket Url"
          },
          "fired_by_skill_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fired By Skill Path"
          },
          "fix_description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Description"
          },
          "fix_supported": {
            "default": false,
            "title": "Fix Supported",
            "type": "boolean"
          },
          "flagged_invalid_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Flagged Invalid At"
          },
          "flagged_invalid_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Flagged Invalid Note"
          },
          "has_ai_coauthor": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Ai Coauthor"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "in_flight_fix_job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "In Flight Fix Job Id"
          },
          "incarnation": {
            "title": "Incarnation",
            "type": "integer"
          },
          "kept": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "True while this finding is open, a person keeps it, and its `kept_until` day has not come.",
            "title": "Kept"
          },
          "kept_by_user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person who kept this finding for later (`POST /api/observations/{ref}/keep`), as a user id. Null when nobody keeps it. A Kept finding never expires. A closed finding may still name who kept it, but it is no longer Kept.",
            "title": "Kept By User Id"
          },
          "kept_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The note the person left when they kept it, if any.",
            "title": "Kept Note"
          },
          "kept_until": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day to look at a Kept finding again. From that day it needs a decision again.",
            "title": "Kept Until"
          },
          "kind": {
            "enum": [
              "finding",
              "suggestion",
              "advisory"
            ],
            "title": "Kind",
            "type": "string"
          },
          "last_seen_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Seen At"
          },
          "locations": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ObservationLocation"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Locations"
          },
          "needs_review": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Needs Review"
          },
          "pattern_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pattern Id"
          },
          "priority": {
            "enum": [
              "P0",
              "P1",
              "P2",
              "P3"
            ],
            "title": "Priority",
            "type": "string"
          },
          "priority_score": {
            "default": 50,
            "title": "Priority Score",
            "type": "integer"
          },
          "provenance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProvenancePayload"
              },
              {
                "type": "null"
              }
            ]
          },
          "publish_error_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publish Error At"
          },
          "publish_error_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Publish Error Reason"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "ref": {
            "title": "Ref",
            "type": "string"
          },
          "reopen_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reopen Reason"
          },
          "reopened_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reopened At"
          },
          "repo_id": {
            "title": "Repo Id",
            "type": "string"
          },
          "repo_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repo Source"
          },
          "resolved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolved At"
          },
          "risk": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Risk"
          },
          "status": {
            "enum": [
              "new",
              "closed"
            ],
            "title": "Status",
            "type": "string"
          },
          "ticket_external_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket External Id"
          },
          "ticket_system": {
            "anyOf": [
              {
                "const": "linear",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket System"
          },
          "ticket_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ticket Url"
          },
          "title": {
            "title": "Title",
            "type": "string"
          },
          "tool_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Name"
          },
          "tracked": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether the observation is tracked: an issue you can see is linked to it and is not done or dropped. Set when you list observations or get one by its ref. Null in three cases: in the response to an action such as dismiss or reopen; when issues are not turned on for your workspace; and when you do not have permission to view issues.",
            "title": "Tracked"
          },
          "tracked_issue": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TrackedIssue"
              },
              {
                "type": "null"
              }
            ],
            "description": "The issue that tracks this observation. When several do, the oldest. Null unless `tracked` is true."
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "verified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verified"
          }
        },
        "required": [
          "id",
          "ref",
          "kind",
          "status",
          "priority",
          "category",
          "repo_id",
          "incarnation",
          "title"
        ],
        "title": "ObservationRow",
        "type": "object"
      },
      "ObservationsPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ObservationRow"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "default": false,
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data"
        ],
        "title": "ObservationsPage",
        "type": "object"
      },
      "ProvenancePayload": {
        "properties": {
          "agent_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Name"
          },
          "citation": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CitationCheck"
              },
              {
                "type": "null"
              }
            ]
          },
          "confidence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence"
          },
          "cross_confirmed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cross Confirmed"
          },
          "detection_check": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DetectionQueryCheck"
              },
              {
                "type": "null"
              }
            ]
          },
          "detection_query": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detection Query"
          },
          "evidence_grade": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Grade"
          },
          "evidence_summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Summary"
          },
          "fix_repro_flip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Repro Flip"
          },
          "pattern_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pattern Id"
          },
          "repro_run_command": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repro Run Command"
          },
          "repro_sandbox_evidence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReproSandboxEvidence"
              },
              {
                "type": "null"
              }
            ]
          },
          "repro_test_body": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repro Test Body"
          },
          "repro_test_filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Repro Test Filename"
          },
          "reproduced": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reproduced"
          },
          "revalidated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revalidated At"
          },
          "revalidated_basis": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revalidated Basis"
          },
          "revalidated_outcome": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revalidated Outcome"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "tool_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Name"
          },
          "verified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verified"
          }
        },
        "title": "ProvenancePayload",
        "type": "object"
      },
      "RegisterRepoRequest": {
        "additionalProperties": false,
        "properties": {
          "access_mode": {
            "default": "installed",
            "enum": [
              "installed",
              "anonymous"
            ],
            "title": "Access Mode",
            "type": "string"
          },
          "allow_non_default_branch": {
            "default": false,
            "title": "Allow Non Default Branch",
            "type": "boolean"
          },
          "github_base_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Base Branch"
          },
          "github_org": {
            "default": "",
            "title": "Github Org",
            "type": "string"
          },
          "github_repo": {
            "default": "",
            "title": "Github Repo",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "source": {
            "const": "github",
            "default": "github",
            "title": "Source",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "RegisterRepoRequest",
        "type": "object"
      },
      "ReopenRequest": {
        "additionalProperties": false,
        "properties": {
          "reopen_reason": {
            "maxLength": 2000,
            "minLength": 1,
            "title": "Reopen Reason",
            "type": "string"
          }
        },
        "required": [
          "reopen_reason"
        ],
        "title": "ReopenRequest",
        "type": "object"
      },
      "RepoCreatedResponse": {
        "additionalProperties": false,
        "properties": {
          "classification": {
            "default": "unknown",
            "enum": [
              "supported",
              "unsupported",
              "unknown"
            ],
            "title": "Classification",
            "type": "string"
          },
          "discover_job_id": {
            "anyOf": [
              {
                "format": "uuid",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Always null. The auto-discovery job is minted on a separate thread, so its id is not knowable when this response is built. To find the run, list the repo's jobs with `?workflow=discover` a few seconds later.",
            "title": "Discover Job Id"
          },
          "discovery_queue_failed": {
            "default": false,
            "description": "Always false \u2014 vestigial. It dates from when the discovery enqueue ran inline in this handler; the enqueue now happens on a separate thread, so no code path can set it. Do not branch on it. To confirm discovery ran, list the repo's jobs with `?workflow=discover`.",
            "title": "Discovery Queue Failed",
            "type": "boolean"
          },
          "github_base_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Base Branch"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "ok": {
            "title": "Ok",
            "type": "boolean"
          },
          "primary_language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Primary Language"
          }
        },
        "required": [
          "ok",
          "name"
        ],
        "title": "RepoCreatedResponse",
        "type": "object"
      },
      "RepoDetail": {
        "additionalProperties": false,
        "properties": {
          "access_mode": {
            "default": "installed",
            "enum": [
              "installed",
              "anonymous"
            ],
            "title": "Access Mode",
            "type": "string"
          },
          "allowed_workflows": {
            "default": [],
            "items": {
              "enum": [
                "audit",
                "standard_audit",
                "scan",
                "mini_audit",
                "discover",
                "improve",
                "learn",
                "revalidate",
                "review",
                "meta_review",
                "task",
                "fix",
                "publish",
                "suggest",
                "program",
                "review_verify",
                "review_fix",
                "tinker",
                "change_review",
                "project_criteria",
                "project_map",
                "benchmark"
              ],
              "type": "string"
            },
            "title": "Allowed Workflows",
            "type": "array"
          },
          "app_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "App Type"
          },
          "audience": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audience"
          },
          "auto_detected_build_command": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Detected Build Command"
          },
          "auto_detected_test_command": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auto Detected Test Command"
          },
          "benchmark_scores": {
            "deprecated": true,
            "description": "Deprecated. Health scores were retired; always empty or null. Will be removed in a future release.",
            "items": {
              "$ref": "#/components/schemas/BenchmarkScore"
            },
            "title": "Benchmark Scores",
            "type": "array"
          },
          "build_command_override": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Build Command Override"
          },
          "change_review_enabled": {
            "default": true,
            "title": "Change Review Enabled",
            "type": "boolean"
          },
          "classification": {
            "anyOf": [
              {
                "enum": [
                  "supported",
                  "unsupported",
                  "unknown"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Classification"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When this repository was added to the workspace.",
            "title": "Created At"
          },
          "detected_languages": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Detected Languages",
            "type": "array"
          },
          "detected_languages_updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detected Languages Updated At"
          },
          "discovery_stale_reason": {
            "anyOf": [
              {
                "enum": [
                  "null_stamp",
                  "version_drift",
                  "age"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the discovery summary is considered stale, or null when it is current.",
            "title": "Discovery Stale Reason"
          },
          "discovery_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discovery Version"
          },
          "effective_fix_ci_revision_max_default": {
            "default": 1,
            "title": "Effective Fix Ci Revision Max Default",
            "type": "integer"
          },
          "effective_fix_gate_failure_mode_default": {
            "default": "keep",
            "title": "Effective Fix Gate Failure Mode Default",
            "type": "string"
          },
          "effective_fix_panel_failure_mode_default": {
            "default": "abandon",
            "title": "Effective Fix Panel Failure Mode Default",
            "type": "string"
          },
          "effective_fix_panel_revise_max_default": {
            "default": 1,
            "title": "Effective Fix Panel Revise Max Default",
            "type": "integer"
          },
          "fix_ci_revision_max": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Ci Revision Max"
          },
          "fix_commit_target_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Commit Target Branch"
          },
          "fix_gate_failure_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Gate Failure Mode"
          },
          "fix_mode": {
            "default": "pr",
            "title": "Fix Mode",
            "type": "string"
          },
          "fix_panel_failure_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Panel Failure Mode"
          },
          "fix_panel_revise_max": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fix Panel Revise Max"
          },
          "fix_pr_count": {
            "default": 0,
            "title": "Fix Pr Count",
            "type": "integer"
          },
          "fix_prs_draft_until_green": {
            "default": true,
            "title": "Fix Prs Draft Until Green",
            "type": "boolean"
          },
          "github_base_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Base Branch"
          },
          "github_default_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Default Branch"
          },
          "github_org": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Org"
          },
          "github_repo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Repo"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "last_audit_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Audit At"
          },
          "last_audit_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Audit Version"
          },
          "last_benchmark_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true,
            "description": "Deprecated. Health scores were retired; always empty or null. Will be removed in a future release.",
            "title": "Last Benchmark Status"
          },
          "last_completed_audit_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Completed Audit At"
          },
          "last_discovery_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Discovery At"
          },
          "latest_benchmark_cost_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true,
            "description": "Deprecated. Health scores were retired; always empty or null. Will be removed in a future release.",
            "title": "Latest Benchmark Cost Usd",
            "visibility": "provider_cost"
          },
          "latest_benchmark_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true,
            "description": "Deprecated. Health scores were retired; always empty or null. Will be removed in a future release.",
            "title": "Latest Benchmark Date"
          },
          "latest_benchmark_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true,
            "description": "Deprecated. Health scores were retired; always empty or null. Will be removed in a future release.",
            "title": "Latest Benchmark Version"
          },
          "loc_by_language": {
            "additionalProperties": {
              "type": "integer"
            },
            "default": {},
            "title": "Loc By Language",
            "type": "object"
          },
          "loc_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Loc Total"
          },
          "loc_updated_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Loc Updated At"
          },
          "local_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Local Path"
          },
          "mission_no_ci_converge_on_sandbox": {
            "default": false,
            "title": "Mission No Ci Converge On Sandbox",
            "type": "boolean"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "observation_counts": {
            "$ref": "#/components/schemas/ObservationCounts"
          },
          "overall_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "deprecated": true,
            "description": "Deprecated. Health scores were retired; always empty or null. Will be removed in a future release.",
            "title": "Overall Score"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "pr_review_auto_revise": {
            "default": false,
            "title": "Pr Review Auto Revise",
            "type": "boolean"
          },
          "repo_guidance": {
            "default": "",
            "title": "Repo Guidance",
            "type": "string"
          },
          "review_enabled": {
            "default": false,
            "title": "Review Enabled",
            "type": "boolean"
          },
          "review_fix_mode": {
            "default": "pr",
            "title": "Review Fix Mode",
            "type": "string"
          },
          "review_skip_branches": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Review Skip Branches",
            "type": "array"
          },
          "skip_changesets": {
            "default": false,
            "title": "Skip Changesets",
            "type": "boolean"
          },
          "skip_hyrax_files": {
            "default": false,
            "title": "Skip Hyrax Files",
            "type": "boolean"
          },
          "test_command_override": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Test Command Override"
          },
          "ticket_config": {
            "additionalProperties": true,
            "default": {},
            "title": "Ticket Config",
            "type": "object"
          },
          "ticket_publishing_enabled": {
            "default": true,
            "description": "Whether Hyrax may publish tracker tickets for this repo's findings. False for a repo added without the Hyrax GitHub App (access_mode 'anonymous'): the publish-ticket routes refuse it with anonymous_repo_ticket_publishing_not_allowed. Says nothing about whether a tracker is configured; see ticket_config for that.",
            "title": "Ticket Publishing Enabled",
            "type": "boolean"
          },
          "virtual_patch_counts": {
            "$ref": "#/components/schemas/VirtualPatchCounts",
            "default": {
              "patterns": 0
            },
            "deprecated": true,
            "description": "Deprecated. Virtual Patches was retired; always {\"patterns\": 0}. Will be removed in a future release."
          },
          "wire_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wire Branch"
          },
          "wire_org": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wire Org"
          },
          "wire_repo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wire Repo"
          }
        },
        "required": [
          "name",
          "path",
          "observation_counts",
          "benchmark_scores"
        ],
        "title": "RepoDetail",
        "type": "object"
      },
      "RepoKnowledge": {
        "properties": {
          "directives": {
            "items": {
              "$ref": "#/components/schemas/KnowledgeDirective"
            },
            "title": "Directives",
            "type": "array"
          },
          "discovered_sha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discovered Sha"
          },
          "principles_md": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Principles Md"
          },
          "profile": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Profile"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At"
          },
          "skills": {
            "items": {
              "$ref": "#/components/schemas/KnowledgeSkill"
            },
            "title": "Skills",
            "type": "array"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          }
        },
        "title": "RepoKnowledge",
        "type": "object"
      },
      "RepoResetRequest": {
        "additionalProperties": false,
        "properties": {
          "findings": {
            "default": false,
            "title": "Findings",
            "type": "boolean"
          },
          "history": {
            "default": false,
            "title": "History",
            "type": "boolean"
          },
          "suggestions": {
            "default": false,
            "title": "Suggestions",
            "type": "boolean"
          },
          "wipe": {
            "default": false,
            "title": "Wipe",
            "type": "boolean"
          }
        },
        "title": "RepoResetRequest",
        "type": "object"
      },
      "RepoResetResponse": {
        "additionalProperties": false,
        "properties": {
          "findings_removed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Findings Removed"
          },
          "repo": {
            "title": "Repo",
            "type": "string"
          },
          "runs_removed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Runs Removed"
          },
          "suggestions_removed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suggestions Removed"
          },
          "wiped": {
            "default": false,
            "title": "Wiped",
            "type": "boolean"
          }
        },
        "required": [
          "repo"
        ],
        "title": "RepoResetResponse",
        "type": "object"
      },
      "RepoSummary": {
        "additionalProperties": false,
        "properties": {
          "access_mode": {
            "default": "installed",
            "enum": [
              "installed",
              "anonymous"
            ],
            "title": "Access Mode",
            "type": "string"
          },
          "app_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "App Type"
          },
          "audience": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audience"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When this repository was added to the workspace.",
            "title": "Created At"
          },
          "discovery_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Discovery Version"
          },
          "github_base_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Base Branch"
          },
          "github_default_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Default Branch"
          },
          "github_org": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Org"
          },
          "github_repo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Github Repo"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "last_audit_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Audit At"
          },
          "last_audit_version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Audit Version"
          },
          "last_discovery_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Discovery At"
          },
          "local_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Local Path"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "path": {
            "title": "Path",
            "type": "string"
          },
          "wire_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wire Branch"
          },
          "wire_org": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wire Org"
          },
          "wire_repo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wire Repo"
          }
        },
        "required": [
          "name",
          "path"
        ],
        "title": "RepoSummary",
        "type": "object"
      },
      "ReposPage": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/RepoSummary"
            },
            "title": "Data",
            "type": "array"
          },
          "has_more": {
            "default": false,
            "title": "Has More",
            "type": "boolean"
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor"
          }
        },
        "required": [
          "data"
        ],
        "title": "ReposPage",
        "type": "object"
      },
      "ReproSandboxEvidence": {
        "properties": {
          "exit_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exit Code"
          },
          "failure_excerpt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Excerpt"
          },
          "infra_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Infra Error"
          },
          "timed_out": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timed Out"
          }
        },
        "title": "ReproSandboxEvidence",
        "type": "object"
      },
      "RevisionChainMetadata": {
        "additionalProperties": false,
        "properties": {
          "budget": {
            "title": "Budget",
            "type": "integer"
          },
          "failure_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failure Reason"
          },
          "revised_pr_number": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Revised Pr Number"
          },
          "revision_number": {
            "title": "Revision Number",
            "type": "integer"
          }
        },
        "required": [
          "revision_number",
          "budget"
        ],
        "title": "RevisionChainMetadata",
        "type": "object"
      },
      "TrackedIssue": {
        "additionalProperties": false,
        "properties": {
          "project_slug": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The slug of the project the issue belongs to. Null when it belongs to none.",
            "title": "Project Slug"
          },
          "project_title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name of the project the issue belongs to. Null when it belongs to none.",
            "title": "Project Title"
          },
          "ref": {
            "description": "The issue's reference, such as `ISS-212`.",
            "title": "Ref",
            "type": "string"
          }
        },
        "required": [
          "ref"
        ],
        "title": "TrackedIssue",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "VirtualPatchCounts": {
        "additionalProperties": false,
        "properties": {
          "patterns": {
            "default": 0,
            "title": "Patterns",
            "type": "integer"
          }
        },
        "title": "VirtualPatchCounts",
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "description": "Authenticate every request with an `hk_live_` API key: `Authorization: Bearer hk_live_...`.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "The Hyrax REST API. Every endpoint lives under `/api/...`, takes and returns JSON, and authenticates with an `hk_live_` API key.\n\nThis document covers the customer surface only. Prose docs \u2014 auth, the error envelope, pagination, rate limits, and the compatibility policy \u2014 are under \"API\" at <https://docs.hyrax.dev>.\n\nAPI keys are created in the Hyrax web app by a workspace admin and cannot be created with a key. A key-authenticated call from a workspace whose API access is not enabled returns `402` with `code: plan_restricted` and `required_features: [\"api_keys\"]`.",
    "title": "Hyrax REST API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/context/entries": {
      "get": {
        "description": "The entries that apply at this level, summaries only, paginated. Filter by `kind`, `status`, `tag` and `q` (full-text search); `include_disabled=true` adds this level's own disabled entries. A matching `If-None-Match` returns 304.",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "decision",
                    "convention",
                    "runbook",
                    "warning",
                    "note",
                    "flag"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "proposed",
                    "live"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "in": "query",
            "name": "include_disabled",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include Disabled",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextEntriesPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List context entries (workspace)",
        "tags": [
          "Team context"
        ]
      },
      "post": {
        "description": "Returns 201. An entry written with an API key is `proposed` until a person confirms it in the web app. A key held by a live entry at this level returns `409 key_taken`.",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Create Workspace Context Entry Api Context Entries Post"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a context entry (workspace)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/context/entries/digest": {
      "get": {
        "description": "Summaries in reading order: the workspace's organization context first when the digest includes it, then live entries, then corroborated proposals, then other proposals, with warnings first in each group. `limit` defaults to 40, at most 100.",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 40,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextDigest"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Context digest (workspace)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/context/entries/{key}": {
      "delete": {
        "description": "Requires `If-Match` and a `reason` in the body. The entry stops applying and its key is freed; restore undoes it.",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryDisableRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Delete Workspace Context Entry Api Context Entries  Key  Delete"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Disable a context entry (workspace)",
        "tags": [
          "Team context"
        ]
      },
      "get": {
        "description": "One entry in full, which may be inherited. The `ETag` header carries the entry's ETag for a later conditional write.",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextEntry"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a context entry (workspace)",
        "tags": [
          "Team context"
        ]
      },
      "patch": {
        "description": "Requires `If-Match`. Omitted fields are kept; `data` is a JSON merge patch. A stale ETag returns `409 version_conflict`.",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryPatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Patch Workspace Context Entry Api Context Entries  Key  Patch"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a context entry (workspace)",
        "tags": [
          "Team context"
        ]
      },
      "put": {
        "description": "Send `If-None-Match: *` to create (201), or `If-Match` with the entry's ETag to replace it. Exactly one of the two is required.",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryPutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Put Workspace Context Entry Api Context Entries  Key  Put"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create or replace a context entry (workspace)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/context/entries/{key}/corroborate": {
      "post": {
        "description": "Requires `If-Match`. Records that your key checked a proposed entry another key wrote; the entry stays proposed. API keys only.",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextEntry"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Corroborate a context entry (workspace)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/context/entries/{key}/history": {
      "get": {
        "description": "The entry's change history, newest first. Each event carries the values the entry held before that change.",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextHistoryPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Context entry history (workspace)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/context/entries/{key}/restore": {
      "post": {
        "description": "Restores the most recently disabled entry with this key. Returns `409 key_taken` if a live entry has taken the key.",
        "parameters": [
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Restore Workspace Context Entry Api Context Entries  Key  Restore Post"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Restore a context entry (workspace)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/forecasts/lookup": {
      "get": {
        "description": "One forecast for a workflow. `workflow` is required; `repo_name` (a `repo@branch` slug) is optional \u2014 omit it for a workspace-wide estimate.",
        "parameters": [
          {
            "in": "query",
            "name": "workflow",
            "required": true,
            "schema": {
              "maxLength": 64,
              "minLength": 1,
              "title": "Workflow",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "repo_name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 128,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Repo Name"
            }
          },
          {
            "in": "query",
            "name": "agent_runner",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 64,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Agent Runner"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Forecast"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Forecast lookup",
        "tags": [
          "Forecasts"
        ]
      }
    },
    "/api/jobs": {
      "get": {
        "description": "Every job across the workspace, paginated. Narrow to one repository with the `github_org`/`github_repo`/`github_base_branch` triple.",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "workflow",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Workflow"
            }
          },
          {
            "in": "query",
            "name": "github_org",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Github Org"
            }
          },
          {
            "in": "query",
            "name": "github_repo",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Github Repo"
            }
          },
          {
            "in": "query",
            "name": "github_base_branch",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Github Base Branch"
            }
          },
          {
            "in": "query",
            "name": "repo_name",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Repo Name"
            }
          },
          {
            "in": "query",
            "name": "created_by",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Created By"
            }
          },
          {
            "in": "query",
            "name": "author_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Author Id"
            }
          },
          {
            "in": "query",
            "name": "runner",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Runner"
            }
          },
          {
            "description": "Only jobs of one family of workflows, by their stored workflow. `audit` is every audit job: `standard_audit`, `audit`, and two stored workflows older audits carry: `scan` (a scanner-only audit, before it became `audit`) and the retired `mini_audit`. ANDs with `workflow`.",
            "in": "query",
            "name": "family",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "audit",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only jobs of one family of workflows, by their stored workflow. `audit` is every audit job: `standard_audit`, `audit`, and two stored workflows older audits carry: `scan` (a scanner-only audit, before it became `audit`) and the retired `mini_audit`. ANDs with `workflow`.",
              "title": "Family"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned by a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor returned by a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          },
          {
            "description": "Only jobs on the repos of this project and its sub-projects, by id or slug. A project the caller cannot open is a 404, the same as a missing one.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 63,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only jobs on the repos of this project and its sub-projects, by id or slug. A project the caller cannot open is a 404, the same as a missing one.",
              "title": "Project"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobsPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List all jobs",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/api/jobs/{job_id}": {
      "get": {
        "description": "State, workflow, repo, timestamps, error and failure classification for one job.",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a job",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/api/jobs/{job_id}/cancel": {
      "post": {
        "description": "Cancels a pending or running job. REST-only \u2014 not exposed as an MCP tool.",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel a job",
        "tags": [
          "Jobs"
        ]
      }
    },
    "/api/jobs/{job_id}/retry": {
      "post": {
        "description": "Retries a failed or cancelled job, preserving its workflow. Returns 201 with the new retry job, or 200 when an in-flight retry of the same parent already exists (the returned job is the existing retry; no new work was enqueued).",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            },
            "description": "Idempotent match \u2014 an in-flight retry of the same parent job with identical canonical params already exists. The returned `JobResponse` is the existing retry job; no new work was enqueued. SDKs should poll the returned `id` rather than treating this as a separate retry attempt for billing/UX purposes. Salt is the parent `job_id` so retries of different parents still produce distinct dedupe keys."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Retry a job",
        "tags": [
          "Jobs"
        ],
        "x-rate-limit": {
          "dollar_priced": true,
          "profile": "jobs",
          "rpm": 30
        }
      }
    },
    "/api/observations": {
      "get": {
        "description": "Filter by `kind`, `status`, `priority`, `category`, `repo` (a `repo@branch` slug), and `since` (an ISO-8601 timestamp \u2014 returns only observations updated after it); add `include=locations` to embed each observation's file locations inline.",
        "parameters": [
          {
            "description": "Filter by observation kind: `finding`, `suggestion`, or `advisory`. Omit to span all.",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "finding",
                    "suggestion",
                    "advisory"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by observation kind: `finding`, `suggestion`, or `advisory`. Omit to span all.",
              "title": "Kind"
            }
          },
          {
            "description": "Filter by status enum value (`new` or `closed`).",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "new",
                    "closed"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by status enum value (`new` or `closed`).",
              "title": "Status"
            }
          },
          {
            "description": "Filter by priority (P0..P3).",
            "in": "query",
            "name": "priority",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "P0",
                    "P1",
                    "P2",
                    "P3"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by priority (P0..P3).",
              "title": "Priority"
            }
          },
          {
            "description": "Filter by several priorities at once: repeat the parameter, for example `priorities=P0&priorities=P1` for critical and high. Cannot be combined with `priority`.",
            "in": "query",
            "name": "priorities",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "enum": [
                      "P0",
                      "P1",
                      "P2",
                      "P3"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by several priorities at once: repeat the parameter, for example `priorities=P0&priorities=P1` for critical and high. Cannot be combined with `priority`.",
              "title": "Priorities"
            }
          },
          {
            "description": "`true` returns only tracked observations: an issue you can see is linked to the observation and is not done or dropped, wherever that issue is in your workspace. `false` returns only observations that no such issue tracks. Needs issues to be turned on for your workspace (otherwise `402`) and permission to view issues (otherwise `403`).",
            "in": "query",
            "name": "tracked",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`true` returns only tracked observations: an issue you can see is linked to the observation and is not done or dropped, wherever that issue is in your workspace. `false` returns only observations that no such issue tracks. Needs issues to be turned on for your workspace (otherwise `402`) and permission to view issues (otherwise `403`).",
              "title": "Tracked"
            }
          },
          {
            "description": "`me` returns only the open findings you keep (`POST /api/observations/{ref}/keep`), whether or not their look-again day has come. A caller who is not a workspace member keeps nothing, so the page is empty.",
            "in": "query",
            "name": "kept_by",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "const": "me",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`me` returns only the open findings you keep (`POST /api/observations/{ref}/keep`), whether or not their look-again day has come. A caller who is not a workspace member keeps nothing, so the page is empty.",
              "title": "Kept By"
            }
          },
          {
            "description": "`true` returns only the findings someone keeps right now (`POST /api/observations/{ref}/keep`) whose look-again day has not come. `false` leaves those out, so a finding whose look-again day has come is listed again.",
            "in": "query",
            "name": "kept",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`true` returns only the findings someone keeps right now (`POST /api/observations/{ref}/keep`) whose look-again day has not come. `false` leaves those out, so a finding whose look-again day has come is listed again.",
              "title": "Kept"
            }
          },
          {
            "description": "`true` returns only the findings a Fix has not finished on: a fix still in progress (its job running, or its pull request still open), or a mission about the finding that has not finished. A paused mission has not finished, so it counts. `false` leaves those out.",
            "in": "query",
            "name": "running_fix",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "`true` returns only the findings a Fix has not finished on: a fix still in progress (its job running, or its pull request still open), or a mission about the finding that has not finished. A paused mission has not finished, so it counts. `false` leaves those out.",
              "title": "Running Fix"
            }
          },
          {
            "description": "Filter by category.",
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "security",
                    "correctness",
                    "maintainability",
                    "performance",
                    "architecture",
                    "operations"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by category.",
              "title": "Category"
            }
          },
          {
            "description": "Filter by close reason (`fixed` / `dismissed` / `expired` / `completed`). Orthogonal to `status`: `close_reason` is NULL on every `new` row, so setting it inherently narrows to closed rows. Drives the Completed page's Resolved-lane resolution filter.",
            "in": "query",
            "name": "close_reason",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "fixed",
                    "dismissed",
                    "expired",
                    "completed"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by close reason (`fixed` / `dismissed` / `expired` / `completed`). Orthogonal to `status`: `close_reason` is NULL on every `new` row, so setting it inherently narrows to closed rows. Drives the Completed page's Resolved-lane resolution filter.",
              "title": "Close Reason"
            }
          },
          {
            "description": "Completed-page lane partition: `true` keeps only observations that ever had a fix attempt which opened a PR (the Pull-requests lane), `false` keeps only those that never did (the Resolved lane), omit for no constraint. Outcome-agnostic \u2014 a merged, closed, or abandoned PR all count as having a PR.",
            "in": "query",
            "name": "has_fix_pr",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Completed-page lane partition: `true` keeps only observations that ever had a fix attempt which opened a PR (the Pull-requests lane), `false` keeps only those that never did (the Resolved lane), omit for no constraint. Outcome-agnostic \u2014 a merged, closed, or abandoned PR all count as having a PR.",
              "title": "Has Fix Pr"
            }
          },
          {
            "description": "Filter to findings from one finding domain's audit tools (`DOMAIN_TOOLS`).",
            "in": "query",
            "name": "domain",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "security",
                    "code_quality",
                    "reliability",
                    "data_apis",
                    "testing",
                    "devops",
                    "ux"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to findings from one finding domain's audit tools (`DOMAIN_TOOLS`).",
              "title": "Domain"
            }
          },
          {
            "description": "Repo slug (`repo@branch`) or UUID.",
            "in": "query",
            "name": "repo",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Repo slug (`repo@branch`) or UUID.",
              "title": "Repo"
            }
          },
          {
            "description": "List across several repos: repeat the param with up to 10 repo UUIDs. Ids you cannot see, or that do not exist, match nothing, so a list of only such ids returns an empty page. Cannot be combined with `repo`. With `project`, an id outside the project matches nothing too.",
            "in": "query",
            "name": "repos",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "description": "List across several repos: repeat the param with up to 10 repo UUIDs. Ids you cannot see, or that do not exist, match nothing, so a list of only such ids returns an empty page. Cannot be combined with `repo`. With `project`, an id outside the project matches nothing too.",
              "title": "Repos"
            }
          },
          {
            "description": "Only observations on the repos of this project and its sub-projects, by id or slug, with no cap on how many repos that is. A project you cannot open is a 404, the same as a missing one. `repo` / `repos` narrow inside it and never widen it.",
            "in": "query",
            "name": "project",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 63,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only observations on the repos of this project and its sub-projects, by id or slug, with no cap on how many repos that is. A project you cannot open is a 404, the same as a missing one. `repo` / `repos` narrow inside it and never widen it.",
              "title": "Project"
            }
          },
          {
            "description": "With `project` only: keep the repos the project or a sub-project holds with this role (`target`: repos it writes; `context`: repos it reads).",
            "in": "query",
            "name": "role",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "context",
                    "target"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "With `project` only: keep the repos the project or a sub-project holds with this role (`target`: repos it writes; `context`: repos it reads).",
              "title": "Role"
            }
          },
          {
            "in": "query",
            "name": "include",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Include"
            }
          },
          {
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Since"
            }
          },
          {
            "description": "When true, return only Easy Wins \u2014 open findings that are high-priority, cheap to implement, and low-risk (the same gate the `open_easy_wins` count uses). Pairs with `kind=finding` + `status=new` to drive the Easy Wins page; the gate is applied server-side so the page paginates over the filtered subset instead of fetching every open finding.",
            "in": "query",
            "name": "easy_wins",
            "required": false,
            "schema": {
              "default": false,
              "description": "When true, return only Easy Wins \u2014 open findings that are high-priority, cheap to implement, and low-risk (the same gate the `open_easy_wins` count uses). Pairs with `kind=finding` + `status=new` to drive the Easy Wins page; the gate is applied server-side so the page paginates over the filtered subset instead of fetching every open finding.",
              "title": "Easy Wins",
              "type": "boolean"
            }
          },
          {
            "description": "When true, return only needs-review findings \u2014 open findings that exhausted Hyrax's automatic fix attempts and now await a human (the same lane the `needs_review_count` badge counts). Pairs with `kind=finding` + `status=new` to drive the Findings tab's `?preset=needs-review` view; the lane predicate self-contains `status='new'` + not-handed-off, applied server-side so the page paginates over the filtered subset.",
            "in": "query",
            "name": "needs_review",
            "required": false,
            "schema": {
              "default": false,
              "description": "When true, return only needs-review findings \u2014 open findings that exhausted Hyrax's automatic fix attempts and now await a human (the same lane the `needs_review_count` badge counts). Pairs with `kind=finding` + `status=new` to drive the Findings tab's `?preset=needs-review` view; the lane predicate self-contains `status='new'` + not-handed-off, applied server-side so the page paginates over the filtered subset.",
              "title": "Needs Review",
              "type": "boolean"
            }
          },
          {
            "description": "Sort order. `recency` (default) returns `last_seen_at DESC` \u2014 the historical Findings-list order. `display_rank` returns `display_rank ASC NULLS LAST, priority ASC, priority_score DESC` \u2014 the \"Top findings\" headline order where the deterministic selector's ranked representatives surface first (1..K) and unranked rows (non-rep cluster members, and every open finding on a repo not yet re-audited since the display-rank tail went repo-wide) fall to the tail sorted IMPORTANCE-first (P0-first, then score) \u2014 so a client top-5 off page 1 surfaces the most important open findings even before ranks are stamped. `resolved` returns `COALESCE(completed_at, dismissed_at, updated_at) DESC` \u2014 newest-resolved first, the Completed page's Resolved-lane order. `look_again` returns `kept_until ASC NULLS LAST` \u2014 the Kept order to pair with `kept_by`: a look-again day that has come sorts first, oldest first.",
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "default": "recency",
              "description": "Sort order. `recency` (default) returns `last_seen_at DESC` \u2014 the historical Findings-list order. `display_rank` returns `display_rank ASC NULLS LAST, priority ASC, priority_score DESC` \u2014 the \"Top findings\" headline order where the deterministic selector's ranked representatives surface first (1..K) and unranked rows (non-rep cluster members, and every open finding on a repo not yet re-audited since the display-rank tail went repo-wide) fall to the tail sorted IMPORTANCE-first (P0-first, then score) \u2014 so a client top-5 off page 1 surfaces the most important open findings even before ranks are stamped. `resolved` returns `COALESCE(completed_at, dismissed_at, updated_at) DESC` \u2014 newest-resolved first, the Completed page's Resolved-lane order. `look_again` returns `kept_until ASC NULLS LAST` \u2014 the Kept order to pair with `kept_by`: a look-again day that has come sorts first, oldest first.",
              "enum": [
                "recency",
                "display_rank",
                "resolved",
                "look_again"
              ],
              "title": "Order",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned by a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor returned by a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationsPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List observations",
        "tags": [
          "Observations"
        ]
      }
    },
    "/api/observations/{ref}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "title": "Ref",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationDetailResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an observation",
        "tags": [
          "Observations"
        ]
      }
    },
    "/api/observations/{ref}/acknowledge": {
      "post": {
        "description": "Stamps `acknowledged_at`; the observation stays open. No body.",
        "parameters": [
          {
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "title": "Ref",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationRow"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Acknowledge an observation",
        "tags": [
          "Observations"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "observation_triage",
          "rpm": 60
        }
      }
    },
    "/api/observations/{ref}/complete": {
      "post": {
        "description": "Closes it as `completed` when it was resolved outside a Hyrax PR. The body is optional: a proof `url` and a free-text `note`.",
        "parameters": [
          {
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "title": "Ref",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteObservationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationRow"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Mark an observation addressed",
        "tags": [
          "Observations"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "observation_triage",
          "rpm": 60
        }
      }
    },
    "/api/observations/{ref}/dismiss": {
      "post": {
        "description": "Requires `dismissal_category` and a 10\u2013500 character `dismissal_note`. `false_positive`, `wont_fix`, and `out_of_scope` stay closed on re-discovery; `stale`, `no_longer_found`, and `other` can reappear if re-found.",
        "parameters": [
          {
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "title": "Ref",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DismissRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationRow"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Dismiss an observation",
        "tags": [
          "Observations"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "observation_triage",
          "rpm": 60
        }
      }
    },
    "/api/observations/{ref}/fix": {
      "post": {
        "description": "Spawns a fix job for the observation. Does NOT close it \u2014 the observation moves to closed only when the resulting pull request is merged.",
        "parameters": [
          {
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "title": "Ref",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/FixRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FixObservationResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Fix an observation",
        "tags": [
          "Observations"
        ],
        "x-rate-limit": {
          "dollar_priced": true,
          "profile": "observation_fix",
          "rpm": 30
        }
      }
    },
    "/api/observations/{ref}/publish-ticket": {
      "post": {
        "description": "Files a ticket with the repository's configured tracker. 422 when the repository has no ticket integration.",
        "parameters": [
          {
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "title": "Ref",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationRow"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Publish to the ticket tracker",
        "tags": [
          "Observations"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "observation_publish",
          "rpm": 30
        }
      }
    },
    "/api/observations/{ref}/reopen": {
      "post": {
        "description": "Moves a closed observation back to `new`. `reopen_reason` (1\u20132000 characters) is required.",
        "parameters": [
          {
            "in": "path",
            "name": "ref",
            "required": true,
            "schema": {
              "title": "Ref",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReopenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationRow"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Reopen an observation",
        "tags": [
          "Observations"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "observation_triage",
          "rpm": 60
        }
      }
    },
    "/api/projects/{slug}/context/entries": {
      "get": {
        "description": "The entries that apply at this level, summaries only, paginated. Filter by `kind`, `status`, `tag` and `q` (full-text search); `include_disabled=true` adds this level's own disabled entries. A matching `If-None-Match` returns 304.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "decision",
                    "convention",
                    "runbook",
                    "warning",
                    "note",
                    "flag"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Kind"
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tag"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "proposed",
                    "live"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "in": "query",
            "name": "include_disabled",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include Disabled",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextEntriesPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List context entries (project)",
        "tags": [
          "Team context"
        ]
      },
      "post": {
        "description": "Returns 201. An entry written with an API key is `proposed` until a person confirms it in the web app. A key held by a live entry at this level returns `409 key_taken`.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Create Project Context Entry Api Projects  Slug  Context Entries Post"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a context entry (project)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/projects/{slug}/context/entries/digest": {
      "get": {
        "description": "Summaries in reading order: the workspace's organization context first when the digest includes it, then live entries, then corroborated proposals, then other proposals, with warnings first in each group. `limit` defaults to 40, at most 100.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 40,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextDigest"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Context digest (project)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/projects/{slug}/context/entries/{key}": {
      "delete": {
        "description": "Requires `If-Match` and a `reason` in the body. The entry stops applying and its key is freed; restore undoes it.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryDisableRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Delete Project Context Entry Api Projects  Slug  Context Entries  Key  Delete"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Disable a context entry (project)",
        "tags": [
          "Team context"
        ]
      },
      "get": {
        "description": "One entry in full, which may be inherited. The `ETag` header carries the entry's ETag for a later conditional write.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextEntry"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a context entry (project)",
        "tags": [
          "Team context"
        ]
      },
      "patch": {
        "description": "Requires `If-Match`. Omitted fields are kept; `data` is a JSON merge patch. A stale ETag returns `409 version_conflict`.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryPatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Patch Project Context Entry Api Projects  Slug  Context Entries  Key  Patch"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a context entry (project)",
        "tags": [
          "Team context"
        ]
      },
      "put": {
        "description": "Send `If-None-Match: *` to create (201), or `If-Match` with the entry's ETag to replace it. Exactly one of the two is required.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContextEntryPutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Put Project Context Entry Api Projects  Slug  Context Entries  Key  Put"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create or replace a context entry (project)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/projects/{slug}/context/entries/{key}/corroborate": {
      "post": {
        "description": "Requires `If-Match`. Records that your key checked a proposed entry another key wrote; the entry stays proposed. API keys only.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "If-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextEntry"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Corroborate a context entry (project)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/projects/{slug}/context/entries/{key}/history": {
      "get": {
        "description": "The entry's change history, newest first. Each event carries the values the entry held before that change.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor from a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor from a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextHistoryPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Context entry history (project)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/projects/{slug}/context/entries/{key}/restore": {
      "post": {
        "description": "Restores the most recently disabled entry with this key. Returns `409 key_taken` if a live entry has taken the key.",
        "parameters": [
          {
            "in": "path",
            "name": "slug",
            "required": true,
            "schema": {
              "title": "Slug",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "title": "Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContextEntry"
                    },
                    {
                      "$ref": "#/components/schemas/ContextEntryWriteAck"
                    }
                  ],
                  "title": "Response Restore Project Context Entry Api Projects  Slug  Context Entries  Key  Restore Post"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Restore a context entry (project)",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/repos": {
      "get": {
        "description": "The repositories in the workspace, paginated.",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned by a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor returned by a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReposPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List repositories",
        "tags": [
          "Repositories"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "repo_list",
          "rpm": 60
        }
      },
      "post": {
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRepoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepoCreatedResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Register a repository",
        "tags": [
          "Repositories"
        ],
        "x-rate-limit": {
          "dollar_priced": true,
          "profile": "repo_register",
          "rpm": 10
        }
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}": {
      "delete": {
        "description": "Removes the repository from the workspace. REST-only \u2014 not exposed as an MCP tool.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove a repository",
        "tags": [
          "Repositories"
        ]
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepoDetail"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a repository",
        "tags": [
          "Repositories"
        ]
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}/context-digest": {
      "get": {
        "description": "The digest of the deepest project that contains the repository, or the workspace's digest when no project does.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 40,
              "maximum": 100,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "header",
            "name": "If-None-Match",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "If-None-Match"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextDigest"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Repository context digest",
        "tags": [
          "Team context"
        ]
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}/discovery": {
      "get": {
        "description": "The published discovery documents for the repository.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryFilesResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Discovery files",
        "tags": [
          "Repositories"
        ]
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}/fix-prs": {
      "get": {
        "description": "The findings Hyrax opened a fix PR for, with a derived status \u2014 `merged` answers \"did my fix land?\".",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned by a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor returned by a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FixPrsPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Fix pull requests",
        "tags": [
          "Repositories"
        ]
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}/forecasts": {
      "get": {
        "description": "Cost forecasts for a repository across workflows.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForecastBatchResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Repository forecasts",
        "tags": [
          "Forecasts"
        ]
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}/jobs": {
      "get": {
        "description": "Paginated, newest first.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "workflow",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Workflow"
            }
          },
          {
            "in": "query",
            "name": "created_by",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Created By"
            }
          },
          {
            "in": "query",
            "name": "author_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Author Id"
            }
          },
          {
            "description": "true = in-flight jobs only (pending/running); false = terminal only. A set membership over status, so it composes with the single-valued `status` filter rather than replacing it. Omit for no constraint.",
            "in": "query",
            "name": "active",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "true = in-flight jobs only (pending/running); false = terminal only. A set membership over status, so it composes with the single-valued `status` filter rather than replacing it. Omit for no constraint.",
              "title": "Active"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Opaque cursor returned by a previous page; pass back verbatim.",
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Opaque cursor returned by a previous page; pass back verbatim.",
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobsPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a repository's jobs",
        "tags": [
          "Jobs"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "job_reads",
          "rpm": 120
        }
      },
      "post": {
        "description": "The body is `{workflow, params}`. A fresh submission returns 201; a match to an in-flight or recently-completed identical job \u2014 or a repeated `Idempotency-Key` header within 24 hours \u2014 returns 200 with the existing job, so only a 201 means your request started a run. Pass `?force=true` to push a fresh submission past the short soft-dedupe window on terminal jobs.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          },
          {
            "description": "Override soft idempotency dedupe (60s window)",
            "in": "query",
            "name": "force",
            "required": false,
            "schema": {
              "default": false,
              "description": "Override soft idempotency dedupe (60s window)",
              "title": "Force",
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "wizard",
                    "dashboard"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Source"
            }
          },
          {
            "description": "Wizard step index when `source=wizard`. Bounded to the three wizard steps; ignored when `source` is unset or `source=dashboard`.",
            "in": "query",
            "name": "step",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 3,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Wizard step index when `source=wizard`. Bounded to the three wizard steps; ignored when `source` is unset or `source=dashboard`.",
              "title": "Step"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobSubmissionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            },
            "description": "Idempotent match \u2014 an in-flight or recently-completed job with identical params already exists for this (repo, commit_sha, workflow, canonical_params) tuple, or an `Idempotency-Key` header matched a 24h-window receipt. The returned `JobResponse` is the existing job; no new work was enqueued. SDKs should poll the returned `id` rather than treating this as a new submission. To force a fresh submission past the 60s soft-dedupe window for terminal jobs, pass `?force=true`."
          },
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Submit a job",
        "tags": [
          "Jobs"
        ],
        "x-rate-limit": {
          "dollar_priced": true,
          "profile": "jobs",
          "rpm": 30
        }
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}/knowledge": {
      "get": {
        "description": "The repository's discovery knowledge bundle \u2014 profile, principles, conventions, and open directives. `version` is an opaque content handle: pass one back to pin the same logical bundle, or omit it for the latest. A `version` that is no longer current returns 404 \u2014 only the current bundle is retrievable.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "version",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Version"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepoKnowledge"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Knowledge bundle",
        "tags": [
          "Repositories"
        ]
      }
    },
    "/api/repos/{github_org}/{github_repo}/{github_base_branch}/reset": {
      "post": {
        "description": "Resets a repository to a clean state. Body flags pick what to clear: `findings`, `history`, `suggestions`, `wipe`. REST-only \u2014 not exposed as an MCP tool.",
        "parameters": [
          {
            "in": "path",
            "name": "github_org",
            "required": true,
            "schema": {
              "title": "Github Org",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_repo",
            "required": true,
            "schema": {
              "title": "Github Repo",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "github_base_branch",
            "required": true,
            "schema": {
              "title": "Github Base Branch",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepoResetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepoResetResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Reset a repository",
        "tags": [
          "Repositories"
        ],
        "x-rate-limit": {
          "dollar_priced": false,
          "profile": "repo_reset",
          "rpm": 5
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.hyrax.dev"
    }
  ],
  "tags": [
    {
      "description": "A job is one run of a workflow against a repository.",
      "name": "Jobs"
    },
    {
      "description": "Manage the repositories in your workspace and read their discovery output. Repositories are addressed by the owner/repo/branch triple in path segments.",
      "name": "Repositories"
    },
    {
      "description": "Observations are the findings and suggestions Hyrax produces. Each has a stable `HYRAX-N` ref, which is how you address one.",
      "name": "Observations"
    },
    {
      "description": "Estimated cost and duration bands for a workflow on a repository \u2014 the same numbers the app shows before you submit.",
      "name": "Forecasts"
    },
    {
      "description": "Key-addressed entries (decisions, conventions, runbooks, warnings) that your team and your agents write for later agents, at the workspace or at a project. Reads return the entries that apply at that level, including inherited ones; writes act only on the level's own entries.",
      "name": "Team context"
    }
  ]
}
