{
 "openapi": "3.1.0",
 "info": {
  "title": "no_human board",
  "version": "0.1.4",
  "description": "API of the no_human LOCAL server \u2014 the `nh start` process a user runs on their own machine (binds 127.0.0.1:8420 by default; `nh start --host` changes the bind). There is NO hosted endpoint at getnohuman.com: this spec is published so agents and tools can understand the installed product's API surface. Errors are structured JSON: {\"detail\": ...} \u2014 a string, or a list of validation errors on 422 \u2014 with conventional HTTP status codes (404 unknown task, 409 illegal transition, 422 validation). Install: `uv tool install no-human`. Machine-readable overview: https://getnohuman.com/llms.txt"
 },
 "paths": {
  "/api/tasks": {
   "get": {
    "summary": "List Tasks",
    "operationId": "list_tasks_api_tasks_get",
    "parameters": [
     {
      "name": "merge_ready",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Merge Ready"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/TaskSummaryOut"
         },
         "title": "Response List Tasks Api Tasks Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "summary": "Create Task",
    "description": "Create a new task from the web board. The task is staged as PENDING and\nwill be picked up by the next ``nh serve`` tick or ``nh watch``.",
    "operationId": "create_task_api_tasks_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreateTaskRequest"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TaskSummaryOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/grill": {
   "post": {
    "summary": "Grill Step Endpoint",
    "description": "B2: Run one step of the intake grill interrogation.\n\nPhase 4b changes:\n  - Uses review_model (Sonnet) instead of primary_model (Opus) \u2014 the grill\n    is read-only clarification; Sonnet is sufficient and cheaper.\n  - Caches the backend in app.state._grill_sessions keyed by (title, repo)\n    so multi-round grills reuse the same agent session (context carryover).",
    "operationId": "grill_step_endpoint_api_grill_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GrillStepRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/grill/stream": {
   "post": {
    "summary": "Grill Stream Endpoint",
    "description": "SSE endpoint \u2014 streams grill exploration events in real-time.\n\nEach SSE frame is a JSON object with {ts, kind, text, source}.\nThe final frame carries kind=\"grill_result\" or kind=\"grill_question\"\nwith the full payload. Falls through to the sync POST semantics on\nthe backend \u2014 only the transport is different.",
    "operationId": "grill_stream_endpoint_api_grill_stream_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GrillStepRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}": {
   "get": {
    "summary": "Get Task",
    "operationId": "get_task_api_tasks__task_id__get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TaskOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/subtasks": {
   "get": {
    "summary": "List Subtasks",
    "operationId": "list_subtasks_api_tasks__task_id__subtasks_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/TaskSummaryOut"
         },
         "title": "Response List Subtasks Api Tasks  Task Id  Subtasks Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/diff": {
   "get": {
    "summary": "Get Diff",
    "operationId": "get_diff_api_tasks__task_id__diff_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/approve": {
   "post": {
    "summary": "Approve Task",
    "description": "Approve and merge \u2014 squash-lands the PR under the operator identity.\nThe agent itself still never merges anything on its own (constraint #2);\nthis endpoint IS the human merge action `nh approve`/the GUI button\ntrigger.",
    "operationId": "approve_task_api_tasks__task_id__approve_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Approve Task Api Tasks  Task Id  Approve Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/approve-landed": {
   "post": {
    "summary": "Approve Landed",
    "description": "The HUMAN landed-override affirmation: a human asserts (with required\njustification) that a task's content landed at ``sha``, for any of three\nnarrow shapes ``blockers/landed_override.py`` resolves and gates:\n\n- an ``awaiting_approval`` task where automated containment honestly\n  refuses (a supervising session's squash train adapted the content: a\n  later train car's classification-decision edits, or a real\n  union-resolved source conflict, so no candidate commit's tree matches\n  the branch verbatim), or\n- a ``failed`` task that died before ever opening a PR (budget\n  exhaustion, a pre-review test failure, a compile error) whose content\n  a human later hand-landed \u2014 refused if the task was human-cancelled or\n  already has PR evidence (that pair goes through\n  ``nh task restore-approval`` instead), or\n- a ``pending`` task that a human hand-lands before any coder attempt\n  ever dispatched \u2014 refused if it already has PR evidence, same as above.\n\nSee ``blockers/landed_override.py`` for the full contract; this endpoint\nonly cheap-guards obviously-ineligible statuses and otherwise delegates\nevery eligibility decision to that module.\n\nThis is deliberately additive and non-idempotent: a second call on the\nsame task 409s (the task is DONE), so a replay cannot append a duplicate\noverride event. It never merges, pushes, or touches git state \u2014 the\noverride is a recorded human assertion, not a merge action (constraint\n#2: the agent never merges; there is nothing to merge here).",
    "operationId": "approve_landed_api_tasks__task_id__approve_landed_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/LandedOverrideRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Approve Landed Api Tasks  Task Id  Approve Landed Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/finish-review": {
   "post": {
    "summary": "Finish Review",
    "description": "Mark a code-review task done \u2014 the human has posted the comments they\nwant (all, some, or none) and is finished. A code_review has no PR of its own\nto merge, so it never auto-completes; without this it stays stuck in Review\nPR even after the human is done. This is the explicit 'I'm done' action.",
    "operationId": "finish_review_api_tasks__task_id__finish_review_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Finish Review Api Tasks  Task Id  Finish Review Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/attachments": {
   "post": {
    "summary": "Add Attachment",
    "description": "Attach a screenshot/document to a task. Stored on disk under\n~/.no_human/attachments/<task_id>/ (files, not SQLite blobs \u2014 lean stack);\nthe path is recorded on task.context so the coder can READ it for context\n(a screenshot of the bug, a design doc, an error log).",
    "operationId": "add_attachment_api_tasks__task_id__attachments_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "multipart/form-data": {
       "schema": {
        "$ref": "#/components/schemas/Body_add_attachment_api_tasks__task_id__attachments_post"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Attachment Api Tasks  Task Id  Attachments Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/send-back": {
   "post": {
    "summary": "Send Back",
    "description": "Return the task to IMPLEMENTING for the next daemon run.",
    "operationId": "send_back_api_tasks__task_id__send_back_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SendBackRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Send Back Api Tasks  Task Id  Send Back Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/pause": {
   "post": {
    "summary": "Pause Task",
    "description": "Pause a running task (sets to BLOCKED with reason). For a task already\nparked (paused_quota/blocked) \u2014 e.g. a supervisor reserving the quota\nwindow \u2014 this instead stamps a durable human hold (blocker.human_stopped)\non the existing blocker without touching status; the wake sweep already\nskips human_stopped tasks (SCRUM-22).",
    "operationId": "pause_task_api_tasks__task_id__pause_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Pause Task Api Tasks  Task Id  Pause Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/resume": {
   "post": {
    "summary": "Resume Task",
    "description": "Resume a paused/blocked/escalated task (sets to IMPLEMENTING). If the\ntask carries a durable human hold (blocker.human_stopped, set by /pause\non an already-parked task), this only clears that flag \u2014 the task stays\nin its current parked status so the wake sweep can decide the next\ntransition, rather than resume forcing one.",
    "operationId": "resume_task_api_tasks__task_id__resume_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Resume Task Api Tasks  Task Id  Resume Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/cancel": {
   "post": {
    "summary": "Cancel Task",
    "description": "Cancel a task (sets to FAILED). `body` is optional so the CLI's and\nthe board's pre-existing no-reason POST keep working unchanged; when the\nboard's cancel modal supplies a typed reason it is trimmed and truncated\nto 500 chars before being recorded, matching the client-side clamp.",
    "operationId": "cancel_task_api_tasks__task_id__cancel_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/CancelRequest"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Cancel Task Api Tasks  Task Id  Cancel Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/retry": {
   "post": {
    "summary": "Retry Task",
    "description": "Retry a failed task (resets to PENDING for a fresh run).",
    "operationId": "retry_task_api_tasks__task_id__retry_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Retry Task Api Tasks  Task Id  Retry Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/shipped": {
   "post": {
    "summary": "Mark Shipped",
    "description": "Record that a human (the supervising session) merged this task's work\noutside no_human \u2014 e.g. a squash-merge done by hand after review.\n\nNon-goal (SCRUM-55 post-mortem): ``sha`` is recorded as operator\ntestimony ONLY. It is never fetched, resolved against a ref, or verified\nagainst any git remote \u2014 SCRUM-55 built exactly that verification and\nburned its whole budget on a stale-trunk check plus an unrunnable commit\ntest. This endpoint deliberately does not re-add it: the supervising\nhuman is the trust anchor here, not git.",
    "operationId": "mark_shipped_api_tasks__task_id__shipped_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ShippedRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TaskOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/post-review-comments": {
   "post": {
    "summary": "Post Review Comments",
    "description": "Post review comments to the PR via gh api on behalf of the human.",
    "operationId": "post_review_comments_api_tasks__task_id__post_review_comments_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PostReviewCommentsRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Post Review Comments Api Tasks  Task Id  Post Review Comments Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/profiles": {
   "get": {
    "summary": "List Profiles",
    "description": "Return onboarded repo profiles (for the New Task repo dropdown).\n\nWhen no profiles exist, falls back to distinct repo_paths from existing\ntasks so the repo picker has something to show.",
    "operationId": "list_profiles_api_profiles_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "additionalProperties": true,
          "type": "object"
         },
         "type": "array",
         "title": "Response List Profiles Api Profiles Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/repos": {
   "get": {
    "summary": "Api Repos",
    "description": "The repos the operator knows (for the repo-understanding picker).",
    "operationId": "api_repos_api_repos_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "additionalProperties": true,
          "type": "object"
         },
         "type": "array",
         "title": "Response Api Repos Api Repos Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/repo": {
   "get": {
    "summary": "Api Repo Understanding",
    "description": "What no_human understands about ONE known repo: its onboarded profile,\nthe cached repo map, and matched playbooks. Read-only. The path MUST be a\nrepo the operator already onboarded or has a task for \u2014 an unknown path is\na 404, never a fresh map of an arbitrary directory.",
    "operationId": "api_repo_understanding_api_repo_get",
    "parameters": [
     {
      "name": "path",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Path"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Api Repo Understanding Api Repo Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/search": {
   "get": {
    "summary": "Api Search",
    "description": "Cross-task full-text search over the failure/fix record (events_fts,\nmigration 0006 \u2014 attempt_failed / review / blocked / tamper / pr_ci_red /\nescalated / ci_gate_fail). \"How was a failure like this handled before?\"\nsurfaced to the operator. Advisory: hostile FTS5 input (bare operators,\nunbalanced quotes) returns [], never a 500 \u2014 mirrors _recall_failures.",
    "operationId": "api_search_api_search_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 30,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object",
          "additionalProperties": true
         },
         "title": "Response Api Search Api Search Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/projects": {
   "get": {
    "summary": "Api List Projects",
    "operationId": "api_list_projects_api_projects_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/ProjectOut"
         },
         "type": "array",
         "title": "Response Api List Projects Api Projects Get"
        }
       }
      }
     }
    }
   },
   "post": {
    "summary": "Api Create Project",
    "operationId": "api_create_project_api_projects_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CreateProjectRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProjectOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/projects/{project_id}": {
   "get": {
    "summary": "Api Get Project",
    "operationId": "api_get_project_api_projects__project_id__get",
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProjectOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "put": {
    "summary": "Api Update Project",
    "operationId": "api_update_project_api_projects__project_id__put",
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/UpdateProjectRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProjectOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "delete": {
    "summary": "Api Delete Project",
    "operationId": "api_delete_project_api_projects__project_id__delete",
    "parameters": [
     {
      "name": "project_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Project Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Api Delete Project Api Projects  Project Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/repos/scaffold": {
   "post": {
    "summary": "Scaffold Repo",
    "description": "Create a brand-new git repo and register it as a project.\n\nThe composer's \"create a new repo\" affordance: mkdir + `git init` + a\nminimal README committed under the AGENT identity (the history must say\nplainly which commits a machine wrote), then the same registration path\nPOST /api/projects uses, so the composer proceeds in it immediately.",
    "operationId": "scaffold_repo_api_repos_scaffold_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ScaffoldRepoRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Scaffold Repo Api Repos Scaffold Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/auth/status": {
   "get": {
    "summary": "Api Auth Status",
    "operationId": "api_auth_status_api_auth_status_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Api Auth Status Api Auth Status Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/auth/token": {
   "put": {
    "summary": "Api Set Auth Token",
    "description": "Store an OAuth token for a profile. Returns the same shape as status.\n\nThe body is parsed BY HAND rather than through a pydantic model, because a\npydantic validation error echoes the offending body back verbatim \u2014\nsubmitting the form with the profile box empty returned\n``{\"input\": {\"token\": \"<the real secret>\"}}`` in a 422. Constraint \u00a78 says a\nsecret is never echoed, and that has to hold for the failure paths too.\n\nThis writes a CLAUDE_CODE_OAUTH_TOKEN[_PROFILE] \u2014 a subscription or\nenterprise OAuth token. It is NOT a bring-your-own-API-key path: a metered\nkey is refused by `set_profile_token`, per constraint #1.",
    "operationId": "api_set_auth_token_api_auth_token_put",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Api Set Auth Token Api Auth Token Put"
        }
       }
      }
     }
    }
   }
  },
  "/api/bench/latest": {
   "get": {
    "summary": "Api Bench Latest",
    "description": "The published north-star bench card, for the Stats surface.\n\nThe card was previously unreachable from the web app entirely \u2014 the UI's\nnorth-star row reads /api/metrics, which carries TASK counters, not bench\nresults. A reader therefore could not see the two things that decide whether\na headline means anything: how much of the corpus went unmeasured, and\nwhether the run was even publishable.\n\n`refusals` is COMPUTED from the stored card on every read rather than\npersisted, so it can never go stale against the rules that produce it. It is\nevaluated with no baseline, so it reports the run's INTRINSIC problems\n(saturation, coverage, too few specs) and not \"narrower than the previous\nrun\" \u2014 that comparison needs a baseline this endpoint does not have.\n\n404 ONLY when nothing has been recorded: the UI must say \"no bench run yet\"\nrather than render an all-zero card that looks like a catastrophic result.\nA card that exists but cannot be read is NOT a 404 \u2014 that would report a\nbroken instrument as an idle one. It answers 200 with a zeroed card whose\n`refusals` say so, which is the surface the UI already renders as an alarm.",
    "operationId": "api_bench_latest_api_bench_latest_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Api Bench Latest Api Bench Latest Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/events": {
   "get": {
    "summary": "Task Events",
    "description": "Return the complete event log for a task.\n\nThe scheduler's in-memory buffer is a deque(maxlen=_MAX_EVENTS), so serving\nit alone silently truncated long runs: at 321 events the board received the\nlast 158 and the Planner \u2014 whose events had aged out \u2014 vanished from the\nSystem view mid-run. The persisted copy is complete, so it is the base; the\nbuffer only supplies the tail newer than the last flush (a couple of\nseconds' worth) and covers a task the store hasn't seen.",
    "operationId": "task_events_api_tasks__task_id__events_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object",
          "additionalProperties": true
         },
         "title": "Response Task Events Api Tasks  Task Id  Events Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/events/stream": {
   "get": {
    "summary": "Task Events Stream",
    "description": "SSE endpoint \u2014 streams task events as they arrive.\n\nThe client opens an EventSource to this URL. Each SSE frame is a JSON\nobject with {ts, kind, text, source}. The stream closes when the task\nleaves the inflight set and no more events arrive for 5 s.",
    "operationId": "task_events_stream_api_tasks__task_id__events_stream_get",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/worker/status": {
   "get": {
    "summary": "Worker Status",
    "description": "Is the embedded worker running, how many tasks in-flight \u2014 and if none,\nWHY none?\n\nThe first two fields alone cannot tell idle from wedged. On 2026-08-01 this\nendpoint returned `{\"running\":true,\"inflight\":0,\"max_workers\":4,\n\"watcher_error\":null}` for six hours while the scheduler's database view was\nfrozen three hours in the past, re-dispatching two finished tasks ~12x/min\nand unable to see the one real task waiting. Every field was accurate.\n\nSo `inflight` keeps its meaning and `idle_reason` supplies the one bit it\nnever carried: `queue_empty` (nothing to do) vs `db_view_stale` (the queue\nonly LOOKS empty) vs `quota_cooldown` vs `claimable_not_dispatched`. The\ncounters beside it \u2014 crash rate, consecutive status-write failures, last\nsuccessful write, stale detections and reconnects \u2014 are what makes the\ndifference checkable from a single `curl` rather than by reading 46,000\nlines of log.\n\nONE HONEST LIMIT, because it was measured rather than assumed. The\nstaleness probe runs per scheduler TICK, not per request \u2014 a status\nendpoint that opened a second SQLite connection on every poll would put the\nboard's polling on the database's critical path. So a poll landing between\nthe wedge and the next tick still answers `healthy: true`; the flag is at\nmost one `poll_interval` behind. `seconds_since_last_tick` is published for\nexactly that reason, and it doubles as the alarm for the failure no\nper-tick check can report on itself: a scheduler loop that has stopped\nticking at all.\n\n`loaded_code` / `loaded_code_stale` answer a different question on the same\npoll: WHICH code is running. The server never reloads, so a merged fix is\nnot live until it restarts.",
    "operationId": "worker_status_api_worker_status_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Worker Status Api Worker Status Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/queue/health": {
   "get": {
    "summary": "Queue Health Endpoint",
    "description": "D2 #4: is the queue stuck, and when does it drain? Pure timestamps.",
    "operationId": "queue_health_endpoint_api_queue_health_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Queue Health Endpoint Api Queue Health Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/metrics": {
   "get": {
    "summary": "Metrics",
    "description": "The north-star numbers (M4): PRs opened/merged, attempts and tokens\nper PR, burn per auth profile, gate outcomes, repro-gate verdict split.\nRead-only SQL over the record \u2014 nothing derived, nothing cached.",
    "operationId": "metrics_api_metrics_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Metrics Api Metrics Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/autonomy": {
   "get": {
    "summary": "Autonomy Report",
    "description": "Autonomy telemetry (megaplan P0): mid-flight-touchpoint rate vs.\nPR-reached rate. Read-only.",
    "operationId": "autonomy_report_api_autonomy_get",
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Autonomy Report Api Autonomy Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/tasks/{task_id}/reply": {
   "post": {
    "summary": "Reply Task",
    "description": "Store a human answer to a parked task's question; reset to IMPLEMENTING.\n\nDoes NOT auto-run the orchestrator \u2014 the human runs `nh watch <id>` to resume.\nParity with `nh reply --no-run`.",
    "operationId": "reply_task_api_tasks__task_id__reply_post",
    "parameters": [
     {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Task Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReplyRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Reply Task Api Tasks  Task Id  Reply Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/rules": {
   "get": {
    "summary": "List Rules",
    "operationId": "list_rules_api_rules_get",
    "parameters": [
     {
      "name": "include_archived",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Include Archived"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object",
          "additionalProperties": true
         },
         "title": "Response List Rules Api Rules Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "summary": "Add Rule",
    "operationId": "add_rule_api_rules_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/_MemoryBody"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Rule Api Rules Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/rules/{rule_id}": {
   "delete": {
    "summary": "Remove Rule",
    "operationId": "remove_rule_api_rules__rule_id__delete",
    "parameters": [
     {
      "name": "rule_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Rule Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Remove Rule Api Rules  Rule Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/skills": {
   "get": {
    "summary": "List Skills",
    "operationId": "list_skills_api_skills_get",
    "parameters": [
     {
      "name": "include_archived",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Include Archived"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object",
          "additionalProperties": true
         },
         "title": "Response List Skills Api Skills Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   },
   "post": {
    "summary": "Add Skill",
    "operationId": "add_skill_api_skills_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/_MemoryBody"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Skill Api Skills Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/skills/{skill_id}": {
   "delete": {
    "summary": "Remove Skill",
    "operationId": "remove_skill_api_skills__skill_id__delete",
    "parameters": [
     {
      "name": "skill_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Skill Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Remove Skill Api Skills  Skill Id  Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/learnings": {
   "get": {
    "summary": "List Learnings",
    "operationId": "list_learnings_api_learnings_get",
    "parameters": [
     {
      "name": "active",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": false,
       "title": "Active"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object",
          "additionalProperties": true
         },
         "title": "Response List Learnings Api Learnings Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/learnings/retire-candidates": {
   "get": {
    "summary": "Learnings Retire Candidates",
    "description": "Memory lifecycle C, AC2: stale ACTIVE (confirmed) rules \u2014 SUGGEST\nonly. Read-only; nothing here archives anything.",
    "operationId": "learnings_retire_candidates_api_learnings_retire_candidates_get",
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 90,
       "title": "Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "type": "object",
          "additionalProperties": true
         },
         "title": "Response Learnings Retire Candidates Api Learnings Retire Candidates Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/learnings/{mem_id}/confirm": {
   "post": {
    "summary": "Confirm Learning",
    "operationId": "confirm_learning_api_learnings__mem_id__confirm_post",
    "parameters": [
     {
      "name": "mem_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mem Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Confirm Learning Api Learnings  Mem Id  Confirm Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/learnings/{mem_id}/reject": {
   "post": {
    "summary": "Reject Learning",
    "operationId": "reject_learning_api_learnings__mem_id__reject_post",
    "parameters": [
     {
      "name": "mem_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mem Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Reject Learning Api Learnings  Mem Id  Reject Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/learnings/{mem_id}/retire": {
   "post": {
    "summary": "Retire Learning",
    "description": "Memory lifecycle C, AC2: the human's explicit yes to a `retire?`\nsuggestion. 404 unknown id; 409 if the row is not confirmed (retirement\nis for ACTIVE rules \u2014 an unconfirmed proposal has `reject` for that job).\nIdempotent: retiring an already-archived row returns\n``{\"ok\": True, \"already_archived\": True}`` rather than an error, since a\ndismissed-then-retried client action should never surface as a failure.",
    "operationId": "retire_learning_api_learnings__mem_id__retire_post",
    "parameters": [
     {
      "name": "mem_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mem Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Retire Learning Api Learnings  Mem Id  Retire Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/learnings/{mem_id}/restore": {
   "post": {
    "summary": "Restore Learning",
    "description": "Memory lifecycle C part B: the Rules/Skills UI's triage action \u2014 a\nhuman's explicit undo of an archive, whatever produced it (the 45-day\nsweep, a supersede-on-confirm, or a manual retire). 404 unknown id;\nidempotent on a row that is already live (``already_active: True``, 200\n\u2014 the same double-click contract `retire_learning` chose, so a stale\nbutton never surfaces as a failure).",
    "operationId": "restore_learning_api_learnings__mem_id__restore_post",
    "parameters": [
     {
      "name": "mem_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Mem Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Restore Learning Api Learnings  Mem Id  Restore Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/memories/quarantine": {
   "get": {
    "summary": "Quarantine Counts",
    "description": "Per-panel quarantined row counts (P1 brain hygiene) \u2014 an honest\nfooter, not a changed list shape. `/api/rules` and `/api/skills` keep\nreturning a bare list; this is a NEW endpoint so their response shape\nstays untouched.\n\n``total`` is deliberately the ALL-TYPES quarantined count, not\n``rules + skills`` \u2014 the memories table has more types than the four the\nRules/Skills panels cover (e.g. proposals), and a row of one of those can\nbe quarantined without ever surfacing in either panel. So\n``total >= rules + skills`` is expected, not a double-count bug (round-3\nreview advisory 2): the Learnings footer is deliberately the grand total\nacross every type, while ``rules``/``skills`` are the two panel subsets.",
    "operationId": "quarantine_counts_api_memories_quarantine_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": {
          "type": "integer"
         },
         "type": "object",
         "title": "Response Quarantine Counts Api Memories Quarantine Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/config": {
   "get": {
    "summary": "Show Config",
    "description": "Return the current config (safe subset \u2014 no secrets).",
    "operationId": "show_config_api_config_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Show Config Api Config Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/version": {
   "get": {
    "summary": "Show Version",
    "description": "The running `nh` version, and whether the browser Updates panel may\nprint a pip command for it.\n\nThe board runs in two places. Inside the desktop shell the version arrives\nover the preload bridge as ``window.nhDesktop.version``; in a plain browser\nthere is no bridge, so Settings > Updates printed \"You are running no_human\nunknown in a browser\". The server always knows \u2014 it IS the installed\npackage \u2014 so it says so. Deliberately NOT folded into /api/config: a version\nis not configuration, and that payload is already broader than it should be.\n\n``no_human.__version__`` is the same string ``nh --version`` prints and the\nsame one the update check compares against, so all three agree by\nconstruction.\n\n``dist_name``/``published`` let the browser panel derive its upgrade\ninstruction from the real distribution channel instead of hardcoding a\npackage name that may not exist there yet: ``published`` is fail-closed\n(``updates.is_published()`` never raises and defaults to False), so an\nabsent or unreadable cache reads as \"not provably published\", never as a\nfalse \"yes\".",
    "operationId": "show_version_api_version_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Show Version Api Version Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations": {
   "get": {
    "summary": "List Integrations Endpoint",
    "description": "Status of every integration (configured + kind; healthy is null until a\n`test` is run), PLUS its `fields` array so the UI can render a settings\nform. Never returns a secret \u2014 `fields` carries only `set: bool`.",
    "operationId": "list_integrations_endpoint_api_integrations_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response List Integrations Endpoint Api Integrations Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/setup": {
   "get": {
    "summary": "Integration Setup Specs",
    "description": "What the onboarding \"Connect your tools\" step renders itself from.\n\nOne entry per block under ``DEFAULT_CONFIG[\"integrations\"]`` \u2014 DISCOVERED,\nnot a list of names in the UI, so adding a sixth block makes a sixth card\nappear with no frontend change. Carries the non-secret current values, the\non/off switch, and the NAMES of the ~/.no_human/.env variables each\nintegration's credential needs (plus whether each is set) \u2014 never a secret\nvalue, and never a field the wizard is allowed to write a secret into.",
    "operationId": "integration_setup_specs_api_integrations_setup_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Integration Setup Specs Api Integrations Setup Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/{name}/setup": {
   "put": {
    "summary": "Save Integration Setup",
    "description": "Persist one integration's NON-SECRET onboarding settings to config.yaml.\n\nDistinct from ``/api/integrations/{name}/config`` on purpose: that route\ncan route a field to ~/.no_human/.env, this one writes config.yaml ONLY\nand refuses (422) any field that reads as a credential, so the wizard can\nnever put a token in a world-readable file. Same local-origin guard as\nevery other config write.",
    "operationId": "save_integration_setup_api_integrations__name__setup_put",
    "parameters": [
     {
      "name": "name",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Name"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/IntegrationSetupRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Save Integration Setup Api Integrations  Name  Setup Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/{name}/test": {
   "post": {
    "summary": "Test Integration Endpoint",
    "description": "Run a live health check for one integration. The returned `detail` is a\nhuman-readable message that never contains a token or secret.",
    "operationId": "test_integration_endpoint_api_integrations__name__test_post",
    "parameters": [
     {
      "name": "name",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Name"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Test Integration Endpoint Api Integrations  Name  Test Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/{name}/config": {
   "put": {
    "summary": "Save Integration Config Endpoint",
    "description": "Persist one integration's settings-form fields: secrets to\n``~/.no_human/.env``, everything else to ``config.yaml``. Returns the\nrefreshed status card PLUS its `fields` array \u2014 NEVER a secret value.",
    "operationId": "save_integration_config_endpoint_api_integrations__name__config_put",
    "parameters": [
     {
      "name": "name",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Name"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SaveIntegrationConfigRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Save Integration Config Endpoint Api Integrations  Name  Config Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/telemetry/consent": {
   "put": {
    "summary": "Save Telemetry Consent",
    "description": "Settings > Usage insights: persist `telemetry.enabled` to config.yaml.\n\nOn FIRST enable, mints the anonymous `telemetry.instance_id` (uuid4)\nHERE, server-side, in the same write \u2014 the id never comes from the\nbrowser. Off by default; turning it off writes `enabled: false` and\nleaves the id in place (so re-enabling keeps one stable anonymous id\nrather than manufacturing a fresh \"new install\" every toggle).",
    "operationId": "save_telemetry_consent_api_telemetry_consent_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TelemetryConsentRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Save Telemetry Consent Api Telemetry Consent Put"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/jira/issues": {
   "get": {
    "summary": "Jira Issues Endpoint",
    "description": "Free-text browse/pick over the configured Jira project \u2014 the read side\nof Task 1.6's \"Import from Jira\" affordance. This never creates a task;\nPOST /api/tasks (with source=\"jira\") stays the one create path. Reuses\n``JiraAdapter`` from intake/jira.py completely \u2014 same auth, same search\nendpoint, same JIRA_API_TOKEN env var the background poller already uses.",
    "operationId": "jira_issues_endpoint_api_integrations_jira_issues_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 20,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/TrackerIssueOut"
         },
         "title": "Response Jira Issues Endpoint Api Integrations Jira Issues Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/jira/issues/{key}": {
   "get": {
    "summary": "Jira Issue Detail Endpoint",
    "description": "Fetch ONE issue in full (SCRUM-9) \u2014 the detail GET behind the picker's\n\"pick\" action. ``/api/integrations/jira/issues`` (the browse list, above)\ntruncates each description to 2000 chars for a small list payload; that\ntruncation was leaking into created tasks because the web picker built\nits composer prefill straight from the list brief. This endpoint returns\nthe SAME shape with the FULL description, so a picked issue's task can\ncarry the whole spec instead of a cut-off one.",
    "operationId": "jira_issue_detail_endpoint_api_integrations_jira_issues__key__get",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TrackerIssueOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/linear/issues": {
   "get": {
    "summary": "Linear Issues Endpoint",
    "description": "Browse/pick over the configured Linear team's intake scope \u2014 the Linear\nhalf of the Backlog page's list. Never creates a task; POST /api/tasks\n(with source=\"linear\") stays the one create path.",
    "operationId": "linear_issues_endpoint_api_integrations_linear_issues_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Q"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 20,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/TrackerIssueOut"
         },
         "title": "Response Linear Issues Endpoint Api Integrations Linear Issues Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/integrations/linear/issues/{key}": {
   "get": {
    "summary": "Linear Issue Detail Endpoint",
    "description": "ONE issue by its identifier (\"NO-1\"). Same contract as the Jira detail\nroute so the page has one code path per row, whichever tracker it came\nfrom. 404 when the identifier is not in the configured intake scope \u2014\nsaying \"not found\" is honest; inventing an empty row is not.",
    "operationId": "linear_issue_detail_endpoint_api_integrations_linear_issues__key__get",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TrackerIssueOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/fs/suggest": {
   "get": {
    "summary": "Fs Suggest",
    "description": "Directory autocomplete for path inputs. Given a partial path, return up to\n20 matching sub-directories (absolute, ~-expanded), flagging git repos. Used\nby the onboarding repo/docs inputs to autofill as the user types.",
    "operationId": "fs_suggest_api_fs_suggest_get",
    "parameters": [
     {
      "name": "path",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "",
       "title": "Path"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Fs Suggest Api Fs Suggest Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/repos/discover": {
   "get": {
    "summary": "Discover Repositories",
    "description": "Find the user's repositories so onboarding and the composer can offer a\nlist instead of demanding a typed path.\n\nThere is deliberately no caller-supplied root: the scan is bound to the\nprocess's own home directory plus whatever the operator put in\n``onboarding.extra_scan_roots``. A root parameter would turn a localhost\nconvenience endpoint into an arbitrary-filesystem scanner, and the typed\npath field (which stays) already covers \"somewhere else\".",
    "operationId": "discover_repositories_api_repos_discover_get",
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer",
         "maximum": 1000,
         "minimum": 1
        },
        {
         "type": "null"
        }
       ],
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Discover Repositories Api Repos Discover Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/status": {
   "get": {
    "summary": "Onboarding Status",
    "operationId": "onboarding_status_api_onboarding_status_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Status Api Onboarding Status Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/repos/detect": {
   "post": {
    "summary": "Onboarding Detect Repos",
    "operationId": "onboarding_detect_repos_api_onboarding_repos_detect_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RepoDetectRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Detect Repos Api Onboarding Repos Detect Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/repos/onboard": {
   "post": {
    "summary": "Onboarding Onboard Repo",
    "description": "Derive a ProjectProfile from the repo's declarations and persist it\nUNPROVEN. Proving (running the test suite) is intentionally deferred to\n`nh onboard <repo>` so a click here never blocks on a long test run.",
    "operationId": "onboarding_onboard_repo_api_onboarding_repos_onboard_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RepoOnboardRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Onboard Repo Api Onboarding Repos Onboard Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/readiness": {
   "get": {
    "summary": "Onboarding Readiness",
    "description": "Which onboarded repos can back a task with REAL test evidence.\n\nThis is what the summary step and the board banner read, so neither can\nclaim \"Ready.\" while every profile is unproven. A repo missing from\n``usable`` is not blocked \u2014 its tasks will run \u2014 but its review gate will\nhave no test command to execute, which is the thing worth saying out loud.",
    "operationId": "onboarding_readiness_api_onboarding_readiness_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Readiness Api Onboarding Readiness Get"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/repos/prove": {
   "post": {
    "summary": "Onboarding Prove Repo",
    "description": "PROVE a repo's derived commands by actually RUNNING them, streaming the\nreal output back as SSE so the user watches the thing that decides.\n\nThis is the same `OnboardEngine` `nh onboard` drives \u2014 not a second\nimplementation \u2014 so the command proven here is byte-for-byte the command\n`runner.run_tests` executes for the orchestrator later. Nothing in this\nendpoint can create a proof: it only reports the exit status of a real\nsubprocess, and it always persists the profile UNCONFIRMED. Confirming is a\nseparate human act (`/repos/confirm`).\n\nA failing command is a legitimate outcome, not an error: the stream reports\nit with its output and the caller may re-POST with a corrected `test_cmd`.",
    "operationId": "onboarding_prove_repo_api_onboarding_repos_prove_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RepoProveRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {}
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/repos/confirm": {
   "post": {
    "summary": "Onboarding Confirm Repo",
    "description": "The human gate, from the app: mark a PROVEN profile confirmed.\n\nDelegates the decision to ``onboard.confirm_profile`` \u2014 the same function\n`nh onboard --confirm` calls \u2014 so the GUI can never confirm something the\nCLI would refuse. An unproven profile is rejected here; the remedy is to\nprove it, never to relax this.",
    "operationId": "onboarding_confirm_repo_api_onboarding_repos_confirm_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RepoConfirmRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Confirm Repo Api Onboarding Repos Confirm Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/history/extract": {
   "post": {
    "summary": "Onboarding History Extract",
    "description": "Count extractable transcripts across every available source (the IDE\ntranscript extractor and Claude Code) plus the user's skills. Honest when a\nsource is empty \u2014 an empty source reports zero, never fabricated data.",
    "operationId": "onboarding_history_extract_api_onboarding_history_extract_post",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding History Extract Api Onboarding History Extract Post"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/history/analyze": {
   "post": {
    "summary": "Onboarding History Analyze",
    "description": "Extract transcripts \u2192 analyze for corrections \u2192 propose each into the\nhuman-confirmed learning queue (confirmed=0). Nothing becomes an active rule\nuntil confirmed \u2014 preserving the learning-queue invariant.",
    "operationId": "onboarding_history_analyze_api_onboarding_history_analyze_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/HistoryAnalyzeRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding History Analyze Api Onboarding History Analyze Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/rules/confirm": {
   "post": {
    "summary": "Onboarding Confirm Rules",
    "description": "Confirm selected proposed learnings \u2192 they become active rules. Reuses\nthe existing LearningQueue.confirm (the only path that activates a rule).",
    "operationId": "onboarding_confirm_rules_api_onboarding_rules_confirm_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ConfirmRulesRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Confirm Rules Api Onboarding Rules Confirm Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/complete": {
   "post": {
    "summary": "Onboarding Complete",
    "operationId": "onboarding_complete_api_onboarding_complete_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/OnboardingCompleteRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Complete Api Onboarding Complete Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/reset": {
   "post": {
    "summary": "Onboarding Reset",
    "description": "Show the setup wizard again. Clears `completed` and NOTHING else.\n\nThere was no way back into onboarding: `completed` was written True in one\nplace and False nowhere, so a user who blew through the eight steps (none of\nwhich gate) and landed in a wrong state \u2014 no proven repo, no projects,\nhistory never scanned \u2014 had one route, hand-editing config.yaml and\nrestarting the server. The wizard is the screen that fixes all of those and\nit removed itself.\n\nThe reset patch is deliberately one key (`completed`): repos, profiles,\nprojects, confirmed rules, docs and the persisted `team` value (config only,\nnot a wizard step \u2014 the step itself left the free-tier wizard) all survive\nthe reset itself, untouched in memory and on disk. But the wizard FORM does\nnot read any of that back: `Onboarding.jsx` starts repo, docs and project\nselections as empty React state and posts `team: null`, so if the user\nre-completes the wizard afterwards, `onboarding_complete` overwrites\n`team`/`repos`/`docs` with whatever the fresh form holds. The reset alone\nloses nothing; a full re-completion afterwards can.\n\nThe board reads this flag once, at load: the desktop's File \u2192 \"Re-run Setup\u2026\"\nresets and reloads the window; a caller hitting this endpoint on its own has\nto reload the board itself.",
    "operationId": "onboarding_reset_api_onboarding_reset_post",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Reset Api Onboarding Reset Post"
        }
       }
      }
     }
    }
   }
  },
  "/api/onboarding/docs/generate": {
   "post": {
    "summary": "Onboarding Docs Generate",
    "description": "Generate wiki docs for a repo via a bounded Agent SDK session.",
    "operationId": "onboarding_docs_generate_api_onboarding_docs_generate_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DocsGenerateRequest"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Onboarding Docs Generate Api Onboarding Docs Generate Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "AttemptOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "attempt_number": {
      "type": "integer",
      "title": "Attempt Number"
     },
     "branch_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Branch Name"
     },
     "commit_sha": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Commit Sha"
     },
     "pr_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pr Url"
     },
     "review_passed": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Review Passed"
     },
     "review_checklist": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Review Checklist"
     },
     "verifier_results": {
      "anyOf": [
       {
        "items": {},
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Verifier Results"
     },
     "test_results": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Test Results"
     },
     "ci_pipeline_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ci Pipeline Id"
     },
     "ci_pipeline_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ci Pipeline Url"
     },
     "ci_status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ci Status"
     },
     "failure_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Failure Reason"
     },
     "resume_checkpoint_lost": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Resume Checkpoint Lost"
     },
     "resume_checkpoint": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Resume Checkpoint"
     },
     "turns_used": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Turns Used"
     },
     "tokens_used": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tokens Used"
     },
     "cache_read_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cache Read Tokens"
     },
     "cache_creation_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cache Creation Tokens"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "started_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Started At"
     },
     "completed_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Completed At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "attempt_number"
    ],
    "title": "AttemptOut"
   },
   "Body_add_attachment_api_tasks__task_id__attachments_post": {
    "properties": {
     "file": {
      "type": "string",
      "contentMediaType": "application/octet-stream",
      "title": "File"
     }
    },
    "type": "object",
    "required": [
     "file"
    ],
    "title": "Body_add_attachment_api_tasks__task_id__attachments_post"
   },
   "CancelRequest": {
    "properties": {
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "type": "object",
    "title": "CancelRequest"
   },
   "ConfirmRulesRequest": {
    "properties": {
     "ids": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Ids",
      "default": []
     }
    },
    "type": "object",
    "title": "ConfirmRulesRequest"
   },
   "CreateProjectRequest": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "repo_paths": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Repo Paths",
      "default": []
     },
     "primary_repo": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Primary Repo"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "CreateProjectRequest"
   },
   "CreateTaskRequest": {
    "properties": {
     "title": {
      "type": "string",
      "title": "Title"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "repo_path": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Repo Path"
     },
     "project_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Project Id"
     },
     "kind": {
      "type": "string",
      "title": "Kind",
      "default": "feature"
     },
     "priority": {
      "type": "string",
      "title": "Priority",
      "default": "medium"
     },
     "acceptance_criteria": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Acceptance Criteria",
      "default": []
     },
     "backend": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Backend"
     },
     "source": {
      "type": "string",
      "title": "Source",
      "default": "board"
     },
     "external_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "External Id"
     },
     "base_branch": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Base Branch"
     },
     "plan_approval": {
      "type": "boolean",
      "title": "Plan Approval",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "title"
    ],
    "title": "CreateTaskRequest"
   },
   "DocsGenerateRequest": {
    "properties": {
     "repo_path": {
      "type": "string",
      "title": "Repo Path"
     }
    },
    "type": "object",
    "required": [
     "repo_path"
    ],
    "title": "DocsGenerateRequest"
   },
   "GrillStepRequest": {
    "properties": {
     "title": {
      "type": "string",
      "title": "Title"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "repo_path": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Repo Path"
     },
     "project_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Project Id"
     },
     "qa_history": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Qa History",
      "default": []
     }
    },
    "type": "object",
    "required": [
     "title"
    ],
    "title": "GrillStepRequest"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "HistoryAnalyzeRequest": {
    "properties": {
     "days": {
      "type": "integer",
      "title": "Days",
      "default": 30
     }
    },
    "type": "object",
    "title": "HistoryAnalyzeRequest"
   },
   "ImportedInfo": {
    "properties": {
     "task_id": {
      "type": "string",
      "title": "Task Id"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "count": {
      "type": "integer",
      "title": "Count",
      "default": 1
     }
    },
    "type": "object",
    "required": [
     "task_id",
     "status"
    ],
    "title": "ImportedInfo",
    "description": "SCRUM-18 \u2014 the accidental-re-import trap. A tiny board-side lookup\nattached to a browse row when the ticket already has a board task,\nmatched by (source, external_id) against the local tasks store. Never the\nfull Task shape (models.py's own TaskOut/TaskSummaryOut), no secrets."
   },
   "IntegrationSetupRequest": {
    "properties": {
     "values": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "string"
        },
        {
         "items": {
          "type": "string"
         },
         "type": "array"
        }
       ]
      },
      "type": "object",
      "title": "Values",
      "default": {}
     }
    },
    "type": "object",
    "title": "IntegrationSetupRequest",
    "description": "The onboarding \"Connect your tools\" step's payload for ONE integration:\nits non-secret settings only (bools, text, string lists).\n\n`str` is deliberately absent from the value union's scalar side except as\ntext \u2014 there is no field here that could carry a credential, because the\nserver re-checks every key against\n``integrations.assert_config_safe_field`` before writing. Secrets are\nnever posted to this route; the wizard only NAMES the ~/.no_human/.env\nvariable they belong in."
   },
   "LandedOverrideRequest": {
    "properties": {
     "sha": {
      "type": "string",
      "title": "Sha"
     },
     "justification": {
      "type": "string",
      "title": "Justification"
     },
     "base": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Base"
     }
    },
    "type": "object",
    "required": [
     "sha",
     "justification"
    ],
    "title": "LandedOverrideRequest"
   },
   "OnboardingCompleteRequest": {
    "properties": {
     "team": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Team"
     },
     "repos": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Repos",
      "default": []
     },
     "docs": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Docs",
      "default": []
     }
    },
    "type": "object",
    "title": "OnboardingCompleteRequest"
   },
   "PostReviewCommentsRequest": {
    "properties": {
     "items": {
      "anyOf": [
       {
        "items": {
         "type": "integer"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Items"
     }
    },
    "type": "object",
    "title": "PostReviewCommentsRequest"
   },
   "ProjectOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "repo_paths": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Repo Paths"
     },
     "primary_repo": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Primary Repo"
     },
     "test_layers": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Test Layers",
      "default": []
     },
     "created_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "repo_paths"
    ],
    "title": "ProjectOut"
   },
   "ReplyRequest": {
    "properties": {
     "answer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Answer"
     },
     "choose": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Choose"
     }
    },
    "type": "object",
    "title": "ReplyRequest"
   },
   "RepoConfirmRequest": {
    "properties": {
     "repo_path": {
      "type": "string",
      "title": "Repo Path"
     }
    },
    "type": "object",
    "required": [
     "repo_path"
    ],
    "title": "RepoConfirmRequest"
   },
   "RepoDetectRequest": {
    "properties": {
     "root": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Root"
     }
    },
    "type": "object",
    "title": "RepoDetectRequest"
   },
   "RepoOnboardRequest": {
    "properties": {
     "repo_path": {
      "type": "string",
      "title": "Repo Path"
     }
    },
    "type": "object",
    "required": [
     "repo_path"
    ],
    "title": "RepoOnboardRequest"
   },
   "RepoProveRequest": {
    "properties": {
     "repo_path": {
      "type": "string",
      "title": "Repo Path"
     },
     "test_cmd": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Test Cmd"
     },
     "install_cmd": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Install Cmd"
     },
     "lint_cmd": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lint Cmd"
     },
     "timeout": {
      "type": "integer",
      "title": "Timeout",
      "default": 1800
     }
    },
    "type": "object",
    "required": [
     "repo_path"
    ],
    "title": "RepoProveRequest",
    "description": "Prove a repo's commands by RUNNING them. The optional command fields are\nthe human's correction after a failed attempt; each REPLACES that kind's\nderived candidates so we prove exactly the string the human typed."
   },
   "SaveIntegrationConfigRequest": {
    "properties": {
     "fields": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Fields",
      "default": {}
     }
    },
    "type": "object",
    "title": "SaveIntegrationConfigRequest"
   },
   "ScaffoldRepoRequest": {
    "properties": {
     "parent": {
      "type": "string",
      "title": "Parent"
     },
     "name": {
      "type": "string",
      "title": "Name"
     }
    },
    "type": "object",
    "required": [
     "parent",
     "name"
    ],
    "title": "ScaffoldRepoRequest"
   },
   "SendBackRequest": {
    "properties": {
     "message": {
      "type": "string",
      "title": "Message"
     }
    },
    "type": "object",
    "required": [
     "message"
    ],
    "title": "SendBackRequest"
   },
   "ShippedRequest": {
    "properties": {
     "sha": {
      "type": "string",
      "title": "Sha"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "sha"
    ],
    "title": "ShippedRequest"
   },
   "TaskOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "claimed": {
      "type": "boolean",
      "title": "Claimed",
      "default": false
     },
     "external_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "External Id"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "kind": {
      "type": "string",
      "title": "Kind",
      "default": "feature"
     },
     "priority": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Priority"
     },
     "acceptance_criteria": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Acceptance Criteria",
      "default": []
     },
     "repo_path": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Repo Path"
     },
     "blocker": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blocker"
     },
     "context": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Context"
     },
     "parent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Parent Id"
     },
     "created_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "attempts": {
      "items": {
       "$ref": "#/components/schemas/AttemptOut"
      },
      "type": "array",
      "title": "Attempts",
      "default": []
     },
     "total_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Tokens"
     },
     "total_cache_read": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Cache Read"
     },
     "total_cache_creation": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Cache Creation"
     },
     "total_review_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Review Tokens"
     },
     "total_review_cache_creation": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Review Cache Creation"
     },
     "total_review_cache_read": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Review Cache Read"
     },
     "total_aux_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Aux Tokens"
     },
     "total_aux_cache_read": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Aux Cache Read"
     },
     "total_aux_cache_creation": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Aux Cache Creation"
     },
     "wall_seconds": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Wall Seconds"
     },
     "attempt_count": {
      "type": "integer",
      "title": "Attempt Count",
      "default": 0
     },
     "failure_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Failure Reason"
     },
     "escalation_attempts": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Escalation Attempts"
     },
     "escalation_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Escalation Tokens"
     },
     "cancelled": {
      "type": "boolean",
      "title": "Cancelled",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "id",
     "source",
     "title",
     "status"
    ],
    "title": "TaskOut"
   },
   "TaskSummaryOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "external_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "External Id"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "kind": {
      "type": "string",
      "title": "Kind",
      "default": "feature"
     },
     "priority": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Priority"
     },
     "pr_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pr Url"
     },
     "created_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created At"
     },
     "updated_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated At"
     },
     "repo_name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Repo Name"
     },
     "description_short": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description Short"
     },
     "attempt_count": {
      "type": "integer",
      "title": "Attempt Count",
      "default": 0
     },
     "last_turns": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Turns"
     },
     "blocker_question": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blocker Question"
     },
     "blocker_category": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blocker Category"
     },
     "blocker_wake_condition": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Blocker Wake Condition"
     },
     "escalation_attempts": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Escalation Attempts"
     },
     "escalation_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Escalation Tokens"
     },
     "blocker_human_stopped": {
      "type": "boolean",
      "title": "Blocker Human Stopped",
      "default": false
     },
     "last_activity": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Activity"
     },
     "backend": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Backend"
     },
     "total_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Tokens"
     },
     "total_cache_read": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Cache Read"
     },
     "total_cache_creation": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Cache Creation"
     },
     "total_review_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Review Tokens"
     },
     "total_review_cache_read": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Review Cache Read"
     },
     "total_review_cache_creation": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Review Cache Creation"
     },
     "total_aux_tokens": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Aux Tokens"
     },
     "total_aux_cache_read": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Aux Cache Read"
     },
     "total_aux_cache_creation": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Total Aux Cache Creation"
     },
     "wall_seconds": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Wall Seconds"
     },
     "parent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Parent Id"
     },
     "has_spec": {
      "type": "boolean",
      "title": "Has Spec",
      "default": false
     },
     "live_status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Live Status"
     },
     "subtask_progress": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subtask Progress"
     },
     "cancelled": {
      "type": "boolean",
      "title": "Cancelled",
      "default": false
     },
     "approved_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Approved At"
     },
     "claimed": {
      "type": "boolean",
      "title": "Claimed",
      "default": false
     },
     "pr_conflict_rounds": {
      "type": "integer",
      "title": "Pr Conflict Rounds",
      "default": 0
     },
     "max_pr_conflict_rounds": {
      "type": "integer",
      "title": "Max Pr Conflict Rounds",
      "default": 0
     },
     "lane": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Lane"
     },
     "merge_ready": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Merge Ready"
     }
    },
    "type": "object",
    "required": [
     "id",
     "source",
     "title",
     "status"
    ],
    "title": "TaskSummaryOut"
   },
   "TelemetryConsentRequest": {
    "properties": {
     "enabled": {
      "type": "boolean",
      "title": "Enabled"
     }
    },
    "type": "object",
    "required": [
     "enabled"
    ],
    "title": "TelemetryConsentRequest",
    "description": "Settings > Usage insights toggle. `enabled` is the ONLY field: the\nanonymous instance id is minted server-side on first enable \u2014 never\naccepted from the browser."
   },
   "TrackerIssueOut": {
    "properties": {
     "tracker": {
      "type": "string",
      "title": "Tracker",
      "default": "jira"
     },
     "key": {
      "type": "string",
      "title": "Key"
     },
     "summary": {
      "type": "string",
      "title": "Summary"
     },
     "status": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status"
     },
     "assignee": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assignee"
     },
     "updated": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Updated"
     },
     "url": {
      "type": "string",
      "title": "Url"
     },
     "description": {
      "type": "string",
      "title": "Description",
      "default": ""
     },
     "imported": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ImportedInfo"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "key",
     "summary",
     "url"
    ],
    "title": "TrackerIssueOut",
    "description": "One row in the Backlog page's ticket list \u2014 never the full Task shape\nthe adapters' ``normalize`` builds, and never a secret.\n\nONE shape for both trackers. The page lists Jira and Linear side by side,\nand the two rows differ in nothing a reader of this list cares about, so a\nsecond near-identical model would only be a way for them to drift."
   },
   "UpdateProjectRequest": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "repo_paths": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Repo Paths"
     },
     "primary_repo": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Primary Repo"
     },
     "test_layers": {
      "anyOf": [
       {
        "items": {
         "additionalProperties": true,
         "type": "object"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Test Layers"
     }
    },
    "type": "object",
    "title": "UpdateProjectRequest"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "_MemoryBody": {
    "properties": {
     "title": {
      "type": "string",
      "title": "Title"
     },
     "content": {
      "type": "string",
      "title": "Content"
     },
     "tags": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Tags",
      "default": []
     },
     "project": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Project"
     }
    },
    "type": "object",
    "required": [
     "title",
     "content"
    ],
    "title": "_MemoryBody"
   }
  }
 },
 "servers": [
  {
   "url": "http://127.0.0.1:8420",
   "description": "the user's own machine \u2014 nh start (local server; not a hosted service)"
  }
 ]
}