Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HTTP API

kanbanr serve runs the view daemon: a small HTTP server over the board folder that answers the monitor and any tool built on the board. It reads only — writes happen in the CLI — has no login, and binds localhost by default.

Its read routes come in two kinds:

  • Public routes are the read API, version 1. They are described by an OpenAPI 3.1 document, which the daemon also serves at GET /api/openapi.json, and they are covered by the stability promise: a route, a field or a value documented there keeps its meaning in every 1.x.
  • Internal routes are the other reads the daemon answers. They work, the CLI and the monitor use some of them, and they may change in any release. Build on them at your own risk.

Write routes, which exist only on a daemon started with --allow-writes, are part of neither.

Public routes (v1)

The project views are all under /api/projects/{project}; {code} is an item’s code, such as FEAT-001. The table is generated from the OpenAPI document, which is generated from the Rust types the routes answer with, so it cannot fall behind them.

RouteParametersAnswersWhat it is
GET /healthz—JSON HealthLiveness probe
GET /api/meta—JSON MetaWhat this daemon can do, and who an approval here would be attributed to
GET /api/openapi.json—JSON objectThis description of the public read API
GET /api/projects—JSON ProjectSummary[]The projects on the board
GET /api/projects/{project}—JSON ProjectA project: its configuration, milestones and items
GET /api/projects/{project}/charter—JSON CharterThe project’s charter: purpose, goals, scope and constraints
GET /api/projects/{project}/readiness—JSON ProjectReadinessWhat each live item is missing, and its next stages, keyed by code
GET /api/projects/{project}/features/{code}/readiness—JSON ReadinessViewWhat one item is missing, and what its next stages ask
GET /api/projects/{project}/features/{code}/diagrams—JSON ItemDiagramsThe Mermaid blocks of an item’s spec and affects_docs, with the lint’s findings
GET /api/projects/{project}/review—JSON ReviewEntry[]What is waiting for a person’s agreement, in the order to ask it
GET /api/projects/{project}/releases—JSON ReleaseReport[]The project’s releases, each with what it ships
GET /api/projects/{project}/sprints—JSON Sprint[]The project’s sprints
GET /api/projects/{project}/sprints/{sprint}—JSON SprintReportOne sprint’s report
GET /api/projects/{project}/adrs—JSON Adr[]The project’s architecture decision records
GET /api/projects/{project}/lessonsfor (optional), all (optional)JSON Lesson[]The lessons worth showing, most believed first
GET /api/projects/{project}/process—JSON ProcessStatusHow the project’s workflow stands against the process it was applied from
GET /api/projects/{project}/manual-tests—JSON ManualWaiting[]The manual tests waiting for a person: each one not yet green, with its requirement and the check to make, live work first, then finished work
GET /api/projects/{project}/gates—JSON objectThe gate each status’s moves are judged by, keyed by status: role-addressed gates resolved, the built-in rule included
GET /api/projects/{project}/releases/{version}/cut-preview—JSON CutPreview[]What cutting a release now would ship and carry over, with nothing written
GET /api/projects/{project}/gate-resultsname (optional), commit (optional)JSON GateResult[]The gate results recorded for the project, oldest first: which gate, which commit, passed or failed, who and when
GET /api/projects/{project}/decisions—JSON DecisionsViewWhere the project’s decisions are taken (FTR-028): the mode and its history, every delegation with where it stands, the decisions Claude took under one for the person to keep or undo, and what waits for a decision where
GET /api/projects/{project}/preparedstate (optional), item (optional), release (optional)JSON PreparedView[]The records Claude prepared for the person to confirm (FTR-034), newest first: each with its sources, where it stands, the person’s answer and the equivalent verdict command
GET /api/projects/{project}/releases/{version}/planstage (optional), reason (optional)JSON ReleasePlanWhat promoting a release would do, with nothing changed: the button, each step and condition, what is missing and, for the cut, what ships. The monitor reads the code repository only when started in the project folder
GET /api/projects/{project}/workflowformat=mermaidtext/plainThe workflow as a Mermaid state diagram
GET /api/projects/{project}/gantt—text/plainThe schedule as a Mermaid gantt diagram, by milestone
GET /api/projects/{project}/docs—JSON DocFolderThe project’s documentation tree
GET /api/projects/{project}/position—JSON PositionAnswerThe live position of the code repository the daemon was started in: its commit plus a hash of the uncommitted changes, and the changed paths
GET /api/projects/{project}/views/docsroot (optional), max-nodes (optional), at (optional)JSON ViewAnswerThe markdown docs under a folder, drawn at the live position or at at, with an ID that repeats while the position, the board and the question repeat; an ID only when the answer is exact
GET /api/projects/{project}/docs/contentpathtext/markdownA document’s text
GET /api/projects/{project}/docs/rawpaththe file’s bytesA documentation file’s bytes, such as an image
GET /api/projects/{project}/activityref (optional), ongoing (optional), limit (optional)JSON Activity[]Recent changes to the project, newest first
GET /api/projects/{project}/features/{code}/exportformat=md|json (optional)JSON FeatureExport, or text/markdownOne item, as Markdown, or as JSON with ?format=json
GET /api/portfolio—JSON PortfolioViewThe workspace: its programs and their projects
GET /api/portfolio/rollups—JSON RollupReportProgress rolled up by program and project
GET /api/portfolio/board—JSON BoardReportEvery project’s items on one board, in normalized lanes
GET /api/projects/{project}/events—text/event-streamServer-sent events: changed whenever this project changes
GET /api/events—text/event-streamServer-sent events: changed whenever anything on the board changes

Versioning

Version 1 is the paths in use today, under /api/.... Additions — a new route, a new field, a new value where the document lists the values — come in minor releases and do not change the version: a client must ignore fields it does not know. A change that would break a client is published as a new version under /api/v2/..., with v1 still served for a deprecation period, as the stability policy describes. info.version in the document names the version it describes.

Errors

A failed request answers with a status and a one-line, plain-text reason (text/plain; charset=utf-8):

StatusWhen
400The request is malformed: a missing or invalid parameter (including a query parameter the route does not take), an at that is not a position, or an unsupported format.
404No such project, item, sprint or document — or no route answers the path.
409The board was written by a newer kanbanr than the daemon. Upgrade the binary and restart kanbanr serve. Or, for a position or view read, no checkout here holds the position asked for: the body reads position <wanted> is not here: this checkout is at <position> (or … no checkout on this machine). The CLI exits 6 for the same case and with --json prints {"error":"position-unavailable","wanted":…,"available":[{repo,commit,dirty}]}.
500The board could not be read.

A GET of a path under /api that no route answers is a 404; releases before the read API was published answered 400, “unsupported operation”. Any other method on a read route is a 405.

Live updates

GET /api/events and GET /api/projects/{project}/events are server-sent event streams (text/event-stream). Each event is changed, and its data is the id of the project whose files changed, or * for a change to the board as a whole (a project added or removed). The project stream sends only that project’s events and *. The daemon sends a keep-alive comment now and then; a client re-reads what it shows when an event arrives.

CORS and access

The daemon sends no cross-origin headers, so a page from another origin cannot read the API or its SSE streams. It answers only for the loopback names, its bound address and the hosts in KANBANR_ALLOWED_HOSTS, and a write needs the token its own page was given at this start. Anyone who can reach the daemon with an accepted host can read the board. A write from a page behind a TLS proxy is accepted only when its origin is named in KANBANR_ALLOWED_ORIGINS. See Hosting the monitor elsewhere.

Internal routes

Served, not covered by the contract, and free to change: the doctor (/api/doctor, /api/projects/{project}/doctor), query (/api/query, /api/projects/{project}/query), the dependency views (/ready, /blocked, /graph, /critical-path, /features/{code}/impact, and their portfolio-wide forms), the portfolio Gantt (/api/gantt), trace and Zachman coverage, the retrospective and report, the issue mirror’s settings, the CLAUDE.md block, the process library (/api/processes), the project-wide export (/api/projects/{project}/export), /git/model, /git/doctor, /git/tidy (GET lists the merged branches that can go; POST deletes them locally; DEF-051), /config/method, the guard rails (/api/projects/{project}/guards) and the agent scopes (/api/projects/{project}/scopes, /scopes/{id}, /scopes/{id}/brief in Markdown, and /scopes/drift, which reads the code repository; FEAT-214). Each answers JSON, except the DOT graph (?format=dot) and the Markdown project export, which are text.

Writes happen in the CLI (dispatch)

All mutations go through kanbanr-core::dispatch from the CLI (and the same (method, path, body) shapes the daemon would read): create/edit projects, features (never deletable), tasks, todo-lists, milestones, config, docs — plus POST /projects/:p/batch for a bundle in one commit. Each write appends to the activity log and commits the data repo. The batch body is { "operations": [ { "op": "...", ... } ] } with op types feature.add, feature.edit, feature.move, milestone.add, todo.add, task.add, task.state, doc.folder, doc.write; created items may carry a ref alias later ops reference; the first failure names its index.

A daemon started with --allow-writes takes the same writes over HTTP, under /api/write/..., for the monitor’s approval and release actions. Those routes are not part of the read API.

A verdict route (approve, ratify, unapprove, sign-off and its withdrawal, accepting or rejecting a decision, promote, cut, patch-from-tag) records where it was taken. The daemon stamps monitor itself and ignores an origin in the request. When the same approval, ratification or sign-off repeats the latest one on text that has not changed, nothing is recorded, no activity entry, event or commit is made, and the answer is the item with an already_recorded object: what, by, at, origin and a sentence saying who recorded it first, when and from where. A sign-off repeated with a new note or doc is recorded. A ratification repeated while an override Claude made waits for one is recorded, not answered as already_recorded. A decision, promotion or cut asked for a second time is refused as before, and the refusal now names who did it first.

The OpenAPI document

The document is generated, never edited by hand:

cargo run -p kanbanr-core --features schema --example openapi          # write it
cargo run -p kanbanr-core --features schema --example openapi -- --check  # CI: fail if stale

It is committed as docs/src/reference/openapi.json, and the daemon serves those same bytes. A contract test starts a daemon on a fixture board and checks every public route against it: the status, the media type, and that each JSON body validates against its schema.

