@talonic/docs 0.21.30 → 0.21.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/openapi.json CHANGED
@@ -67,7 +67,7 @@
67
67
  },
68
68
  {
69
69
  "name": "Delivery",
70
- "description": "Outbound delivery. Configure destinations (six live connectors: webhook, sftp,\ns3, azure_blob, google_drive, onedrive), create bindings that join signal filters\nto deliverable types + destinations + serializers, and inspect the\nhistory/DLQ/events log. Every delivery is at-least-once with an idempotency key\non the wire.\n\n## Webhook Contract\n\n**Event payload:**\n```json\n{\n \"event\": {\n \"event_type\": \"document.extracted\",\n \"event_id\": \"42\",\n \"binding_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"idempotency_key\": \"c9f3a7e1b2d4f6a8e0c2d4f6a8e0c2d4\",\n \"attempt\": 1,\n \"delivered_at\": \"2026-04-25T14:30:00.000Z\"\n },\n \"payload\": { \"document_id\": \"...\", \"data\": { \"...extracted fields...\" } }\n}\n```\n\n**Event types:** `document.extracted` (deliver with the `document.capture`\ndeliverable for the raw field map; its payload gains optional `metadata`/\n`batch_id` read from the document's own `client_metadata`/`client_batch_id`\ncolumns — document-scoped, not request-scoped, since this deliverable has\nno run-request context; present only when set),\n`document.extraction_failed`,\n`document.structured` (per-document structured fields from a Spec pipeline / `/v1/run`; deliver with the `pipeline.capture` deliverable — its payload carries `run_id` (null outside `/v1/run`), `document_id`, `pipeline_id`, `fields` for submission correlation, and optional `metadata`/`batch_id`; for a `/v1/run`-attributed document these read the ATTRIBUTED REQUEST's per-input merged bag first — correct under byte-identical dedup and append, where the canonical documents row can carry a different submission's tags — falling back to the documents row when no request is attributed; present only when set),\n`run.completed` (a `POST /v1/run` pipeline finished; payload adds `records` —\nan array of `{ document_id, filename, data, metadata?, batch_id? }`, one entry\nper output row, ALWAYS an array even for a single document; `metadata`/\n`batch_id` are the submitting request's per-input merged bag (echo-sourced,\nso dedup/append never leaks another request's tags onto this one's records),\npresent only when set; assembled runs attribute each\ncomposed row to its anchor document; `document_id` and `filename` are\nnullable — null when a row's document identity cannot be resolved —\nalongside the legacy `structured_data`,\nstill emitted but considered legacy in favor of `records`),\n`run.failed` (a `POST /v1/run` pipeline failed — every document errored\nduring ingest or extraction; the `error` object's shape varies by failure\nstage and may include `document_ids`, a best-effort array of the input\ndocument ids),\n`run.dataspace.completed`, `run.dataspace.failed`, `result.dataspace.completed`,\n`result.dataspace.failed`, `run.structuring.completed`, `run.structuring.failed`,\n`run.resolution.completed`, `run.resolution.failed`, `run.extraction.completed`,\n`run.extraction.failed`, `result.flagged`, `result.approved`, `result.rejected`,\n`delivery.item.completed`, `delivery.item.failed`.\n\n**Typed structured values:** `run.completed` and `document.structured`\nemit typed field values natively — a field backed by a structured\nsubschema arrives as an array of objects (e.g.\n`[{\"label\":\"BoL\",\"value\":\"123\"}]`), not a stringified scalar, and each\nobject's subfields are typed per their declared subfield `data_type`. A\nconsumer that assumes every field value is a scalar breaks silently on\nsuch a field; that is the consumer's contract violation, not a payload\nchange. `document.extracted` is unaffected — its arrays are pre-flattened\nat the capture layer.\n\n\nThe same subfield typing applies on `json`/`ndjson` delivery and on the\n`/v1` poll — `GET /v1/run/{id}/results` and `GET /v1/pipelines/{id}/results`,\nboth the `fields` map and the `?include=cells` `cells[].value` — so the\npoll and the webhook agree. Per-subfield miss behavior follows the wire\nform of the declared type: a `number` or `boolean` subfield value that\nfails to parse emits `null` (these types have no string wire form, so the\nwire stays strictly number-or-null / boolean-or-null); an `enum` or `date`\nsubfield value that is out-of-vocabulary or unparseable passes through as\nits raw string (these types ARE string-typed on the wire, so a present\nvalue is never dropped). A nested array or object subfield value passes\nthrough raw. The `audit[].value` view is the deliberate raw history view\nand is never type-projected. Every extraction WIRE leaf remains\nstring-typed — subfield typing is derived at this outbound edge, not\ncarried on the extraction wire.\n\n**Signature verification (HMAC-SHA256):**\n\nHeader: `X-Talonic-Signature: t=1714060200000,v1=abc123...`\n\n```javascript\nconst crypto = require('crypto');\nconst [tPart, vPart] = signature.split(',');\nconst timestamp = tPart.split('=')[1];\nconst received = vPart.split('=')[1];\nconst expected = crypto.createHmac('sha256', signingSecret)\n .update(timestamp + '.' + rawBody).digest('hex');\nconst valid = crypto.timingSafeEqual(\n Buffer.from(received), Buffer.from(expected));\n```\n\n**Retry policy:** Up to 7 attempts — 0s, 30s, 2m, 8m, 30m, 2h, 8h (~10.5h total).\nHTTP 429/5xx are retryable. HTTP 4xx (except 408) goes to DLQ immediately.\n\n**Dead-letter queue recovery:** When all retries are exhausted, the delivery\nlands in the DLQ. List failed deliveries with `GET /v1/delivery/dlq`\n(filterable by `binding_id` and `error_code`). Inspect a single entry with\n`GET /v1/delivery/dlq/{id}`. Replay with `POST /v1/delivery/dlq/{id}/replay`\n— this deletes the DLQ entry, re-signs the payload with the current\nsigning secret, resets the retry counter to attempt 1, and re-enqueues\nthe delivery through the full backoff ladder.\n"
70
+ "description": "Outbound delivery. Configure destinations (six live connectors: webhook, sftp,\ns3, azure_blob, google_drive, onedrive), create bindings that join signal filters\nto deliverable types + destinations + serializers, and inspect the\nhistory/DLQ/events log. Every delivery is at-least-once with an idempotency key\non the wire.\n\n## Webhook Contract\n\n**Event payload:**\n```json\n{\n \"event\": {\n \"event_type\": \"document.extracted\",\n \"event_id\": \"42\",\n \"binding_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"idempotency_key\": \"c9f3a7e1b2d4f6a8e0c2d4f6a8e0c2d4\",\n \"attempt\": 1,\n \"delivered_at\": \"2026-04-25T14:30:00.000Z\"\n },\n \"payload\": { \"document_id\": \"...\", \"data\": { \"...extracted fields...\" } }\n}\n```\n\n**Event types:** `document.extracted` (deliver with the `document.capture`\ndeliverable for the raw field map; its payload gains optional `metadata`/\n`batch_id` read from the document's own `client_metadata`/`client_batch_id`\ncolumns — document-scoped, not request-scoped, since this deliverable has\nno run-request context; present only when set),\n`document.extraction_failed`,\n`document.structured` (per-document structured fields from a Spec pipeline / `/v1/run`; deliver with the `pipeline.capture` deliverable — its payload carries `run_id` (null outside `/v1/run`), `document_id`, `pipeline_id`, `fields` for submission correlation, and optional `metadata`/`batch_id`; for a `/v1/run`-attributed document these read the ATTRIBUTED REQUEST's per-input merged bag first — correct under byte-identical dedup and append, where the canonical documents row can carry a different submission's tags — falling back to the documents row when no request is attributed; present only when set),\n`run.dataspace.completed`, `run.dataspace.failed`, `result.dataspace.completed`,\n`result.dataspace.failed`, `run.structuring.completed`, `run.structuring.failed`,\n`run.resolution.completed`, `run.resolution.failed`, `run.extraction.completed`,\n`run.extraction.failed`, `result.flagged`, `result.approved`, `result.rejected`,\n`delivery.item.completed`, `delivery.item.failed`,\n`dispatch.row.requested` (a Spec Dispatch node was manually triggered at row\ngrain — one signal per record; payload carries `pipeline_id`, `spec_id`,\n`stage_id`, `dispatch_id`, `row_source` (`document` | `product`),\n`document_id` and optional `product_record_id`; deliver with the\n`pipeline.capture` deliverable),\n`dispatch.pipeline.requested` (manual Dispatch at pipeline grain — one signal\nper chunk of structured rows; payload carries `pipeline_id`, `spec_id`,\n`stage_id`, `dispatch_id`, `scope` (`all` | `changed_since`),\n`chunk` (`{ index, count }`) and `record_count`; deliver with `pipeline.rows`),\n`dispatch.assembly.requested` (same payload, assembled records; deliver with\n`pipeline.assembly_product`),\n`dispatch.matcher.requested` (same payload, matched records; deliver with\n`pipeline.matcher_product`),\n`dispatch.data_product.requested` (manual Dispatch at data-product grain — one\nsignal per dispatch; payload carries `pipeline_id`, `spec_id`, `stage_id`,\n`dispatch_id` and `data_product_id`; deliver with `data_product.export`),\n`pipeline.completed` (a One Engine pipeline finished every phase; payload\ncarries `pipeline_id`, `schema_id` and optional `run_request_id`/\n`document_ids` for the submitting `POST /v1/run` request; deliver with the\n`pipeline.rows` deliverable),\n`pipeline.failed` (a One Engine pipeline run terminated with a fatal error;\npayload carries the `error` object plus optional `run_request_id` and\n`schema_id` — `pipeline_id` is null when the failure preceded pipeline\ncreation, in which case the run-request id is the only handle; deliver with\nthe `notification` deliverable).\n\n**Typed structured values:** `pipeline.completed` and `document.structured`\nemit typed field values natively — a field backed by a structured\nsubschema arrives as an array of objects (e.g.\n`[{\"label\":\"BoL\",\"value\":\"123\"}]`), not a stringified scalar, and each\nobject's subfields are typed per their declared subfield `data_type`. A\nconsumer that assumes every field value is a scalar breaks silently on\nsuch a field; that is the consumer's contract violation, not a payload\nchange. `document.extracted` is unaffected — its arrays are pre-flattened\nat the capture layer.\n\n\nThe same subfield typing applies on `json`/`ndjson` delivery and on the\n`/v1` poll — `GET /v1/run/{id}/results` and `GET /v1/pipelines/{id}/results`,\nboth the `fields` map and the `?include=cells` `cells[].value` — so the\npoll and the webhook agree. Per-subfield miss behavior follows the wire\nform of the declared type: a `number` or `boolean` subfield value that\nfails to parse emits `null` (these types have no string wire form, so the\nwire stays strictly number-or-null / boolean-or-null); an `enum` or `date`\nsubfield value that is out-of-vocabulary or unparseable passes through as\nits raw string (these types ARE string-typed on the wire, so a present\nvalue is never dropped). A nested array or object subfield value passes\nthrough raw. The `audit[].value` view is the deliberate raw history view\nand is never type-projected. Every extraction WIRE leaf remains\nstring-typed — subfield typing is derived at this outbound edge, not\ncarried on the extraction wire.\n\n**Signature verification (HMAC-SHA256):**\n\nHeader: `X-Talonic-Signature: t=1714060200000,v1=abc123...`\n\n```javascript\nconst crypto = require('crypto');\nconst [tPart, vPart] = signature.split(',');\nconst timestamp = tPart.split('=')[1];\nconst received = vPart.split('=')[1];\nconst expected = crypto.createHmac('sha256', signingSecret)\n .update(timestamp + '.' + rawBody).digest('hex');\nconst valid = crypto.timingSafeEqual(\n Buffer.from(received), Buffer.from(expected));\n```\n\n**Retry policy:** Up to 7 attempts — 0s, 30s, 2m, 8m, 30m, 2h, 8h (~10.5h total).\nHTTP 429/5xx are retryable. HTTP 4xx (except 408) goes to DLQ immediately.\n\n**Dead-letter queue recovery:** When all retries are exhausted, the delivery\nlands in the DLQ. List failed deliveries with `GET /v1/delivery/dlq`\n(filterable by `binding_id` and `error_code`). Inspect a single entry with\n`GET /v1/delivery/dlq/{id}`. Replay with `POST /v1/delivery/dlq/{id}/replay`\n— this deletes the DLQ entry, re-signs the payload with the current\nsigning secret, resets the retry counter to attempt 1, and re-enqueues\nthe delivery through the full backoff ladder.\n"
71
71
  },
72
72
  {
73
73
  "name": "Filter",
@@ -669,6 +669,99 @@
669
669
  }
670
670
  }
671
671
  },
672
+ "patch": {
673
+ "operationId": "updateDocumentTags",
674
+ "summary": "Update a document's caller tags",
675
+ "description": "Post-ingest update of the caller tags accepted at upload time (`batch_id` and `metadata`). `metadata` is MERGED over the stored bag — a patch key wins, `null` is a stored value (never a deletion), and the merged bag must satisfy the same caps as at ingest (≤50 keys, key ≤128 chars, string value ≤1024 chars) or the request is rejected with the document unchanged. `batch_id` is three-state: a non-blank string sets it, `null` clears it, and omitting the field leaves it untouched. Note that a byte-identical re-upload does NOT update tags (dedup keeps the canonical document's original tags) — this endpoint is the way to change what an existing document id carries. Pipelines read `batch_id`/`metadata` at run time, so a later run or rerun of the document picks the new tags up.",
676
+ "tags": [
677
+ "Documents"
678
+ ],
679
+ "parameters": [
680
+ {
681
+ "$ref": "#/components/parameters/ResourceId"
682
+ }
683
+ ],
684
+ "requestBody": {
685
+ "required": true,
686
+ "content": {
687
+ "application/json": {
688
+ "schema": {
689
+ "type": "object",
690
+ "minProperties": 1,
691
+ "properties": {
692
+ "batch_id": {
693
+ "type": "string",
694
+ "nullable": true,
695
+ "maxLength": 200,
696
+ "description": "Grouping key — string sets, null clears, absent untouched."
697
+ },
698
+ "metadata": {
699
+ "type": "object",
700
+ "additionalProperties": {
701
+ "nullable": true,
702
+ "oneOf": [
703
+ {
704
+ "type": "string"
705
+ },
706
+ {
707
+ "type": "number"
708
+ },
709
+ {
710
+ "type": "boolean"
711
+ }
712
+ ]
713
+ },
714
+ "description": "Flat primitive bag merged over the stored metadata."
715
+ }
716
+ }
717
+ }
718
+ }
719
+ }
720
+ },
721
+ "responses": {
722
+ "200": {
723
+ "description": "Updated tags. `batch_id`/`metadata` are echoed only when set.",
724
+ "content": {
725
+ "application/json": {
726
+ "schema": {
727
+ "type": "object",
728
+ "required": [
729
+ "id",
730
+ "updated"
731
+ ],
732
+ "properties": {
733
+ "id": {
734
+ "type": "string",
735
+ "format": "uuid"
736
+ },
737
+ "updated": {
738
+ "type": "boolean"
739
+ },
740
+ "batch_id": {
741
+ "type": "string"
742
+ },
743
+ "metadata": {
744
+ "type": "object"
745
+ }
746
+ }
747
+ }
748
+ }
749
+ }
750
+ },
751
+ "400": {
752
+ "$ref": "#/components/responses/BadRequest"
753
+ },
754
+ "401": {
755
+ "$ref": "#/components/responses/Unauthorized"
756
+ },
757
+ "404": {
758
+ "$ref": "#/components/responses/NotFound"
759
+ },
760
+ "429": {
761
+ "$ref": "#/components/responses/RateLimitExceeded"
762
+ }
763
+ }
764
+ },
672
765
  "delete": {
673
766
  "operationId": "deleteDocument",
674
767
  "summary": "Delete a document",
@@ -1041,6 +1134,142 @@
1041
1134
  }
1042
1135
  }
1043
1136
  },
1137
+ "/v1/documents/{id}/span-geometry": {
1138
+ "get": {
1139
+ "operationId": "getDocumentSpanGeometry",
1140
+ "summary": "Locate a provenance span on the original page (bounding boxes)",
1141
+ "description": "Resolves a provenance `text` quote to rectangles on the ORIGINAL page of the\ndocument — the server-side path for scanned (image-only) PDFs and image\nuploads, where no client-side text-layer match is possible. The document's\nown text layer is used when it has one; otherwise the page is OCR'd for word\nboxes and the span is aligned to them. Results are cached per document.\n\nRectangles are **page fractions** in `[0, 1]` with a top-left origin. Render\nyour own copy of `page_index` at any DPI (or use the image as is) and multiply\nby the rendered width and height:\n`box = (left × W, top × H, width × W, height × H)`. For an image the fractions\nare relative to the stored pixel grid — draw against the raw pixels (EXIF\norientation not applied). Render PDFs with a tool that honors the page's\n`/Rotate`, as the server does.\n\nGate on `method`: `pdf_text_layer` and `ocr_word_boxes` are the exact span\nwindow, `section` is the enclosing line (a region hint), `llm_vision` is a\nmodel-located box verified against the page's own words, `page` means the page\nwas located but no rectangle aligned (`rects` empty), and `none` means nothing\nwas located (`page_index` null). An empty result is an honest miss — show no\nhighlight rather than a wrong one.\n\nThis is an interactive, per-click endpoint: a cold page costs several seconds\nof OCR and pages are processed one at a time per API instance. One call per\norganization is in flight at a time on this route; a concurrent second call\nreceives `429` with `Retry-After: 5`. Call it when a user selects a field, not\nin bulk across a corpus. `text` longer than the configured maximum (500\ncharacters by default) is truncated before matching.\n",
1142
+ "tags": [
1143
+ "Documents"
1144
+ ],
1145
+ "parameters": [
1146
+ {
1147
+ "$ref": "#/components/parameters/ResourceId"
1148
+ },
1149
+ {
1150
+ "name": "text",
1151
+ "in": "query",
1152
+ "required": true,
1153
+ "schema": {
1154
+ "type": "string"
1155
+ },
1156
+ "example": "Load # U6694044",
1157
+ "description": "The provenance entry's `text` (the verbatim document quote) to locate, exactly as delivered. Exactly once — a repeated key is a 400."
1158
+ },
1159
+ {
1160
+ "name": "page",
1161
+ "in": "query",
1162
+ "required": false,
1163
+ "schema": {
1164
+ "type": "integer",
1165
+ "minimum": 0
1166
+ },
1167
+ "example": 0,
1168
+ "description": "0-based page to search first (the provenance entry's `page_index`). When\nomitted the page is derived from the document's OCR page map.\n"
1169
+ }
1170
+ ],
1171
+ "responses": {
1172
+ "200": {
1173
+ "description": "Located rectangles, or an honest miss.",
1174
+ "content": {
1175
+ "application/json": {
1176
+ "schema": {
1177
+ "type": "object",
1178
+ "required": [
1179
+ "document_id",
1180
+ "page_index",
1181
+ "rects",
1182
+ "method"
1183
+ ],
1184
+ "properties": {
1185
+ "document_id": {
1186
+ "type": "string",
1187
+ "format": "uuid"
1188
+ },
1189
+ "page_index": {
1190
+ "type": "integer",
1191
+ "nullable": true,
1192
+ "description": "0-based page the rectangles belong to; null when nothing was located."
1193
+ },
1194
+ "rects": {
1195
+ "type": "array",
1196
+ "description": "Page-fraction rectangles, one per text line. Empty for `page` and `none`.",
1197
+ "items": {
1198
+ "type": "object",
1199
+ "required": [
1200
+ "left",
1201
+ "top",
1202
+ "width",
1203
+ "height"
1204
+ ],
1205
+ "properties": {
1206
+ "left": {
1207
+ "type": "number",
1208
+ "minimum": 0,
1209
+ "maximum": 1
1210
+ },
1211
+ "top": {
1212
+ "type": "number",
1213
+ "minimum": 0,
1214
+ "maximum": 1
1215
+ },
1216
+ "width": {
1217
+ "type": "number",
1218
+ "minimum": 0,
1219
+ "maximum": 1
1220
+ },
1221
+ "height": {
1222
+ "type": "number",
1223
+ "minimum": 0,
1224
+ "maximum": 1
1225
+ }
1226
+ }
1227
+ }
1228
+ },
1229
+ "method": {
1230
+ "type": "string",
1231
+ "enum": [
1232
+ "pdf_text_layer",
1233
+ "ocr_word_boxes",
1234
+ "section",
1235
+ "llm_vision",
1236
+ "page",
1237
+ "none"
1238
+ ]
1239
+ }
1240
+ }
1241
+ },
1242
+ "example": {
1243
+ "document_id": "2521dead-3e80-4210-945f-eac86a60fdf5",
1244
+ "page_index": 0,
1245
+ "rects": [
1246
+ {
1247
+ "left": 0.8355,
1248
+ "top": 0.0391,
1249
+ "width": 0.157,
1250
+ "height": 0.0069
1251
+ }
1252
+ ],
1253
+ "method": "ocr_word_boxes"
1254
+ }
1255
+ }
1256
+ }
1257
+ },
1258
+ "400": {
1259
+ "description": "Missing or repeated `text`, or `page` is not a single non-negative integer."
1260
+ },
1261
+ "401": {
1262
+ "$ref": "#/components/responses/Unauthorized"
1263
+ },
1264
+ "404": {
1265
+ "$ref": "#/components/responses/NotFound"
1266
+ },
1267
+ "429": {
1268
+ "description": "Another span-geometry call for this organization is in flight (`Retry-After: 5`), or the rate limit was exceeded."
1269
+ }
1270
+ }
1271
+ }
1272
+ },
1044
1273
  "/v1/documents/upload-session": {
1045
1274
  "post": {
1046
1275
  "operationId": "createUploadSession",
@@ -5071,7 +5300,7 @@
5071
5300
  "get": {
5072
5301
  "operationId": "getDeliveryCatalogDeliverables",
5073
5302
  "summary": "All registered deliverable resolvers",
5074
- "description": "Live resolvers include `notification`, `markdown`, `document.capture`,\n`document.meta`, `run.dataspace.outcome`, `run.structuring.outcome`,\n`run.resolution.outcome`, `run.extraction.outcome`, `record.approved`,\nand `case.snapshot` (routes the `case.resolved` signal into a flat case\nsnapshot record). The `graph.relations` resolver remains a stub with an\nempty `compatible_signals` array and never routes real traffic.\n",
5303
+ "description": "Live resolvers include `notification`, `markdown`, `document.capture`,\n`document.meta`, `run.dataspace.outcome`, `run.structuring.outcome`,\n`run.resolution.outcome`, `run.extraction.outcome`, `record.approved`,\n`pipeline.capture`, and `case.snapshot` (routes the `case.resolved`\nsignal into a flat case snapshot record).\n\n\nFour resolvers serve pipeline-level and Dispatch-node grains:\n`pipeline.rows` (every structured record of a One Engine pipeline, or a\nDispatch node's frozen document slice — one row per document, the\n`records[]` contract of the retired `run.completed` webhook; binds to\n`pipeline.completed` and `dispatch.pipeline.requested`),\n`pipeline.assembly_product` (the composed assembly product set, one row\nper anchor-merged product record; binds to\n`dispatch.assembly.requested`), `pipeline.matcher_product` (per\ndocument, the matcher decision for each bound output field — matched /\nshortlist / no_match, tier, matched value and the winner's pinned\nreference columns; rival rows never ship; binds to\n`dispatch.matcher.requested`) and `data_product.export` (the same CSV\nbytes `GET /data-products/{id}/export` serves, for the pipeline's data\nproduct; blob shape, so raw/file serializers only; binds to\n`dispatch.data_product.requested`).\n\n\nThe `graph.relations` resolver remains a stub with an\nempty `compatible_signals` array and never routes real traffic.\n",
5075
5304
  "tags": [
5076
5305
  "Delivery"
5077
5306
  ],
@@ -6281,6 +6510,42 @@
6281
6510
  "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
6282
6511
  },
6283
6512
  "description": "Filter by cluster."
6513
+ },
6514
+ {
6515
+ "name": "maturity",
6516
+ "in": "query",
6517
+ "schema": {
6518
+ "type": "string",
6519
+ "enum": [
6520
+ "core",
6521
+ "proven",
6522
+ "candidate"
6523
+ ]
6524
+ },
6525
+ "description": "Filter by the named maturity level (`core` = tier 1, `proven` = tier 2, `candidate` = tier 3). Takes precedence over `tier`. Unknown values 400 (`invalid_maturity`)."
6526
+ },
6527
+ {
6528
+ "name": "include_superseded",
6529
+ "in": "query",
6530
+ "schema": {
6531
+ "type": "boolean",
6532
+ "default": false
6533
+ },
6534
+ "description": "Superseded rows (merged into a survivor; `superseded_by` set) are hidden by default so a cached vocabulary never carries two ids for one concept. `true` includes them."
6535
+ },
6536
+ {
6537
+ "name": "admission_state",
6538
+ "in": "query",
6539
+ "schema": {
6540
+ "type": "string",
6541
+ "enum": [
6542
+ "canonical",
6543
+ "provisional",
6544
+ "all"
6545
+ ],
6546
+ "default": "canonical"
6547
+ },
6548
+ "description": "Canonical read plane. Defaults to proven concepts only; `provisional` shows the recurrence-gated pool, `all` disables the filter."
6284
6549
  }
6285
6550
  ],