openapi.json (v1)
{
  "components": {
    "responses": {
      "E400": {
        "content": {
          "text/plain; charset=utf-8": {
            "schema": {
              "type": "string"
            }
          }
        },
        "description": "The request is malformed: a missing or invalid parameter, or an unsupported format."
      },
      "E404": {
        "content": {
          "text/plain; charset=utf-8": {
            "schema": {
              "type": "string"
            }
          }
        },
        "description": "No such project, item, sprint or document."
      },
      "E409": {
        "content": {
          "text/plain; charset=utf-8": {
            "schema": {
              "type": "string"
            }
          }
        },
        "description": "The board was written by a newer kanbanr than this daemon; upgrade it. Or, for a view or position read, no checkout here holds the position asked for: the body names the position the checkout does hold."
      },
      "E500": {
        "content": {
          "text/plain; charset=utf-8": {
            "schema": {
              "type": "string"
            }
          }
        },
        "description": "The board could not be read."
      }
    },
    "schemas": {
      "Action": {
        "description": "Something that happens when an item enters a status.",
        "oneOf": [
          {
            "const": "branch",
            "description": "`kanbanr start` creates the item's branch here (where the project is a git repository).",
            "type": "string"
          }
        ]
      },
      "Activity": {
        "properties": {
          "actor": {
            "description": "Who made the change (the commit identity name).",
            "type": "string"
          },
          "by_agent": {
            "$ref": "#/components/schemas/ByAgent",
            "description": "Made under an agent scope (FEAT-214): the person, by the agent for its item."
          },
          "item": {
            "description": "The work item (feature code) this change touched, when applicable — enables per-item and\nper-kind activity streams. Serialized as `item`.",
            "type": "string"
          },
          "message": {
            "description": "A short human description of the change.",
            "type": "string"
          },
          "origin": {
            "description": "Where a verdict was taken (DEF-028); empty for any other change.",
            "type": "string"
          },
          "time": {
            "description": "RFC3339 timestamp.",
            "type": "string"
          }
        },
        "required": [
          "time",
          "actor",
          "message"
        ],
        "type": "object"
      },
      "Adr": {
        "additionalProperties": true,
        "description": "An architecture decision record: front-matter plus the prose it belongs to.",
        "properties": {
          "affects": {
            "description": "Items resting on this decision.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "body": {
            "description": "Everything below the front-matter.",
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "decided": {
            "description": "When the decider accepted or rejected it (FEAT-153). `date` is when it was proposed.",
            "type": "string"
          },
          "decided_origin": {
            "description": "Where the verdict was taken (DEF-028): `monitor`, `conversation`, `terminal` or `delegated`.",
            "type": "string"
          },
          "deciders": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "driven_by": {
            "description": "The requirements that forced it, usually quality ones: `FEAT-046/R-2`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "default": "",
            "description": "`ADR-0003`.",
            "type": "string"
          },
          "layer": {
            "description": "conceptual | logical | physical.",
            "type": "string"
          },
          "missing": {
            "description": "The scaffolded sections it leaves unanswered, as `list` reports them — so the Review page\ncan say why Accept is refused without a second copy of the rule (FEAT-153). Never stored.",
            "items": {
              "type": "string"
            },
            "readOnly": true,
            "type": "array"
          },
          "path": {
            "description": "Where it lives in the doc tree.",
            "type": "string"
          },
          "quality": {
            "description": "ISO/IEC 25010 characteristics at stake — the shared vocabulary with NFRs.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "reason": {
            "description": "Why it was rejected: a rejected decision is still a record, and its reason is the record.",
            "type": "string"
          },
          "status": {
            "default": "",
            "description": "proposed | accepted | rejected | superseded.",
            "type": "string"
          },
          "superseded_by": {
            "description": "Written by `adr supersede`, never by hand.",
            "type": "string"
          },
          "supersedes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "description": "The document's first heading.",
            "type": "string"
          },
          "trade_offs": {
            "description": "The machine-readable summary of the Consequences prose.",
            "items": {
              "$ref": "#/components/schemas/TradeOff"
            },
            "type": "array"
          },
          "zachman": {
            "description": "Which Zachman columns it answers.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "type": "object"
      },
      "AgainOffer": {
        "description": "Entering the stage the release is at again, when that would redo something (DEF-057): what the\nsecond button says, what it would do, and whether it can go. Derived, never stored.",
        "properties": {
          "button": {
            "description": "What the button says: the Again plan's `button`, \"Promote to candidate again\".",
            "type": "string"
          },
          "does": {
            "description": "What it would do, one sentence per step that runs: \"commits the version 0.1.1 to release/v0.1.1\".",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "missing": {
            "description": "What stands in the way, each as what to do about it (the Again plan's `missing`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ready": {
            "type": "boolean"
          },
          "stage": {
            "description": "The stage entered again: `plan.from`.",
            "type": "string"
          }
        },
        "required": [
          "stage",
          "button",
          "does",
          "ready",
          "missing"
        ],
        "type": "object"
      },
      "Answer": {
        "description": "What the person answered.",
        "enum": [
          "confirmed",
          "rejected"
        ],
        "type": "string"
      },
      "Approval": {
        "additionalProperties": true,
        "properties": {
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "delegation": {
            "description": "The delegation a record was taken under, such as `DLG-001`, when `origin` is `delegated`\n(FTR-028). Absent otherwise; an older kanbanr keeps it in `extra`.",
            "type": "string"
          },
          "origin": {
            "description": "Where it was taken: `monitor`, `conversation`, `terminal` or `delegated` (DEF-028). Absent on a\nrecord written before origin existed, which reads as unknown; kept as a string so a newer\nkanbanr's value survives.",
            "type": "string"
          },
          "parts": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "A hash of each part of the definition it covered (FTR-018), keyed as\n[`FeatureDefinition::part_revs`]. Empty on a record an older kanbanr wrote: such a record is\nno baseline, and any change to the definition lapses it.",
            "type": "object"
          },
          "rev": {
            "type": "string"
          }
        },
        "required": [
          "by",
          "at",
          "rev"
        ],
        "type": "object"
      },
      "ApprovalEvent": {
        "additionalProperties": true,
        "description": "Agreement to a definition, pinned to its content (FEAT-048).\n\n`rev` is a hash of the definition as approved. If the definition changes afterwards the hash no\nlonger matches and the approval has **lapsed** — so scope cannot drift silently past a \"yes\",\nwhich is exactly how work gets built and then rejected.\nOne agreement, or one withdrawal of it (FEAT-069). Append-only: an approval that was given and\nlater taken back is more informative than no record at all, and the charter constraint says raw\ndata is never discarded.",
        "properties": {
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "delegation": {
            "description": "The delegation a record was taken under, such as `DLG-001`, when `origin` is `delegated`\n(FTR-028). Absent otherwise; an older kanbanr keeps it in `extra`.",
            "type": "string"
          },
          "origin": {
            "description": "Where it was taken: `monitor`, `conversation`, `terminal` or `delegated` (DEF-028). Absent on a\nrecord written before origin existed, which reads as unknown; kept as a string so a newer\nkanbanr's value survives.",
            "type": "string"
          },
          "reason": {
            "description": "Why it was withdrawn. An agreement needs no reason; taking one back does.",
            "type": "string"
          },
          "rev": {
            "description": "The definition content this verdict was about.",
            "type": "string"
          },
          "status": {
            "description": "The status the item was in when the verdict was given (FEAT-114), so a definition that grows\nstage by stage leaves a readable trail: approved at Vision, again at System Design.",
            "type": "string"
          },
          "verdict": {
            "description": "`approved` | `ratified` | `withdrawn`.\n\n`ratified` is agreement given **after** the work was built, under a recorded\n`--unapproved` start (FEAT-080). It is a separate verdict from `approved` because the\nwhole point of the gate is to distinguish \"we agreed, then built\" from \"we built, then\nagreed\" — and with one verdict the record could not tell them apart. Twenty-nine items on\nthis board were reconciled that way before the distinction existed.",
            "type": "string"
          }
        },
        "required": [
          "at",
          "by",
          "verdict"
        ],
        "type": "object"
      },
      "ApprovalKind": {
        "description": "The question a review entry asks.",
        "oneOf": [
          {
            "const": "unratified",
            "description": "Finished under a recorded bypass and never agreed to (FEAT-109): ratify it.",
            "type": "string"
          },
          {
            "const": "signoff",
            "description": "Agreed; the stage it reaches next waits on a sign-off (FEAT-117).",
            "type": "string"
          },
          {
            "const": "release",
            "description": "Agreed, and nothing to sign: which release it ships in (FEAT-185).",
            "type": "string"
          },
          {
            "const": "missing",
            "description": "Defined, never approved.",
            "type": "string"
          },
          {
            "const": "lapsed",
            "description": "Approved, then the definition changed.",
            "type": "string"
          },
          {
            "const": "added",
            "description": "Approved, then the definition gained parts that now need a decision (FTR-018): the item is\nat or past its build stage, or its next stage would refuse the additions.",
            "type": "string"
          },
          {
            "const": "spec_changed",
            "description": "The spec a sign-off pinned changed after it was given, and the item has passed the gate\nthat asks for it (FTR-023).",
            "type": "string"
          }
        ]
      },
      "BoardCard": {
        "description": "A single feature as it appears on the cross-project board.",
        "properties": {
          "assignee": {
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": "string"
          },
          "disposition": {
            "$ref": "#/components/schemas/Disposition"
          },
          "milestone": {
            "type": "string"
          },
          "project": {
            "type": "string"
          },
          "status": {
            "description": "The feature's native (per-project) status — kept for display, since lanes are normalized.",
            "type": "string"
          },
          "tasks_done": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "tasks_total": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "team": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "project",
          "code",
          "title",
          "status",
          "milestone",
          "assignee",
          "team",
          "tasks_done",
          "tasks_total",
          "disposition"
        ],
        "type": "object"
      },
      "BoardLane": {
        "description": "One normalized lane plus its cards (across all projects).",
        "properties": {
          "cards": {
            "items": {
              "$ref": "#/components/schemas/BoardCard"
            },
            "type": "array"
          },
          "disposition": {
            "$ref": "#/components/schemas/Disposition"
          }
        },
        "required": [
          "disposition",
          "cards"
        ],
        "type": "object"
      },
      "BoardReport": {
        "description": "The cross-project board: every feature in the portfolio grouped into the normalized lanes\n{not-started, in-progress, done}. Robust to differing per-project workflows because grouping is\nderived from each project's own config (Completed-name / no-op) + task activity, not a shared\nstatus vocabulary.",
        "properties": {
          "lanes": {
            "items": {
              "$ref": "#/components/schemas/BoardLane"
            },
            "type": "array"
          }
        },
        "required": [
          "lanes"
        ],
        "type": "object"
      },
      "BoardWriter": {
        "description": "The board's writer record, as the monitor shows it (FTR-036).",
        "properties": {
          "at": {
            "type": "string"
          },
          "commit": {
            "type": "string"
          },
          "dirty": {
            "description": "The writer was built from a modified tree.",
            "type": "boolean"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "version",
          "commit",
          "at",
          "dirty"
        ],
        "type": "object"
      },
      "BurndownDay": {
        "description": "One day of a burndown: what was still to do at the end of it.",
        "properties": {
          "date": {
            "type": "string"
          },
          "remaining": {
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "date",
          "remaining"
        ],
        "type": "object"
      },
      "ByAgent": {
        "description": "Who a write under a scope was made by: the person, by the agent for the item. Recorded on the\nactivity entry and the event.",
        "properties": {
          "item": {
            "description": "The item the scope is for.",
            "type": "string"
          },
          "role": {
            "description": "`design` or `build`.",
            "type": "string"
          },
          "scope": {
            "description": "The scope it was made under, `SC-007`.",
            "type": "string"
          }
        },
        "required": [
          "scope",
          "role",
          "item"
        ],
        "type": "object"
      },
      "Cadence": {
        "additionalProperties": true,
        "description": "A project's rhythm (FEAT-121): whether it has sprints and releases, and their defaults.",
        "properties": {
          "commit_gates": {
            "description": "The gates (`ci`, `local`, ...) a release stage needing `gate_passed` requires a passed\nresult of for the release tip (FTR-002). Empty by default.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "gate_docs": {
            "description": "The paths that count as documentation: a recorded pass of a commit gate carries across a\nchange that touches only these (DEF-031). Each entry is a directory prefix ending in `/`, a\nsuffix starting `*` (`*.md`) or an exact path. Unset: [`DEFAULT_GATE_DOCS`]; empty: nothing\ncounts as documentation.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "git_model": {
            "description": "Branching follows the derived git model (FEAT-189): where `start` branches, sprint\nbranches, and lines of integration taking merges only. Off by default, so no board changes.",
            "type": "boolean"
          },
          "has_ci": {
            "description": "The project has CI, so the recommended `tag` stage also requires a passed `ci` result for\nthe release tip (FTR-020). Off by default.",
            "type": "boolean"
          },
          "integration_branch": {
            "description": "The branch a release branch is made from. Unset: the code repository's default branch.",
            "type": "string"
          },
          "main_branch": {
            "description": "The branch production is fast-forwarded onto. Unset: the code repository's default branch.",
            "type": "string"
          },
          "release": {
            "description": "How often a release is cut: `per_sprint`, `every_n` sprints, or `on_demand`.",
            "type": "string"
          },
          "release_gates": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ReleaseGate"
            },
            "description": "Each release stage's conditions and entry actions, keyed by stage name (FEAT-212). A stage\nnot named here takes the default: read them through [`Cadence::effective_release_gates`].",
            "type": "object"
          },
          "release_prepare": {
            "$ref": "#/components/schemas/ReleasePrepare",
            "description": "What the `prepare` action writes onto `release/<V>` (FEAT-212). Empty by default."
          },
          "release_stages": {
            "description": "The environments a release moves through, in order (FEAT-183). The last one is the cut.\nEmpty means [`DEFAULT_RELEASE_STAGES`]; read it through [`Cadence::stages`].",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "releases": {
            "default": false,
            "type": "boolean"
          },
          "sprint_length_days": {
            "description": "The length `sprint add` uses when none is given.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "sprints": {
            "default": false,
            "type": "boolean"
          },
          "tag_gate": {
            "description": "The commit gate whose result judges a release's tag (FTR-026). Unset: the first of\n`commit_gates`. A result counts only when recorded after the tag was made.",
            "type": "string"
          }
        },
        "required": [
          "sprints",
          "releases"
        ],
        "type": "object"
      },
      "CardReadiness": {
        "description": "One card's readiness: its gaps, and its next stages.",
        "properties": {
          "gaps": {
            "items": {
              "$ref": "#/components/schemas/Gap"
            },
            "type": "array"
          },
          "next": {
            "items": {
              "$ref": "#/components/schemas/NextStage"
            },
            "type": "array"
          }
        },
        "required": [
          "gaps",
          "next"
        ],
        "type": "object"
      },
      "ChangedPath": {
        "description": "One uncommitted path: its repository-form blob id (what `git add` would store), absent for a\ndeleted path.",
        "properties": {
          "blob": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "type": "object"
      },
      "Charter": {
        "additionalProperties": true,
        "description": "The reasoning root of a project.",
        "properties": {
          "adopted_at": {
            "description": "When the charter was first written. Gap reporting ignores items created before this, so\nadopting the method never floods the report with pre-existing work.",
            "type": "string"
          },
          "constraints": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "goals": {
            "default": [],
            "description": "Outcomes this project commits to. Work items link these by id.",
            "items": {
              "$ref": "#/components/schemas/Goal"
            },
            "type": "array"
          },
          "non_goals": {
            "description": "What this project deliberately will not do — often the most useful section.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "purpose": {
            "default": "",
            "description": "Why the project exists — the problem or opportunity.",
            "type": "string"
          },
          "stakeholders": {
            "items": {
              "$ref": "#/components/schemas/Stakeholder"
            },
            "type": "array"
          },
          "vision": {
            "description": "Optional one-line statement of the desired end state.",
            "type": "string"
          }
        },
        "required": [
          "purpose",
          "goals"
        ],
        "type": "object"
      },
      "Check": {
        "description": "A condition an item can be checked against. The vocabulary is closed on purpose: a workflow can\nonly require what kanbanr knows how to evaluate from the board.",
        "oneOf": [
          {
            "const": "definition",
            "description": "The item has a definition at all.",
            "type": "string"
          },
          {
            "const": "statement",
            "description": "A one-sentence statement: what, for whom, why.",
            "type": "string"
          },
          {
            "const": "zachman",
            "description": "All six Zachman dimensions answered.",
            "type": "string"
          },
          {
            "const": "goals",
            "description": "Linked to at least one charter goal.",
            "type": "string"
          },
          {
            "const": "goals_known",
            "description": "Every linked goal exists in the charter (needs the charter; an error, not a warning).",
            "type": "string"
          },
          {
            "const": "approved",
            "description": "Agreement is current: approved, or ratified after the fact.",
            "type": "string"
          },
          {
            "const": "bypass",
            "description": "A recorded bypass has been answered (approved or ratified).",
            "type": "string"
          },
          {
            "const": "requirements",
            "description": "At least one requirement.",
            "type": "string"
          },
          {
            "const": "ears",
            "description": "Every requirement is in EARS form.",
            "type": "string"
          },
          {
            "const": "tests_named",
            "description": "Every requirement names a test.",
            "type": "string"
          },
          {
            "const": "tests_green",
            "description": "Every requirement has a green test.",
            "type": "string"
          },
          {
            "const": "quality",
            "description": "Quality requirements carry a valid ISO 25010 tag and a scenario whose measure names its test.",
            "type": "string"
          },
          {
            "const": "small",
            "description": "INVEST \"Small\": not estimated above three days.",
            "type": "string"
          },
          {
            "const": "estimated",
            "description": "Estimated in the project's unit — story points or days (FEAT-121). A Definition of Ready\nusually asks for it.",
            "type": "string"
          },
          {
            "const": "in_sprint",
            "description": "Planned into the project's active sprint (FEAT-119).",
            "type": "string"
          },
          {
            "const": "in_release",
            "description": "Planned into a release (FEAT-120).",
            "type": "string"
          },
          {
            "const": "signoff",
            "description": "A named sign-off is recorded against the current definition. Asked for through a gate's\n`signoffs: [name]`, never listed on its own — it needs the name.",
            "type": "string"
          },
          {
            "const": "spec_sections",
            "description": "The spec has each named section, with content (FEAT-179). A design stage asks for the\ndesign itself, not a promise of one: `{spec_sections: [Design]}`.",
            "type": "string"
          },
          {
            "const": "docs_updated",
            "description": "Every doc the item declares in `affects_docs`, and every board doc its Design links under\n`Affects docs` (except a line marked `unchanged`), has changed since it entered its current\nstage (FEAT-180, DEF-047) — the design was folded into the docs it said it would change.",
            "type": "string"
          },
          {
            "const": "diagrams_valid",
            "description": "Every Mermaid diagram in the spec and in each `affects_docs` doc passes the diagram lint\n(FEAT-200), judged when the item moves, never cached.",
            "type": "string"
          },
          {
            "const": "docs_cover",
            "description": "The item is covered by the project's coverage rules (FEAT-197), judged as if it were already\nin the stage it is entering; `{docs_cover: [id]}` asks for only those rules.",
            "type": "string"
          }
        ]
      },
      "Checked": {
        "additionalProperties": true,
        "description": "One flagged text and how it was settled.",
        "properties": {
          "at": {
            "description": "When it was settled (RFC3339).",
            "type": "string"
          },
          "by": {
            "description": "Who settled it: `Claude` for a settlement, the signer for a check sent with the request (DEF-039).",
            "type": "string"
          },
          "correction": {
            "description": "The code of the filed correction, when the outcome is `corrected`.",
            "type": "string"
          },
          "edits": {
            "description": "The shas of the edits made to the text while it was flagged, which the check rested on\n(DEF-050); an empty sha is an edit not yet committed.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "origin": {
            "description": "Where it was settled.",
            "type": "string"
          },
          "outcome": {
            "$ref": "#/components/schemas/Outcome"
          },
          "prepared": {
            "description": "The id of the `text-check` prepared record it came from.",
            "type": "string"
          },
          "rev": {
            "description": "The newest commit of the change it was checked against.",
            "type": "string"
          },
          "target": {
            "description": "`doc:<path>`, `adr:<id>` or `item:<CODE>`.",
            "type": "string"
          },
          "text_changed_at": {
            "description": "The text's last change when it was checked.",
            "type": "string"
          },
          "why": {
            "description": "Why the text is still right, for `confirmed`.",
            "type": "string"
          }
        },
        "required": [
          "target",
          "outcome"
        ],
        "type": "object"
      },
      "CodeRepository": {
        "additionalProperties": true,
        "description": "The code repository a project tracks (DEF-053): named and linked from the board README.",
        "properties": {
          "private": {
            "description": "The person said the repository is private: the README names it and never links it.",
            "type": "boolean"
          },
          "url": {
            "description": "The git remote URL as recorded: `git@host:o/r.git`, `https://host/o/r.git`, or a path.",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "CodesConfig": {
        "additionalProperties": true,
        "description": "Which prefix an item's code gets from its kind (FEAT-217). Absent: every item is `FEAT-`, as\nbefore, and absent stays absent on disk. Kinds sharing a prefix share its counter.",
        "properties": {
          "default": {
            "description": "The prefix of a kind with no entry; absent means `FEAT`.",
            "type": "string"
          },
          "kinds": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Kind (lowercase) to prefix.",
            "type": "object"
          }
        },
        "type": "object"
      },
      "CommitLine": {
        "description": "One commit, as a list shows it.",
        "properties": {
          "sha": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        },
        "required": [
          "sha",
          "subject"
        ],
        "type": "object"
      },
      "CommitRef": {
        "description": "A commit that changed a flagged name.",
        "properties": {
          "at": {
            "type": "string"
          },
          "item": {
            "type": "string"
          },
          "names": {
            "description": "The names this commit changed that the text holds.",
            "items": {
              "$ref": "#/components/schemas/Name"
            },
            "type": "array"
          },
          "sha": {
            "type": "string"
          }
        },
        "required": [
          "sha",
          "at",
          "item",
          "names"
        ],
        "type": "object"
      },
      "Condition": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Check"
          },
          {
            "properties": {
              "zachman": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "zachman"
            ],
            "type": "object"
          },
          {
            "properties": {
              "spec_sections": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "spec_sections"
            ],
            "type": "object"
          },
          {
            "description": "The coverage check narrowed to some of the project's rules (FEAT-197).",
            "properties": {
              "docs_cover": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "docs_cover"
            ],
            "type": "object"
          }
        ],
        "description": "One condition a gate can name: a check, or the Zachman check narrowed to some columns\n(`{zachman: [what, who, why]}`), which is how a process asks for the six dimensions a stage at a\ntime rather than all at once."
      },
      "Counts": {
        "description": "Feature-completion counts + a derived percentage. Completion is **status-aware**: a feature in a\nterminal status (Completed / no-op) counts as fully done even if it tracks no tasks (many\nfeatures are completed by a status move, not by checking off tasks); a non-terminal feature with\ntasks gets partial credit (`done/total`); otherwise it's 0. `percent` is the mean per-feature\ncompletion across the group (rounded), or `0` when there are no features. `tasks_*` are retained\nfor display (how many checklist items exist/are done) but no longer drive the percentage.",
        "properties": {
          "features": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "percent": {
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "tasks_done": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "tasks_total": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "features",
          "tasks_total",
          "tasks_done",
          "percent"
        ],
        "type": "object"
      },
      "CoverageRule": {
        "additionalProperties": true,
        "description": "One coverage rule, as a project's config holds it under `coverage:`.",
        "properties": {
          "description": {
            "type": "string"
          },
          "every": {
            "$ref": "#/components/schemas/Every",
            "default": "item",
            "description": "What the subjects are; absent, items."
          },
          "except": {
            "description": "Subjects grandfathered out: item codes, ADR ids or doc paths.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "from": {
            "description": "Items only: this stage or later (a status, or `\"@<role>\"`).",
            "type": "string"
          },
          "id": {
            "description": "`^[a-z0-9][a-z0-9-]*$`, unique in the project; what `{docs_cover: [id]}` names.",
            "type": "string"
          },
          "in": {
            "description": "Items only: exactly these stages (excludes `from`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kinds": {
            "description": "Items only: only these kinds (an item with no kind is a `feature`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "lists": {
            "description": "Items only, instead of `referenced_from`: the doc every subject lists in `affects_docs`.",
            "type": "string"
          },
          "referenced_from": {
            "description": "The doc, or a folder ending `/` (any doc under it), a subject must be referenced from.",
            "type": "string"
          },
          "under": {
            "description": "Docs only, required: the folder whose docs are the subjects.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "every"
        ],
        "type": "object"
      },
      "CutPreview": {
        "description": "What a cut would do with one planned item, worked out without writing anything (FEAT-183).",
        "properties": {
          "code": {
            "type": "string"
          },
          "ships": {
            "description": "It ships; otherwise it is carried over, for `why`.",
            "type": "boolean"
          },
          "to": {
            "description": "The end status it would move to, when it is not already at one.",
            "type": "string"
          },
          "why": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "ships"
        ],
        "type": "object"
      },
      "DecisionsView": {
        "description": "`GET /projects/{p}/decisions`: the mode and its history, every delegation, the delegated\ndecisions to review, and what waits for a decision where.",
        "properties": {
          "delegations": {
            "items": {
              "$ref": "#/components/schemas/DelegationView"
            },
            "type": "array"
          },
          "mode": {
            "$ref": "#/components/schemas/Mode"
          },
          "modes": {
            "items": {
              "$ref": "#/components/schemas/ModeChange"
            },
            "type": "array"
          },
          "to_review": {
            "items": {
              "$ref": "#/components/schemas/DelegatedDecision"
            },
            "type": "array"
          },
          "waiting": {
            "items": {
              "$ref": "#/components/schemas/Waiting"
            },
            "type": "array"
          }
        },
        "required": [
          "mode",
          "modes",
          "delegations",
          "to_review",
          "waiting"
        ],
        "type": "object"
      },
      "Defect": {
        "additionalProperties": true,
        "description": "What a defect cost and where it came from (FEAT-053).\n\n`escaped` is the field that earns its keep: a defect found after the work was called done is a\ndifferent animal from one caught during it, and the ratio between them is the one quality\nnumber a board can honestly produce.",
        "properties": {
          "escaped": {
            "default": false,
            "description": "Found after the work was called done.",
            "type": "boolean"
          },
          "fixed_by": {
            "description": "The commit or test that proves it is fixed.",
            "type": "string"
          },
          "found_in": {
            "description": "Where it was found: a status, an environment, or \"production\".",
            "type": "string"
          },
          "introduced_by": {
            "description": "The item or commit that introduced it. A defect caused by a fix points at that fix, which\nis how fix-induced chains become visible.",
            "type": "string"
          },
          "root_cause": {
            "type": "string"
          },
          "severity": {
            "description": "Free text, like `kind` and `priority`: low | medium | high | critical.",
            "type": "string"
          }
        },
        "required": [
          "escaped"
        ],
        "type": "object"
      },
      "DelegatedDecision": {
        "description": "A delegated decision waiting for the person to keep or undo it.",
        "properties": {
          "at": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "decision": {
            "description": "`<CODE>/<approve|ratify|signoff>/<name or ->/<record at>`.",
            "type": "string"
          },
          "delegation": {
            "type": "string"
          },
          "signoff": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "undo_route": {
            "type": "string"
          },
          "verdict": {
            "type": "string"
          }
        },
        "required": [
          "decision",
          "code",
          "title",
          "verdict",
          "delegation",
          "at",
          "status",
          "undo_route"
        ],
        "type": "object"
      },
      "DelegationState": {
        "description": "What a delegation is in, at a moment.",
        "enum": [
          "proposed",
          "granted",
          "ended",
          "revoked"
        ],
        "type": "string"
      },
      "DelegationView": {
        "additionalProperties": true,
        "description": "A delegation with where it stands now.",
        "properties": {
          "all": {
            "description": "Names no items, kinds or milestone on purpose: every item.",
            "type": "boolean"
          },
          "granted": {
            "$ref": "#/components/schemas/Stamp"
          },
          "id": {
            "type": "string"
          },
          "in_force": {
            "description": "Granted, not ended and not revoked: Claude may act under it.",
            "type": "boolean"
          },
          "items": {
            "description": "Item codes; empty is any.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kinds": {
            "description": "Item kinds; empty is any. An item with no kind is a `feature`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "milestone": {
            "description": "A milestone code; empty is any.",
            "type": "string"
          },
          "not_granted_through_kanbanr": {
            "description": "Granted, but not through kanbanr (T9): written into the file by hand, or not committed.\nClaude's verdicts under it are refused.",
            "type": "boolean"
          },
          "note": {
            "type": "string"
          },
          "permission_rules": {
            "description": "The Claude Code allow rules this delegation's verdicts need to run in auto mode (DEF-060),\nwhatever its state.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "permission_rules_checked": {
            "description": "The mode is delegated, the delegation is granted and the code repository is known, so\n`permission_rules_missing` says something.",
            "type": "boolean"
          },
          "permission_rules_missing": {
            "description": "The rules none of the project's or the user's Claude settings allows.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "proposed": {
            "$ref": "#/components/schemas/Stamp"
          },
          "rev": {
            "description": "What a grant is pinned to: [`Delegation::rev`], sent back with the grant.",
            "type": "string"
          },
          "revoked": {
            "$ref": "#/components/schemas/Stamp"
          },
          "state": {
            "$ref": "#/components/schemas/DelegationState"
          },
          "steps": {
            "description": "Statuses the item is in when the verdict is taken; empty is any.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "until": {
            "description": "RFC 3339; the delegation is in force until then.",
            "type": "string"
          },
          "verdicts": {
            "description": "`approve`, `ratify` or `signoff:<name>`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "verdicts",
          "until",
          "proposed",
          "state",
          "in_force",
          "rev"
        ],
        "type": "object"
      },
      "DiagramBlock": {
        "description": "One fenced `mermaid` block of a board file, with where it is for a link.",
        "properties": {
          "block": {
            "description": "1-based index among the file's mermaid blocks.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "doc": {
            "description": "The doc key, for a link to it; `None` for a spec.",
            "type": [
              "string",
              "null"
            ]
          },
          "file": {
            "description": "What the block is in: `\"FEAT-012 spec\"` or `\"docs/<key>\"`.",
            "type": "string"
          },
          "line": {
            "description": "The file line (1-based) of the block's first source line.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "source": {
            "description": "The diagram's source, between the fences.",
            "type": "string"
          }
        },
        "required": [
          "file",
          "doc",
          "block",
          "line",
          "source"
        ],
        "type": "object"
      },
      "DiagramFinding": {
        "description": "One problem in one diagram, located in its file.",
        "properties": {
          "block": {
            "description": "1-based index among the file's mermaid blocks.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "file": {
            "type": "string"
          },
          "line": {
            "description": "The file line (1-based) the problem is on.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "message": {
            "type": "string"
          },
          "rule": {
            "$ref": "#/components/schemas/LintRule"
          }
        },
        "required": [
          "file",
          "block",
          "line",
          "rule",
          "message"
        ],
        "type": "object"
      },
      "DiagramsConfig": {
        "additionalProperties": true,
        "description": "The unit a project estimates in.\nHow a project treats Mermaid diagrams the lint finds problems in (FEAT-200). Off by default:\na write succeeds and reports the problems as warnings, which keeps the tool low-friction. Strict:\na write carrying a problem is refused.",
        "properties": {
          "strict": {
            "default": false,
            "type": "boolean"
          }
        },
        "required": [
          "strict"
        ],
        "type": "object"
      },
      "DiffLine": {
        "description": "One line of a [`line_diff`].",
        "properties": {
          "op": {
            "$ref": "#/components/schemas/DiffOp"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "op",
          "text"
        ],
        "type": "object"
      },
      "DiffOp": {
        "description": "How a line stands in a [`line_diff`].",
        "enum": [
          "same",
          "added",
          "removed"
        ],
        "type": "string"
      },
      "Disposition": {
        "description": "A project-independent lane a feature falls into, since statuses are per-project (no shared\nvocabulary). Computed from the project config + the feature's task activity.",
        "oneOf": [
          {
            "const": "done",
            "description": "Terminal: a \"Completed\"-named status OR a no-op disposition.",
            "type": "string"
          },
          {
            "const": "in-progress",
            "description": "Active and has some task activity (at least one task, not all done).",
            "type": "string"
          },
          {
            "const": "not-started",
            "description": "Active but no task activity yet.",
            "type": "string"
          }
        ]
      },
      "DocFile": {
        "description": "A documentation file leaf.",
        "properties": {
          "path": {
            "description": "Path relative to the project docs root (forward-slashed), e.g. `design/customer/overview.md`.",
            "type": "string"
          },
          "title": {
            "description": "Display title (derived from the file name).",
            "type": "string"
          }
        },
        "required": [
          "path",
          "title"
        ],
        "type": "object"
      },
      "DocFolder": {
        "description": "A documentation folder node (renders as a tile with sub-folders + documents as links).",
        "properties": {
          "description": {
            "type": "string"
          },
          "docs": {
            "items": {
              "$ref": "#/components/schemas/DocFile"
            },
            "type": "array"
          },
          "folders": {
            "items": {
              "$ref": "#/components/schemas/DocFolder"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "description": "Path relative to the docs root (empty string for the root), forward-slashed.",
            "type": "string"
          }
        },
        "required": [
          "path",
          "name",
          "description",
          "folders",
          "docs"
        ],
        "type": "object"
      },
      "Drift": {
        "description": "How a project's workflow stands against the saved process it was applied from (FEAT-170).",
        "properties": {
          "edited": {
            "description": "The project's workflow no longer matches what was applied: someone edited it since.",
            "type": "boolean"
          },
          "gone": {
            "description": "The saved process is no longer in its library.",
            "type": "boolean"
          },
          "newer": {
            "description": "The saved process has changed since: its current version, when it has one.",
            "format": "uint32",
            "minimum": 0,
            "type": [
              "integer",
              "null"
            ]
          },
          "source": {
            "$ref": "#/components/schemas/ProcessSource",
            "description": "What the project was given."
          }
        },
        "required": [
          "source",
          "edited",
          "newer",
          "gone"
        ],
        "type": "object"
      },
      "Edit": {
        "description": "One edit to a flagged text after the change that opened the flag (DEF-050). `sha` is empty for\nan edit not yet committed.",
        "properties": {
          "at": {
            "description": "RFC 3339.",
            "type": "string"
          },
          "sha": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        },
        "required": [
          "sha",
          "at",
          "subject"
        ],
        "type": "object"
      },
      "Enforce": {
        "description": "Whether a failed gate stops the move or only reports.",
        "enum": [
          "block",
          "warn"
        ],
        "type": "string"
      },
      "EstimateUnit": {
        "enum": [
          "days",
          "points"
        ],
        "type": "string"
      },
      "Every": {
        "description": "What a rule's subjects are.",
        "oneOf": [
          {
            "const": "item",
            "description": "Items in a stage range, optionally of some kinds.",
            "type": "string"
          },
          {
            "const": "adr",
            "description": "Accepted ADRs (superseded and rejected ones are not subjects).",
            "type": "string"
          },
          {
            "const": "doc",
            "description": "Docs under a folder.",
            "type": "string"
          }
        ]
      },
      "FeatureDefinition": {
        "additionalProperties": true,
        "description": "Why a work item exists, what must be true, and how that is verified (FEAT-047).\n\nThe prose case *for* the work stays in the item's specification markdown — this block holds the\nshort, checkable parts: one-line answers, ids that link to the charter, and requirements each\ncarrying the tests that verify them. Keeping it one-line-per-field is deliberate: a structured\ncopy of the spec would rot into a second, disagreeing version of the same argument.",
        "properties": {
          "affects_docs": {
            "description": "Board docs this item changes (FEAT-180), e.g. \"architecture/data.md\". Declared at the design\nstage; `docs_updated` checks each was changed before the item moves on. Declared last, so a\nboard where it is the only key an older binary does not know reads back byte for byte.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "approval": {
            "$ref": "#/components/schemas/Approval",
            "description": "Who agreed to this definition, when, and what exactly they agreed to (FEAT-048)."
          },
          "approvals": {
            "description": "Every agreement and withdrawal, oldest first (FEAT-069). `approval` is the current one, or\nabsent when the last verdict was a withdrawal.",
            "items": {
              "$ref": "#/components/schemas/ApprovalEvent"
            },
            "type": "array"
          },
          "design_doc": {
            "description": "Optional pointer into the board's doc tree (a design note), rather than an inline diagram.",
            "type": "string"
          },
          "exempt": {
            "description": "A recorded reason this item is exempt from gap reporting. An escape hatch that is visible\nbeats one that is habitual (`--no-verify` teaches itself).",
            "type": "string"
          },
          "goals": {
            "default": [],
            "description": "Charter goal ids this item serves — the link that makes \"why\" checkable rather than prose.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "requirements": {
            "items": {
              "$ref": "#/components/schemas/Requirement"
            },
            "type": "array"
          },
          "signoffs": {
            "description": "Named agreements a stage can require (FEAT-114): \"design review held\", \"release approved\".\nAppended, never overwritten — each pinned to the definition it covered.",
            "items": {
              "$ref": "#/components/schemas/Signoff"
            },
            "type": "array"
          },
          "started_unapproved": {
            "description": "A recorded reason work started without approval. An escape hatch that leaves a trace beats\none that is silent — an unrecorded bypass just teaches itself.",
            "type": "string"
          },
          "statement": {
            "default": "",
            "description": "One sentence: what, for whom, and why.",
            "type": "string"
          },
          "zachman": {
            "$ref": "#/components/schemas/Zachman",
            "default": {
              "how": "",
              "what": "",
              "when": "",
              "where": "",
              "who": "",
              "why": ""
            },
            "description": "The six completeness dimensions, one line each."
          }
        },
        "required": [
          "statement",
          "goals",
          "zachman"
        ],
        "type": "object"
      },
      "FeatureExport": {
        "additionalProperties": true,
        "description": "An item as `GET /projects/{p}/features/{code}/export?format=json` gives it: the item, and its\nmilestone resolved.",
        "properties": {
          "assignee": {
            "default": null,
            "description": "Optional assignee (the person/agent owning this feature); free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "defect": {
            "$ref": "#/components/schemas/Defect",
            "description": "For a defect: what it cost and where it came from (FEAT-053)."
          },
          "definition": {
            "$ref": "#/components/schemas/FeatureDefinition",
            "description": "Why this item exists, what must be true, and how it is verified (FEAT-047)."
          },
          "depends_on": {
            "default": [],
            "description": "Other feature codes this one is blocked by (a cross-feature DAG; cycles are rejected).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "due": {
            "default": null,
            "description": "Optional due date (e.g. an ISO date).",
            "type": [
              "string",
              "null"
            ]
          },
          "estimate_days": {
            "default": null,
            "description": "Optional estimated effort, in days (used as the task duration for scheduling/Gantt;\ndefaults to 1 day when absent). Kept as a float so half-days etc. are expressible.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "history": {
            "description": "Every status change, appended (FEAT-053). Cycle time, time-in-status, WIP aging and rework\nare all derived from this; without it the board records where work IS but never how it got\nthere.",
            "items": {
              "$ref": "#/components/schemas/Transition"
            },
            "type": "array"
          },
          "issue": {
            "$ref": "#/components/schemas/IssueLink",
            "description": "The external issue this feature is mirrored to, if any (FEAT-043)."
          },
          "kind": {
            "default": null,
            "description": "Work kind (feature / chore / bug / refactor / docs / recurring …); free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "labels": {
            "default": [],
            "description": "Free-form labels/tags.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "milestone": {
            "description": "The milestone this feature belongs to (required).",
            "type": "string"
          },
          "milestone_detail": {
            "$ref": "#/components/schemas/Milestone"
          },
          "points": {
            "description": "Optional estimate in story points (FEAT-121). Which of the two a project plans in is its\n`estimate_unit`; absent stays absent on disk.",
            "format": "double",
            "type": "number"
          },
          "priority": {
            "default": null,
            "description": "Priority (low / medium / high …); free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "release": {
            "description": "The release this item is planned into (FEAT-120), for projects that use releases.",
            "type": "string"
          },
          "release_line": {
            "description": "Which release shipped it, or will (FTR-001). Absent without releases.",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/Source",
            "description": "Where this feature was imported from, if it was (FEAT-042)."
          },
          "specification": {
            "default": "",
            "type": "string"
          },
          "split_from": {
            "description": "The item this was sliced out of (FEAT-054). A wave grows for three reasons — a defect, a\nsplit, or newly discovered work — and only this one leaves no other trace, so a retro that\ntried to infer it would be guessing.",
            "type": "string"
          },
          "sprint": {
            "description": "The sprint this item is planned into (FEAT-119), for projects that use sprints.",
            "type": "string"
          },
          "start": {
            "default": null,
            "description": "Optional planned start date (an ISO date, e.g. \"2026-07-01\"). Used by scheduling/Gantt.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "team": {
            "default": null,
            "description": "Optional owning team; free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "todo_lists": {
            "default": [],
            "description": "Persistent todo-lists (newest-first ordering is applied by callers when displaying).",
            "items": {
              "$ref": "#/components/schemas/TodoList"
            },
            "type": "array"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "title",
          "specification",
          "status",
          "milestone",
          "kind",
          "priority",
          "start",
          "due",
          "estimate_days",
          "assignee",
          "team",
          "labels",
          "depends_on",
          "todo_lists",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "FeatureItem": {
        "additionalProperties": true,
        "description": "A feature item: the unit Claude develops. Holds the spec and its todo list.",
        "properties": {
          "assignee": {
            "default": null,
            "description": "Optional assignee (the person/agent owning this feature); free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "defect": {
            "$ref": "#/components/schemas/Defect",
            "description": "For a defect: what it cost and where it came from (FEAT-053)."
          },
          "definition": {
            "$ref": "#/components/schemas/FeatureDefinition",
            "description": "Why this item exists, what must be true, and how it is verified (FEAT-047)."
          },
          "depends_on": {
            "default": [],
            "description": "Other feature codes this one is blocked by (a cross-feature DAG; cycles are rejected).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "due": {
            "default": null,
            "description": "Optional due date (e.g. an ISO date).",
            "type": [
              "string",
              "null"
            ]
          },
          "estimate_days": {
            "default": null,
            "description": "Optional estimated effort, in days (used as the task duration for scheduling/Gantt;\ndefaults to 1 day when absent). Kept as a float so half-days etc. are expressible.",
            "format": "double",
            "type": [
              "number",
              "null"
            ]
          },
          "history": {
            "description": "Every status change, appended (FEAT-053). Cycle time, time-in-status, WIP aging and rework\nare all derived from this; without it the board records where work IS but never how it got\nthere.",
            "items": {
              "$ref": "#/components/schemas/Transition"
            },
            "type": "array"
          },
          "issue": {
            "$ref": "#/components/schemas/IssueLink",
            "description": "The external issue this feature is mirrored to, if any (FEAT-043)."
          },
          "kind": {
            "default": null,
            "description": "Work kind (feature / chore / bug / refactor / docs / recurring …); free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "labels": {
            "default": [],
            "description": "Free-form labels/tags.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "milestone": {
            "description": "The milestone this feature belongs to (required).",
            "type": "string"
          },
          "points": {
            "description": "Optional estimate in story points (FEAT-121). Which of the two a project plans in is its\n`estimate_unit`; absent stays absent on disk.",
            "format": "double",
            "type": "number"
          },
          "priority": {
            "default": null,
            "description": "Priority (low / medium / high …); free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "release": {
            "description": "The release this item is planned into (FEAT-120), for projects that use releases.",
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/Source",
            "description": "Where this feature was imported from, if it was (FEAT-042)."
          },
          "specification": {
            "default": "",
            "type": "string"
          },
          "split_from": {
            "description": "The item this was sliced out of (FEAT-054). A wave grows for three reasons — a defect, a\nsplit, or newly discovered work — and only this one leaves no other trace, so a retro that\ntried to infer it would be guessing.",
            "type": "string"
          },
          "sprint": {
            "description": "The sprint this item is planned into (FEAT-119), for projects that use sprints.",
            "type": "string"
          },
          "start": {
            "default": null,
            "description": "Optional planned start date (an ISO date, e.g. \"2026-07-01\"). Used by scheduling/Gantt.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "team": {
            "default": null,
            "description": "Optional owning team; free text.",
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "todo_lists": {
            "default": [],
            "description": "Persistent todo-lists (newest-first ordering is applied by callers when displaying).",
            "items": {
              "$ref": "#/components/schemas/TodoList"
            },
            "type": "array"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "title",
          "specification",
          "status",
          "milestone",
          "kind",
          "priority",
          "start",
          "due",
          "estimate_days",
          "assignee",
          "team",
          "labels",
          "depends_on",
          "todo_lists",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "FieldChange": {
        "additionalProperties": true,
        "description": "One field the person changed before confirming: both values are kept.",
        "properties": {
          "confirmed": true,
          "field": {
            "type": "string"
          },
          "prepared": true
        },
        "required": [
          "field",
          "prepared",
          "confirmed"
        ],
        "type": "object"
      },
      "Flag": {
        "description": "A linked text that names something changed in the code. A flag says which text names which\nchanged name, never that the text is wrong. It stays open after the text is edited, until a\ncheck settles it (DEF-050).",
        "properties": {
          "commits": {
            "items": {
              "$ref": "#/components/schemas/CommitRef"
            },
            "type": "array"
          },
          "diff": {
            "description": "Unified diff from the text as it stood when the flag opened to the text now.",
            "type": "string"
          },
          "diff_truncated": {
            "type": "boolean"
          },
          "edits": {
            "description": "Edits to the text since the first change that opened the flag, oldest first.",
            "items": {
              "$ref": "#/components/schemas/Edit"
            },
            "type": "array"
          },
          "hits": {
            "items": {
              "$ref": "#/components/schemas/Hit"
            },
            "type": "array"
          },
          "target": {
            "$ref": "#/components/schemas/Target"
          },
          "target_changed_at": {
            "description": "When the text last changed, RFC 3339.",
            "type": "string"
          },
          "via": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "target",
          "via",
          "hits",
          "commits",
          "target_changed_at"
        ],
        "type": "object"
      },
      "Gap": {
        "description": "One thing an item is missing.",
        "properties": {
          "check": {
            "$ref": "#/components/schemas/Check"
          },
          "label": {
            "description": "Short form, for a one-line list (`[MISSING: What]`, `no goal link`).",
            "type": "string"
          },
          "level": {
            "$ref": "#/components/schemas/Level"
          },
          "message": {
            "description": "What is missing and what to do about it.",
            "type": "string"
          },
          "requirement": {
            "description": "The requirement the gap is about, for per-requirement checks.",
            "type": "string"
          }
        },
        "required": [
          "check",
          "level",
          "label",
          "message"
        ],
        "type": "object"
      },
      "Gate": {
        "additionalProperties": true,
        "description": "The entry criteria of one status. Every field is optional; an empty gate asks nothing.",
        "properties": {
          "affects_docs": {
            "description": "The docs every item entering this stage must list in `affects_docs` (FEAT-197): the move\nadds them, so the cross-cutting views are part of every fold-in and `docs_updated` checks\nthem. Travels with the process; paths are board doc paths.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "done": {
            "description": "Reaching this stage finishes an item for the cadence views — the sprint burndown, its done\ntotal, what a closing sprint carries over (FEAT-137). Scrum's Definition of Done is the Done\ncolumn, not the release that ships it, and a burndown that waited for the release dropped in\none step on release day.",
            "type": "boolean"
          },
          "enforce": {
            "$ref": "#/components/schemas/Enforce",
            "description": "`block` (the default) refuses the move; `warn` allows it and reports what `requires` lacks."
          },
          "kinds": {
            "description": "When set, the gate applies only to items of these kinds (an item with no kind is a\n`feature`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "on_enter": {
            "items": {
              "$ref": "#/components/schemas/Action"
            },
            "type": "array"
          },
          "purpose": {
            "description": "What this stage is for, in a sentence — shown to Claude and in the monitor.",
            "type": "string"
          },
          "requires": {
            "description": "Conditions that must hold to enter.",
            "items": {
              "$ref": "#/components/schemas/Condition"
            },
            "type": "array"
          },
          "roles": {
            "description": "The stage roles this status holds (FEAT-188): `design`, `build`, `integrate`, `release`. The\nmethod and git automation find their stage by role, so they behave the same in every\nprocess. Kept as names, so an unknown one is a reported problem, not a parse failure.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "signoffs": {
            "description": "Named sign-offs that must be recorded against the current definition (FEAT-114).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "warns": {
            "description": "Conditions reported, never enforced.",
            "items": {
              "$ref": "#/components/schemas/Condition"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "GateResult": {
        "properties": {
          "at": {
            "description": "RFC 3339, UTC.",
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "commit": {
            "description": "The full commit the result is about.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "origin": {
            "description": "Where it was recorded (DEF-028, FTR-034): `monitor`, `conversation` or `terminal`; empty\nfor a result recorded before kanbanr stamped one.",
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          },
          "source": {
            "description": "`person` or `local`.",
            "type": "string"
          },
          "url": {
            "description": "A link to the run, `http(s)` only.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "commit",
          "passed",
          "by",
          "at",
          "source"
        ],
        "type": "object"
      },
      "Goal": {
        "additionalProperties": true,
        "description": "An outcome the project commits to, not an output it produces.",
        "properties": {
          "horizon": {
            "type": "string"
          },
          "id": {
            "default": "",
            "description": "`G-1`, `G-2`, … Assigned on save when left blank.",
            "type": "string"
          },
          "measure": {
            "description": "How we would know it happened.",
            "type": "string"
          },
          "statement": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "statement"
        ],
        "type": "object"
      },
      "GraphEdge": {
        "properties": {
          "from": {
            "type": "string"
          },
          "kind": {
            "description": "\"holds\".",
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "kind",
          "to"
        ],
        "type": "object"
      },
      "GraphNode": {
        "properties": {
          "blob": {
            "type": "string"
          },
          "bytes": {
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "diagrams": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "description": "\"folder\" or \"doc\".",
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "kind",
          "label",
          "name",
          "path"
        ],
        "type": "object"
      },
      "Health": {
        "description": "The liveness probe's answer: `GET /healthz`.",
        "properties": {
          "status": {
            "description": "Always `ok`.",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "Hit": {
        "description": "A name a text holds, with the lines it is on (1-based).",
        "properties": {
          "lines": {
            "items": {
              "format": "uint",
              "minimum": 0,
              "type": "integer"
            },
            "type": "array"
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          }
        },
        "required": [
          "name",
          "lines"
        ],
        "type": "object"
      },
      "Identity": {
        "description": "A git identity.",
        "properties": {
          "email": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "email"
        ],
        "type": "object"
      },
      "IssueLink": {
        "additionalProperties": true,
        "description": "A link from a feature to the external issue it is mirrored to (FEAT-043).",
        "properties": {
          "number": {
            "format": "uint64",
            "minimum": 0,
            "type": "integer"
          },
          "repo": {
            "description": "`owner/repo`.",
            "type": "string"
          },
          "synced_at": {
            "type": "string"
          },
          "synced_hash": {
            "description": "Hash of the issue content kanbanr last pushed; `None` until the first push.",
            "type": "string"
          },
          "system": {
            "description": "Tracker kind; currently `github`.",
            "type": "string"
          },
          "url": {
            "default": "",
            "type": "string"
          }
        },
        "required": [
          "system",
          "repo",
          "number",
          "url"
        ],
        "type": "object"
      },
      "ItemDiagrams": {
        "description": "The diagrams of one item — every block of its spec and of each doc it names in `affects_docs` —\nwith the lint's findings (FEAT-200). The review page parses each block with Pele and keeps\nApprove disabled until all of them draw.",
        "properties": {
          "blocks": {
            "items": {
              "$ref": "#/components/schemas/DiagramBlock"
            },
            "type": "array"
          },
          "code": {
            "type": "string"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/DiagramFinding"
            },
            "type": "array"
          }
        },
        "required": [
          "code",
          "blocks",
          "findings"
        ],
        "type": "object"
      },
      "Judgement": {
        "properties": {
          "at": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "verdict": {
            "description": "`affirmed` | `contradicted`.",
            "type": "string"
          }
        },
        "required": [
          "at",
          "verdict"
        ],
        "type": "object"
      },
      "KindPath": {
        "description": "The path an item of one kind takes through a process (FTR-019): the stages it passes, what its\nfirst move asks, and the method parts that do not apply to it. A subset of the workflow's own\nstages in its own order, so no stage is invented and the board's columns do not change.",
        "properties": {
          "method_off": {
            "description": "Method parts not asked of this kind. Approvals and sign-offs the stage itself names stay.",
            "items": {
              "$ref": "#/components/schemas/Part"
            },
            "type": "array"
          },
          "requires": {
            "description": "Asked, in addition to the entered stage's gate, of the first move off the starting stage:\nwhere an item of this kind records why it exists and how it is verified.",
            "items": {
              "$ref": "#/components/schemas/Condition"
            },
            "type": "array"
          },
          "stages": {
            "description": "At least two statuses, no no-op status, none twice, in the workflow's order, the first the\ndefault state. Neighbours on the path may move to each other whatever `transitions` says.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "stages"
        ],
        "type": "object"
      },
      "Lesson": {
        "properties": {
          "at": {
            "default": "",
            "type": "string"
          },
          "confidence": {
            "default": 0.0,
            "description": "How much it was believed at `last_affirmed`. What is *reported* decays from here.",
            "format": "double",
            "type": "number"
          },
          "evidence": {
            "description": "What actually happened — the part that makes it a lesson rather than an opinion.",
            "type": "string"
          },
          "from_item": {
            "description": "The item that taught it.",
            "type": "string"
          },
          "from_retro": {
            "description": "The retrospective that promoted it.",
            "type": "string"
          },
          "goals": {
            "description": "Charter goals it bears on.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "history": {
            "description": "Every affirmation and contradiction, so the number can be explained rather than trusted.",
            "items": {
              "$ref": "#/components/schemas/Judgement"
            },
            "type": "array"
          },
          "id": {
            "default": "",
            "description": "`L-1`, `L-2`, … assigned on save.",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/LessonKind",
            "default": "pitfall"
          },
          "last_affirmed": {
            "type": "string"
          },
          "lesson": {
            "description": "The lesson itself, in one sentence a person can act on.",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/LessonStatus",
            "default": "candidate"
          },
          "tags": {
            "description": "Labels it applies to, so it can be offered to the right work.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "lesson",
          "kind",
          "at",
          "confidence",
          "status"
        ],
        "type": "object"
      },
      "LessonKind": {
        "oneOf": [
          {
            "const": "practice",
            "description": "Something that worked and is worth repeating.",
            "type": "string"
          },
          {
            "const": "pitfall",
            "description": "Something that cost us, and how to avoid it.",
            "type": "string"
          },
          {
            "const": "decision",
            "description": "A choice made once that later work should not relitigate.",
            "type": "string"
          }
        ]
      },
      "LessonStatus": {
        "oneOf": [
          {
            "const": "candidate",
            "description": "Recorded, not yet confirmed by anything else.",
            "type": "string"
          },
          {
            "const": "active",
            "description": "Confirmed at least once.",
            "type": "string"
          },
          {
            "const": "retired",
            "description": "Fell below the threshold, or was contradicted. Kept, not surfaced.",
            "type": "string"
          }
        ]
      },
      "Level": {
        "oneOf": [
          {
            "enum": [
              "warning"
            ],
            "type": "string"
          },
          {
            "const": "error",
            "description": "A broken reference, not a judgement: someone can fix it by editing a name.",
            "type": "string"
          }
        ]
      },
      "Library": {
        "description": "Where a saved process lives (FEAT-169), in the order a name is looked up.",
        "oneOf": [
          {
            "const": "board",
            "description": "`<board>/processes/`: shared with everyone who has the board, through its remote.",
            "type": "string"
          },
          {
            "const": "personal",
            "description": "`~/.kanbanr/processes/`: this user's, on any board.",
            "type": "string"
          },
          {
            "const": "builtin",
            "description": "Carried by the binary.",
            "type": "string"
          }
        ]
      },
      "LintRule": {
        "description": "What the lint found wrong.",
        "enum": [
          "empty_block",
          "unknown_type",
          "semicolon_in_text",
          "label_punctuation",
          "unbalanced_label",
          "end_as_id",
          "unbalanced_block",
          "unknown_statement"
        ],
        "type": "string"
      },
      "ManualResult": {
        "additionalProperties": true,
        "description": "One kept result.",
        "properties": {
          "at": {
            "description": "RFC 3339, UTC.",
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "checked_rev": {
            "description": "The code commit it was checked at, when known.",
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "origin": {
            "description": "`monitor` or `terminal`.",
            "type": "string"
          },
          "prepared": {
            "description": "The prepared record's id, when confirmed from one.",
            "type": "string"
          },
          "requirement": {
            "type": "string"
          },
          "state": {
            "description": "`green` or `red`.",
            "type": "string"
          },
          "test": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "requirement",
          "test",
          "state",
          "by",
          "at"
        ],
        "type": "object"
      },
      "ManualWaiting": {
        "description": "A manual test that is not green, with what a person needs to make the check.",
        "properties": {
          "checked_rev": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "last": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ManualResult"
              },
              {
                "type": "null"
              }
            ],
            "description": "The newest kept result for this test, so a failed check shows who failed it."
          },
          "requirement": {
            "type": "string"
          },
          "requirement_text": {
            "type": "string"
          },
          "state": {
            "description": "`planned` or `red`.",
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "test": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "title",
          "status",
          "requirement",
          "requirement_text",
          "test",
          "state",
          "checked_rev",
          "last"
        ],
        "type": "object"
      },
      "Meta": {
        "description": "What this daemon can do: `GET /api/meta`. The monitor asks before offering an action.",
        "properties": {
          "board_writer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BoardWriter"
              },
              {
                "type": "null"
              }
            ],
            "description": "The newest kanbanr that wrote the board, from its `writer.yaml`; null when none is recorded."
          },
          "commit": {
            "description": "The commit this daemon was built from, or `unknown`.",
            "type": "string"
          },
          "dirty": {
            "description": "Whether this daemon was built from a modified tree.",
            "type": "boolean"
          },
          "identity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Identity"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who an approval recorded here would be attributed to (FEAT-077): the board's git\nidentity. Null when there is none, and the monitor then refuses to offer the action."
          },
          "schema_version": {
            "description": "The board schema this build understands (FEAT-072).",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "version": {
            "description": "The kanbanr version this daemon runs (FTR-036).",
            "type": "string"
          },
          "writer_newer": {
            "description": "Whether that writer is newer than this daemon: the monitor then warns.",
            "type": "boolean"
          },
          "writes": {
            "description": "Whether the write routes are mounted (`serve --allow-writes`, FEAT-034).",
            "type": "boolean"
          }
        },
        "required": [
          "writes",
          "identity",
          "schema_version",
          "version",
          "commit",
          "dirty",
          "board_writer",
          "writer_newer"
        ],
        "type": "object"
      },
      "MethodChoice": {
        "description": "What a project chose. Absent on disk means never chosen: everything on.",
        "properties": {
          "chosen_at": {
            "description": "When the project last chose (RFC 3339); empty when it never has.",
            "type": "string"
          },
          "off": {
            "description": "The parts switched off, sorted and unique.",
            "items": {
              "$ref": "#/components/schemas/Part"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "Milestone": {
        "additionalProperties": true,
        "description": "A milestone groups feature items and may depend on other milestones (the DAG).",
        "properties": {
          "code": {
            "type": "string"
          },
          "depends_on": {
            "default": [],
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "description": {
            "default": "",
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "name",
          "description",
          "depends_on"
        ],
        "type": "object"
      },
      "MilestoneRollup": {
        "properties": {
          "code": {
            "type": "string"
          },
          "counts": {
            "$ref": "#/components/schemas/Counts"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "name",
          "counts"
        ],
        "type": "object"
      },
      "Mode": {
        "description": "Where a project's decisions are taken.",
        "oneOf": [
          {
            "const": "monitor",
            "description": "On the monitor, by the person: today's behaviour, and the default.",
            "type": "string"
          },
          {
            "const": "delegated",
            "description": "On the monitor, and by Claude within a granted delegation.",
            "type": "string"
          },
          {
            "const": "conversation",
            "description": "In the conversation (FTR-035; recording it is refused until that is built).",
            "type": "string"
          }
        ]
      },
      "ModeChange": {
        "additionalProperties": true,
        "description": "One entry of the mode history.",
        "properties": {
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "mode": {
            "$ref": "#/components/schemas/Mode"
          },
          "origin": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "mode",
          "by",
          "at",
          "origin"
        ],
        "type": "object"
      },
      "Name": {
        "description": "Something a change put in the code that a text may describe.",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/NameKind"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "text"
        ],
        "type": "object"
      },
      "NameKind": {
        "description": "What kind of thing a [`Name`] is; it decides how a text must hold it to match (see [`scan`]).",
        "enum": [
          "flag",
          "command",
          "env",
          "route",
          "config_key",
          "name",
          "file"
        ],
        "type": "string"
      },
      "NextGate": {
        "description": "What moving an item on to one next status would ask, and what it still lacks (FEAT-117).",
        "properties": {
          "enforce": {
            "$ref": "#/components/schemas/Enforce"
          },
          "gaps": {
            "description": "What `requires` and `signoffs` still lack.",
            "items": {
              "$ref": "#/components/schemas/Gap"
            },
            "type": "array"
          },
          "purpose": {
            "type": "string"
          },
          "requires_gaps": {
            "description": "What `requires` alone still lacks, without the sign-offs (FEAT-182): a sign-off is offered\nonly once this is empty, so nobody signs off work that has not happened yet.",
            "items": {
              "$ref": "#/components/schemas/Gap"
            },
            "type": "array"
          },
          "signoffs_held": {
            "description": "Sign-offs withheld because the work they confirm is not built (DEF-033): one gap per\nunbuilt document. Only Claude can build them, so they are not \"for you\".",
            "items": {
              "$ref": "#/components/schemas/Gap"
            },
            "type": "array"
          },
          "signoffs_needed": {
            "description": "The sign-offs this gate still needs, by name, so a surface can offer to record them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "warnings": {
            "description": "What `warns` lacks — said, never enforced.",
            "items": {
              "$ref": "#/components/schemas/Gap"
            },
            "type": "array"
          }
        },
        "required": [
          "status",
          "enforce",
          "gaps",
          "requires_gaps",
          "warnings",
          "signoffs_needed"
        ],
        "type": "object"
      },
      "NextStage": {
        "description": "A next stage on a card: its status, how many things it still lacks, which of those are\nsign-offs, and how many of the item's tasks are open (FEAT-205) — so a card never reads as\nready while a sign-off or work is outstanding.",
        "properties": {
          "ends": {
            "description": "The stage ends the work (an end status that is not a no-op): \"ready to complete\".",
            "type": "boolean"
          },
          "for_you": {
            "description": "How many of `missing` the user settles: sign-offs and the `approved` check (DEF-020).",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "immediate": {
            "description": "The stage the item reaches next in the workflow's order, the one the Review page asks\nsign-offs for (DEF-020). A card speaks only of this one.",
            "type": "boolean"
          },
          "missing": {
            "description": "Everything the stage still lacks, its sign-offs included (as before FEAT-205).",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "signoffs": {
            "description": "The sign-offs among `missing`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "tasks_open": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "status",
          "missing",
          "signoffs",
          "tasks_open",
          "ends",
          "immediate",
          "for_you"
        ],
        "type": "object"
      },
      "NotesListing": {
        "additionalProperties": true,
        "description": "Where the notes draft is listed: `entry` goes directly below the first line equal to `after`.",
        "properties": {
          "after": {
            "type": "string"
          },
          "entry": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "after",
          "entry"
        ],
        "type": "object"
      },
      "OriginState": {
        "description": "The remote-tracking branch `pushed` was judged against, and whether it was fetched first.",
        "properties": {
          "fetch_error": {
            "type": "string"
          },
          "fetched": {
            "type": "boolean"
          },
          "tracking": {
            "type": "string"
          }
        },
        "required": [
          "tracking",
          "fetched"
        ],
        "type": "object"
      },
      "Outcome": {
        "description": "How a flagged text was settled at the sign-off (FTR-013).",
        "oneOf": [
          {
            "const": "confirmed",
            "description": "Someone read it and it is still right.",
            "type": "string"
          },
          {
            "const": "corrected",
            "description": "A correction was filed (its code is on the record).",
            "type": "string"
          }
        ]
      },
      "OverrideView": {
        "description": "One override Claude made, as the Review page shows it (DEF-043).",
        "properties": {
          "at": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "at",
          "from",
          "to",
          "reason",
          "origin"
        ],
        "type": "object"
      },
      "Part": {
        "description": "One part of the method.",
        "oneOf": [
          {
            "const": "design",
            "description": "The spec has a Design section before build.",
            "type": "string"
          },
          {
            "const": "design-review",
            "description": "A person signs off the design before build.",
            "type": "string"
          },
          {
            "const": "docs",
            "description": "The docs the item names were updated before it integrates.",
            "type": "string"
          },
          {
            "const": "docs-folded",
            "description": "A person signs off that the design was folded into the docs.",
            "type": "string"
          },
          {
            "const": "links",
            "description": "Doctor reports references to things the board does not have.",
            "type": "string"
          }
        ]
      },
      "PartChanges": {
        "description": "What differs between the parts a decision covered and the definition now (FTR-018). Keys are\nthose of [`FeatureDefinition::part_revs`], sorted.",
        "properties": {
          "added": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "changed": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "removed": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "added",
          "changed",
          "removed"
        ],
        "type": "object"
      },
      "Place": {
        "description": "A decision waiting for someone, and where.",
        "enum": [
          "monitor",
          "conversation",
          "delegated"
        ],
        "type": "string"
      },
      "PlanCondition": {
        "description": "One condition of a stage entered or passed, and whether it holds (FEAT-212).",
        "properties": {
          "check": {
            "$ref": "#/components/schemas/ReleaseCheck"
          },
          "detail": {
            "description": "What was found.",
            "type": "string"
          },
          "fix": {
            "description": "What to do about it, when it does not hold.",
            "type": "string"
          },
          "holds": {
            "type": "boolean"
          },
          "refs": {
            "description": "The requirements it names, as `CODE/R-n` (DEF-043): for `untested_accepted`, exactly what\nthe person accepts; for `later_tests_green`, what is not green yet.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "stage": {
            "description": "The stage that requires it.",
            "type": "string"
          }
        },
        "required": [
          "check",
          "stage",
          "holds",
          "detail"
        ],
        "type": "object"
      },
      "PlanStep": {
        "description": "One step a promotion takes, and what it will do (FEAT-212).",
        "properties": {
          "action": {
            "$ref": "#/components/schemas/ReleaseAction"
          },
          "blocked": {
            "description": "Why it cannot be taken, when it cannot.",
            "type": "string"
          },
          "does": {
            "description": "What it will do, in a sentence.",
            "type": "string"
          },
          "noop": {
            "description": "It changes nothing (already done, or nothing to do).",
            "type": "boolean"
          },
          "stage": {
            "description": "The stage whose entry does it.",
            "type": "string"
          }
        },
        "required": [
          "action",
          "stage",
          "does",
          "noop"
        ],
        "type": "object"
      },
      "PortfolioView": {
        "description": "The portfolio index as a serializable view: the workspace metadata + programs, with the implicit\ndefault program materialized when none are declared (so callers always see a consistent shape).",
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "programs": {
            "items": {
              "$ref": "#/components/schemas/ProgramView"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "description",
          "programs"
        ],
        "type": "object"
      },
      "PositionAnswer": {
        "description": "What `kanbanr position --json` prints and `GET /projects/{p}/position` returns (FTR-003).",
        "properties": {
          "changed": {
            "description": "The dirty part, sorted by path.",
            "items": {
              "$ref": "#/components/schemas/ChangedPath"
            },
            "type": "array"
          },
          "live": {
            "$ref": "#/components/schemas/PositionRef"
          },
          "schema": {
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "text": {
            "description": "`live.text()`.",
            "type": "string"
          }
        },
        "required": [
          "schema",
          "live",
          "text",
          "changed"
        ],
        "type": "object"
      },
      "PositionRef": {
        "description": "One repository's position (CD-2). Serialises as `{\"repo\",\"commit\",\"dirty\"}`, absent parts null.",
        "properties": {
          "commit": {
            "description": "40 lower-case hex, or None for a directory with no commit.",
            "type": [
              "string",
              "null"
            ]
          },
          "dirty": {
            "description": "64 lower-case hex, or None when the checkout is clean.",
            "type": [
              "string",
              "null"
            ]
          },
          "repo": {
            "type": "string"
          }
        },
        "required": [
          "repo",
          "commit",
          "dirty"
        ],
        "type": "object"
      },
      "PreparedSource": {
        "additionalProperties": true,
        "description": "Where a piece of evidence came from: a link or a board reference.",
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "description": "Empty, `http(s)://…` with no user info, `doc:<path>`, `item:<CODE>` or `commit:<sha>`.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PreparedState": {
        "description": "Where a prepared record stands, derived when it is listed.",
        "oneOf": [
          {
            "enum": [
              "confirmed",
              "rejected"
            ],
            "type": "string"
          },
          {
            "const": "open",
            "description": "Waiting for the person.",
            "type": "string"
          },
          {
            "const": "superseded",
            "description": "A newer record for the same decision replaces it.",
            "type": "string"
          },
          {
            "const": "stale",
            "description": "The decision no longer waits, or moved on since it was prepared.",
            "type": "string"
          },
          {
            "const": "unknown_kind",
            "description": "A kind this version of kanbanr does not know.",
            "type": "string"
          }
        ]
      },
      "PreparedSubject": {
        "additionalProperties": true,
        "description": "What a decision is about. Which keys a kind needs is in [`KINDS`].",
        "properties": {
          "commit": {
            "type": "string"
          },
          "gate": {
            "type": "string"
          },
          "item": {
            "type": "string"
          },
          "release": {
            "type": "string"
          },
          "requirement": {
            "type": "string"
          },
          "signoff": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "test": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PreparedView": {
        "additionalProperties": true,
        "description": "A prepared record as the monitor lists it: the record, where it stands, the answer if any, and\nwhat the person would type in their own terminal instead.",
        "properties": {
          "at": {
            "description": "RFC 3339, UTC.",
            "type": "string"
          },
          "batch": {
            "description": "The batch it belongs to (FTR-037): a walkthrough run prepares its checks as one batch, named\nfor the run, which the Review page confirms or rejects with one click. None for a record\nprepared alone; an older kanbanr keeps the key through `extra`.",
            "type": "string"
          },
          "by": {
            "description": "`Claude` when prepared in the conversation; else the preparer's name.",
            "type": "string"
          },
          "command": {
            "description": "The equivalent verdict command, for a person's own terminal.",
            "type": "string"
          },
          "fields": {
            "additionalProperties": true,
            "description": "What the verdict will carry; keys per kind.",
            "type": "object"
          },
          "id": {
            "description": "`<YYYYMMDDTHHMMSSZ>-<kind>`, with `-2`, `-3` … when taken.",
            "type": "string"
          },
          "kind": {
            "description": "`signoff`, `promotion`, `gate-result`, `ratification`, … A string, so a kind a newer\nkanbanr adds is listed by an older one rather than failing to parse.",
            "type": "string"
          },
          "origin": {
            "description": "Stamped by the front end, never the request (DEF-028).",
            "type": "string"
          },
          "page": {
            "description": "The monitor page its decision is taken on: `review` or `releases`.",
            "type": "string"
          },
          "resolution": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Resolution"
              },
              {
                "type": "null"
              }
            ]
          },
          "rev": {
            "description": "What it was prepared against: the definition's revision, the release tip or the commit.",
            "type": "string"
          },
          "sources": {
            "description": "Where the evidence came from: at least one.",
            "items": {
              "$ref": "#/components/schemas/PreparedSource"
            },
            "type": "array"
          },
          "stale_why": {
            "description": "Why it no longer waits, when stale, superseded or of an unknown kind.",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/PreparedState"
          },
          "subject": {
            "$ref": "#/components/schemas/PreparedSubject",
            "default": {},
            "description": "What the decision is about; keys per kind."
          }
        },
        "required": [
          "subject",
          "state",
          "resolution",
          "stale_why",
          "page",
          "command"
        ],
        "type": "object"
      },
      "ProcessSource": {
        "description": "Which saved process a project's workflow came from, and which version of it (FEAT-169).",
        "properties": {
          "library": {
            "$ref": "#/components/schemas/Library"
          },
          "name": {
            "type": "string"
          },
          "rev": {
            "description": "The content rev of what was applied ([`WorkflowFile::content_rev`]).",
            "type": "string"
          },
          "version": {
            "default": 0,
            "description": "The process's version when it was applied; 0 for a built-in one.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "name",
          "library",
          "version",
          "rev"
        ],
        "type": "object"
      },
      "ProcessStatus": {
        "description": "How a project stands against its saved process (FEAT-170): `GET /projects/{p}/process`.",
        "properties": {
          "drift": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Drift"
              },
              {
                "type": "null"
              }
            ],
            "description": "How it has moved apart from that process; null when there is nothing to compare, or the\nprocess is a personal one, which only the user's own kanbanr can see."
          },
          "messages": {
            "description": "[`Drift::messages`]: one sentence per thing to report.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProcessSource"
              },
              {
                "type": "null"
              }
            ],
            "description": "The process the project's workflow was applied from; null when none was."
          }
        },
        "required": [
          "source",
          "drift",
          "messages"
        ],
        "type": "object"
      },
      "ProgramRollup": {
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/Counts"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "projects": {
            "items": {
              "$ref": "#/components/schemas/ProjectRollup"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "counts",
          "projects"
        ],
        "type": "object"
      },
      "ProgramView": {
        "properties": {
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "implicit": {
            "description": "True when this is the synthesized implicit default program (no workspace.yaml programs).",
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "projects": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "projects",
          "implicit"
        ],
        "type": "object"
      },
      "Project": {
        "description": "A fully-loaded project (config + all entities).",
        "properties": {
          "config": {
            "$ref": "#/components/schemas/ProjectConfig"
          },
          "features": {
            "items": {
              "$ref": "#/components/schemas/FeatureItem"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "milestones": {
            "items": {
              "$ref": "#/components/schemas/Milestone"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "config",
          "features",
          "milestones"
        ],
        "type": "object"
      },
      "ProjectConfig": {
        "additionalProperties": true,
        "properties": {
          "branch_pattern": {
            "description": "How `kanbanr start` names a branch (FEAT-056): `{code}` and `{slug}`. Absent means the\ndefault, and absent stays absent on disk so an existing config is not rewritten.",
            "type": "string"
          },
          "cadence": {
            "$ref": "#/components/schemas/Cadence",
            "description": "Whether this project works in sprints and releases at all (FEAT-121). Off unless switched\non: many projects follow a different workflow, and data nobody asked for is clutter."
          },
          "codes": {
            "$ref": "#/components/schemas/CodesConfig",
            "description": "Which prefix an item's code gets from its kind (FEAT-217). Absent: `FEAT-` for every\nitem, and absent stays absent on disk."
          },
          "coverage": {
            "description": "Architecture coverage rules (FEAT-197): every subject of a kind — items in a stage range,\naccepted ADRs, docs under a folder — is referenced from a named doc, or lists one. They name\nthis project's doc paths, so they live here and not in a process. Absent: none, and nothing\nis read for coverage.",
            "items": {
              "$ref": "#/components/schemas/CoverageRule"
            },
            "type": "array"
          },
          "default_state": {
            "default": "",
            "description": "The status assigned to a newly-created feature item. Must be one of `statuses`.",
            "type": "string"
          },
          "description": {
            "default": "",
            "type": "string"
          },
          "diagrams": {
            "$ref": "#/components/schemas/DiagramsConfig",
            "description": "How the project treats Mermaid diagrams that fail the lint (FEAT-200). Absent: warnings\nonly, and absent stays absent on disk."
          },
          "displayed_states": {
            "default": [],
            "description": "Ordered subset of `statuses` shown on the dashboard.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "estimate_unit": {
            "$ref": "#/components/schemas/EstimateUnit",
            "description": "What this project estimates in (FEAT-121): days, or story points."
          },
          "gates": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Gate"
            },
            "description": "Entry criteria per status (FEAT-113): what an item must show before it may move into that\nstatus, and what happens when it does. Absent means today's rules, synthesised by\n[`ProjectConfig::effective_gates`]; absent stays absent on disk.",
            "type": "object"
          },
          "method": {
            "$ref": "#/components/schemas/MethodChoice",
            "description": "Which parts of the method this project turned off, and when it chose (FEAT-193). Absent:\nnever chosen, everything on."
          },
          "name": {
            "default": "",
            "type": "string"
          },
          "no_op_states": {
            "default": [],
            "description": "Subset of `statuses` that are functionally inert dispositions (e.g. \"No Action\",\n\"Not Applicable\", \"Out-of-Scope\"). No-op states are always non-displayed, and a feature\nin a no-op state does not auto-advance to \"Completed\" when its tasks finish.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "paths": {
            "additionalProperties": {
              "$ref": "#/components/schemas/KindPath"
            },
            "description": "A shorter path through the workflow for some work kinds (FTR-019), keyed by kind in lower\ncase. Absent: every kind walks every stage, and absent stays absent on disk.",
            "type": "object"
          },
          "process": {
            "$ref": "#/components/schemas/ProcessSource",
            "description": "The saved process this workflow was applied from, if it was (FEAT-169): what drift is\nmeasured against. An older kanbanr keeps it through `extra`, so it needs no schema bump."
          },
          "repository": {
            "$ref": "#/components/schemas/CodeRepository",
            "description": "The code repository this project tracks (DEF-053). Absent unless recorded, and absent\nstays absent on disk."
          },
          "schema_version": {
            "default": 0,
            "description": "On-disk schema version. Absent in legacy configs (defaults to 0); forward-stamped to\n`CURRENT_SCHEMA_VERSION` whenever the config is written.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "statuses": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "terminal_states": {
            "default": [],
            "description": "Subset of `statuses` that are explicit terminal (end) states of the workflow — a feature\nhere is considered \"done\". Absent in legacy configs (defaults to empty), in which case\n`graph::is_terminal_status` falls back to its built-in heuristic (Completed / no-op).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "transitions": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "default": {},
            "description": "Map of from-status -> list of allowed to-statuses.",
            "type": "object"
          }
        },
        "required": [
          "schema_version",
          "name",
          "description",
          "statuses",
          "default_state",
          "transitions",
          "displayed_states",
          "no_op_states",
          "terminal_states"
        ],
        "type": "object"
      },
      "ProjectReadiness": {
        "additionalProperties": {
          "$ref": "#/components/schemas/CardReadiness"
        },
        "description": "The board's live cards, keyed by item code, in board order.",
        "type": "object"
      },
      "ProjectRollup": {
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/Counts"
          },
          "id": {
            "type": "string"
          },
          "milestones": {
            "items": {
              "$ref": "#/components/schemas/MilestoneRollup"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "counts",
          "milestones"
        ],
        "type": "object"
      },
      "ProjectSummary": {
        "description": "One project on the board, as the home page lists it: `GET /projects`.",
        "properties": {
          "counts": {
            "additionalProperties": {
              "format": "uint",
              "minimum": 0,
              "type": "integer"
            },
            "description": "Items per status, for every status.",
            "type": "object"
          },
          "description": {
            "type": "string"
          },
          "displayed_states": {
            "description": "The statuses shown as board columns.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "has_docs": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "description": "The project's name; its id when it has none.",
            "type": "string"
          },
          "no_op_states": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "other_states": {
            "description": "The statuses that are not columns.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "total_features": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "displayed_states",
          "other_states",
          "no_op_states",
          "counts",
          "total_features",
          "has_docs"
        ],
        "type": "object"
      },
      "QualityScenario": {
        "additionalProperties": true,
        "description": "Stimulus / environment / response / measure — what turns \"it should be fast\" into something\ncheckable. The `measure` names the test or benchmark that checks it; a number with nothing\nbehind it is reported as an unsupported claim.",
        "properties": {
          "environment": {
            "default": "",
            "type": "string"
          },
          "measure": {
            "default": "",
            "type": "string"
          },
          "response": {
            "default": "",
            "type": "string"
          },
          "stimulus": {
            "default": "",
            "type": "string"
          }
        },
        "required": [
          "stimulus",
          "environment",
          "response",
          "measure"
        ],
        "type": "object"
      },
      "ReadinessView": {
        "description": "What one item is missing, and what its next stage asks (FEAT-112, FEAT-117):\n`GET /projects/{p}/features/{code}/readiness`.",
        "properties": {
          "code": {
            "type": "string"
          },
          "gaps": {
            "description": "What `kanbanr check` reports.",
            "items": {
              "$ref": "#/components/schemas/Gap"
            },
            "type": "array"
          },
          "next": {
            "description": "What each next stage asks, and what it still lacks.",
            "items": {
              "$ref": "#/components/schemas/NextGate"
            },
            "type": "array"
          },
          "rev": {
            "description": "The definition's revision: a verdict given with `rev` is refused if it moved on\n(FEAT-159). Null when the item has no definition.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "rev",
          "gaps",
          "next"
        ],
        "type": "object"
      },
      "ReleaseAction": {
        "description": "What entering a release stage does. The order of the variants is the order a promotion applies\nthem in, whichever stages hold them.",
        "oneOf": [
          {
            "const": "branch",
            "description": "Make `release/<V>` from the line of integration, without checking it out.",
            "type": "string"
          },
          {
            "const": "prepare",
            "description": "Commit the version files, the changelog heading, the notes draft and its listings onto\n`release/<V>`, without checking anything out.",
            "type": "string"
          },
          {
            "const": "move_main",
            "description": "Fast-forward main to the release tip, refused if main has commits the release lacks.",
            "type": "string"
          },
          {
            "const": "tag",
            "description": "Tag the release tip with the version (an annotated tag, `Release <V>`).",
            "type": "string"
          }
        ]
      },
      "ReleaseCarry": {
        "description": "A planned item that did not ship, and where it went.",
        "properties": {
          "code": {
            "type": "string"
          },
          "to": {
            "description": "The release it moved to, or `unplanned`.",
            "type": "string"
          },
          "why": {
            "description": "Why it did not ship.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "to"
        ],
        "type": "object"
      },
      "ReleaseCheck": {
        "description": "A condition a release stage can require before a release enters it.",
        "oneOf": [
          {
            "const": "items_finished",
            "description": "Nothing planned into the release would be carried over by the cut.",
            "type": "string"
          },
          {
            "const": "prepared",
            "description": "The release tip carries the version, the dated changelog heading and the notes.",
            "type": "string"
          },
          {
            "const": "main_at_release",
            "description": "Main is at the release tip.",
            "type": "string"
          },
          {
            "const": "pushed",
            "description": "The release tip is on main's remote-tracking branch.",
            "type": "string"
          },
          {
            "const": "gate_passed",
            "description": "Every gate in `cadence.commit_gates` has a passed result recorded for the release tip.",
            "type": "string"
          },
          {
            "const": "tag_passed",
            "description": "The newest result of the tag gate for the tag commit, recorded since the tag, is passed\n(FTR-026). Only a stage after the tag can require it.",
            "type": "string"
          },
          {
            "const": "items_merged",
            "description": "Every item planned into the release is at the integrate stage or later.",
            "type": "string"
          },
          {
            "const": "stage_passed",
            "description": "The release has been promoted into a stage a gate names in `after`. Only a plan names it\n(a gate lists `after`, not this), so it is not in `ALL`.",
            "type": "string"
          },
          {
            "const": "merged_items_ship",
            "description": "Every item planned into the release whose code is merged can ship: the cut would not carry\nmerged work away (DEF-029). Only a plan names it, so it is not in `ALL`.",
            "type": "string"
          },
          {
            "const": "later_tests_green",
            "description": "Every test of the release's items checked at this stage or before it is green (DEF-043).\nOnly a plan names it, so it is not in `ALL`.",
            "type": "string"
          },
          {
            "const": "untested_accepted",
            "description": "The person accepted shipping exactly the requirements whose tests were not run (DEF-043).\nOnly a plan names it, at the cut, so it is not in `ALL`.",
            "type": "string"
          }
        ]
      },
      "ReleaseGate": {
        "additionalProperties": true,
        "description": "One release stage's rules: what it is for, what must hold to enter it, and what entering it\ndoes.",
        "properties": {
          "after": {
            "description": "Earlier stages the release must have been promoted into before it enters this one.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "on_enter": {
            "items": {
              "$ref": "#/components/schemas/ReleaseAction"
            },
            "type": "array"
          },
          "purpose": {
            "type": "string"
          },
          "requires": {
            "items": {
              "$ref": "#/components/schemas/ReleaseCheck"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ReleasePlan": {
        "description": "What promoting a release would do, worked out with nothing changed (FEAT-212): what the button\nsays, each step and condition, and — for the cut — what ships.",
        "properties": {
          "after": {
            "description": "What comes after this promotion, e.g. \"push main, wait for CI, then Cut v0.2.1\".",
            "type": "string"
          },
          "again": {
            "$ref": "#/components/schemas/AgainOffer",
            "description": "The stage it is at can be entered again and would redo something (DEF-057). Only on the\ndefault plan (no stage asked for), for a stage before the cut whose gate prepares."
          },
          "awaiting": {
            "description": "This plan is the release waiting at the last stage for its tag workflow's result: it\nships once that is recorded as passed (DEF-049).",
            "type": "boolean"
          },
          "button": {
            "description": "What the one button says: \"Promote to main\", \"Cut v0.2.1\", \"Promote to main again\".",
            "type": "string"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/PlanCondition"
            },
            "type": "array"
          },
          "confirm": {
            "description": "This promotion enters a stage after the cut: a confirmation by the user (FTR-026).",
            "type": "boolean"
          },
          "cut": {
            "description": "This promotion enters the stage that tags: the cut.",
            "type": "boolean"
          },
          "direction": {
            "description": "`forward`, `back` or `again`.",
            "type": "string"
          },
          "empty": {
            "description": "Nothing is planned into the release, so it cannot be promoted (R-17).",
            "type": "boolean"
          },
          "from": {
            "description": "The stage it is at; empty when it has none yet.",
            "type": "string"
          },
          "missing": {
            "description": "Each thing missing before it can go, as what to do about it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "needs_reason": {
            "description": "A move back, which needs a reason.",
            "type": "boolean"
          },
          "origin": {
            "$ref": "#/components/schemas/OriginState"
          },
          "preview": {
            "description": "The cut only: what ships and what is carried over.",
            "items": {
              "$ref": "#/components/schemas/CutPreview"
            },
            "type": "array"
          },
          "ready": {
            "type": "boolean"
          },
          "release_tip": {
            "description": "The release branch's tip now (empty while it does not exist): `expect` on promote.",
            "type": "string"
          },
          "repo": {
            "description": "Whether the code repository was there to read.",
            "type": "boolean"
          },
          "returned": {
            "$ref": "#/components/schemas/Returned",
            "description": "The merge that sent the release back and the steps from there, until it is cut (DEF-031)."
          },
          "ships": {
            "description": "This promotion enters the last stage: it ships the release (FTR-026).",
            "type": "boolean"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/PlanStep"
            },
            "type": "array"
          },
          "tag": {
            "$ref": "#/components/schemas/TagResult",
            "description": "The recorded CI result for the tag, once the release is tagged and not shipped (FTR-026)."
          },
          "tag_commit": {
            "$ref": "#/components/schemas/CommitLine",
            "description": "The commit the tag will name, when this promotion tags."
          },
          "to": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "warnings": {
            "description": "Things worth knowing that do not stop the promotion, e.g. a stale release date (DEF-001).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "version",
          "from",
          "to",
          "direction",
          "cut",
          "confirm",
          "ships",
          "button",
          "conditions",
          "steps",
          "release_tip",
          "missing",
          "ready",
          "needs_reason",
          "repo",
          "empty"
        ],
        "type": "object"
      },
      "ReleasePrepare": {
        "additionalProperties": true,
        "description": "What the `prepare` action writes onto `release/<V>`. Empty by default: `prepare` is then a\nno-op the plan names.",
        "properties": {
          "changelog": {
            "type": "string"
          },
          "changelog_copies": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "notes": {
            "description": "A path template naming `{version}` or `{number}`, e.g. `docs/src/releases/{version}.md`.",
            "type": "string"
          },
          "notes_listings": {
            "items": {
              "$ref": "#/components/schemas/NotesListing"
            },
            "type": "array"
          },
          "version_files": {
            "items": {
              "$ref": "#/components/schemas/VersionFile"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "ReleaseReport": {
        "additionalProperties": true,
        "description": "A release with what it holds and how much of that is finished, as the monitor shows it\n(FEAT-138). Derived, never stored.",
        "properties": {
          "branch": {
            "description": "The code branch, set when promoted to the first stage (`release/<V>`).",
            "type": "string"
          },
          "carried": {
            "items": {
              "$ref": "#/components/schemas/ReleaseCarry"
            },
            "type": "array"
          },
          "finished": {
            "description": "How many of `items` are finished, by the same rule as the sprint's: an end status, or a stage\nmarked `done` (FEAT-137). The page used to keep its own copy of the rule, counting only the\nend status — a Done item in a planned scrum release read as unfinished.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "included": {
            "description": "For a patch: what its parent shipped, which the patch keeps (FEAT-184).",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "items": {
            "description": "Planned into it, or shipped in it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "notes_doc": {
            "description": "The board doc holding its release notes.",
            "type": "string"
          },
          "notes_path": {
            "description": "The repository path the release's notes were first written to, already expanded (DEF-036).\nSet once; empty on a release whose notes were written before it was recorded.",
            "type": "string"
          },
          "parent": {
            "description": "The cut release this patches (FEAT-184); empty for an ordinary release.",
            "type": "string"
          },
          "shipped": {
            "description": "What shipped in it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "shipped_at": {
            "type": "string"
          },
          "shipped_by": {
            "description": "Who cut the release, and from where (DEF-028). Empty on a release cut before origin existed.",
            "type": "string"
          },
          "shipped_origin": {
            "type": "string"
          },
          "stage": {
            "description": "Where the release is now, from `cadence.release_stages` (FEAT-183). Empty until first\npromoted: a release added before stages existed reads as \"not yet a candidate\".",
            "type": "string"
          },
          "stages": {
            "description": "Every stage change, oldest first.",
            "items": {
              "$ref": "#/components/schemas/StageChange"
            },
            "type": "array"
          },
          "state": {
            "$ref": "#/components/schemas/ReleaseState",
            "default": "planned"
          },
          "superseded_by": {
            "description": "The patch release that replaced this one after its tag's CI run failed (FTR-026). The tag\nstays in git; the release never ships.",
            "type": "string"
          },
          "tag_commit": {
            "description": "The full sha the tag names (FTR-026).",
            "type": "string"
          },
          "tagged_at": {
            "description": "When the stage holding the tag action was entered (FTR-026), RFC 3339. A release that is\ntagged and still `Planned` is waiting for the stages after the tag.",
            "type": "string"
          },
          "target": {
            "description": "Target date, `YYYY-MM-DD`.",
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "version",
          "state",
          "items",
          "finished"
        ],
        "type": "object"
      },
      "ReleaseState": {
        "enum": [
          "planned",
          "shipped"
        ],
        "type": "string"
      },
      "Requirement": {
        "additionalProperties": true,
        "description": "One requirement: a single behaviour, stated so it can be tested.",
        "properties": {
          "id": {
            "default": "",
            "description": "`R-1`, `R-2`, … assigned when left blank.",
            "type": "string"
          },
          "iso25010": {
            "description": "ISO/IEC 25010 characteristics, for NFRs.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kind": {
            "$ref": "#/components/schemas/RequirementKind",
            "default": "functional"
          },
          "scenario": {
            "$ref": "#/components/schemas/QualityScenario",
            "description": "The quality attribute scenario behind an NFR."
          },
          "tests": {
            "description": "How this requirement is verified. A requirement with no test is not ready.",
            "items": {
              "$ref": "#/components/schemas/TestRef"
            },
            "type": "array"
          },
          "text": {
            "description": "The requirement itself, ideally in EARS form. Stored verbatim: the EARS pattern is derived\nwhen rendering or checking, never persisted, so stored text cannot disagree with the\nclassifier.",
            "type": "string"
          },
          "violates": {
            "description": "For a defect: the requirement it violates (`FEAT-046/R-2`), or blank when the defect\nreveals that no requirement covered the case — which is itself the finding.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "kind",
          "text"
        ],
        "type": "object"
      },
      "RequirementKind": {
        "description": "Functional behaviour, or a quality the system must exhibit.",
        "enum": [
          "functional",
          "nfr"
        ],
        "type": "string"
      },
      "Resolution": {
        "additionalProperties": true,
        "description": "The person's answer to a prepared record.",
        "properties": {
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "changed": {
            "description": "Each field the person edited; empty when confirmed as prepared.",
            "items": {
              "$ref": "#/components/schemas/FieldChange"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "made": {
            "description": "The verdict route it made, `POST /projects/…`; empty on a rejection.",
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "reason": {
            "description": "A rejection's reason, optional.",
            "type": "string"
          },
          "verdict": {
            "$ref": "#/components/schemas/Answer"
          }
        },
        "required": [
          "verdict"
        ],
        "type": "object"
      },
      "Returned": {
        "description": "A release sent back by a merge that has not been cut yet, as the plan shows it (DEF-031).\nDerived, never stored.",
        "properties": {
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "from": {
            "description": "The stage it was at before.",
            "type": "string"
          },
          "item": {
            "description": "The item whose merge sent it back.",
            "type": "string"
          },
          "steps": {
            "description": "What to do from the first stage, in order (`returned_steps`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "item",
          "by",
          "at",
          "from",
          "steps"
        ],
        "type": "object"
      },
      "ReviewEntry": {
        "properties": {
          "approval": {
            "$ref": "#/components/schemas/ApprovalKind",
            "description": "What is being asked."
          },
          "changes": {
            "$ref": "#/components/schemas/PartChanges",
            "description": "The parts added, changed and removed since the last decision (FTR-018); present on\n`lapsed`, `added` and `signoff` entries that have a baseline to compare with."
          },
          "changes_no_documents": {
            "description": "`docs-folded` is among them and the item lists no documents: the sign-off confirms that it\nchanges none (DEF-033).",
            "type": "boolean"
          },
          "code": {
            "type": "string"
          },
          "definition": {
            "$ref": "#/components/schemas/FeatureDefinition"
          },
          "drift_skipped": {
            "description": "Why the drift check did not run: no code repository is attached. The sign-off is offered\nall the same, and this is never read as \"no drift\" (FTR-013).",
            "type": "string"
          },
          "finished": {
            "description": "The item is finished work (DEF-013): listed only because its approval lapsed.",
            "type": "boolean"
          },
          "in_progress": {
            "description": "What the ordering keys on, and useful to a client besides.",
            "type": "boolean"
          },
          "overrides": {
            "description": "Claude's overrides on the item that wait for the person to ratify (DEF-043), oldest first.",
            "items": {
              "$ref": "#/components/schemas/OverrideView"
            },
            "type": "array"
          },
          "release_choices": {
            "description": "The planned releases it could ship in, in file order (FEAT-185). Present whenever the\nrelease question is due, so a surface asking another question first can ask this one too.\nEmpty: only a new release to choose.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rev": {
            "description": "What a verdict given from this brief is pinned to (FEAT-159).",
            "type": "string"
          },
          "settled": {
            "description": "The flagged texts Claude settled, with what it recorded, for the page to show (DEF-039).",
            "items": {
              "$ref": "#/components/schemas/SettledText"
            },
            "type": "array"
          },
          "signoff_lapsed": {
            "description": "`docs-folded` is asked again because the item's branch got a commit after the earlier one\n(DEF-046): why, naming the branch.",
            "type": "string"
          },
          "signoffs_needed": {
            "description": "The sign-offs the next stage still needs, by name; empty unless `approval` is `signoff`.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "spec": {
            "$ref": "#/components/schemas/SpecBrief",
            "description": "The spec the sign-off asked pins, with what changed since the last sign-off (FTR-023)."
          },
          "spec_rev": {
            "description": "The hash of the spec's current text, when the sign-off asked pins the spec (FTR-023): what\nthe verdict is pinned to, sent back with it.",
            "type": "string"
          },
          "started_unapproved": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "to_check": {
            "description": "`docs-folded` is among them: the texts that name something the item changed since they\nlast changed and that Claude has not yet settled (FTR-013, DEF-039). The sign-off is not\noffered while any is left. `None` when the check was skipped (see `drift_skipped`) or the\nsign-off is not asked.",
            "items": {
              "$ref": "#/components/schemas/Flag"
            },
            "type": "array"
          }
        },
        "required": [
          "code",
          "title",
          "status",
          "approval",
          "signoffs_needed",
          "started_unapproved",
          "definition",
          "rev",
          "in_progress",
          "finished"
        ],
        "type": "object"
      },
      "RollupReport": {
        "description": "The full rollup tree: milestone% → project% → program% → portfolio%.",
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/Counts"
          },
          "portfolio": {
            "type": "string"
          },
          "programs": {
            "items": {
              "$ref": "#/components/schemas/ProgramRollup"
            },
            "type": "array"
          }
        },
        "required": [
          "portfolio",
          "counts",
          "programs"
        ],
        "type": "object"
      },
      "SettledText": {
        "properties": {
          "check": {
            "$ref": "#/components/schemas/Checked"
          },
          "flag": {
            "$ref": "#/components/schemas/Flag"
          }
        },
        "required": [
          "flag",
          "check"
        ],
        "type": "object"
      },
      "Signoff": {
        "additionalProperties": true,
        "description": "A named agreement, recorded by a person against the definition as it stood (FEAT-114).\n\nLike an approval it carries the definition's `rev`, so changing the definition afterwards lapses\nit: a design review of a different design is not a review of this one.",
        "properties": {
          "at": {
            "type": "string"
          },
          "branch_heads": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The item's branches and their tips when `docs-folded` was given (DEF-046): a later commit on\nany of them lapses it. Empty on a record an older kanbanr wrote, or one given without the code\nrepository: such a record is not judged by its branches.",
            "type": "object"
          },
          "by": {
            "type": "string"
          },
          "checked": {
            "description": "What the person checked when giving `docs-folded` (FTR-013): each text flagged as naming\nsomething the item changed, with whether they confirmed it is still right or filed a\ncorrection. Absent on a record without flags, or one an older kanbanr wrote.",
            "items": {
              "$ref": "#/components/schemas/Checked"
            },
            "type": "array"
          },
          "delegation": {
            "description": "The delegation a record was taken under, such as `DLG-001`, when `origin` is `delegated`\n(FTR-028). Absent otherwise; an older kanbanr keeps it in `extra`.",
            "type": "string"
          },
          "doc": {
            "description": "A board doc holding the record — minutes, a checklist.",
            "type": "string"
          },
          "id": {
            "description": "The name a gate asks for (`design-review`).",
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "origin": {
            "description": "Where it was taken: `monitor`, `conversation`, `terminal` or `delegated` (DEF-028). Absent on a\nrecord written before origin existed, which reads as unknown; kept as a string so a newer\nkanbanr's value survives.",
            "type": "string"
          },
          "parts": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "A hash of each part of the definition it covered (FTR-018), keyed as\n[`FeatureDefinition::part_revs`]. Empty on a record an older kanbanr wrote: such a record is\nno baseline, and any change to the definition lapses it.",
            "type": "object"
          },
          "reason": {
            "description": "Why it was withdrawn. Giving a sign-off needs no reason; taking one back does.",
            "type": "string"
          },
          "rev": {
            "description": "The definition content it covered.",
            "type": "string"
          },
          "spec_rev": {
            "description": "A hash of the whole normalised spec it covered (FTR-023), when a gate that lists this\nsign-off also asks for spec sections. Empty on a record an older kanbanr wrote, or one no\ngate pins: such a sign-off is judged by the definition alone.",
            "type": "string"
          },
          "status": {
            "description": "The status the item was in when it was given.",
            "type": "string"
          },
          "verdict": {
            "$ref": "#/components/schemas/SignoffVerdict",
            "description": "`given`, or `withdrawn` (FEAT-182). A withdrawal is its own entry, appended like any other,\nwith an empty `rev`: an older kanbanr, which does not know this field, then reads the\nlatest entry as lapsed and stops counting the sign-off too."
          }
        },
        "required": [
          "id",
          "by",
          "at",
          "rev"
        ],
        "type": "object"
      },
      "SignoffVerdict": {
        "description": "Whether a sign-off entry gives the sign-off or takes it back (FEAT-182).",
        "enum": [
          "given",
          "withdrawn"
        ],
        "type": "string"
      },
      "Source": {
        "additionalProperties": true,
        "description": "Where an imported feature came from (FEAT-042). This is a record of history, not a live\npointer: the original text is preserved in the feature's spec, so nothing depends on the\nsource still existing (a deleted file, rewritten git history, a removed issue).",
        "properties": {
          "imported_at": {
            "default": "",
            "description": "When it was imported (RFC 3339); stamped by kanbanr.",
            "type": "string"
          },
          "key": {
            "default": "",
            "description": "Stable identity used to skip re-imports; derived by kanbanr when not given.",
            "type": "string"
          },
          "missing_since": {
            "description": "When the source was found to be gone (set by `kanbanr sources --write`).",
            "type": "string"
          },
          "ref": {
            "default": "",
            "description": "Location in that tracker, for humans: `TODO.md:14`, `owner/repo#123`, `PROJ-45`.",
            "type": "string"
          },
          "revision": {
            "description": "Project repo commit at import time (file sources).",
            "type": "string"
          },
          "system": {
            "description": "Tracker kind: `file`, `github`, `gitlab`, `jira`, `linear`, …",
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "system",
          "ref",
          "imported_at",
          "key"
        ],
        "type": "object"
      },
      "SpecBrief": {
        "description": "The spec a sign-off pins, as the person is shown it (FTR-023).",
        "properties": {
          "diff": {
            "description": "The current text against the kept one; empty on a first sign-off, when the earlier text\nwas not kept, or when nothing differs.",
            "items": {
              "$ref": "#/components/schemas/DiffLine"
            },
            "type": "array"
          },
          "previous_kept": {
            "description": "False when an earlier sign-off pinned the spec but its text is missing from the board.\nTrue otherwise, including a first sign-off with nothing earlier to keep.",
            "type": "boolean"
          },
          "signed_at": {
            "type": "string"
          },
          "signed_by": {
            "description": "Who gave the earlier sign-off, and when; empty on a first sign-off.",
            "type": "string"
          },
          "signoff": {
            "description": "The sign-off that pins it.",
            "type": "string"
          },
          "text": {
            "description": "The spec's current text, normalised as it is pinned.",
            "type": "string"
          }
        },
        "required": [
          "signoff",
          "text",
          "previous_kept",
          "signed_by",
          "signed_at",
          "diff"
        ],
        "type": "object"
      },
      "Sprint": {
        "properties": {
          "capacity": {
            "description": "What the sprint can take, in the project's estimate unit.",
            "format": "double",
            "type": "number"
          },
          "carried": {
            "description": "What left unfinished, and where it went — the record a retro reads.",
            "items": {
              "$ref": "#/components/schemas/SprintCarry"
            },
            "type": "array"
          },
          "closed_at": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "end": {
            "description": "Last day, `YYYY-MM-DD`, inclusive.",
            "type": "string"
          },
          "goal": {
            "description": "What this sprint is for, in a sentence.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "start": {
            "description": "First day, `YYYY-MM-DD`.",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/SprintState",
            "default": "planned"
          }
        },
        "required": [
          "code",
          "start",
          "end",
          "state"
        ],
        "type": "object"
      },
      "SprintCarry": {
        "description": "An item that left a sprint unfinished, and where it went.",
        "properties": {
          "code": {
            "type": "string"
          },
          "to": {
            "description": "The sprint it moved to, or `backlog`.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "to"
        ],
        "type": "object"
      },
      "SprintReport": {
        "description": "A sprint as a report: its record, what it holds, and how it burned down.",
        "properties": {
          "burndown": {
            "items": {
              "$ref": "#/components/schemas/BurndownDay"
            },
            "type": "array"
          },
          "capacity": {
            "description": "What the sprint can take, in the project's estimate unit.",
            "format": "double",
            "type": "number"
          },
          "carried": {
            "description": "What left unfinished, and where it went — the record a retro reads.",
            "items": {
              "$ref": "#/components/schemas/SprintCarry"
            },
            "type": "array"
          },
          "closed_at": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "committed": {
            "format": "double",
            "type": "number"
          },
          "days_left": {
            "description": "Days left, counting today; 0 once the sprint is over.",
            "format": "int64",
            "type": "integer"
          },
          "done": {
            "format": "double",
            "type": "number"
          },
          "end": {
            "description": "Last day, `YYYY-MM-DD`, inclusive.",
            "type": "string"
          },
          "goal": {
            "description": "What this sprint is for, in a sentence.",
            "type": "string"
          },
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "start": {
            "description": "First day, `YYYY-MM-DD`.",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/SprintState",
            "default": "planned"
          },
          "unestimated": {
            "description": "Items with no estimate in the project's unit: they count as nothing, which is said, not hidden.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "unit": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "start",
          "end",
          "state",
          "unit",
          "items",
          "committed",
          "done",
          "unestimated",
          "days_left",
          "burndown"
        ],
        "type": "object"
      },
      "SprintState": {
        "description": "Where a sprint is in its life.",
        "enum": [
          "planned",
          "active",
          "closed"
        ],
        "type": "string"
      },
      "StageChange": {
        "additionalProperties": true,
        "description": "One move of a release between stages: where to, who moved it, and when (FEAT-183). A move back\ncarries the reason it was made.",
        "properties": {
          "accepted_untested": {
            "description": "The requirements the person accepted shipping untested at the cut, as `CODE/R-n`\n(DEF-043). Empty on every other change.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "item": {
            "description": "The item whose merge into the release's branch caused this change (DEF-031); empty for\nevery other change.",
            "type": "string"
          },
          "origin": {
            "description": "Where it was made: `monitor`, `conversation`, `terminal` or `delegated` (DEF-028). Empty on a\nrecord written before origin existed.",
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          }
        },
        "required": [
          "stage",
          "by",
          "at"
        ],
        "type": "object"
      },
      "Stakeholder": {
        "additionalProperties": true,
        "properties": {
          "interest": {
            "description": "What they need from this project, and why they care.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "Stamp": {
        "additionalProperties": true,
        "description": "Who did something, when, and from where; a grant also pins the revision it granted.",
        "properties": {
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "rev": {
            "type": "string"
          }
        },
        "required": [
          "by",
          "at",
          "origin"
        ],
        "type": "object"
      },
      "TagResult": {
        "description": "The newest result recorded for a release's tag (FTR-026), read from the board only.",
        "properties": {
          "commit": {
            "description": "The commit the tag names.",
            "type": "string"
          },
          "gate": {
            "description": "The gate that judges it (`cadence.tag_gate`, else the first commit gate).",
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/GateResult"
          },
          "state": {
            "description": "`passed`, `failed` or `none`.",
            "type": "string"
          }
        },
        "required": [
          "commit",
          "gate",
          "state"
        ],
        "type": "object"
      },
      "Target": {
        "description": "A text linked to an item.",
        "properties": {
          "id": {
            "description": "The doc path, the ADR id or the item code.",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/TargetKind"
          },
          "path": {
            "description": "The doc path under the board's `docs/`, for a doc or an ADR; empty for an item.",
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "id",
          "title"
        ],
        "type": "object"
      },
      "TargetKind": {
        "description": "What kind of text a flag points at.",
        "enum": [
          "doc",
          "adr",
          "item"
        ],
        "type": "string"
      },
      "Task": {
        "additionalProperties": true,
        "description": "A todo item belonging to a todo-list. `key` is short and unique within its todo-list.",
        "properties": {
          "changed_at": {
            "description": "When the task's state last changed (RFC3339; FEAT-214): what agent drift is measured from.\nAbsent on tasks no kanbanr since FEAT-214 has changed.",
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/TaskState"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "text",
          "state"
        ],
        "type": "object"
      },
      "TaskState": {
        "description": "Tri-state for a feature's todo items.",
        "enum": [
          "NotStarted",
          "InProgress",
          "Completed"
        ],
        "type": "string"
      },
      "TestRef": {
        "additionalProperties": true,
        "description": "A test that verifies a requirement, and where it currently stands.",
        "properties": {
          "at": {
            "description": "When it can be checked (DEF-043): empty at the item's gates, `pushed` after main is pushed,\n`cut` at the cut, or a release stage's name. The item's gate doesn't wait for a test with\nan `at`; the release stage it names does. Part of the definition, so changing it lapses an\napproval.",
            "type": "string"
          },
          "checked_rev": {
            "description": "The project revision at which this was last observed green. A green older than HEAD is\nstale rather than trustworthy.",
            "type": "string"
          },
          "kind": {
            "description": "unit | integration | e2e | manual | property — free text, like `kind` elsewhere.",
            "type": "string"
          },
          "name": {
            "description": "The test's name as it appears in the codebase, so it can be checked for existence.",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/TestState",
            "default": "planned"
          }
        },
        "required": [
          "name",
          "state"
        ],
        "type": "object"
      },
      "TestState": {
        "description": "The TDD lifecycle of a test: written but not yet run, failing, passing.\n\nSerialized lowercase (`state: green`) because that is how it is written in definition files and\non the command line; the aliases keep hand-written YAML forgiving.",
        "enum": [
          "planned",
          "red",
          "green"
        ],
        "type": "string"
      },
      "TodoList": {
        "additionalProperties": true,
        "description": "A persistent todo-list attached to a feature item. A feature (acting as an epic) can hold\nmany of these — e.g. one added per working session — so the work survives across sessions.",
        "properties": {
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "description": {
            "default": "",
            "type": "string"
          },
          "tasks": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/Task"
            },
            "type": "array"
          }
        },
        "required": [
          "code",
          "description",
          "tasks",
          "created_at"
        ],
        "type": "object"
      },
      "TradeOff": {
        "properties": {
          "cost": {
            "description": "The quality spent for it. A decision with no cost is usually one nobody examined.",
            "type": "string"
          },
          "gain": {
            "description": "The quality bought.",
            "type": "string"
          }
        },
        "required": [
          "gain",
          "cost"
        ],
        "type": "object"
      },
      "Transition": {
        "additionalProperties": true,
        "description": "One status change. Append-only: the board's memory of how work actually moved.",
        "properties": {
          "at": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "origin": {
            "description": "Where a move with an override was made: `monitor`, `conversation`, `terminal` or\n`delegated` (DEF-043). Set only on a transition with an override; empty on every move\nbefore this version.",
            "type": "string"
          },
          "override": {
            "description": "Why a gate was passed over, when it was (FEAT-113). Absent on an ordinary move.",
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "at",
          "from",
          "to"
        ],
        "type": "object"
      },
      "VersionFile": {
        "additionalProperties": true,
        "description": "A file whose version `prepare` sets.",
        "properties": {
          "match": {
            "description": "A template with exactly one `{version}`. Absent: `^version = \"{version}\"` for `*.toml`,\n`\"version\": \"{version}\"` for `*.json`, first match only. Given: every match.",
            "type": "string"
          },
          "path": {
            "description": "Relative to the repository root.",
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "type": "object"
      },
      "ViewAnswer": {
        "description": "What a view answers with: the same shape as katalogr's ViewAnswer, so one renderer draws both.\nField order is the wire order; no `serde_json::Value` is in it (its key order would follow the\nbuild's `preserve_order` feature and break \"same bytes\").",
        "properties": {
          "exact": {
            "type": "boolean"
          },
          "graph": {
            "$ref": "#/components/schemas/ViewGraph"
          },
          "mermaid": {
            "type": "string"
          },
          "positions": {
            "items": {
              "$ref": "#/components/schemas/PositionRef"
            },
            "type": "array"
          },
          "query": {
            "$ref": "#/components/schemas/ViewQueryJson"
          },
          "schema": {
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "view_format": {
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "view_id": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "schema",
          "view_format",
          "exact",
          "positions",
          "query",
          "mermaid",
          "graph"
        ],
        "type": "object"
      },
      "ViewGraph": {
        "properties": {
          "edges": {
            "items": {
              "$ref": "#/components/schemas/GraphEdge"
            },
            "type": "array"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/GraphNode"
            },
            "type": "array"
          },
          "shown": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          },
          "title": {
            "type": "string"
          },
          "total": {
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "edges",
          "nodes",
          "shown",
          "title",
          "total"
        ],
        "type": "object"
      },
      "ViewQueryJson": {
        "properties": {
          "args": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "op": {
            "type": "string"
          }
        },
        "required": [
          "op",
          "args"
        ],
        "type": "object"
      },
      "Waiting": {
        "properties": {
          "code": {
            "type": "string"
          },
          "delegation": {
            "type": "string"
          },
          "place": {
            "$ref": "#/components/schemas/Place"
          },
          "url": {
            "type": "string"
          },
          "what": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "what",
          "place"
        ],
        "type": "object"
      },
      "Zachman": {
        "additionalProperties": true,
        "description": "The six completeness dimensions. Answers are one line; anything longer belongs in the spec.",
        "properties": {
          "how": {
            "default": "",
            "type": "string"
          },
          "what": {
            "default": "",
            "type": "string"
          },
          "when": {
            "default": "",
            "type": "string"
          },
          "where": {
            "default": "",
            "type": "string"
          },
          "who": {
            "default": "",
            "type": "string"
          },
          "why": {
            "default": "",
            "type": "string"
          }
        },
        "required": [
          "what",
          "how",
          "where",
          "when",
          "who",
          "why"
        ],
        "type": "object"
      }
    }
  },
  "info": {
    "description": "The read-only routes `kanbanr serve` answers for the monitor and for tools built on the board. Version 1 stays at `/api/...`; a breaking change would be published as v2 under `/api/v2/...`, with v1 kept for a deprecation period. Routes the daemon serves that are not listed here are internal and may change. Write routes (`serve --allow-writes`) are not part of this contract. Errors are `text/plain`. The daemon answers only for its own host names and grants no cross-origin access; there is no authentication.",
    "license": {
      "identifier": "MIT OR Apache-2.0",
      "name": "MIT OR Apache-2.0"
    },
    "summary": "The view daemon's public read routes.",
    "title": "kanbanr read API",
    "version": "1"
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "paths": {
    "/api/events": {
      "get": {
        "operationId": "getEvents",
        "responses": {
          "200": {
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "A stream of server-sent events. Each is `event: changed`, with `data:` the id of the project that changed, or `*` for a change to the board as a whole."
          }
        },
        "summary": "Server-sent events: `changed` whenever anything on the board changes"
      }
    },
    "/api/meta": {
      "get": {
        "operationId": "getMeta",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Meta"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "What this daemon can do, and who an approval here would be attributed to"
      }
    },
    "/api/openapi.json": {
      "get": {
        "operationId": "getOpenapiJson",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "An OpenAPI 3.1 document: this one.",
                  "type": "object"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "This description of the public read API"
      }
    },
    "/api/portfolio": {
      "get": {
        "operationId": "getPortfolio",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortfolioView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The workspace: its programs and their projects"
      }
    },
    "/api/portfolio/board": {
      "get": {
        "operationId": "getPortfolioBoard",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BoardReport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "Every project's items on one board, in normalized lanes"
      }
    },
    "/api/portfolio/rollups": {
      "get": {
        "operationId": "getPortfolioRollups",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RollupReport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "Progress rolled up by program and project"
      }
    },
    "/api/projects": {
      "get": {
        "operationId": "getProjects",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProjectSummary"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "The projects on the board"
      }
    },
    "/api/projects/{project}": {
      "get": {
        "operationId": "getProjectsOne",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "A project: its configuration, milestones and items"
      }
    },
    "/api/projects/{project}/activity": {
      "get": {
        "operationId": "getProjectsActivity",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only the changes to this item.",
            "in": "query",
            "name": "ref",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only changes to items in a status that is not a board column.",
            "in": "query",
            "name": "ongoing",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "At most this many entries; 25 when absent.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Activity"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "Recent changes to the project, newest first"
      }
    },
    "/api/projects/{project}/adrs": {
      "get": {
        "operationId": "getProjectsAdrs",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Adr"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The project's architecture decision records"
      }
    },
    "/api/projects/{project}/charter": {
      "get": {
        "operationId": "getProjectsCharter",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charter"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The project's charter: purpose, goals, scope and constraints"
      }
    },
    "/api/projects/{project}/decisions": {
      "get": {
        "operationId": "getProjectsDecisions",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DecisionsView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "Where the project's decisions are taken (FTR-028): the mode and its history, every delegation with where it stands, the decisions Claude took under one for the person to keep or undo, and what waits for a decision where"
      }
    },
    "/api/projects/{project}/docs": {
      "get": {
        "operationId": "getProjectsDocs",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocFolder"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The project's documentation tree"
      }
    },
    "/api/projects/{project}/docs/content": {
      "get": {
        "operationId": "getProjectsDocsContent",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The document's path under the project's docs, forward-slashed.",
            "in": "query",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/markdown; charset=utf-8": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "A document's text"
      }
    },
    "/api/projects/{project}/docs/raw": {
      "get": {
        "operationId": "getProjectsDocsRaw",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The document's path under the project's docs, forward-slashed.",
            "in": "query",
            "name": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {
                "schema": {
                  "contentMediaType": "application/octet-stream",
                  "type": "string"
                }
              }
            },
            "description": "The file's bytes; the media type follows its extension (png, jpg, gif, svg, webp, pdf; md and txt as text/plain), application/octet-stream otherwise."
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "A documentation file's bytes, such as an image"
      }
    },
    "/api/projects/{project}/events": {
      "get": {
        "operationId": "getProjectsEvents",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "A stream of server-sent events. Each is `event: changed`, with `data:` the id of the project that changed, or `*` for a change to the board as a whole."
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "Server-sent events: `changed` whenever this project changes"
      }
    },
    "/api/projects/{project}/features/{code}/diagrams": {
      "get": {
        "operationId": "getProjectsFeaturesDiagrams",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The item's code, such as FEAT-001.",
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemDiagrams"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The Mermaid blocks of an item's spec and affects_docs, with the lint's findings"
      }
    },
    "/api/projects/{project}/features/{code}/export": {
      "get": {
        "operationId": "getProjectsFeaturesExport",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The item's code, such as FEAT-001.",
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`json` for JSON; `md`, or none, for Markdown.",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "enum": [
                "md",
                "json"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeatureExport"
                }
              },
              "text/markdown; charset=utf-8": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK: Markdown, or JSON with `?format=json`."
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "One item, as Markdown, or as JSON with `?format=json`"
      }
    },
    "/api/projects/{project}/features/{code}/readiness": {
      "get": {
        "operationId": "getProjectsFeaturesReadiness",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The item's code, such as FEAT-001.",
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "What one item is missing, and what its next stages ask"
      }
    },
    "/api/projects/{project}/gantt": {
      "get": {
        "operationId": "getProjectsGantt",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/plain; charset=utf-8": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The schedule as a Mermaid gantt diagram, by milestone"
      }
    },
    "/api/projects/{project}/gate-results": {
      "get": {
        "operationId": "getProjectsGateResults",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only this gate's results.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only results for the commit with this hash (or prefix).",
            "in": "query",
            "name": "commit",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/GateResult"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The gate results recorded for the project, oldest first: which gate, which commit, passed or failed, who and when"
      }
    },
    "/api/projects/{project}/gates": {
      "get": {
        "operationId": "getProjectsGates",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "$ref": "#/components/schemas/Gate"
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The gate each status's moves are judged by, keyed by status: role-addressed gates resolved, the built-in rule included"
      }
    },
    "/api/projects/{project}/lessons": {
      "get": {
        "operationId": "getProjectsLessons",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only the lessons that bear on this item.",
            "in": "query",
            "name": "for",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Present: every lesson, retired ones included.",
            "in": "query",
            "name": "all",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Lesson"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The lessons worth showing, most believed first"
      }
    },
    "/api/projects/{project}/manual-tests": {
      "get": {
        "operationId": "getProjectsManualTests",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ManualWaiting"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The manual tests waiting for a person: each one not yet green, with its requirement and the check to make, live work first, then finished work"
      }
    },
    "/api/projects/{project}/position": {
      "get": {
        "operationId": "getProjectsPosition",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PositionAnswer"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The live position of the code repository the daemon was started in: its commit plus a hash of the uncommitted changes, and the changed paths"
      }
    },
    "/api/projects/{project}/prepared": {
      "get": {
        "operationId": "getProjectsPrepared",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "open (the default): only those waiting; all: every record.",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only records about this item.",
            "in": "query",
            "name": "item",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only records about this release.",
            "in": "query",
            "name": "release",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PreparedView"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The records Claude prepared for the person to confirm (FTR-034), newest first: each with its sources, where it stands, the person's answer and the equivalent verdict command"
      }
    },
    "/api/projects/{project}/process": {
      "get": {
        "operationId": "getProjectsProcess",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProcessStatus"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "How the project's workflow stands against the process it was applied from"
      }
    },
    "/api/projects/{project}/readiness": {
      "get": {
        "operationId": "getProjectsReadiness",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectReadiness"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "What each live item is missing, and its next stages, keyed by code"
      }
    },
    "/api/projects/{project}/releases": {
      "get": {
        "operationId": "getProjectsReleases",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ReleaseReport"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The project's releases, each with what it ships"
      }
    },
    "/api/projects/{project}/releases/{version}/cut-preview": {
      "get": {
        "operationId": "getProjectsReleasesCutPreview",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The release's version, such as 1.0.",
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CutPreview"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "What cutting a release now would ship and carry over, with nothing written"
      }
    },
    "/api/projects/{project}/releases/{version}/plan": {
      "get": {
        "operationId": "getProjectsReleasesPlan",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The release's version, such as 1.0.",
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The stage to plan a move to; the next one when absent.",
            "in": "query",
            "name": "stage",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Why the release moves back, for a move to an earlier stage.",
            "in": "query",
            "name": "reason",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleasePlan"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "What promoting a release would do, with nothing changed: the button, each step and condition, what is missing and, for the cut, what ships. The monitor reads the code repository only when started in the project folder"
      }
    },
    "/api/projects/{project}/review": {
      "get": {
        "operationId": "getProjectsReview",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ReviewEntry"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "What is waiting for a person's agreement, in the order to ask it"
      }
    },
    "/api/projects/{project}/sprints": {
      "get": {
        "operationId": "getProjectsSprints",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/Sprint"
                  },
                  "type": "array"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The project's sprints"
      }
    },
    "/api/projects/{project}/sprints/{sprint}": {
      "get": {
        "operationId": "getProjectsSprintsOne",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The sprint's code, or `active` for the sprint in progress.",
            "in": "path",
            "name": "sprint",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SprintReport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "One sprint's report"
      }
    },
    "/api/projects/{project}/views/docs": {
      "get": {
        "operationId": "getProjectsViewsDocs",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The folder whose markdown files are drawn (default docs).",
            "in": "query",
            "name": "root",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The most files drawn (default 60).",
            "in": "query",
            "name": "max-nodes",
            "required": false,
            "schema": {
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "A position text: a commit, or a commit plus `+` and a dirty hash. A clean commit is read from the repository; a dirty position only while the checkout is at it, else a 409.",
            "in": "query",
            "name": "at",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewAnswer"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The markdown docs under a folder, drawn at the live position or at `at`, with an ID that repeats while the position, the board and the question repeat; an ID only when the answer is exact"
      }
    },
    "/api/projects/{project}/workflow": {
      "get": {
        "operationId": "getProjectsWorkflow",
        "parameters": [
          {
            "description": "The project's id.",
            "in": "path",
            "name": "project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The diagram language; only `mermaid`.",
            "in": "query",
            "name": "format",
            "required": true,
            "schema": {
              "enum": [
                "mermaid"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/plain; charset=utf-8": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/E400"
          },
          "404": {
            "$ref": "#/components/responses/E404"
          },
          "409": {
            "$ref": "#/components/responses/E409"
          },
          "500": {
            "$ref": "#/components/responses/E500"
          }
        },
        "summary": "The workflow as a Mermaid state diagram"
      }
    },
    "/healthz": {
      "get": {
        "operationId": "getHealthz",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Liveness probe"
      }
    }
  }
}