6286
6551
  "responses": {
@@ -6354,17 +6619,80 @@
6354
6619
  }
6355
6620
  }
6356
6621
  },
6622
+ "/v1/fields/resolve": {
6623
+ "get": {
6624
+ "operationId": "resolveField",
6625
+ "summary": "Resolve a field name to the live concept",
6626
+ "description": "Stable-identity entry point for a consumer that holds a field NAME rather\nthan an id. Lookup order, first hit wins — indexed arms first, then two\ncase-insensitive sequential-scan fallbacks: exact `canonical_name` → the\nregistry `match_key` fold (separator / case / accent / plural\ninsensitive, the same `field_match_key()` the resolver binds with) → a\nmerge alias (`field_registry_aliases`) → exact `synonyms[]` containment\n(names folded in by merges and cleanup) → case-insensitive canonical\nname → case-insensitive synonym. The hit's redirect chain\nis then followed to the survivor unless `follow_redirects=false`, and\nevery hop is reported in `redirected_from` so a cache can rewrite its keys.\n",
6627
+ "tags": [
6628
+ "Schemas"
6629
+ ],
6630
+ "parameters": [
6631
+ {
6632
+ "name": "name",
6633
+ "in": "query",
6634
+ "required": true,
6635
+ "schema": {
6636
+ "type": "string"
6637
+ },
6638
+ "description": "The field name to resolve, e.g. `Invoice No`."
6639
+ },
6640
+ {
6641
+ "name": "follow_redirects",
6642
+ "in": "query",
6643
+ "schema": {
6644
+ "type": "boolean",
6645
+ "default": true
6646
+ },
6647
+ "description": "Walk `superseded_by` to the live survivor (default true)."
6648
+ }
6649
+ ],
6650
+ "responses": {
6651
+ "200": {
6652
+ "description": "The resolved concept.",
6653
+ "content": {
6654
+ "application/json": {
6655
+ "schema": {
6656
+ "$ref": "#/components/schemas/FieldResolveResponse"
6657
+ }
6658
+ }
6659
+ }
6660
+ },
6661
+ "400": {
6662
+ "description": "`missing_name` — the `name` query parameter is required exactly once."
6663
+ },
6664
+ "401": {
6665
+ "$ref": "#/components/responses/Unauthorized"
6666
+ },
6667
+ "404": {
6668
+ "description": "`unknown_field` — no arm matched the name in this registry."
6669
+ },
6670
+ "429": {
6671
+ "$ref": "#/components/responses/RateLimitExceeded"
6672
+ }
6673
+ }
6674
+ }
6675
+ },
6357
6676
  "/v1/fields/{id}": {
6358
6677
  "get": {
6359
6678
  "operationId": "getField",
6360
6679
  "summary": "Get a field",
6361
- "description": "Returns the field registry row plus up to 20 most recent occurrences.",
6680
+ "description": "Returns the field registry row plus up to 20 most recent occurrences.\n\nA superseded row (merged into a survivor) is returned as-is with\n`superseded_by` set, so a stored id never 404s after curation. Pass\n`follow_redirects=true` to receive the survivor instead; the hops walked\nare listed in `redirected_from`.\n",
6362
6681
  "tags": [
6363
6682
  "Schemas"
6364
6683
  ],
6365
6684
  "parameters": [
6366
6685
  {
6367
6686
  "$ref": "#/components/parameters/ResourceId"
6687
+ },
6688
+ {
6689
+ "name": "follow_redirects",
6690
+ "in": "query",
6691
+ "schema": {
6692
+ "type": "boolean",
6693
+ "default": false
6694
+ },
6695
+ "description": "Walk `superseded_by` to the live survivor and return that row."
6368
6696
  }
6369
6697
  ],
6370
6698
  "responses": {
@@ -6470,6 +6798,176 @@
6470
6798
  }
6471
6799
  }
6472
6800
  },
6801
+ "/v1/fields/{id}/card": {
6802
+ "get": {
6803
+ "operationId": "getFieldCard",
6804
+ "summary": "Get the concept card for a field",
6805
+ "description": "One read that tells a consumer what a field MEANS and how it BEHAVES, so\nan agent can choose the right concept without trial and error:\ndefinition (curated description + extraction instruction), synonyms and\nmerge aliases, maturity, where it occurs (document / occurrence counts,\nfirst/last seen, document-type spread), the value distribution (top\nvalues with counts and shares, distinct count), schema usage, and its\nidentity links (`superseded_by`, absorbed concepts).\n\nValue statistics are Sources-IAM filtered as the key's minting user and\ninclude occurrences still bound to concepts merged INTO this one, so the\ncard is complete while a merge's lazy repoint is in flight.\n",
6806
+ "tags": [
6807
+ "Schemas"
6808
+ ],
6809
+ "parameters": [
6810
+ {
6811
+ "$ref": "#/components/parameters/ResourceId"
6812
+ },
6813
+ {
6814
+ "name": "follow_redirects",
6815
+ "in": "query",
6816
+ "schema": {
6817
+ "type": "boolean",
6818
+ "default": false
6819
+ },
6820
+ "description": "Walk `superseded_by` to the live survivor and describe that concept."
6821
+ }
6822
+ ],
6823
+ "responses": {
6824
+ "200": {
6825
+ "description": "Concept card.",
6826
+ "content": {
6827
+ "application/json": {
6828
+ "schema": {
6829
+ "$ref": "#/components/schemas/FieldCardResponse"
6830
+ }
6831
+ }
6832
+ }
6833
+ },
6834
+ "401": {
6835
+ "$ref": "#/components/responses/Unauthorized"
6836
+ },
6837
+ "404": {
6838
+ "$ref": "#/components/responses/NotFound"
6839
+ },
6840
+ "429": {
6841
+ "$ref": "#/components/responses/RateLimitExceeded"
6842
+ }
6843
+ }
6844
+ }
6845
+ },
6846
+ "/v1/fields/{id}/values": {
6847
+ "get": {
6848
+ "operationId": "listFieldValues",
6849
+ "summary": "List a field's current values across documents",
6850
+ "description": "The cross-document read: one row per occurrence bound to the concept\n(a per-cell column is several rows sharing `document_id`), newest first,\ncursor-paginated, each with its provenance (raw name, verbatim source\ntext, resolution band, confirmation state). `document_id` narrows to one\ndocument; `value` is a case-insensitive contains match on the value text.\n\nSources-IAM filtered as the key's minting user — `pagination.total`\ncounts the visible set. Includes occurrences still bound to concepts\nmerged INTO this one unless `include_redirected=false`; such rows carry\n`provenance.via_redirect: true`.\n",
6851
+ "tags": [
6852
+ "Schemas"
6853
+ ],
6854
+ "parameters": [
6855
+ {
6856
+ "$ref": "#/components/parameters/ResourceId"
6857
+ },
6858
+ {
6859
+ "$ref": "#/components/parameters/Limit"
6860
+ },
6861
+ {
6862
+ "$ref": "#/components/parameters/Cursor"
6863
+ },
6864
+ {
6865
+ "$ref": "#/components/parameters/Order"
6866
+ },
6867
+ {
6868
+ "name": "document_id",
6869
+ "in": "query",
6870
+ "schema": {
6871
+ "type": "string",
6872
+ "format": "uuid"
6873
+ },
6874
+ "description": "Only occurrences on this document."
6875
+ },
6876
+ {
6877
+ "name": "value",
6878
+ "in": "query",
6879
+ "schema": {
6880
+ "type": "string"
6881
+ },
6882
+ "description": "Case-insensitive contains filter on the value text."
6883
+ },
6884
+ {
6885
+ "name": "include_redirected",
6886
+ "in": "query",
6887
+ "schema": {
6888
+ "type": "boolean",
6889
+ "default": true
6890
+ },
6891
+ "description": "Include occurrences bound to concepts merged into this one."
6892
+ },
6893
+ {
6894
+ "name": "follow_redirects",
6895
+ "in": "query",
6896
+ "schema": {
6897
+ "type": "boolean",
6898
+ "default": false
6899
+ },
6900
+ "description": "Walk `superseded_by` first and list the survivor's values."
6901
+ }
6902
+ ],
6903
+ "responses": {
6904
+ "200": {
6905
+ "description": "Paginated values with provenance.",
6906
+ "content": {
6907
+ "application/json": {
6908
+ "schema": {
6909
+ "$ref": "#/components/schemas/FieldValuesResponse"
6910
+ }
6911
+ }
6912
+ }
6913
+ },
6914
+ "401": {
6915
+ "$ref": "#/components/responses/Unauthorized"
6916
+ },
6917
+ "404": {
6918
+ "$ref": "#/components/responses/NotFound"
6919
+ },
6920
+ "429": {
6921
+ "$ref": "#/components/responses/RateLimitExceeded"
6922
+ }
6923
+ }
6924
+ }
6925
+ },
6926
+ "/v1/fields/{id}/history": {
6927
+ "get": {
6928
+ "operationId": "getFieldHistory",
6929
+ "summary": "Get a field's curation history",
6930
+ "description": "The concept's curation trail, newest first — what a consumer replays to\nkeep a cached vocabulary correct: maturity moves (`tier_changed`), merges\nin either direction (`merge_log_absorbed`, `merge_log_merged_into`,\n`absorbed`), cleanup actions applied to it (`renamed`, `rewritten`,\n`split`, `deleted`), the current redirect (`superseded`) and the names\nthat now fold onto it (`alias_added`). The same changes are announced live\non `GET /v1/events` as `field.*` signals. Never follows redirects — the\ntrail belongs to the id asked for.\n",
6931
+ "tags": [
6932
+ "Schemas"
6933
+ ],
6934
+ "parameters": [
6935
+ {
6936
+ "$ref": "#/components/parameters/ResourceId"
6937
+ },
6938
+ {
6939
+ "name": "limit",
6940
+ "in": "query",
6941
+ "schema": {
6942
+ "type": "integer",
6943
+ "default": 100,
6944
+ "maximum": 500
6945
+ }
6946
+ }
6947
+ ],
6948
+ "responses": {
6949
+ "200": {
6950
+ "description": "Curation events, newest first.",
6951
+ "content": {
6952
+ "application/json": {
6953
+ "schema": {
6954
+ "$ref": "#/components/schemas/FieldHistoryResponse"
6955
+ }
6956
+ }
6957
+ }
6958
+ },
6959
+ "401": {
6960
+ "$ref": "#/components/responses/Unauthorized"
6961
+ },
6962
+ "404": {
6963
+ "$ref": "#/components/responses/NotFound"
6964
+ },
6965
+ "429": {
6966
+ "$ref": "#/components/responses/RateLimitExceeded"
6967
+ }
6968
+ }
6969
+ }
6970
+ },
6473
6971
  "/v1/reference-data": {
6474
6972
  "get": {
6475
6973
  "operationId": "listReferenceData",
@@ -16479,6 +16977,7 @@
16479
16977
  "valid",
16480
16978
  "assembly",
16481
16979
  "deliver",
16980
+ "dispatch",
16482
16981
  "reconcile",
16483
16982
  "sanitize",
16484
16983
  "triage"
@@ -19888,6 +20387,67 @@
19888
20387
  }
19889
20388
  }
19890
20389
  },
20390
+ "/v1/pipelines/{id}/cancel": {
20391
+ "post": {
20392
+ "tags": [
20393
+ "Pipelines"
20394
+ ],
20395
+ "summary": "Cancel a running pipeline",
20396
+ "description": "Stops the run: no new phase starts, documents still in flight finish their current step and are marked cancelled, finished documents keep their results, every live /v1/run request on the pipeline is cancelled with it (each gets its own run.cancelled webhook). The pipeline keeps accepting new submissions and reruns afterwards. Requires write scope.\n",
20397
+ "operationId": "cancelPipeline",
20398
+ "security": [
20399
+ {
20400
+ "BearerAuth": []
20401
+ }
20402
+ ],
20403
+ "parameters": [
20404
+ {
20405
+ "name": "id",
20406
+ "in": "path",
20407
+ "required": true,
20408
+ "schema": {
20409
+ "type": "string",
20410
+ "format": "uuid"
20411
+ }
20412
+ }
20413
+ ],
20414
+ "requestBody": {
20415
+ "required": false,
20416
+ "content": {
20417
+ "application/json": {
20418
+ "schema": {
20419
+ "type": "object",
20420
+ "properties": {
20421
+ "reason": {
20422
+ "type": "string",
20423
+ "maxLength": 500,
20424
+ "description": "Optional free text recorded on the run and carried by the run.cancelled webhook."
20425
+ }
20426
+ }
20427
+ }
20428
+ }
20429
+ }
20430
+ },
20431
+ "responses": {
20432
+ "200": {
20433
+ "description": "Cancel result (idempotent: `already: true` on a run that was already terminal).",
20434
+ "content": {
20435
+ "application/json": {
20436
+ "schema": {
20437
+ "$ref": "#/components/schemas/PipelineCancelResponse"
20438
+ }
20439
+ }
20440
+ }
20441
+ },
20442
+ "401": {
20443
+ "$ref": "#/components/responses/Unauthorized"
20444
+ },
20445
+ "404": {
20446
+ "$ref": "#/components/responses/NotFound"
20447
+ }
20448
+ }
20449
+ }
20450
+ },
19891
20451
  "/v1/pipelines/{id}/data-product": {
19892
20452
  "post": {
19893
20453
  "tags": [
@@ -20018,7 +20578,7 @@
20018
20578
  "schema": {
20019
20579
  "type": "string"
20020
20580
  },
20021
- "description": "Comma-separated subset of cells, provenance, audit."
20581
+ "description": "Comma-separated subset of cells, provenance, provenance.nested, audit. `provenance` returns one entry per field (kind, quote, match grade, confidence, path, markdown offsets) — see ResultsProvenance; `provenance.nested` adds one entry per scalar leaf of a structured (array/object) field, keyed by the escaped dot-path."
20022
20582
  },
20023
20583
  {
20024
20584
  "name": "limit",
@@ -20080,6 +20640,360 @@
20080
20640
  }
20081
20641
  }
20082
20642
  },
20643
+ "/v1/pipelines/{id}/dispatches/{stageId}": {
20644
+ "post": {
20645
+ "tags": [
20646
+ "Pipelines"
20647
+ ],
20648
+ "summary": "Trigger a Spec Dispatch node",
20649
+ "description": "Ships a payload of the node's grain to whatever delivery bindings target that node. `stageId` is the Spec stage id of a `dispatch` node on the Spec's PUBLISHED head (`GET /v1/specs/{id}` lists the stages and their ids); the node's grain, selection and projection come from the node's own configuration, not from this call.\n\nThe trigger FREEZES what the dispatch means — the explicit document / product-record ids, the delta bounds and the projected field set — onto a dispatch row, so every attempt, every chunk and every re-dispatch resolves the same payload. It then publishes the `dispatch.*` outbox signals; the delivery poller fans them out to the matching bindings (each of which needs `signal_filter.match.spec_id` + `stage_id` naming this node). Collection grains publish one event per chunk of `delivery.dispatch.chunk_records` records; row grain publishes one event per record.\n\nOptional `document_ids` / `product_record_ids` narrow the node's population: both lists are INTERSECTED with what the node would select anyway, never unioned — a caller cannot dispatch a record the node would not. Requires write scope.\n\n`Idempotency-Key` (the UI sends one per click) makes a double-submit return the EXISTING dispatch with **200** and `existing: true` instead of publishing a second time. A fresh trigger returns **201**.\n",
20650
+ "operationId": "triggerPipelineDispatch",
20651
+ "security": [
20652
+ {
20653
+ "BearerAuth": []
20654
+ }
20655
+ ],
20656
+ "parameters": [
20657
+ {
20658
+ "name": "id",
20659
+ "in": "path",
20660
+ "required": true,
20661
+ "schema": {
20662
+ "type": "string",
20663
+ "format": "uuid"
20664
+ },
20665
+ "description": "The pipeline run to dispatch from."
20666
+ },
20667
+ {
20668
+ "name": "stageId",
20669
+ "in": "path",
20670
+ "required": true,
20671
+ "schema": {
20672
+ "type": "string",
20673
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
20674
+ "maxLength": 64
20675
+ },
20676
+ "description": "Spec stage id of the Dispatch node (editor-minted uuid or a normalized `s-dispatch` form)."
20677
+ },
20678
+ {
20679
+ "name": "Idempotency-Key",
20680
+ "in": "header",
20681
+ "required": false,
20682
+ "schema": {
20683
+ "type": "string",
20684
+ "maxLength": 200
20685
+ },
20686
+ "description": "Caller trigger key, unique per (pipeline, node). A repeat returns the existing dispatch with 200."
20687
+ }
20688
+ ],
20689
+ "requestBody": {
20690
+ "required": false,
20691
+ "content": {
20692
+ "application/json": {
20693
+ "schema": {
20694
+ "type": "object",
20695
+ "properties": {
20696
+ "document_ids": {
20697
+ "type": "array",
20698
+ "maxItems": 50000,
20699
+ "items": {
20700
+ "type": "string",
20701
+ "format": "uuid"
20702
+ },
20703
+ "description": "Explicit subset of the node's document population (document-keyed grains). Intersected, never unioned."
20704
+ },
20705
+ "product_record_ids": {
20706
+ "type": "array",
20707
+ "maxItems": 50000,
20708
+ "items": {
20709
+ "type": "string",
20710
+ "format": "uuid"
20711
+ },
20712
+ "description": "Explicit subset of the assembly product records (product-keyed grains). Intersected, never unioned."
20713
+ }
20714
+ }
20715
+ }
20716
+ }
20717
+ }
20718
+ },
20719
+ "responses": {
20720
+ "200": {
20721
+ "description": "The `Idempotency-Key` matched an existing dispatch — its row is returned unchanged, with `existing` true, and nothing was published a second time.\n",
20722
+ "content": {
20723
+ "application/json": {
20724
+ "schema": {
20725
+ "$ref": "#/components/schemas/DispatchTriggerResult"
20726
+ }
20727
+ }
20728
+ }
20729
+ },
20730
+ "201": {
20731
+ "description": "Dispatch created and its events published. `status` is `published` (events on the outbox), `empty` (the frozen selection held no records — nothing was published), or `failed` (publishing threw part-way; `error` carries the reason and the pending sweep retries the missing events).\n",
20732
+ "content": {
20733
+ "application/json": {
20734
+ "schema": {
20735
+ "$ref": "#/components/schemas/DispatchTriggerResult"
20736
+ }
20737
+ }
20738
+ }
20739
+ },
20740
+ "400": {
20741
+ "description": "Malformed stage id, or a body that failed validation (`VALIDATION_ERROR`).",
20742
+ "content": {
20743
+ "application/json": {
20744
+ "schema": {
20745
+ "$ref": "#/components/schemas/ErrorResponse"
20746
+ }
20747
+ }
20748
+ }
20749
+ },
20750
+ "404": {
20751
+ "description": "Pipeline not found (`RESOURCE_NOT_FOUND`), or the Spec's published head carries no `dispatch` node with that stage id (`DISPATCH_NODE_NOT_FOUND`).\n",
20752
+ "content": {
20753
+ "application/json": {
20754
+ "schema": {
20755
+ "$ref": "#/components/schemas/ErrorResponse"
20756
+ }
20757
+ }
20758
+ }
20759
+ },
20760
+ "409": {
20761
+ "description": "`DISPATCH_PIPELINE_NOT_READY` — the pipeline is a preview, or is still running and the node's grain needs a settled run (the pipeline / assembly / data_product grains; row grain may ship completed documents of a live run). `DISPATCH_SPEC_UNPUBLISHED` — the Spec has no published version (a draft-only Spec has no head to read the node from). `DISPATCH_NODE_INVALID` — the node carries an error-level diagnostic. `DISPATCH_NO_DATA_PRODUCT` — `data_product` grain on a pipeline with no active data product (Dispatch never creates one). A governance hold on the run's documents also 409s, listing the holds.\n",
20762
+ "content": {
20763
+ "application/json": {
20764
+ "schema": {
20765
+ "$ref": "#/components/schemas/ErrorResponse"
20766
+ }
20767
+ }
20768
+ }
20769
+ },
20770
+ "413": {
20771
+ "description": "`DISPATCH_TOO_LARGE` — the frozen selection exceeds `delivery.dispatch.max_records` (default 50 000), or a row-grain dispatch exceeds `delivery.dispatch.max_row_events` (default 5 000, since row grain publishes one event per record).\n",
20772
+ "content": {
20773
+ "application/json": {
20774
+ "schema": {
20775
+ "$ref": "#/components/schemas/ErrorResponse"
20776
+ }
20777
+ }
20778
+ }
20779
+ },
20780
+ "429": {
20781
+ "$ref": "#/components/responses/RateLimitExceeded"
20782
+ }
20783
+ }
20784
+ }
20785
+ },
20786
+ "/v1/pipelines/{id}/dispatches": {
20787
+ "get": {
20788
+ "tags": [
20789
+ "Pipelines"
20790
+ ],
20791
+ "summary": "List a pipeline's dispatches",
20792
+ "description": "Dispatch history for the pipeline, newest first, optionally for one node. Each row carries its frozen selection and projection plus `items[]` — the per-binding delivery-attempt summary joined through the outbox events' `dispatch_id`, so a dispatch shows where its payload actually went. Requires read scope.\n",
20793
+ "operationId": "listPipelineDispatches",
20794
+ "security": [
20795
+ {
20796
+ "BearerAuth": []
20797
+ }
20798
+ ],
20799
+ "parameters": [
20800
+ {
20801
+ "name": "id",
20802
+ "in": "path",
20803
+ "required": true,
20804
+ "schema": {
20805
+ "type": "string",
20806
+ "format": "uuid"
20807
+ }
20808
+ },
20809
+ {
20810
+ "name": "stage_id",
20811
+ "in": "query",
20812
+ "required": false,
20813
+ "schema": {
20814
+ "type": "string",
20815
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
20816
+ "maxLength": 64
20817
+ },
20818
+ "description": "Limit to one Dispatch node."
20819
+ },
20820
+ {
20821
+ "name": "limit",
20822
+ "in": "query",
20823
+ "required": false,
20824
+ "schema": {
20825
+ "type": "integer",
20826
+ "default": 50,
20827
+ "minimum": 1,
20828
+ "maximum": 200
20829
+ },
20830
+ "description": "Rows to return (clamped to 1..200; default 50)."
20831
+ }
20832
+ ],
20833
+ "responses": {
20834
+ "200": {
20835
+ "description": "Dispatch rows, newest first.",
20836
+ "content": {
20837
+ "application/json": {
20838
+ "schema": {
20839
+ "type": "array",
20840
+ "items": {
20841
+ "$ref": "#/components/schemas/Dispatch"
20842
+ }
20843
+ }
20844
+ }
20845
+ }
20846
+ },
20847
+ "429": {
20848
+ "$ref": "#/components/responses/RateLimitExceeded"
20849
+ }
20850
+ }
20851
+ }
20852
+ },
20853
+ "/v1/pipelines/{id}/dispatches/{dispatchId}": {
20854
+ "get": {
20855
+ "tags": [
20856
+ "Pipelines"
20857
+ ],
20858
+ "summary": "Get one dispatch",
20859
+ "description": "One dispatch row with its frozen selection, projection and publish outcome. Requires read scope.",
20860
+ "operationId": "getPipelineDispatch",
20861
+ "security": [
20862
+ {
20863
+ "BearerAuth": []
20864
+ }
20865
+ ],
20866
+ "parameters": [
20867
+ {
20868
+ "name": "id",
20869
+ "in": "path",
20870
+ "required": true,
20871
+ "schema": {
20872
+ "type": "string",
20873
+ "format": "uuid"
20874
+ }
20875
+ },
20876
+ {
20877
+ "name": "dispatchId",
20878
+ "in": "path",
20879
+ "required": true,
20880
+ "schema": {
20881
+ "type": "string",
20882
+ "format": "uuid"
20883
+ }
20884
+ }
20885
+ ],
20886
+ "responses": {
20887
+ "200": {
20888
+ "description": "The dispatch row (without the `items[]` summary — that is on the list read).",
20889
+ "content": {
20890
+ "application/json": {
20891
+ "schema": {
20892
+ "$ref": "#/components/schemas/Dispatch"
20893
+ }
20894
+ }
20895
+ }
20896
+ },
20897
+ "404": {
20898
+ "description": "Dispatch not found for this pipeline and tenant (`RESOURCE_NOT_FOUND`).",
20899
+ "content": {
20900
+ "application/json": {
20901
+ "schema": {
20902
+ "$ref": "#/components/schemas/ErrorResponse"
20903
+ }
20904
+ }
20905
+ }
20906
+ },
20907
+ "429": {
20908
+ "$ref": "#/components/responses/RateLimitExceeded"
20909
+ }
20910
+ }
20911
+ }
20912
+ },
20913
+ "/v1/pipelines/{id}/dispatches/{dispatchId}/redispatch": {
20914
+ "post": {
20915
+ "tags": [
20916
+ "Pipelines"
20917
+ ],
20918
+ "summary": "Re-dispatch a previous dispatch",
20919
+ "description": "Creates a NEW dispatch row inheriting the original's frozen selection, projection, watermark and data product (`replay_of` points back at it), and publishes fresh events — new dedup keys, new idempotency keys — to whatever bindings match NOW. The original row is untouched.\n\nA re-dispatch is a new row, not a re-publish, because the outbox suppresses a duplicate `dedup_key`: re-publishing the same dispatch would be a no-op. The payload is identical (the selection is frozen), so a receiver sees the same records with a new delivery identity. Requires write scope.\n",
20920
+ "operationId": "redispatchPipelineDispatch",
20921
+ "security": [
20922
+ {
20923
+ "BearerAuth": []
20924
+ }
20925
+ ],
20926
+ "parameters": [
20927
+ {
20928
+ "name": "id",
20929
+ "in": "path",
20930
+ "required": true,
20931
+ "schema": {
20932
+ "type": "string",
20933
+ "format": "uuid"
20934
+ }
20935
+ },
20936
+ {
20937
+ "name": "dispatchId",
20938
+ "in": "path",
20939
+ "required": true,
20940
+ "schema": {
20941
+ "type": "string",
20942
+ "format": "uuid"
20943
+ }
20944
+ }
20945
+ ],
20946
+ "responses": {
20947
+ "201": {
20948
+ "description": "The new dispatch row.",
20949
+ "content": {
20950
+ "application/json": {
20951
+ "schema": {
20952
+ "allOf": [
20953
+ {
20954
+ "$ref": "#/components/schemas/DispatchTriggerResult"
20955
+ },
20956
+ {
20957
+ "type": "object",
20958
+ "properties": {
20959
+ "replay_of": {
20960
+ "type": "string",
20961
+ "format": "uuid",
20962
+ "description": "The dispatch whose frozen selection this one inherited."
20963
+ }
20964
+ }
20965
+ }
20966
+ ]
20967
+ }
20968
+ }
20969
+ }
20970
+ },
20971
+ "404": {
20972
+ "description": "Dispatch not found for this pipeline and tenant (`RESOURCE_NOT_FOUND`).",
20973
+ "content": {
20974
+ "application/json": {
20975
+ "schema": {
20976
+ "$ref": "#/components/schemas/ErrorResponse"
20977
+ }
20978
+ }
20979
+ }
20980
+ },
20981
+ "409": {
20982
+ "description": "A governance hold blocks delivery for the run's documents.",
20983
+ "content": {
20984
+ "application/json": {
20985
+ "schema": {
20986
+ "$ref": "#/components/schemas/ErrorResponse"
20987
+ }
20988
+ }
20989
+ }
20990
+ },
20991
+ "429": {
20992
+ "$ref": "#/components/responses/RateLimitExceeded"
20993
+ }
20994
+ }
20995
+ }
20996
+ },
20083
20997
  "/v1/run": {
20084
20998
  "post": {
20085
20999
  "tags": [
@@ -20132,7 +21046,7 @@
20132
21046
  "batch_id": {
20133
21047
  "type": "string",
20134
21048
  "maxLength": 200,
20135
- "description": "Optional caller grouping key stamped on every document ingested by this call (documents.client_batch_id) and echoed by GET /v1/run/{id}. Opaque to the platform — an external job/batch id for grouping.\n"
21049
+ "description": "Optional caller grouping key stamped on every document ingested by this call (documents.client_batch_id) and echoed by GET /v1/run/{id}. Opaque to the platform — an external job/batch id for grouping. A batch_id may span multiple POST /v1/run calls; batch-derived webhooks stream per document and re-emit on revision, so no single-call containment is required.\n"
20136
21050
  },
20137
21051
  "metadata": {
20138
21052
  "type": "string",
@@ -20281,7 +21195,7 @@
20281
21195
  "Run"
20282
21196
  ],
20283
21197
  "summary": "Poll a /v1/run request",
20284
- "description": "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, or `failed` — the same vocabulary `POST /v1/run` returns. A non-null `pipeline_id` plus the `progress` object indicate the pipeline has started. `documents` (when present) echoes each input's resolved document plus a per-entry live `status` — omitted entirely for runs submitted before this field shipped. Requires read scope.\n",
21198
+ "description": "Row status, folded with the compiled pipeline's live progress once one exists (`pipeline_id` set). `status` is `processing` (in flight), `completed`, `failed`, or `cancelled` (the run, or the pipeline behind it, was stopped through `POST /v1/run/{id}/cancel`) — the same vocabulary `POST /v1/run` returns. A non-null `pipeline_id` plus the `progress` object indicate the pipeline has started. `documents` (when present) echoes each input's resolved document plus a per-entry live `status` — omitted entirely for runs submitted before this field shipped. Requires read scope.\n",
20285
21199
  "operationId": "pollRunRequest",
20286
21200
  "security": [
20287
21201
  {
@@ -20320,7 +21234,8 @@
20320
21234
  "enum": [
20321
21235
  "processing",
20322
21236
  "completed",
20323
- "failed"
21237
+ "failed",
21238
+ "cancelled"
20324
21239
  ]
20325
21240
  },
20326
21241
  "pipeline_id": {
@@ -20430,7 +21345,8 @@
20430
21345
  "enum": [
20431
21346
  "processing",
20432
21347
  "completed",
20433
- "failed"
21348
+ "failed",
21349
+ "cancelled"
20434
21350
  ]
20435
21351
  }
20436
21352
  }
@@ -20447,6 +21363,70 @@
20447
21363
  }
20448
21364
  }
20449
21365
  },
21366
+ "/v1/run/{id}/cancel": {
21367
+ "post": {
21368
+ "tags": [
21369
+ "Run"
21370
+ ],
21371
+ "summary": "Cancel the pipeline behind a /v1/run request",
21372
+ "description": "Resolves the request to its pipeline and cancels the WHOLE pipeline — under append mode that includes every other live request appended to it, each of which receives its own run.cancelled webhook and is listed in run_requests. 409 not_cancellable_yet while the request is still ingesting (no pipeline_id yet); 200 with already: true on a request that is already terminal. Requires write scope.\n",
21373
+ "operationId": "cancelRun",
21374
+ "security": [
21375
+ {
21376
+ "BearerAuth": []
21377
+ }
21378
+ ],
21379
+ "parameters": [
21380
+ {
21381
+ "name": "id",
21382
+ "in": "path",
21383
+ "required": true,
21384
+ "schema": {
21385
+ "type": "string",
21386
+ "format": "uuid"
21387
+ }
21388
+ }
21389
+ ],
21390
+ "requestBody": {
21391
+ "required": false,
21392
+ "content": {
21393
+ "application/json": {
21394
+ "schema": {
21395
+ "type": "object",
21396
+ "properties": {
21397
+ "reason": {
21398
+ "type": "string",
21399
+ "maxLength": 500,
21400
+ "description": "Optional free text recorded on the run and carried by the run.cancelled webhook."
21401
+ }
21402
+ }
21403
+ }
21404
+ }
21405
+ }
21406
+ },
21407
+ "responses": {
21408
+ "200": {
21409
+ "description": "Cancel result (idempotent: `already: true` on a run that was already terminal).",
21410
+ "content": {
21411
+ "application/json": {
21412
+ "schema": {
21413
+ "$ref": "#/components/schemas/PipelineCancelResponse"
21414
+ }
21415
+ }
21416
+ }
21417
+ },
21418
+ "401": {
21419
+ "$ref": "#/components/responses/Unauthorized"
21420
+ },
21421
+ "404": {
21422
+ "$ref": "#/components/responses/NotFound"
21423
+ },
21424
+ "409": {
21425
+ "description": "not_cancellable_yet: the run has no pipeline yet; retry once pipeline_id is set."
21426
+ }
21427
+ }
21428
+ }
21429
+ },
20450
21430
  "/v1/run/{id}/results": {
20451
21431
  "get": {
20452
21432
  "tags": [
@@ -20484,7 +21464,7 @@
20484
21464
  "schema": {
20485
21465
  "type": "string"
20486
21466
  },
20487
- "description": "Comma-separated subset of cells, provenance, audit."
21467
+ "description": "Comma-separated subset of cells, provenance, provenance.nested, audit. `provenance` returns one entry per field (kind, quote, match grade, confidence, path, markdown offsets) — see ResultsProvenance; `provenance.nested` adds one entry per scalar leaf of a structured (array/object) field, keyed by the escaped dot-path."
20488
21468
  },
20489
21469
  {
20490
21470
  "name": "limit",
@@ -20747,7 +21727,7 @@
20747
21727
  "Events"
20748
21728
  ],
20749
21729
  "summary": "List tenant events",
20750
- "description": "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved). Alias of /v1/delivery/events at the API root.\n",
21730
+ "description": "Newest-first feed of platform events (document.extracted, run.*.completed/failed, result.flagged/approved/rejected, delivery.item.*, case.resolved, and the Field Registry lifecycle family field.graduated / field.promoted / field.demoted / field.merged / field.renamed — every payload names the concept by stable `field_id`, so a consumer caching /v1/fields can invalidate instead of polling). Alias of /v1/delivery/events at the API root.\n",
20751
21731
  "operationId": "listEvents",
20752
21732
  "security": [
20753
21733
  {
@@ -20849,7 +21829,7 @@
20849
21829
  ],
20850
21830
  "responses": {
20851
21831
  "200": {
20852
- "description": "{ data: [{ event, description }] }"
21832
+ "description": "`{ data: [{ event, description }] }`. The `run.completed` and `run.failed` entries carry an extra `served_by_delivery` note: under `delivery.run_signals_via_outbox` those two are served by Delivery as `pipeline.completed` / `pipeline.failed` and are subscribed through `/v1/delivery/bindings` instead. Existing `/v1/webhooks` subscriptions keep working until migrated.\n"
20853
21833
  }
20854
21834
  }
20855
21835
  }
@@ -20868,11 +21848,7 @@
20868
21848
  ],
20869
21849
  "responses": {
20870
21850
  "200": {
20871
- "description": "Content type",
20872
- "method": null,
20873
- "headers": null,
20874
- "body": null,
20875
- "example.": null
21851
+ "description": "Content type, method, headers, body, example — the legacy `/v1/webhooks` wire format. Also carries `run_events_served_by`, pointing at `/v1/delivery/items` for the attempts, retries and DLQ entries of a migrated `run.completed` / `run.failed` subscription (the wire format itself is unchanged for a binding using the legacy `delivery_policy`).\n"
20876
21852
  }
20877
21853
  }
20878
21854
  }
@@ -26283,6 +27259,94 @@
26283
27259
  }
26284
27260
  },
26285
27261
  "schemas": {
27262
+ "PipelineCancelResponse": {
27263
+ "type": "object",
27264
+ "required": [
27265
+ "id",
27266
+ "status",
27267
+ "already",
27268
+ "cancelled_at",
27269
+ "documents",
27270
+ "run_requests",
27271
+ "jobs"
27272
+ ],
27273
+ "properties": {
27274
+ "id": {
27275
+ "type": "string",
27276
+ "format": "uuid"
27277
+ },
27278
+ "status": {
27279
+ "type": "string",
27280
+ "description": "The run's status after the call: cancelled, or the terminal state it already had."
27281
+ },
27282
+ "already": {
27283
+ "type": "boolean",
27284
+ "description": "True when the run was already terminal and nothing changed."
27285
+ },
27286
+ "cancelled_at": {
27287
+ "type": "string",
27288
+ "format": "date-time",
27289
+ "nullable": true
27290
+ },
27291
+ "documents": {
27292
+ "type": "object",
27293
+ "properties": {
27294
+ "total": {
27295
+ "type": "integer"
27296
+ },
27297
+ "completed": {
27298
+ "type": "integer"
27299
+ },
27300
+ "cancelled": {
27301
+ "type": "integer"
27302
+ },
27303
+ "errored": {
27304
+ "type": "integer"
27305
+ }
27306
+ }
27307
+ },
27308
+ "run_requests": {
27309
+ "type": "array",
27310
+ "items": {
27311
+ "type": "string",
27312
+ "format": "uuid"
27313
+ },
27314
+ "description": "run_ids of the /v1/run requests cancelled along with the pipeline."
27315
+ },
27316
+ "jobs": {
27317
+ "type": "object",
27318
+ "description": "Best-effort removal of the run's queued jobs (a survivor stops at its next checkpoint).",
27319
+ "properties": {
27320
+ "removed": {
27321
+ "type": "integer"
27322
+ },
27323
+ "failed": {
27324
+ "type": "integer"
27325
+ },
27326
+ "scanned": {
27327
+ "type": "integer"
27328
+ },
27329
+ "scan_capped": {
27330
+ "type": "boolean"
27331
+ },
27332
+ "timed_out": {
27333
+ "type": "boolean"
27334
+ }
27335
+ }
27336
+ },
27337
+ "run_id": {
27338
+ "type": "string",
27339
+ "format": "uuid",
27340
+ "description": "Present on /v1/run/{id}/cancel: the request that was cancelled."
27341
+ },
27342
+ "pipeline_id": {
27343
+ "type": "string",
27344
+ "format": "uuid",
27345
+ "nullable": true,
27346
+ "description": "Present on /v1/run/{id}/cancel."
27347
+ }
27348
+ }
27349
+ },
26286
27350
  "CursorPagination": {
26287
27351
  "type": "object",
26288
27352
  "required": [
@@ -27281,6 +28345,20 @@
27281
28345
  }
27282
28346
  }
27283
28347
  },
28348
+ "StructuredRow": {
28349
+ "type": "object",
28350
+ "description": "One extracted row: schema field key -> extracted value. Keys are the Spec's field keys; a field with no cell, or one held for review, is `null`. Scalars are strings/numbers/booleans; a structured field is an object or an array of objects per its declared element shape.",
28351
+ "additionalProperties": {
28352
+ "nullable": true,
28353
+ "description": "The extracted value for one schema field."
28354
+ },
28355
+ "example": {
28356
+ "invoice_date": "2026-08-07",
28357
+ "carrier_name": "ACME LOGISTICS",
28358
+ "total_carrier_pay": "1400.00",
28359
+ "bill_to_name": null
28360
+ }
28361
+ },
27284
28362
  "RunResponse": {
27285
28363
  "type": "object",
27286
28364
  "properties": {
@@ -27329,8 +28407,18 @@
27329
28407
  "description": "OCR-converted markdown (on completion)."
27330
28408
  },
27331
28409
  "structured_data": {
27332
- "type": "object",
27333
- "description": "Structured extraction results (on completion)."
28410
+ "description": "Structured extraction results (on completion). Shape forks on document count: a SINGLE-document run returns one flat `field_key -> value` object; a MULTI-document run returns an array of those row objects. A review-held cell arrives as `null`. Values are the typed projection (subfields cast to their declared types), matching the `run.completed` webhook byte-for-byte. Prefer `records[]` for new integrations — it is always an array and binds each row to its source document.",
28411
+ "oneOf": [
28412
+ {
28413
+ "$ref": "#/components/schemas/StructuredRow"
28414
+ },
28415
+ {
28416
+ "type": "array",
28417
+ "items": {
28418
+ "$ref": "#/components/schemas/StructuredRow"
28419
+ }
28420
+ }
28421
+ ]
27334
28422
  },
27335
28423
  "reconciliation": {
27336
28424
  "type": "object",
@@ -28581,6 +29669,7 @@
28581
29669
  "valid",
28582
29670
  "assembly",
28583
29671
  "deliver",
29672
+ "dispatch",
28584
29673
  "reconcile",
28585
29674
  "sanitize",
28586
29675
  "triage",
@@ -30350,7 +31439,7 @@
30350
31439
  }
30351
31440
  ]
30352
31441
  },
30353
- "description": "Optional equality filter on payload keys."
31442
+ "description": "Optional equality filter on payload keys — EXCEPT on a `dispatch.*`\nbinding, where `match.spec_id` AND `match.stage_id` are REQUIRED\n(400 otherwise). A Dispatch binding targets one Dispatch node of\none Spec; an absent or empty `match` matches every event, so\nwithout both keys the binding would receive every Dispatch node's\nevents tenant-wide. `stage_id` alone is not tenant-unique — an\nid-less rail node normalizes to `s-dispatch` — hence `spec_id`\ntoo. Every `dispatch.*` payload carries both.\n"
30354
31443
  }
30355
31444
  }
30356
31445
  },
@@ -30389,10 +31478,304 @@
30389
31478
  }
30390
31479
  }
30391
31480
  },
31481
+ "DispatchTriggerResult": {
31482
+ "type": "object",
31483
+ "required": [
31484
+ "dispatch_id",
31485
+ "grain",
31486
+ "status",
31487
+ "record_count",
31488
+ "event_count"
31489
+ ],
31490
+ "properties": {
31491
+ "dispatch_id": {
31492
+ "type": "string",
31493
+ "format": "uuid"
31494
+ },
31495
+ "grain": {
31496
+ "type": "string",
31497
+ "enum": [
31498
+ "row",
31499
+ "pipeline",
31500
+ "assembly",
31501
+ "matcher",
31502
+ "data_product"
31503
+ ],
31504
+ "description": "What one deliverable is — set by the node, not by the caller."
31505
+ },
31506
+ "status": {
31507
+ "type": "string",
31508
+ "enum": [
31509
+ "pending",
31510
+ "published",
31511
+ "empty",
31512
+ "failed"
31513
+ ]
31514
+ },
31515
+ "record_count": {
31516
+ "type": "integer",
31517
+ "description": "Records the dispatch froze."
31518
+ },
31519
+ "event_count": {
31520
+ "type": "integer",
31521
+ "description": "Outbox events published (chunks for a collection grain, one per record for row grain)."
31522
+ },
31523
+ "existing": {
31524
+ "type": "boolean",
31525
+ "description": "Present on the trigger route — `true` when the `Idempotency-Key` matched an earlier dispatch (returned with 200; nothing was published again)."
31526
+ },
31527
+ "error": {
31528
+ "type": "string",
31529
+ "description": "Present only when `status` is `failed`."
31530
+ }
31531
+ }
31532
+ },
31533
+ "Dispatch": {
31534
+ "type": "object",
31535
+ "description": "One trigger of one Spec Dispatch node on one pipeline. The row FREEZES\nthe selection (which units) and the projection (which fields) so every\nattempt, chunk and re-dispatch resolves the same payload — a resolver\nloads the row by `dispatch_id` and never re-derives a delta.\n",
31536
+ "required": [
31537
+ "id",
31538
+ "customer_id",
31539
+ "pipeline_id",
31540
+ "stage_id",
31541
+ "grain",
31542
+ "mode",
31543
+ "status",
31544
+ "selection",
31545
+ "projection",
31546
+ "record_count",
31547
+ "event_count",
31548
+ "created_at"
31549
+ ],
31550
+ "properties": {
31551
+ "id": {
31552
+ "type": "string",
31553
+ "format": "uuid"
31554
+ },
31555
+ "customer_id": {
31556
+ "type": "string",
31557
+ "format": "uuid"
31558
+ },
31559
+ "pipeline_id": {
31560
+ "type": "string",
31561
+ "format": "uuid"
31562
+ },
31563
+ "stage_id": {
31564
+ "type": "string",
31565
+ "description": "Spec stage id of the Dispatch node."
31566
+ },
31567
+ "spec_id": {
31568
+ "type": [
31569
+ "string",
31570
+ "null"
31571
+ ],
31572
+ "format": "uuid"
31573
+ },
31574
+ "spec_version_id": {
31575
+ "type": [
31576
+ "string",
31577
+ "null"
31578
+ ],
31579
+ "format": "uuid",
31580
+ "description": "The published Spec version the node config was read from."
31581
+ },
31582
+ "grain": {
31583
+ "type": "string",
31584
+ "enum": [
31585
+ "row",
31586
+ "pipeline",
31587
+ "assembly",
31588
+ "matcher",
31589
+ "data_product"
31590
+ ]
31591
+ },
31592
+ "mode": {
31593
+ "type": "string",
31594
+ "enum": [
31595
+ "manual",
31596
+ "on_run_completed"
31597
+ ]
31598
+ },
31599
+ "idempotency_key": {
31600
+ "type": [
31601
+ "string",
31602
+ "null"
31603
+ ]
31604
+ },
31605
+ "replay_of": {
31606
+ "type": [
31607
+ "string",
31608
+ "null"
31609
+ ],
31610
+ "format": "uuid",
31611
+ "description": "Set on a re-dispatch — the dispatch whose frozen selection this one inherited."
31612
+ },
31613
+ "status": {
31614
+ "type": "string",
31615
+ "enum": [
31616
+ "pending",
31617
+ "published",
31618
+ "empty",
31619
+ "failed"
31620
+ ]
31621
+ },
31622
+ "error": {
31623
+ "type": [
31624
+ "string",
31625
+ "null"
31626
+ ]
31627
+ },
31628
+ "selection": {
31629
+ "type": "object",
31630
+ "description": "The FROZEN selection. Two id spaces, never mixed.",
31631
+ "properties": {
31632
+ "scope": {
31633
+ "type": "string",
31634
+ "enum": [
31635
+ "all",
31636
+ "changed_since"
31637
+ ]
31638
+ },
31639
+ "row_source": {
31640
+ "type": "string",
31641
+ "enum": [
31642
+ "document",
31643
+ "product"
31644
+ ]
31645
+ },
31646
+ "document_ids": {
31647
+ "type": "array",
31648
+ "items": {
31649
+ "type": "string",
31650
+ "format": "uuid"
31651
+ }
31652
+ },
31653
+ "product_record_ids": {
31654
+ "type": "array",
31655
+ "items": {
31656
+ "type": "string",
31657
+ "format": "uuid"
31658
+ }
31659
+ },
31660
+ "since": {
31661
+ "type": "string",
31662
+ "format": "date-time",
31663
+ "description": "Exclusive lower bound of the delta window."
31664
+ },
31665
+ "until": {
31666
+ "type": "string",
31667
+ "format": "date-time",
31668
+ "description": "Inclusive upper bound of the delta window."
31669
+ }
31670
+ }
31671
+ },
31672
+ "projection": {
31673
+ "type": "object",
31674
+ "description": "The FROZEN projection — one column set per node, so tabular serializers stay stable.",
31675
+ "properties": {
31676
+ "field_ids": {
31677
+ "type": "array",
31678
+ "items": {
31679
+ "type": "string"
31680
+ }
31681
+ },
31682
+ "field_keys": {
31683
+ "type": "array",
31684
+ "items": {
31685
+ "type": "string"
31686
+ }
31687
+ },
31688
+ "changed_fields_only": {
31689
+ "type": "boolean"
31690
+ },
31691
+ "include_shortlist_keys": {
31692
+ "type": "boolean",
31693
+ "description": "matcher grain only — ship the rival KEYS of a shortlist."
31694
+ }
31695
+ }
31696
+ },
31697
+ "data_product_id": {
31698
+ "type": [
31699
+ "string",
31700
+ "null"
31701
+ ],
31702
+ "format": "uuid",
31703
+ "description": "`data_product` grain only — the product frozen at trigger time."
31704
+ },
31705
+ "watermark_at": {
31706
+ "type": [
31707
+ "string",
31708
+ "null"
31709
+ ],
31710
+ "format": "date-time",
31711
+ "description": "Max value-cell timestamp covered; set for changed_since scope only."
31712
+ },
31713
+ "record_count": {
31714
+ "type": "integer"
31715
+ },
31716
+ "event_count": {
31717
+ "type": "integer"
31718
+ },
31719
+ "triggered_by": {
31720
+ "type": [
31721
+ "string",
31722
+ "null"
31723
+ ],
31724
+ "format": "uuid",
31725
+ "description": "User id for a manual trigger; null for `on_run_completed`."
31726
+ },
31727
+ "created_at": {
31728
+ "type": "string",
31729
+ "format": "date-time"
31730
+ },
31731
+ "items": {
31732
+ "type": "array",
31733
+ "description": "Present on the list read — per-binding delivery-attempt counts for this dispatch, joined through the outbox events.",
31734
+ "items": {
31735
+ "type": "object",
31736
+ "properties": {
31737
+ "binding_id": {
31738
+ "type": "string",
31739
+ "format": "uuid"
31740
+ },
31741
+ "status": {
31742
+ "type": "string",
31743
+ "description": "Delivery item status (pending",
31744
+ "in_flight": null,
31745
+ "delivered": null,
31746
+ "failed": null,
31747
+ "dead_letter).": null
31748
+ },
31749
+ "count": {
31750
+ "type": "integer"
31751
+ }
31752
+ }
31753
+ }
31754
+ }
31755
+ }
31756
+ },
30392
31757
  "DeliveryPolicy": {
30393
31758
  "type": "object",
30394
- "description": "Retry / timeout overrides consumed by the TransportWrapper. Slice 1\ndefaults to a 6-attempt ladder with backoff `[5s, 30s, 2min, 10min, 1h]`.\n",
31759
+ "description": "Retry / timeout overrides consumed by the TransportWrapper, plus the\nper-binding wire-compatibility knobs read by the webhook connector.\nSlice 1 defaults to a 6-attempt ladder with backoff\n`[5s, 30s, 2min, 10min, 1h]`.\n",
30395
31760
  "properties": {
31761
+ "wire_format": {
31762
+ "type": "string",
31763
+ "enum": [
31764
+ "v1",
31765
+ "legacy_v1_webhooks"
31766
+ ],
31767
+ "default": "v1",
31768
+ "description": "Body shape a `webhook` destination receives. `v1` (default) is the\ndelivery envelope `{ event, payload }`. `legacy_v1_webhooks`\nreproduces the retired `/v1/webhooks` body —\n`{ event, delivery_id, timestamp, data }`, with `event` mapped\nback to the legacy name (`pipeline.completed` → `run.completed`,\n`pipeline.failed` → `run.failed`) and `delivery_id` =\n`dlv_` + the first 16 chars of the idempotency key (stable across\nattempts, unlike the legacy random-per-fire id) — so a receiver\nmigrated off `/v1/webhooks` parses it unchanged. Legacy values are\nrejected (400) on a non-`webhook` destination, and an unknown\nvalue is a 400 rather than a silent fallback to `v1`.\n"
31769
+ },
31770
+ "signature_scheme": {
31771
+ "type": "string",
31772
+ "enum": [
31773
+ "v1",
31774
+ "legacy_sha256"
31775
+ ],
31776
+ "default": "v1",
31777
+ "description": "How `X-Talonic-Signature` is computed for a `webhook` destination\ncarrying a signing secret. `v1` (default) signs `t=<ms>,v1=<hmac(ts.body)>`.\n`legacy_sha256` signs `sha256=<hmac(body)>` and adds the legacy\n`X-Talonic-Event`, `X-Talonic-Delivery` and\n`User-Agent: Talonic-Webhooks/1.0` headers (the `v1` headers are\nstill sent). Legacy values are rejected (400) on a non-`webhook`\ndestination; an unknown value is a 400.\n"
31778
+ },
30396
31779
  "max_attempts": {
30397
31780
  "type": "integer",
30398
31781
  "minimum": 1
@@ -32622,6 +34005,36 @@
32622
34005
  }
32623
34006
  }
32624
34007
  },
34008
+ "FieldMaturity": {
34009
+ "type": "string",
34010
+ "enum": [
34011
+ "core",
34012
+ "proven",
34013
+ "candidate"
34014
+ ],
34015
+ "description": "Named maturity level — the contract a consumer caching the vocabulary\ncan rely on (`tier` is the frozen numeric twin: core = 1, proven = 2,\ncandidate = 3).\n- `core`: universal, fully trusted; safe to bind schemas, dashboards and\n downstream models to. Demotion is hysteresis-guarded and always emits\n `field.demoted`.\n- `proven`: recurring and useful; stable id, name may still be groomed\n (`field.renamed` / `field.merged` announce it).\n- `candidate`: newly discovered; may be merged, renamed or expire with no\n notice beyond the event feed. Do not hard-code.\n"
34016
+ },
34017
+ "FieldRef": {
34018
+ "type": "object",
34019
+ "required": [
34020
+ "id",
34021
+ "links"
34022
+ ],
34023
+ "properties": {
34024
+ "id": {
34025
+ "type": "string",
34026
+ "format": "uuid"
34027
+ },
34028
+ "links": {
34029
+ "type": "object",
34030
+ "properties": {
34031
+ "self": {
34032
+ "type": "string"
34033
+ }
34034
+ }
34035
+ }
34036
+ }
34037
+ },
32625
34038
  "FieldResponse": {
32626
34039
  "type": "object",
32627
34040
  "required": [
@@ -32630,6 +34043,7 @@
32630
34043
  "display_name",
32631
34044
  "data_type",
32632
34045
  "tier",
34046
+ "maturity",
32633
34047
  "occurrence_count",
32634
34048
  "created_at",
32635
34049
  "links"
@@ -32644,6 +34058,41 @@
32644
34058
  "type": "string",
32645
34059
  "example": "invoice_number"
32646
34060
  },
34061
+ "maturity": {
34062
+ "$ref": "#/components/schemas/FieldMaturity"
34063
+ },
34064
+ "admission_state": {
34065
+ "type": "string",
34066
+ "enum": [
34067
+ "canonical",
34068
+ "provisional"
34069
+ ]
34070
+ },
34071
+ "description": {
34072
+ "type": [
34073
+ "string",
34074
+ "null"
34075
+ ],
34076
+ "description": "Curated semantic description of the concept."
34077
+ },
34078
+ "synonyms": {
34079
+ "type": "array",
34080
+ "items": {
34081
+ "type": "string"
34082
+ },
34083
+ "description": "Names folded onto this concept by merges and cleanup; all resolve via `GET /v1/fields/resolve`."
34084
+ },
34085
+ "superseded_by": {
34086
+ "oneOf": [
34087
+ {
34088
+ "$ref": "#/components/schemas/FieldRef"
34089
+ },
34090
+ {
34091
+ "type": "null"
34092
+ }
34093
+ ],
34094
+ "description": "Set when this row was merged into a survivor; the id stays readable, follow it (or pass `follow_redirects=true`)."
34095
+ },
32647
34096
  "display_name": {
32648
34097
  "type": "string",
32649
34098
  "description": "Human-readable label, always present. A stored display name wins; otherwise it is derived from `canonical_name`, e.g. `invoice_number` → `Invoice Number`.",
@@ -32689,6 +34138,499 @@
32689
34138
  },
32690
34139
  "similar": {
32691
34140
  "type": "string"
34141
+ },
34142
+ "card": {
34143
+ "type": "string"
34144
+ },
34145
+ "values": {
34146
+ "type": "string"
34147
+ },
34148
+ "history": {
34149
+ "type": "string"
34150
+ }
34151
+ }
34152
+ }
34153
+ }
34154
+ },
34155
+ "FieldResolveResponse": {
34156
+ "type": "object",
34157
+ "required": [
34158
+ "name",
34159
+ "matched_by",
34160
+ "redirected_from",
34161
+ "field"
34162
+ ],
34163
+ "properties": {
34164
+ "name": {
34165
+ "type": "string"
34166
+ },
34167
+ "matched_by": {
34168
+ "type": "string",
34169
+ "enum": [
34170
+ "canonical_name",
34171
+ "synonym",
34172
+ "alias",
34173
+ "match_key"
34174
+ ]
34175
+ },
34176
+ "redirected_from": {
34177
+ "type": "array",
34178
+ "items": {
34179
+ "type": "string",
34180
+ "format": "uuid"
34181
+ },
34182
+ "description": "Ids walked through `superseded_by`, oldest first (empty when the hit was live)."
34183
+ },
34184
+ "field": {
34185
+ "$ref": "#/components/schemas/FieldResponse"
34186
+ }
34187
+ }
34188
+ },
34189
+ "FieldCardResponse": {
34190
+ "allOf": [
34191
+ {
34192
+ "$ref": "#/components/schemas/FieldResponse"
34193
+ },
34194
+ {
34195
+ "type": "object",
34196
+ "required": [
34197
+ "definition",
34198
+ "identity",
34199
+ "occurrence",
34200
+ "values",
34201
+ "usage"
34202
+ ],
34203
+ "properties": {
34204
+ "redirected_from": {
34205
+ "type": "array",
34206
+ "items": {
34207
+ "type": "string",
34208
+ "format": "uuid"
34209
+ }
34210
+ },
34211
+ "definition": {
34212
+ "type": "object",
34213
+ "properties": {
34214
+ "description": {
34215
+ "type": [
34216
+ "string",
34217
+ "null"
34218
+ ]
34219
+ },
34220
+ "instruction": {
34221
+ "type": [
34222
+ "string",
34223
+ "null"
34224
+ ],
34225
+ "description": "The master extraction instruction."
34226
+ },
34227
+ "variance_notes": {
34228
+ "type": [
34229
+ "string",
34230
+ "null"
34231
+ ]
34232
+ },
34233
+ "synonyms": {
34234
+ "type": "array",
34235
+ "items": {
34236
+ "type": "string"
34237
+ }
34238
+ },
34239
+ "aliases": {
34240
+ "type": "array",
34241
+ "items": {
34242
+ "type": "object",
34243
+ "properties": {
34244
+ "name": {
34245
+ "type": "string"
34246
+ },
34247
+ "source": {
34248
+ "type": "string"
34249
+ }
34250
+ }
34251
+ }
34252
+ }
34253
+ }
34254
+ },
34255
+ "identity": {
34256
+ "type": "object",
34257
+ "properties": {
34258
+ "pinned": {
34259
+ "type": "boolean",
34260
+ "description": "A customer-declared concept",
34261
+ "exempt from autonomous grooming.": null
34262
+ },
34263
+ "source": {
34264
+ "type": [
34265
+ "string",
34266
+ "null"
34267
+ ]
34268
+ },
34269
+ "link_key": {
34270
+ "type": "boolean"
34271
+ },
34272
+ "link_key_category": {
34273
+ "type": [
34274
+ "string",
34275
+ "null"
34276
+ ]
34277
+ },
34278
+ "superseded_by": {
34279
+ "oneOf": [
34280
+ {
34281
+ "$ref": "#/components/schemas/FieldRef"
34282
+ },
34283
+ {
34284
+ "type": "null"
34285
+ }
34286
+ ]
34287
+ },
34288
+ "absorbed": {
34289
+ "type": "array",
34290
+ "description": "Concepts merged INTO this one that still exist as redirect rows.",
34291
+ "items": {
34292
+ "type": "object",
34293
+ "properties": {
34294
+ "id": {
34295
+ "type": "string",
34296
+ "format": "uuid"
34297
+ },
34298
+ "canonical_name": {
34299
+ "type": "string"
34300
+ },
34301
+ "links": {
34302
+ "type": "object",
34303
+ "properties": {
34304
+ "self": {
34305
+ "type": "string"
34306
+ }
34307
+ }
34308
+ }
34309
+ }
34310
+ }
34311
+ }
34312
+ }
34313
+ },
34314
+ "occurrence": {
34315
+ "type": "object",
34316
+ "properties": {
34317
+ "occurrence_count": {
34318
+ "type": "integer"
34319
+ },
34320
+ "document_count": {
34321
+ "type": "integer"
34322
+ },
34323
+ "occurrence_rate": {
34324
+ "type": [
34325
+ "number",
34326
+ "null"
34327
+ ]
34328
+ },
34329
+ "first_seen_at": {
34330
+ "type": [
34331
+ "string",
34332
+ "null"
34333
+ ],
34334
+ "format": "date-time"
34335
+ },
34336
+ "last_seen_at": {
34337
+ "type": [
34338
+ "string",
34339
+ "null"
34340
+ ],
34341
+ "format": "date-time"
34342
+ },
34343
+ "promoted_at": {
34344
+ "type": [
34345
+ "string",
34346
+ "null"
34347
+ ],
34348
+ "format": "date-time"
34349
+ },
34350
+ "document_type_distribution": {
34351
+ "type": "object",
34352
+ "additionalProperties": true
34353
+ }
34354
+ }
34355
+ },
34356
+ "values": {
34357
+ "type": "object",
34358
+ "description": "Sources-IAM filtered value distribution over the concept and its absorbed redirects.",
34359
+ "properties": {
34360
+ "total": {
34361
+ "type": "integer"
34362
+ },
34363
+ "distinct_count": {
34364
+ "type": "integer"
34365
+ },
34366
+ "visible_document_count": {
34367
+ "type": "integer"
34368
+ },
34369
+ "top": {
34370
+ "type": "array",
34371
+ "maxItems": 8,
34372
+ "items": {
34373
+ "type": "object",
34374
+ "properties": {
34375
+ "value": {
34376
+ "type": "string"
34377
+ },
34378
+ "count": {
34379
+ "type": "integer"
34380
+ },
34381
+ "share": {
34382
+ "type": "number"
34383
+ }
34384
+ }
34385
+ }
34386
+ },
34387
+ "examples": {
34388
+ "type": "array",
34389
+ "maxItems": 5,
34390
+ "items": {
34391
+ "type": "string"
34392
+ }
34393
+ }
34394
+ }
34395
+ },
34396
+ "usage": {
34397
+ "type": "object",
34398
+ "properties": {
34399
+ "schema_count": {
34400
+ "type": "integer"
34401
+ },
34402
+ "schema_field_count": {
34403
+ "type": "integer"
34404
+ }
34405
+ }
34406
+ }
34407
+ }
34408
+ }
34409
+ ]
34410
+ },
34411
+ "FieldValuesResponse": {
34412
+ "type": "object",
34413
+ "required": [
34414
+ "field_id",
34415
+ "canonical_name",
34416
+ "concept_ids",
34417
+ "data",
34418
+ "pagination"
34419
+ ],
34420
+ "properties": {
34421
+ "field_id": {
34422
+ "type": "string",
34423
+ "format": "uuid"
34424
+ },
34425
+ "canonical_name": {
34426
+ "type": "string"
34427
+ },
34428
+ "concept_ids": {
34429
+ "type": "array",
34430
+ "items": {
34431
+ "type": "string",
34432
+ "format": "uuid"
34433
+ },
34434
+ "description": "The concept plus the absorbed redirects whose occurrences are included."
34435
+ },
34436
+ "data": {
34437
+ "type": "array",
34438
+ "items": {
34439
+ "type": "object",
34440
+ "required": [
34441
+ "occurrence_id",
34442
+ "document_id",
34443
+ "value",
34444
+ "provenance",
34445
+ "links"
34446
+ ],
34447
+ "properties": {
34448
+ "occurrence_id": {
34449
+ "type": "string",
34450
+ "format": "uuid"
34451
+ },
34452
+ "document_id": {
34453
+ "type": "string",
34454
+ "format": "uuid"
34455
+ },
34456
+ "document_filename": {
34457
+ "type": [
34458
+ "string",
34459
+ "null"
34460
+ ]
34461
+ },
34462
+ "document_type": {
34463
+ "type": [
34464
+ "string",
34465
+ "null"
34466
+ ]
34467
+ },
34468
+ "value": {
34469
+ "description": "The current bound value (raw JSON as captured)."
34470
+ },
34471
+ "data_type": {
34472
+ "type": [
34473
+ "string",
34474
+ "null"
34475
+ ]
34476
+ },
34477
+ "confidence": {
34478
+ "type": [
34479
+ "number",
34480
+ "null"
34481
+ ]
34482
+ },
34483
+ "provenance": {
34484
+ "type": "object",
34485
+ "properties": {
34486
+ "raw_field_name": {
34487
+ "type": [
34488
+ "string",
34489
+ "null"
34490
+ ],
34491
+ "description": "The name the value was captured under."
34492
+ },
34493
+ "source_text": {
34494
+ "type": [
34495
+ "string",
34496
+ "null"
34497
+ ],
34498
+ "description": "Verbatim document text the value sat in."
34499
+ },
34500
+ "resolved_by": {
34501
+ "type": [
34502
+ "string",
34503
+ "null"
34504
+ ],
34505
+ "description": "Resolution band that bound it (`exact`, `cluster`, `semantic_auto`, `llm_rescue`, …)."
34506
+ },
34507
+ "needs_confirmation": {
34508
+ "type": "boolean"
34509
+ },
34510
+ "bound_field_id": {
34511
+ "type": "string",
34512
+ "format": "uuid"
34513
+ },
34514
+ "via_redirect": {
34515
+ "type": "boolean",
34516
+ "description": "true when the row is still bound to a concept merged into this one."
34517
+ }
34518
+ }
34519
+ },
34520
+ "created_at": {
34521
+ "type": [
34522
+ "string",
34523
+ "null"
34524
+ ],
34525
+ "format": "date-time"
34526
+ },
34527
+ "links": {
34528
+ "type": "object",
34529
+ "properties": {
34530
+ "document": {
34531
+ "type": "string"
34532
+ },
34533
+ "document_fields": {
34534
+ "type": "string"
34535
+ }
34536
+ }
34537
+ }
34538
+ }
34539
+ }
34540
+ },
34541
+ "pagination": {
34542
+ "type": "object",
34543
+ "properties": {
34544
+ "total": {
34545
+ "type": "integer"
34546
+ },
34547
+ "limit": {
34548
+ "type": "integer"
34549
+ },
34550
+ "has_more": {
34551
+ "type": "boolean"
34552
+ },
34553
+ "next_cursor": {
34554
+ "type": [
34555
+ "string",
34556
+ "null"
34557
+ ]
34558
+ }
34559
+ }
34560
+ }
34561
+ }
34562
+ },
34563
+ "FieldHistoryResponse": {
34564
+ "type": "object",
34565
+ "required": [
34566
+ "field_id",
34567
+ "canonical_name",
34568
+ "maturity",
34569
+ "superseded_by",
34570
+ "data",
34571
+ "total"
34572
+ ],
34573
+ "properties": {
34574
+ "field_id": {
34575
+ "type": "string",
34576
+ "format": "uuid"
34577
+ },
34578
+ "canonical_name": {
34579
+ "type": "string"
34580
+ },
34581
+ "maturity": {
34582
+ "$ref": "#/components/schemas/FieldMaturity"
34583
+ },
34584
+ "superseded_by": {
34585
+ "oneOf": [
34586
+ {
34587
+ "$ref": "#/components/schemas/FieldRef"
34588
+ },
34589
+ {
34590
+ "type": "null"
34591
+ }
34592
+ ]
34593
+ },
34594
+ "total": {
34595
+ "type": "integer"
34596
+ },
34597
+ "data": {
34598
+ "type": "array",
34599
+ "description": "Newest first.",
34600
+ "items": {
34601
+ "type": "object",
34602
+ "required": [
34603
+ "kind",
34604
+ "at",
34605
+ "detail"
34606
+ ],
34607
+ "properties": {
34608
+ "kind": {
34609
+ "type": "string",
34610
+ "enum": [
34611
+ "tier_changed",
34612
+ "merge_log_absorbed",
34613
+ "merge_log_merged_into",
34614
+ "absorbed",
34615
+ "superseded",
34616
+ "renamed",
34617
+ "rewritten",
34618
+ "split",
34619
+ "deleted",
34620
+ "alias_added"
34621
+ ]
34622
+ },
34623
+ "at": {
34624
+ "type": [
34625
+ "string",
34626
+ "null"
34627
+ ],
34628
+ "format": "date-time"
34629
+ },
34630
+ "detail": {
34631
+ "type": "object",
34632
+ "additionalProperties": true
34633
+ }
32692
34634
  }
32693
34635
  }
32694
34636
  }
@@ -32702,6 +34644,14 @@
32702
34644
  {
32703
34645
  "type": "object",
32704
34646
  "properties": {
34647
+ "redirected_from": {
34648
+ "type": "array",
34649
+ "items": {
34650
+ "type": "string",
34651
+ "format": "uuid"
34652
+ },
34653
+ "description": "Ids walked when `follow_redirects=true` (oldest first); empty otherwise."
34654
+ },
32705
34655
  "recent_occurrences": {
32706
34656
  "type": "array",
32707
34657
  "maxItems": 20,
@@ -34009,8 +35959,10 @@
34009
35959
  "ResultsProvenance": {
34010
35960
  "type": "object",
34011
35961
  "required": [
34012
- "kind"
35962
+ "kind",
35963
+ "match"
34013
35964
  ],
35965
+ "description": "Where one delivered value came from. The same shape the `pipeline.capture` webhook carries in its `provenance` sidecar, so a consumer reads one contract whether it polls or receives the push. Only `kind: span` entries are highlightable: their `text` is the verbatim document quote to locate (client side with the provenance kit, or server side via `GET /v1/documents/{id}/span-geometry`).",
34014
35966
  "properties": {
34015
35967
  "kind": {
34016
35968
  "type": "string",
@@ -34020,16 +35972,17 @@
34020
35972
  "auto_adjudication",
34021
35973
  "human",
34022
35974
  "derived",
34023
- "legacy"
35975
+ "legacy",
35976
+ "matcher_decision"
34024
35977
  ],
34025
- "description": "legacy covers the internal legacy_unvalidated kind plus any unparseable/unknown envelope."
35978
+ "description": "`legacy` covers the internal legacy_unvalidated kind plus any unparseable/unknown envelope; `matcher_decision` is a reference-data match (a decision about a row, never a document quote)."
34026
35979
  },
34027
35980
  "text": {
34028
35981
  "type": [
34029
35982
  "string",
34030
35983
  "null"
34031
35984
  ],
34032
- "description": "The winning value's genesis span text. Absent for a held cell (kind-only redaction) and never a displaced/previous value even when unheld."
35985
+ "description": "The winning value's genesis span text, verbatim from the document markdown. Absent for a held cell (kind-only redaction); null for kinds that carry no quote (`matcher_decision`, `legacy` without text); never a displaced/previous value even when unheld."
34033
35986
  },
34034
35987
  "derived_reason": {
34035
35988
  "type": "string",
@@ -34043,6 +35996,50 @@
34043
35996
  "format": "uuid"
34044
35997
  },
34045
35998
  "page_index": {
35999
+ "type": [
36000
+ "integer",
36001
+ "null"
36002
+ ],
36003
+ "description": "0-based OCR page the quote was found on; null when no page was located. Present only on kinds that carry a quote (`span`, `assembly_override`, `auto_adjudication`) — absent, not null, on the others."
36004
+ },
36005
+ "match": {
36006
+ "type": "string",
36007
+ "enum": [
36008
+ "exact",
36009
+ "approximate",
36010
+ "none"
36011
+ ],
36012
+ "description": "How well `text` locates in the document's served markdown (`GET /v1/documents/{id}/markdown`). `exact` deserves a tight highlight; `approximate` means the stored text is a section or a different rendering of the value — treat it as a region hint; `none` means do not highlight (also the value for every non-span kind and for a held cell)."
36013
+ },
36014
+ "confidence": {
36015
+ "type": [
36016
+ "number",
36017
+ "null"
36018
+ ],
36019
+ "description": "Always present. The anchor's own confidence in [0, 1]; falls back to the cell's stored extraction confidence when the envelope carries none (legacy/human/matcher kinds); null when neither exists."
36020
+ },
36021
+ "path": {
36022
+ "type": "array",
36023
+ "items": {
36024
+ "oneOf": [
36025
+ {
36026
+ "type": "string"
36027
+ },
36028
+ {
36029
+ "type": "integer"
36030
+ }
36031
+ ]
36032
+ },
36033
+ "description": "Always present. Explicit path from the `fields` root — `[\"invoice_date\"]` for a top-level field, `[\"addresses\", 0, \"city\"]` for a leaf emitted under `include=provenance.nested`. Key off this, not the map key: without the nested include the map key is the raw field key; with it, every key (flat and leaf) is the escaped serialization of the path, so a field whose own name contains a dot appears as `stops\\\\.pickup\\\\.city`."
36034
+ },
36035
+ "char_start": {
36036
+ "type": [
36037
+ "integer",
36038
+ "null"
36039
+ ],
36040
+ "description": "UTF-16 code-unit offset of the located quote in the served markdown; null when it did not locate. Present only on kinds that carry a quote — absent, not null, on the others, so test with `!= null`. `markdown.slice(char_start, char_end)` CONTAINS the quote but is not guaranteed to equal it byte for byte (normalization can widen the region by a character or two)."
36041
+ },
36042
+ "char_end": {
34046
36043
  "type": [
34047
36044
  "integer",
34048
36045
  "null"
@@ -34347,7 +36344,8 @@
34347
36344
  "enum": [
34348
36345
  "processing",
34349
36346
  "completed",
34350
- "failed"
36347
+ "failed",
36348
+ "cancelled"
34351
36349
  ],
34352
36350
  "description": "The folded public run status (same vocabulary as GET /v1/run/{id}) — settles even for an append pipeline that never settles at the pipeline level."
34353
36351
  },