changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "task": {
- "additionalProperties": false,
- "properties": {
- "approvedRound": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "final": {
- "additionalProperties": false,
- "properties": {
- "artifacts": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "artifact": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "type",
- "mimeType"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "position": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "version": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "position",
- "artifact",
- "version"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text",
- "artifacts"
- ],
- "type": "object"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "number",
- "final"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "assignee": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "body": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "cancelReason": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "cancelledAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "cancelledById": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "children": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "assignee": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "cancelReason": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "cancelReasonCut": {
- "description": "true when cancelReason was cut to its first 280 characters; task_get reads it whole.",
- "type": "boolean"
- },
- "cancelledAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "cancelledById": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "completedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "completedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "completedById": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "createdAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "createdBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Who filed the task; null when Tokenrip started it (startedBy says what started it)."
- },
- "createdById": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "dueAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "failed": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "by": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "how": {
- "enum": [
- "reported",
- "lapsed"
- ],
- "type": "string"
- }
- },
- "required": [
- "at",
- "by",
- "how"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "While the task is Failed: when (at), whose failure it was (by, the agent), and how: reported, that agent failed it with the report in result; lapsed, its hold ran out 3 times in a row and Tokenrip failed it, with a report of its own in result. null otherwise. A person retries it (task_reopen) or cancels it."
- },
- "holder": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "heldByCaller": {
- "type": "boolean"
- },
- "inBrowser": {
- "type": "boolean"
- },
- "leaseExpiresAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "mine": {
- "type": "boolean"
- },
- "since": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "surface": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: Tokenrip itself holds the task, doing a task definition's routine (inBrowser false, no lease of its own).",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "surface",
- "inBrowser",
- "since",
- "leaseExpiresAt",
- "mine",
- "heldByCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "lastMessageAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When the newest message in the task's thread was posted (message_read taskId reads it); null: none."
- },
- "latestRound": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "outcome": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
- },
- "verdict": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "number",
- "verdict",
- "outcome"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "moves": {
- "description": "The moves open to you on this task now, each the task_<move> tool: start, stop, complete, fail, cancel, reopen, submit, decide, report. Someone else may act first: the move is checked again when you make it.",
- "items": {
- "enum": [
- "start",
- "stop",
- "complete",
- "fail",
- "cancel",
- "reopen",
- "submit",
- "decide",
- "report"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "parentId": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "recorded": {
- "description": "true when the task was filed as a record of work: work already done, born Done, by task_report or for an output with no task named when it was sent (the record filed for it). false for every other task, and for a record someone reopened.",
- "type": "boolean"
- },
- "result": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "resultCut": {
- "description": "true when result was cut to its first 280 characters; task_get reads it whole.",
- "type": "boolean"
- },
- "reviewer": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "revision": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "startedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "source": {
- "enum": [
- "trigger",
- "then_start",
- "approval",
- "instructions_update"
- ],
- "type": "string"
- },
- "unaddressed": {
- "anyOf": [
- {
- "enum": [
- "no_doer",
- "doer_gone",
- "depth_limit"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Why the start named no doer, a fact about how Tokenrip started this task, the same on every read for its whole life: no_doer, nothing named one (a follow-on with none, a task definition with no doer); doer_gone, the doer named could no longer edit tasks here; depth_limit, the chain was deeper than Tokenrip hands on by itself (startedBy.depth on task_get), so it named no doer even if one was given. null: the start named a doer. It says nothing about now: waitsOn says whose turn the task is."
- }
- },
- "required": [
- "source",
- "unaddressed"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "What started it, when Tokenrip did (task_get reads the rest): source then_start, a follow-on of the task that finished; approval, the approval of its own earlier submission; trigger, a trigger of the workspace; instructions_update, Tokenrip's draft of a change to a task definition's instructions, put before a person; unaddressed, why the start named no doer (null: it named one; waitsOn says whose turn it is now). null: someone filed it."
- },
- "status": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "updatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "waitsOn": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "blocked": {
- "type": "string"
- },
- "to": {
- "enum": [
- "do",
- "decide",
- "finish",
- "retry"
- ],
- "type": "string"
- },
- "who": {
- "enum": [
- "assignee",
- "reviewer",
- "holder",
- "anyone"
- ],
- "type": "string"
- },
- "you": {
- "type": "boolean"
- }
- },
- "required": [
- "who",
- "to",
- "you"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Whose turn it is: who names the field of this task that holds them (assignee, reviewer or holder; anyone when that field is empty), to says why (do; decide a review; finish work in progress; retry a failed task, a person's), you is true when it waits on you. blocked, only when it waits on you, is the code your sign-in would be refused with. null for a done or cancelled task."
- },
- "workspaceId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "workspaceId",
- "revision",
- "type",
- "labels",
- "title",
- "status",
- "holder",
- "assignee",
- "reviewer",
- "createdBy",
- "completedBy",
- "parentId",
- "recorded",
- "latestRound",
- "startedBy",
- "result",
- "completedById",
- "completedAt",
- "cancelledById",
- "cancelledAt",
- "cancelReason",
- "failed",
- "createdById",
- "dueAt",
- "createdAt",
- "updatedAt",
- "waitsOn",
- "moves",
- "lastMessageAt",
- "resultCut",
- "cancelReasonCut"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "completedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "completedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "completedById": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "createdAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "createdBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Who filed the task; null when Tokenrip started it (startedBy says what started it)."
- },
- "createdById": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "definition": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "cleanup": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "maxImportance": {
- "description": "The highest importance a file may be rated and be considered: none (files rated None), low (Low or None), medium (Medium or lower) or high (any).",
- "enum": [
- "high",
- "medium",
- "low",
- "none"
- ],
- "type": "string"
- },
- "unchangedDays": {
- "description": "Only files that have not changed for at least this many whole days; 0: no limit on it.",
- "maximum": 3650,
- "minimum": 0,
- "type": "integer"
- },
- "unreadDays": {
- "description": "Only files nobody has read for at least this many whole days; 0: no limit on it.",
- "maximum": 3650,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "maxImportance",
- "unreadDays",
- "unchangedDays"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The files this type's work considers, on a definition whose routine is suggest_cleanup (an add-on's): a file is suggested only when it is rated maxImportance or lower, unread for at least unreadDays and unchanged for at least unchangedDays. Tokenrip applies them exactly while it is the doer; whoever else does the work reads the rule here. null on every other definition. definition_update changes them with cleanup."
- },
- "correctionsInForce": {
- "description": "How many corrections are in force on the definition (0 to 20): points a person stated about how this kind of work is done. task_start answers them after the instructions, and definition_get reads them with who stated each and why.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "instructions": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "bytes": {
- "description": "The instructions' size in UTF-8 bytes.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "savedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "savedBy": {
- "additionalProperties": false,
- "description": "Who saved this version: a person, or a person's agent.",
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "version": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "version",
- "bytes",
- "savedBy",
- "savedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The current instructions' version, size, who saved them and when (no text: task_start answers it, and definition_get reads it); null: none saved."
- },
- "purpose": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "One line on what the type is for; null: none."
- },
- "review": {
- "additionalProperties": false,
- "properties": {
- "required": {
- "description": "true: a person reviews this type's work; submit it, and complete it once a person approved it.",
- "type": "boolean"
- },
- "reviewer": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The person who reviews it; null: any person who can edit tasks here, or no review."
- }
- },
- "required": [
- "required",
- "reviewer"
- ],
- "type": "object"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "type",
- "purpose",
- "review",
- "cleanup",
- "instructions",
- "correctionsInForce"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The task definition of this task's type here (definition_get reads it whole), or null when the type has none live (definitionNote says why). Absent for a task with no type."
- },
- "definitionNote": {
- "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
- "enum": [
- "none",
- "archived"
- ],
- "type": "string"
- },
- "dueAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "failed": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "by": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "how": {
- "enum": [
- "reported",
- "lapsed"
- ],
- "type": "string"
- }
- },
- "required": [
- "at",
- "by",
- "how"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "While the task is Failed: when (at), whose failure it was (by, the agent), and how: reported, that agent failed it with the report in result; lapsed, its hold ran out 3 times in a row and Tokenrip failed it, with a report of its own in result. null otherwise. A person retries it (task_reopen) or cancels it."
- },
- "files": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "artifact": {
- "additionalProperties": false,
- "properties": {
- "folder": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "slug": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "slug"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "type",
- "mimeType",
- "folder"
- ],
- "type": "object"
- },
- "made": {
- "type": "boolean"
- },
- "onlyThisTask": {
- "type": "boolean"
- },
- "otherTasks": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "result": {
- "type": "boolean"
- }
- },
- "required": [
- "artifact",
- "made",
- "result",
- "otherTasks",
- "onlyThisTask"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "holder": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "heldByCaller": {
- "type": "boolean"
- },
- "inBrowser": {
- "type": "boolean"
- },
- "leaseExpiresAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "mine": {
- "type": "boolean"
- },
- "since": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "surface": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: Tokenrip itself holds the task, doing a task definition's routine (inBrowser false, no lease of its own).",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "surface",
- "inBrowser",
- "since",
- "leaseExpiresAt",
- "mine",
- "heldByCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "input": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "from": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "brief": {
- "description": "That task's brief (its body) as it is now: who it is for, where it goes, what it must say.",
- "type": "string"
- },
- "links": {
- "description": "That task's context links, as it has them now.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "addedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "artifact": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "type": "string"
- },
- "version": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "title",
- "type",
- "mimeType",
- "version"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "role": {
- "enum": [
- "context",
- "result"
- ],
- "type": "string"
- },
- "url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "role",
- "artifact",
- "url",
- "addedAt"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "task": {
- "additionalProperties": false,
- "description": "The task the brief is on: the one whose finish started this task, or the nearest before it in the chain that has a brief.",
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- }
- },
- "required": [
- "task",
- "brief",
- "links"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The brief this task descends from, when Tokenrip started it from a finished task: the nearest task back along the chain with a brief (at most 10 steps), its brief and its context links, read live, so no second read is needed. null: no task back along the chain has a brief, or a schedule or a file started it."
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text",
- "from"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "What this task was started with, when Tokenrip started it (startedBy says by what): input.text is the finished task's approved text when an approval started it, else its result; null for a schedule's or a file's start (the file is among links); input.from, the brief it descends from with its context links. input null for a task someone filed. The same input task_start answers."
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "lastMessageAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When the newest message in the task's thread was posted (message_read taskId reads it); null: none."
- },
- "latestRound": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "approveVerb": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "byInstructions": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "agent": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "version": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "version",
- "agent"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "comment": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "body": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "body"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "decidedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "decidedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "artifacts": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "artifact": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "type",
- "mimeType"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "base": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "round": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "versionId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "round",
- "versionId"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "changedSince": {
- "type": "boolean"
- },
- "current": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "editedVersion": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "position": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "version": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "position",
- "artifact",
- "version",
- "editedVersion",
- "current",
- "changedSince",
- "base"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "textBase": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text",
- "textBase",
- "artifacts"
- ],
- "type": "object"
- },
- "edits": {
- "additionalProperties": false,
- "properties": {
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text"
- ],
- "type": "object"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "outcome": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
- },
- "savedEdit": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "savedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "savedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "savedBy",
- "savedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "submittedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "submittedBy": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "verdict": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "number",
- "submittedBy",
- "submittedAt",
- "approveVerb",
- "draft",
- "verdict",
- "outcome",
- "decidedAt",
- "decidedBy",
- "byInstructions",
- "edits",
- "comment",
- "savedEdit"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "links": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "addedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "artifact": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "type": "string"
- },
- "version": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "title",
- "type",
- "mimeType",
- "version"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "role": {
- "enum": [
- "context",
- "result"
- ],
- "type": "string"
- },
- "url": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "role",
- "artifact",
- "url",
- "addedAt"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "moves": {
- "description": "The moves open to you on this task now, each the task_<move> tool: start, stop, complete, fail, cancel, reopen, submit, decide, report. Someone else may act first: the move is checked again when you make it.",
- "items": {
- "enum": [
- "start",
- "stop",
- "complete",
- "fail",
- "cancel",
- "reopen",
- "submit",
- "decide",
- "report"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "outputs": {
- "description": "What went out for this task (output_record), newest first, at most 50, fewer when they are large (outputsCut); output_list task=<id> reads them all.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The agent that recorded it (agent.id is its handle); null for a person."
- },
- "approval": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "byInstructions": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "agent": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "version": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "version",
- "agent"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "decidedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "round": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "task": {
- "additionalProperties": false,
- "description": "The task the round is of: the output's own task, or, one step back, the task whose finish started it.",
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- }
- },
- "required": [
- "round",
- "task",
- "decidedBy",
- "byInstructions"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The approval it was recorded under, and who approved it: its task's approved round, else, for a task Tokenrip started, the approved round of the task whose finish started it (one step back, never further); null: no approval."
- },
- "createdAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "file": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "artifact": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "version": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "artifact",
- "version"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The file it was made from: the artifact's id and the version recorded (null once that version is gone)."
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "key": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "kind": {
- "type": "string"
- },
- "labels": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "outcomes": {
- "description": "What it achieved, as agents measured it (output_measure): newest first by observedAt, at most 50. Outcomes are never changed: a later number for the same metric reads first.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "metric": {
- "type": "string"
- },
- "observedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "recordedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "recordedBy": {
- "additionalProperties": false,
- "description": "The agent that recorded it.",
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "value": {
- "type": "number"
- }
- },
- "required": [
- "metric",
- "value",
- "observedAt",
- "recordedBy",
- "recordedAt"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "recordedBy": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "ref": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sentAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "enum": [
- "sending",
- "sent",
- "failed"
- ],
- "type": "string"
- },
- "target": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "task": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "recorded": {
- "type": "boolean"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "recorded"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Its task (recorded: the record of work Tokenrip filed for it when it was sent with no task named, or a report); null while a claim with no task named is sending or once it failed (its record is filed only when it is settled sent), once that task is deleted, or for an output recorded before every output was on a task."
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "workspaceId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "workspaceId",
- "kind",
- "target",
- "ref",
- "text",
- "file",
- "task",
- "labels",
- "approval",
- "agent",
- "recordedBy",
- "status",
- "key",
- "createdAt",
- "sentAt",
- "outcomes"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "outputsCut": {
- "const": true,
- "description": "Present when outputs was cut to its newest ones to fit a tool reply (an output's text can be 64,000 characters): output_list task=<id> reads the rest.",
- "type": "boolean"
- },
- "outputsTotal": {
- "description": "How many outputs it has; output_list task=<id> reads them all.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "parentId": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "payload": {
- "additionalProperties": {
- "$ref": "#/$defs/__schema0"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "recorded": {
- "description": "true when the task was filed as a record of work: work already done, born Done, by task_report or for an output with no task named when it was sent (the record filed for it). false for every other task, and for a record someone reopened.",
- "type": "boolean"
- },
- "result": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "reviewer": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "revision": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "round": {
- "additionalProperties": false,
- "properties": {
- "approveVerb": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "byInstructions": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "agent": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "version": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "version",
- "agent"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "comment": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "body": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "body"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "decidedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "decidedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "artifacts": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "artifact": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "type",
- "mimeType"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "base": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "round": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "versionId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "round",
- "versionId"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "changedSince": {
- "type": "boolean"
- },
- "current": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "editedVersion": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "position": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "version": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "position",
- "artifact",
- "version",
- "editedVersion",
- "current",
- "changedSince",
- "base"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "textBase": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text",
- "textBase",
- "artifacts"
- ],
- "type": "object"
- },
- "edits": {
- "additionalProperties": false,
- "properties": {
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text"
- ],
- "type": "object"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "outcome": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
- },
- "savedEdit": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "savedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "savedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "text",
- "savedBy",
- "savedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "submittedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "submittedBy": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "verdict": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "number",
- "submittedBy",
- "submittedAt",
- "approveVerb",
- "draft",
- "verdict",
- "outcome",
- "decidedAt",
- "decidedBy",
- "byInstructions",
- "edits",
- "comment",
- "savedEdit"
- ],
- "type": "object"
- },
- "started": {
- "description": "What this task's finishes started, newest first, at most 20: each start's source, its state (waiting, started, dropped, failed) and the task it started (null until it starts, or when it never did). startedTotal counts them all.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "source": {
- "enum": [
- "trigger",
- "then_start",
- "approval",
- "instructions_update"
- ],
- "type": "string"
- },
- "state": {
- "enum": [
- "waiting",
- "started",
- "dropped",
- "failed"
- ],
- "type": "string"
- },
- "task": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "status": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "status"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "source",
- "state",
- "task"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "startedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "approveVerb": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "approvedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "depth": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "dueAt": {
- "type": "string"
- },
- "file": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "version": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "version"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "instructionsUpdate": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "definition": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "type"
- ],
- "type": "object"
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "definition"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "round": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "source": {
- "enum": [
- "trigger",
- "then_start",
- "approval",
- "instructions_update"
- ],
- "type": "string"
- },
- "task": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "trigger": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "type": "object"
- },
- "unaddressed": {
- "anyOf": [
- {
- "enum": [
- "no_doer",
- "doer_gone",
- "depth_limit"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Why the start named no doer, a fact about how Tokenrip started this task, the same on every read for its whole life: no_doer, nothing named one (a follow-on with none, a task definition with no doer); doer_gone, the doer named could no longer edit tasks here; depth_limit, the chain was deeper than Tokenrip hands on by itself (startedBy.depth on task_get), so it named no doer even if one was given. null: the start named a doer. It says nothing about now: waitsOn says whose turn the task is."
- },
- "when": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "enum": [
- "task_done",
- "schedule",
- "file_added"
- ],
- "type": "string"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "source",
- "when",
- "task",
- "round",
- "approvedBy",
- "approveVerb",
- "depth",
- "unaddressed"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "What started this task, when Tokenrip did (null: someone filed it): source then_start (a follow-on of the task that finished), approval (the approval of a submission, handed back to its submitter), trigger, or instructions_update (Tokenrip drafted a change to a task definition's instructions that works in its corrections, and this task puts the draft before a person); when.kind, what happened (task_done: a task was finished; schedule: a schedule came due; file_added: a file arrived in a folder; when is null for an instructions_update start, which no such event caused); task, the task whose finish started it (null once it is gone, and for a schedule, a file or an instructions_update start); round, the approved round of that task, with approvedBy and approveVerb (null without an approval); depth, how many starts deep the chain is; unaddressed, why the start named no doer (null: it named one), never whose turn it is now (waitsOn); trigger, the trigger that started it (source trigger only, while the trigger exists); file (file_added only), the file that arrived and the number of its version then (also among the context links; null once purged); dueAt (schedule only), the due time it started for; instructionsUpdate (source instructions_update only), the instructions update whose draft the task puts before a person and the task definition whose instructions it changes (definition_get reads them; null once the update is gone: the daily sweep removes old ones)."
- },
- "startedTotal": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "status": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "thenStart": {
- "anyOf": [
- {
- "items": {
- "additionalProperties": false,
- "properties": {
- "assignee": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "type",
- "assignee",
- "title"
- ],
- "type": "object"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "description": "What starts when this task is done, as written (thenStart on create, submit, update and an approving decide): each follow-on { type, assignee, title } in order (title null: this task's title); [] when it says nothing follows; null for the default."
- },
- "timeline": {
- "additionalProperties": false,
- "properties": {
- "entries": {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "round": {
- "additionalProperties": false,
- "properties": {
- "approveVerb": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "byInstructions": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "agent": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "version": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "version",
- "agent"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "comment": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "body": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "body"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "cut": {
- "type": "boolean"
- },
- "decidedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "decidedBy": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "decision": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "surface": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "viaBrowser": {
- "type": "boolean"
- },
- "why": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "why",
- "viaBrowser",
- "surface"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "draft": {
- "additionalProperties": false,
- "properties": {
- "artifacts": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "artifact": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "mimeType": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "type",
- "mimeType"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "base": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "round": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "versionId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "round",
- "versionId"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "changedSince": {
- "type": "boolean"
- },
- "current": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "editedVersion": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "position": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "version": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "number"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "position",
- "artifact",
- "version",
- "editedVersion",
- "current",
- "changedSince",
- "base"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "textBase": {
- "anyOf": [
- {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text",
- "textBase",
- "artifacts"
- ],
- "type": "object"
- },
- "edits": {
- "additionalProperties": false,
- "properties": {
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "text"
- ],
- "type": "object"
- },
- "number": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "outcome": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
- },
- "submission": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "surface": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "viaBrowser": {
- "type": "boolean"
- },
- "why": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "why",
- "viaBrowser",
- "surface"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "submittedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "submittedBy": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "verdict": {
- "anyOf": [
- {
- "enum": [
- "approved",
- "sent_back",
- "cancelled",
- "withdrawn",
- "replaced"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "number",
- "submittedBy",
- "submittedAt",
- "approveVerb",
- "draft",
- "verdict",
- "outcome",
- "decidedAt",
- "decidedBy",
- "byInstructions",
- "edits",
- "comment",
- "cut",
- "submission",
- "decision"
- ],
- "type": "object"
- }
- },
- "required": [
- "at",
- "round"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "message": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "body": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "createdAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "deleted": {
- "type": "boolean"
- },
- "editedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "position": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "id",
- "position",
- "author",
- "body",
- "createdAt",
- "editedAt",
- "deleted"
- ],
- "type": "object"
- }
- },
- "required": [
- "at",
- "message"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "event": {
- "additionalProperties": false,
- "properties": {
- "actor": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "from": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "surface": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "verb": {
- "type": "string"
- },
- "viaBrowser": {
- "type": "boolean"
- },
- "why": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "verb",
- "actor",
- "why",
- "viaBrowser",
- "surface"
- ],
- "type": "object"
- }
- },
- "required": [
- "at",
- "event"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "nextCursor": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "entries",
- "nextCursor"
- ],
- "type": "object"
- },
- "title": {
- "type": "string"
- },
- "tokenrip": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "filesRead": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "filesToRead": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "pausedFor": {
- "anyOf": [
- {
- "enum": [
- "daily_limit",
- "model_unavailable",
- "held"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "resumesAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "state": {
- "enum": [
- "waiting",
- "working",
- "paused"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "pausedFor",
- "resumesAt",
- "filesRead",
- "filesToRead"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Where Tokenrip's own work on this task stands, while the task is To do for Tokenrip or Tokenrip holds it (assignee or holder with tokenrip true); null otherwise. state: waiting (it is To do for Tokenrip), working (Tokenrip holds it, Doing), or paused; pausedFor, why it is paused: daily_limit (today's limit for Tokenrip's work is reached), model_unavailable (Tokenrip's model is unavailable; it resumes by itself) or held (Tokenrip's work is paused until the operators resume it); resumesAt, when a pause with a known end lifts (ISO time; null for held and when not paused); filesRead of filesToRead, how many files it has read of those it reads, once it has counted them (both null otherwise)."
- },
- "type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "updatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
- "type": "string"
- },
- "waitsOn": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "blocked": {
- "type": "string"
- },
- "to": {
- "enum": [
- "do",
- "decide",
- "finish",
- "retry"
- ],
- "type": "string"
- },
- "who": {
- "enum": [
- "assignee",
- "reviewer",
- "holder",
- "anyone"
- ],
- "type": "string"
- },
- "you": {
- "type": "boolean"
- }
- },
- "required": [
- "who",
- "to",
- "you"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Whose turn it is: who names the field of this task that holds them (assignee, reviewer or holder; anyone when that field is empty), to says why (do; decide a review; finish work in progress; retry a failed task, a person's), you is true when it waits on you. blocked, only when it waits on you, is the code your sign-in would be refused with. null for a done or cancelled task."
- },
- "whenDone": {
- "anyOf": [
- {
- "items": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "assignee": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "by": {
- "const": "then_start",
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "by",
- "type",
- "assignee",
- "title"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "assignee": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "by": {
- "const": "trigger",
- "type": "string"
- },
- "definition": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "type": "object"
- },
- "trigger": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id"
- ],
- "type": "object"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "by",
- "type",
- "assignee",
- "trigger",
- "definition"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "assignee": {
- "additionalProperties": false,
- "properties": {
- "account": {
- "additionalProperties": false,
- "properties": {
- "alias": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "former": {
- "const": true,
- "type": "boolean"
- },
- "id": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "alias"
- ],
- "type": "object"
- },
- "agent": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "harness": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "anyOf": [
- {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "name",
- "harness"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "isCaller": {
- "type": "boolean"
- },
- "mine": {
- "type": "boolean"
- },
- "tokenrip": {
- "const": true,
- "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
- "type": "boolean"
- }
- },
- "required": [
- "account",
- "agent",
- "mine",
- "isCaller"
- ],
- "type": "object"
- },
- "by": {
- "const": "submitter",
- "type": "string"
- }
- },
- "required": [
- "by",
- "assignee"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ],
- "description": "What finishing this task will start, as things stand: by then_start, each follow-on with the title it starts with; by trigger, a trigger of the workspace listening for this task's type, with the definition it starts (definition.id, definition_get reads it); by submitter, when it is In review on an agent's submission and nothing else is named, a new task for that agent, which an approval hands back to. [] when nothing will start; null once the task is done, cancelled or failed."
- },
- "whenDoneTriggersTotal": {
- "description": "Present only when whenDone names fewer of the triggers listening for this task's type than listen: how many listen in all. whenDone names at most 10; a receipt too large for one tool reply names none of them (cut) and keeps this count. task_get names the first ones; the workspace's trigger list, by this type, has them all.",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "workspaceId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "id",
- "workspaceId",
- "revision",
- "type",
- "labels",
- "title",
- "status",
- "holder",
- "assignee",
- "reviewer",
- "createdBy",
- "completedBy",
- "parentId",
- "recorded",
- "latestRound",
- "startedBy",
- "result",
- "completedById",
- "completedAt",
- "cancelledById",
- "cancelledAt",
- "cancelReason",
- "failed",
- "createdById",
- "dueAt",
- "createdAt",
- "updatedAt",
- "waitsOn",
- "moves",
- "lastMessageAt",
- "body",
- "payload",
- "approvedRound",
- "thenStart",
- "whenDone",
- "started",
- "startedTotal",
- "tokenrip",
- "links",
- "files",
- "children",
- "timeline",
- "outputs",
- "outputsTotal",
- "input"
- ],
- "type": "object"
- }
- },
- "required": [
- "task"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "content": {
- "additionalProperties": false,
- "properties": {
- "complete": {
- "type": "boolean"
- },
- "content": {
- "maxLength": 32000,
- "type": "string"
- },
- "encoding": {
- "const": "base64",
- "type": "string"
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "offset": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "sha256": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "totalBytes": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "encoding",
- "content",
- "offset",
- "nextOffset",
- "totalBytes",
- "sha256",
- "complete"
- ],
- "type": "object"
- },
- "taskId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- }
- },
- "required": [
- "taskId",
- "content"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "task": {
+ "additionalProperties": false,
+ "properties": {
+ "approvedRound": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "final": {
+ "additionalProperties": false,
+ "properties": {
+ "artifacts": {
+ "description": "Per draft artifact, the version approved.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "artifact": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "type",
+ "mimeType"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null once the artifact is purged."
+ },
+ "position": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The approver's edit, else the draft's version."
+ }
+ },
+ "required": [
+ "position",
+ "artifact",
+ "version"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The text approved."
+ }
+ },
+ "required": [
+ "text",
+ "artifacts"
+ ],
+ "type": "object"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "number",
+ "final"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The approved round and its final material, exactly what was approved and the task's result: per part, the approver's edit, else the draft. null when no round is approved, or once a reopen, a cancel or a new submission cleared it."
+ },
+ "assignee": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "body": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cancelReason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cancelledAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cancelledById": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "children": {
+ "description": "Its children, oldest first, at most 100, as list rows (their latest round's number and verdict).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "assignee": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cancelReason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cancelReasonCut": {
+ "description": "true when cancelReason was cut to its first 280 characters; task_get reads it whole.",
+ "type": "boolean"
+ },
+ "cancelledAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cancelledById": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "completedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "completedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "completedById": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "createdAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "createdBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Who filed the task; null when Tokenrip started it (startedBy says what started it)."
+ },
+ "createdById": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "dueAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "failed": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "by": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "how": {
+ "enum": [
+ "reported",
+ "lapsed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "at",
+ "by",
+ "how"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "While the task is Failed: when (at), whose failure it was (by, the agent), and how: reported, that agent failed it with the report in result; lapsed, its hold ran out 3 times in a row and Tokenrip failed it, with a report of its own in result. null otherwise. A person retries it (task_reopen) or cancels it."
+ },
+ "holder": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "heldByCaller": {
+ "type": "boolean"
+ },
+ "inBrowser": {
+ "type": "boolean"
+ },
+ "leaseExpiresAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "since": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "surface": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: Tokenrip itself holds the task, doing a task definition's routine (inBrowser false, no lease of its own).",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "surface",
+ "inBrowser",
+ "since",
+ "leaseExpiresAt",
+ "mine",
+ "heldByCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "lastMessageAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the newest message in the task's thread was posted (message_read taskId reads it); null: none."
+ },
+ "latestRound": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "outcome": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
+ },
+ "verdict": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The round's verdict, how it ended; null while it is open (In review). approved: the approval finished the task (Done), and approvedRound holds what was approved; sent_back: the task went back To do with a comment saying what to change (the round's comment), and a new submission on the task starts the next round; cancelled: the task was cancelled while In review; withdrawn: its submitter's account stopped it, or its submitter lost access to the task; replaced: a later submission from its submitter's account replaced it."
+ }
+ },
+ "required": [
+ "number",
+ "verdict",
+ "outcome"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "moves": {
+ "description": "The moves open to you on this task now, each the task_<move> tool: start, stop, complete, fail, cancel, reopen, submit, decide, report. Someone else may act first: the move is checked again when you make it.",
+ "items": {
+ "enum": [
+ "start",
+ "stop",
+ "complete",
+ "fail",
+ "cancel",
+ "reopen",
+ "submit",
+ "decide",
+ "report"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "parentId": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recorded": {
+ "description": "true when the task was filed as a record of work: work already done, born Done, by task_report or for an output with no task named when it was sent (the record filed for it). false for every other task, and for a record someone reopened.",
+ "type": "boolean"
+ },
+ "result": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "resultCut": {
+ "description": "true when result was cut to its first 280 characters; task_get reads it whole.",
+ "type": "boolean"
+ },
+ "reviewer": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "revision": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "startedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "source": {
+ "enum": [
+ "trigger",
+ "then_start",
+ "approval",
+ "instructions_update"
+ ],
+ "type": "string"
+ },
+ "unaddressed": {
+ "anyOf": [
+ {
+ "enum": [
+ "no_doer",
+ "doer_gone",
+ "depth_limit"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Why the start named no doer, a fact about how Tokenrip started this task, the same on every read for its whole life: no_doer, nothing named one (a follow-on with none, a task definition with no doer); doer_gone, the doer named could no longer edit tasks here; depth_limit, the chain was deeper than Tokenrip hands on by itself (startedBy.depth on task_get), so it named no doer even if one was given. null: the start named a doer. It says nothing about now: waitsOn says whose turn the task is."
+ }
+ },
+ "required": [
+ "source",
+ "unaddressed"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What started it, when Tokenrip did (task_get reads the rest): source then_start, a follow-on of the task that finished; approval, the approval of its own earlier submission; trigger, a trigger of the workspace; instructions_update, Tokenrip's draft of a change to a task definition's instructions, put before a person; unaddressed, why the start named no doer (null: it named one; waitsOn says whose turn it is now). null: someone filed it."
+ },
+ "status": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "url": {
+ "description": "The task's page in the dashboard; it opens for a signed-in member of the workspace.",
+ "type": "string"
+ },
+ "waitsOn": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "blocked": {
+ "type": "string"
+ },
+ "to": {
+ "enum": [
+ "do",
+ "decide",
+ "finish",
+ "retry"
+ ],
+ "type": "string"
+ },
+ "who": {
+ "enum": [
+ "assignee",
+ "reviewer",
+ "holder",
+ "anyone"
+ ],
+ "type": "string"
+ },
+ "you": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "who",
+ "to",
+ "you"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Whose turn it is: who names the field of this task that holds them (assignee, reviewer or holder; anyone when that field is empty), to says why (do; decide a review; finish work in progress; retry a failed task, a person's), you is true when it waits on you. blocked, only when it waits on you, is the code your sign-in would be refused with. null for a done or cancelled task."
+ },
+ "workspaceId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "workspaceId",
+ "revision",
+ "type",
+ "labels",
+ "title",
+ "status",
+ "holder",
+ "assignee",
+ "reviewer",
+ "createdBy",
+ "completedBy",
+ "parentId",
+ "recorded",
+ "latestRound",
+ "startedBy",
+ "result",
+ "completedById",
+ "completedAt",
+ "cancelledById",
+ "cancelledAt",
+ "cancelReason",
+ "failed",
+ "createdById",
+ "dueAt",
+ "createdAt",
+ "updatedAt",
+ "waitsOn",
+ "moves",
+ "lastMessageAt",
+ "url",
+ "resultCut",
+ "cancelReasonCut"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "completedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "completedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "completedById": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "createdAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "createdBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Who filed the task; null when Tokenrip started it (startedBy says what started it)."
+ },
+ "createdById": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "definition": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cleanup": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "maxImportance": {
+ "description": "The highest importance a file may be rated and be considered: none (files rated None), low (Low or None), medium (Medium or lower) or high (any).",
+ "enum": [
+ "high",
+ "medium",
+ "low",
+ "none"
+ ],
+ "type": "string"
+ },
+ "unchangedDays": {
+ "description": "Only files that have not changed for at least this many whole days; 0: no limit on it.",
+ "maximum": 3650,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unreadDays": {
+ "description": "Only files nobody has read for at least this many whole days; 0: no limit on it.",
+ "maximum": 3650,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "maxImportance",
+ "unreadDays",
+ "unchangedDays"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The files this type's work considers, on a definition whose routine is suggest_cleanup (an add-on's): a file is suggested only when it is rated maxImportance or lower, unread for at least unreadDays and unchanged for at least unchangedDays. Tokenrip applies them exactly while it is the doer; whoever else does the work reads the rule here. null on every other definition. definition_update changes them with cleanup."
+ },
+ "correctionsInForce": {
+ "description": "How many corrections are in force on the definition (0 to 20): points a person stated about how this kind of work is done. task_start answers them after the instructions, and definition_get reads them with who stated each and why.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "instructions": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "bytes": {
+ "description": "The instructions' size in UTF-8 bytes.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "savedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "savedBy": {
+ "additionalProperties": false,
+ "description": "Who saved this version: a person, or a person's agent.",
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "version": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "bytes",
+ "savedBy",
+ "savedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The current instructions' version, size, who saved them and when (no text: task_start answers it, and definition_get reads it); null: none saved."
+ },
+ "purpose": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "One line on what the type is for; null: none."
+ },
+ "review": {
+ "additionalProperties": false,
+ "properties": {
+ "required": {
+ "description": "true: a person reviews this type's work; submit it, and complete it once a person approved it.",
+ "type": "boolean"
+ },
+ "reviewer": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The person who reviews it; null: any person who can edit tasks here, or no review."
+ }
+ },
+ "required": [
+ "required",
+ "reviewer"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "type",
+ "purpose",
+ "review",
+ "cleanup",
+ "instructions",
+ "correctionsInForce"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The task definition of this task's type here (definition_get reads it whole), or null when the type has none live (definitionNote says why). Absent for a task with no type."
+ },
+ "definitionNote": {
+ "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
+ "enum": [
+ "none",
+ "archived"
+ ],
+ "type": "string"
+ },
+ "dueAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "failed": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "by": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "how": {
+ "enum": [
+ "reported",
+ "lapsed"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "at",
+ "by",
+ "how"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "While the task is Failed: when (at), whose failure it was (by, the agent), and how: reported, that agent failed it with the report in result; lapsed, its hold ran out 3 times in a row and Tokenrip failed it, with a report of its own in result. null otherwise. A person retries it (task_reopen) or cancels it."
+ },
+ "files": {
+ "description": "Each file the task links or names in a round, once, leaving out files in the trash; made files first, then results, then the rest, each by title in byte order.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "artifact": {
+ "additionalProperties": false,
+ "properties": {
+ "folder": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "slug"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Its folder as you may see it; null when unfiled."
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "type",
+ "mimeType",
+ "folder"
+ ],
+ "type": "object"
+ },
+ "made": {
+ "description": "A round of this task names the file at version 1, and the round's submitter wrote that version (the same agent key, or the same person in the browser): a draft this task submitted as a new file.",
+ "type": "boolean"
+ },
+ "onlyThisTask": {
+ "description": "No other task links it or names it in a round, including tasks you cannot read.",
+ "type": "boolean"
+ },
+ "otherTasks": {
+ "description": "How many other tasks link it or name it in a round.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "result": {
+ "description": "One of the task's result links names it.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "artifact",
+ "made",
+ "result",
+ "otherTasks",
+ "onlyThisTask"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "holder": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "heldByCaller": {
+ "type": "boolean"
+ },
+ "inBrowser": {
+ "type": "boolean"
+ },
+ "leaseExpiresAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "since": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "surface": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: Tokenrip itself holds the task, doing a task definition's routine (inBrowser false, no lease of its own).",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "surface",
+ "inBrowser",
+ "since",
+ "leaseExpiresAt",
+ "mine",
+ "heldByCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "input": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "from": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "brief": {
+ "description": "That task's brief (its body) as it is now: who it is for, where it goes, what it must say.",
+ "type": "string"
+ },
+ "links": {
+ "description": "That task's context links, as it has them now.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "addedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "artifact": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version the link names; null for the artifact's current version (also when the named version was deleted)."
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "type",
+ "mimeType",
+ "version"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "An artifact in the task's workspace; null for a URL link."
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "role": {
+ "description": "context: what the work uses; result: what came of it.",
+ "enum": [
+ "context",
+ "result"
+ ],
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "role",
+ "artifact",
+ "url",
+ "addedAt"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "task": {
+ "additionalProperties": false,
+ "description": "The task the brief is on: the one whose finish started this task, or the nearest before it in the chain that has a brief.",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "task",
+ "brief",
+ "links"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The brief this task descends from, when Tokenrip started it from a finished task: the nearest task back along the chain with a brief (at most 10 steps), its brief and its context links, read live, so no second read is needed. null: no task back along the chain has a brief, or a schedule or a file started it."
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "text",
+ "from"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What this task was started with, when Tokenrip started it (startedBy says by what): input.text is the finished task's approved text when an approval started it, else its result; null for a schedule's or a file's start (the file is among links); input.from, the brief it descends from with its context links. input null for a task someone filed. The same input task_start answers."
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "lastMessageAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the newest message in the task's thread was posted (message_read taskId reads it); null: none."
+ },
+ "latestRound": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "approveVerb": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The approve button's verb; Approve without it."
+ },
+ "byInstructions": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "agent": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "version": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "agent"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The instructions version whose on-its-own list approved it: set only on an old round approved that way."
+ },
+ "comment": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "body": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null once deleted."
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "body"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The comment posted with the decision; a send back always names one, saying what to change."
+ },
+ "decidedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "decidedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Who closed it; null while open, or on an old round an agent's instructions approved on its own (byInstructions)."
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "artifacts": {
+ "description": "The draft's artifact versions, in the submitter's order.",
+ "items": {
+ "additionalProperties": false,
+ "description": "One artifact version in a round's draft, at its place in the submitter's order.",
+ "properties": {
+ "artifact": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "type",
+ "mimeType"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null once the artifact is purged."
+ },
+ "base": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "round": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "versionId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "round",
+ "versionId"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The same artifact in the latest earlier round of the task that has it (its edit, else its draft): what artifact_version_diff with baseVersionId compares with; null when there is none to compare with."
+ },
+ "changedSince": {
+ "description": "The current version is not the part's final one (its edit, else its draft).",
+ "type": "boolean"
+ },
+ "current": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The artifact's current version; null while it is in the trash."
+ },
+ "editedVersion": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The later version an approver edited it to."
+ },
+ "position": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version submitted."
+ }
+ },
+ "required": [
+ "position",
+ "artifact",
+ "version",
+ "editedVersion",
+ "current",
+ "changedSince",
+ "base"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The text the action uses, as the submitter wrote it."
+ },
+ "textBase": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The latest earlier round of the task with draft text: what this round's text compares with; null when none, or this round has no text."
+ }
+ },
+ "required": [
+ "text",
+ "textBase",
+ "artifacts"
+ ],
+ "type": "object"
+ },
+ "edits": {
+ "additionalProperties": false,
+ "properties": {
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "An approval's edited text, only when it differs from the draft. An edited artifact is its part's editedVersion."
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "type": "object"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "outcome": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
+ },
+ "savedEdit": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "savedAt": {
+ "description": "When it was last saved.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "savedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The person who saved it; null once their account is gone."
+ },
+ "text": {
+ "description": "The edited text; never the draft's own.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "savedBy",
+ "savedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "On latestRound and round (never a timeline entry): a person's edit of the open round's draft text, saved in their browser, or null. An approval without edits.text applies it; every end of the round clears it, so a closed round reads null."
+ },
+ "submittedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "submittedBy": {
+ "additionalProperties": false,
+ "description": "Who submitted it: a person, or one agent.",
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "verdict": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The round's verdict, how it ended; null while it is open (In review). approved: the approval finished the task (Done), and approvedRound holds what was approved; sent_back: the task went back To do with a comment saying what to change (the round's comment), and a new submission on the task starts the next round; cancelled: the task was cancelled while In review; withdrawn: its submitter's account stopped it, or its submitter lost access to the task; replaced: a later submission from its submitter's account replaced it."
+ }
+ },
+ "required": [
+ "number",
+ "submittedBy",
+ "submittedAt",
+ "approveVerb",
+ "draft",
+ "verdict",
+ "outcome",
+ "decidedAt",
+ "decidedBy",
+ "byInstructions",
+ "edits",
+ "comment",
+ "savedEdit"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Its latest review round whole: the submission and, once closed, its decision; null when it was never submitted."
+ },
+ "links": {
+ "description": "Its links in the order written, as you may read them: context and result.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "addedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "artifact": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version the link names; null for the artifact's current version (also when the named version was deleted)."
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "type",
+ "mimeType",
+ "version"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "An artifact in the task's workspace; null for a URL link."
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "role": {
+ "description": "context: what the work uses; result: what came of it.",
+ "enum": [
+ "context",
+ "result"
+ ],
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "role",
+ "artifact",
+ "url",
+ "addedAt"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "moves": {
+ "description": "The moves open to you on this task now, each the task_<move> tool: start, stop, complete, fail, cancel, reopen, submit, decide, report. Someone else may act first: the move is checked again when you make it.",
+ "items": {
+ "enum": [
+ "start",
+ "stop",
+ "complete",
+ "fail",
+ "cancel",
+ "reopen",
+ "submit",
+ "decide",
+ "report"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "outputs": {
+ "description": "What went out for this task (output_record), newest first, at most 50, fewer when they are large (outputsCut); output_list task=<id> reads them all.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The agent that recorded it (agent.id is its handle); null for a person."
+ },
+ "approval": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "byInstructions": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "agent": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "version": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "agent"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "decidedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "round": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "task": {
+ "additionalProperties": false,
+ "description": "The task the round is of: the output's own task, or, one step back, the task whose finish started it.",
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "round",
+ "task",
+ "decidedBy",
+ "byInstructions"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The approval it was recorded under, and who approved it: its task's approved round, else, for a task Tokenrip started, the approved round of the task whose finish started it (one step back, never further); null: no approval."
+ },
+ "createdAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "file": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "artifact": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "artifact",
+ "version"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The file it was made from: the artifact's id and the version recorded (null once that version is gone)."
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "key": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "kind": {
+ "type": "string"
+ },
+ "labels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "outcomes": {
+ "description": "What it achieved, as agents measured it (output_measure): newest first by observedAt, at most 50. Outcomes are never changed: a later number for the same metric reads first.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "metric": {
+ "type": "string"
+ },
+ "observedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "recordedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "recordedBy": {
+ "additionalProperties": false,
+ "description": "The agent that recorded it.",
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "metric",
+ "value",
+ "observedAt",
+ "recordedBy",
+ "recordedAt"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recordedBy": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "ref": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "sentAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "enum": [
+ "sending",
+ "sent",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "task": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "recorded": {
+ "type": "boolean"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "recorded"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Its task (recorded: the record of work Tokenrip filed for it when it was sent with no task named, or a report); null while a claim with no task named is sending or once it failed (its record is filed only when it is settled sent), once that task is deleted, or for an output recorded before every output was on a task."
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "workspaceId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "workspaceId",
+ "kind",
+ "target",
+ "ref",
+ "text",
+ "file",
+ "task",
+ "labels",
+ "approval",
+ "agent",
+ "recordedBy",
+ "status",
+ "key",
+ "createdAt",
+ "sentAt",
+ "outcomes"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "outputsCut": {
+ "const": true,
+ "description": "Present when outputs was cut to its newest ones to fit a tool reply (an output's text can be 64,000 characters): output_list task=<id> reads the rest.",
+ "type": "boolean"
+ },
+ "outputsTotal": {
+ "description": "How many outputs it has; output_list task=<id> reads them all.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "parentId": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "payload": {
+ "additionalProperties": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "recorded": {
+ "description": "true when the task was filed as a record of work: work already done, born Done, by task_report or for an output with no task named when it was sent (the record filed for it). false for every other task, and for a record someone reopened.",
+ "type": "boolean"
+ },
+ "result": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reviewer": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "revision": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "round": {
+ "additionalProperties": false,
+ "description": "Only when the read names round: that round whole.",
+ "properties": {
+ "approveVerb": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The approve button's verb; Approve without it."
+ },
+ "byInstructions": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "agent": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "version": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "agent"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The instructions version whose on-its-own list approved it: set only on an old round approved that way."
+ },
+ "comment": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "body": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null once deleted."
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "body"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The comment posted with the decision; a send back always names one, saying what to change."
+ },
+ "decidedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "decidedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Who closed it; null while open, or on an old round an agent's instructions approved on its own (byInstructions)."
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "artifacts": {
+ "description": "The draft's artifact versions, in the submitter's order.",
+ "items": {
+ "additionalProperties": false,
+ "description": "One artifact version in a round's draft, at its place in the submitter's order.",
+ "properties": {
+ "artifact": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "type",
+ "mimeType"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null once the artifact is purged."
+ },
+ "base": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "round": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "versionId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "round",
+ "versionId"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The same artifact in the latest earlier round of the task that has it (its edit, else its draft): what artifact_version_diff with baseVersionId compares with; null when there is none to compare with."
+ },
+ "changedSince": {
+ "description": "The current version is not the part's final one (its edit, else its draft).",
+ "type": "boolean"
+ },
+ "current": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The artifact's current version; null while it is in the trash."
+ },
+ "editedVersion": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The later version an approver edited it to."
+ },
+ "position": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version submitted."
+ }
+ },
+ "required": [
+ "position",
+ "artifact",
+ "version",
+ "editedVersion",
+ "current",
+ "changedSince",
+ "base"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The text the action uses, as the submitter wrote it."
+ },
+ "textBase": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The latest earlier round of the task with draft text: what this round's text compares with; null when none, or this round has no text."
+ }
+ },
+ "required": [
+ "text",
+ "textBase",
+ "artifacts"
+ ],
+ "type": "object"
+ },
+ "edits": {
+ "additionalProperties": false,
+ "properties": {
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "An approval's edited text, only when it differs from the draft. An edited artifact is its part's editedVersion."
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "type": "object"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "outcome": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
+ },
+ "savedEdit": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "savedAt": {
+ "description": "When it was last saved.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "savedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The person who saved it; null once their account is gone."
+ },
+ "text": {
+ "description": "The edited text; never the draft's own.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "savedBy",
+ "savedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "On latestRound and round (never a timeline entry): a person's edit of the open round's draft text, saved in their browser, or null. An approval without edits.text applies it; every end of the round clears it, so a closed round reads null."
+ },
+ "submittedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "submittedBy": {
+ "additionalProperties": false,
+ "description": "Who submitted it: a person, or one agent.",
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "verdict": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The round's verdict, how it ended; null while it is open (In review). approved: the approval finished the task (Done), and approvedRound holds what was approved; sent_back: the task went back To do with a comment saying what to change (the round's comment), and a new submission on the task starts the next round; cancelled: the task was cancelled while In review; withdrawn: its submitter's account stopped it, or its submitter lost access to the task; replaced: a later submission from its submitter's account replaced it."
+ }
+ },
+ "required": [
+ "number",
+ "submittedBy",
+ "submittedAt",
+ "approveVerb",
+ "draft",
+ "verdict",
+ "outcome",
+ "decidedAt",
+ "decidedBy",
+ "byInstructions",
+ "edits",
+ "comment",
+ "savedEdit"
+ ],
+ "type": "object"
+ },
+ "started": {
+ "description": "What this task's finishes started, newest first, at most 20: each start's source, its state (waiting, started, dropped, failed) and the task it started (null until it starts, or when it never did). startedTotal counts them all.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "source": {
+ "enum": [
+ "trigger",
+ "then_start",
+ "approval",
+ "instructions_update"
+ ],
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "waiting",
+ "started",
+ "dropped",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "task": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "status"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "source",
+ "state",
+ "task"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "startedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "approveVerb": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "approvedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "depth": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "dueAt": {
+ "type": "string"
+ },
+ "file": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "version"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "instructionsUpdate": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "definition": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ],
+ "type": "object"
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "definition"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "round": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "source": {
+ "enum": [
+ "trigger",
+ "then_start",
+ "approval",
+ "instructions_update"
+ ],
+ "type": "string"
+ },
+ "task": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "trigger": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "unaddressed": {
+ "anyOf": [
+ {
+ "enum": [
+ "no_doer",
+ "doer_gone",
+ "depth_limit"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Why the start named no doer, a fact about how Tokenrip started this task, the same on every read for its whole life: no_doer, nothing named one (a follow-on with none, a task definition with no doer); doer_gone, the doer named could no longer edit tasks here; depth_limit, the chain was deeper than Tokenrip hands on by itself (startedBy.depth on task_get), so it named no doer even if one was given. null: the start named a doer. It says nothing about now: waitsOn says whose turn the task is."
+ },
+ "when": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "enum": [
+ "task_done",
+ "schedule",
+ "file_added"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "source",
+ "when",
+ "task",
+ "round",
+ "approvedBy",
+ "approveVerb",
+ "depth",
+ "unaddressed"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What started this task, when Tokenrip did (null: someone filed it): source then_start (a follow-on of the task that finished), approval (the approval of a submission, handed back to its submitter), trigger, or instructions_update (Tokenrip drafted a change to a task definition's instructions that works in its corrections, and this task puts the draft before a person); when.kind, what happened (task_done: a task was finished; schedule: a schedule came due; file_added: a file arrived in a folder; when is null for an instructions_update start, which no such event caused); task, the task whose finish started it (null once it is gone, and for a schedule, a file or an instructions_update start); round, the approved round of that task, with approvedBy and approveVerb (null without an approval); depth, how many starts deep the chain is; unaddressed, why the start named no doer (null: it named one), never whose turn it is now (waitsOn); trigger, the trigger that started it (source trigger only, while the trigger exists); file (file_added only), the file that arrived and the number of its version then (also among the context links; null once purged); dueAt (schedule only), the due time it started for; instructionsUpdate (source instructions_update only), the instructions update whose draft the task puts before a person and the task definition whose instructions it changes (definition_get reads them; null once the update is gone: the daily sweep removes old ones)."
+ },
+ "startedTotal": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "status": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "thenStart": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "assignee": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "type",
+ "assignee",
+ "title"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What starts when this task is done, as written (thenStart on create, submit, update and an approving decide): each follow-on { type, assignee, title } in order (title null: this task's title); [] when it says nothing follows; null for the default."
+ },
+ "timeline": {
+ "additionalProperties": false,
+ "description": "The newest 30 timeline entries, newest first. Each is a round (its texts cut to 512 bytes, cut true when one was; submission and decision, how each was recorded: why, viaBrowser and surface, the harness), a message in the task's thread (its id is what message_update and message_delete take; editedAt null: never edited; deleted), or an event (a step: its verb, who took it and why).",
+ "properties": {
+ "entries": {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "round": {
+ "additionalProperties": false,
+ "properties": {
+ "approveVerb": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The approve button's verb; Approve without it."
+ },
+ "byInstructions": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "agent": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "version": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "agent"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The instructions version whose on-its-own list approved it: set only on an old round approved that way."
+ },
+ "comment": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "body": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null once deleted."
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "body"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The comment posted with the decision; a send back always names one, saying what to change."
+ },
+ "cut": {
+ "type": "boolean"
+ },
+ "decidedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "decidedBy": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Who closed it; null while open, or on an old round an agent's instructions approved on its own (byInstructions)."
+ },
+ "decision": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "surface": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "viaBrowser": {
+ "type": "boolean"
+ },
+ "why": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "why",
+ "viaBrowser",
+ "surface"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "artifacts": {
+ "description": "The draft's artifact versions, in the submitter's order.",
+ "items": {
+ "additionalProperties": false,
+ "description": "One artifact version in a round's draft, at its place in the submitter's order.",
+ "properties": {
+ "artifact": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "mimeType": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "title": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "type",
+ "mimeType"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Null once the artifact is purged."
+ },
+ "base": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "round": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "versionId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "round",
+ "versionId"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The same artifact in the latest earlier round of the task that has it (its edit, else its draft): what artifact_version_diff with baseVersionId compares with; null when there is none to compare with."
+ },
+ "changedSince": {
+ "description": "The current version is not the part's final one (its edit, else its draft).",
+ "type": "boolean"
+ },
+ "current": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The artifact's current version; null while it is in the trash."
+ },
+ "editedVersion": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The later version an approver edited it to."
+ },
+ "position": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "version": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "number"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The version submitted."
+ }
+ },
+ "required": [
+ "position",
+ "artifact",
+ "version",
+ "editedVersion",
+ "current",
+ "changedSince",
+ "base"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The text the action uses, as the submitter wrote it."
+ },
+ "textBase": {
+ "anyOf": [
+ {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The latest earlier round of the task with draft text: what this round's text compares with; null when none, or this round has no text."
+ }
+ },
+ "required": [
+ "text",
+ "textBase",
+ "artifacts"
+ ],
+ "type": "object"
+ },
+ "edits": {
+ "additionalProperties": false,
+ "properties": {
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "An approval's edited text, only when it differs from the draft. An edited artifact is its part's editedVersion."
+ }
+ },
+ "required": [
+ "text"
+ ],
+ "type": "object"
+ },
+ "number": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "outcome": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Deprecated: the same value as verdict; removed when the window round-outcome-field-window closes."
+ },
+ "submission": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "surface": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "viaBrowser": {
+ "type": "boolean"
+ },
+ "why": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "why",
+ "viaBrowser",
+ "surface"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "submittedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "submittedBy": {
+ "additionalProperties": false,
+ "description": "Who submitted it: a person, or one agent.",
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "verdict": {
+ "anyOf": [
+ {
+ "enum": [
+ "approved",
+ "sent_back",
+ "cancelled",
+ "withdrawn",
+ "replaced"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The round's verdict, how it ended; null while it is open (In review). approved: the approval finished the task (Done), and approvedRound holds what was approved; sent_back: the task went back To do with a comment saying what to change (the round's comment), and a new submission on the task starts the next round; cancelled: the task was cancelled while In review; withdrawn: its submitter's account stopped it, or its submitter lost access to the task; replaced: a later submission from its submitter's account replaced it."
+ }
+ },
+ "required": [
+ "number",
+ "submittedBy",
+ "submittedAt",
+ "approveVerb",
+ "draft",
+ "verdict",
+ "outcome",
+ "decidedAt",
+ "decidedBy",
+ "byInstructions",
+ "edits",
+ "comment",
+ "cut",
+ "submission",
+ "decision"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "at",
+ "round"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "message": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "body": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "createdAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "deleted": {
+ "type": "boolean"
+ },
+ "editedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "position": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "id",
+ "position",
+ "author",
+ "body",
+ "createdAt",
+ "editedAt",
+ "deleted"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "at",
+ "message"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "event": {
+ "additionalProperties": false,
+ "properties": {
+ "actor": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "from": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "surface": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "verb": {
+ "type": "string"
+ },
+ "viaBrowser": {
+ "type": "boolean"
+ },
+ "why": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "verb",
+ "actor",
+ "why",
+ "viaBrowser",
+ "surface"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "at",
+ "event"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "nextCursor": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Pass as timelineCursor for the next 30 entries; null at the start of the task."
+ }
+ },
+ "required": [
+ "entries",
+ "nextCursor"
+ ],
+ "type": "object"
+ },
+ "title": {
+ "type": "string"
+ },
+ "tokenrip": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "filesRead": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "filesToRead": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "pausedFor": {
+ "anyOf": [
+ {
+ "enum": [
+ "daily_limit",
+ "model_unavailable",
+ "held"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "resumesAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "state": {
+ "enum": [
+ "waiting",
+ "working",
+ "paused"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "pausedFor",
+ "resumesAt",
+ "filesRead",
+ "filesToRead"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Where Tokenrip's own work on this task stands, while the task is To do for Tokenrip or Tokenrip holds it (assignee or holder with tokenrip true); null otherwise. state: waiting (it is To do for Tokenrip), working (Tokenrip holds it, Doing), or paused; pausedFor, why it is paused: daily_limit (today's limit for Tokenrip's work is reached), model_unavailable (Tokenrip's model is unavailable; it resumes by itself) or held (Tokenrip's work is paused until Tokenrip resumes it); resumesAt, when a pause with a known end lifts (ISO time; null for held and when not paused); filesRead of filesToRead, how many files it has read of those it reads, once it has counted them (both null otherwise)."
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
+ "type": "string"
+ },
+ "url": {
+ "description": "The task's page in the dashboard; it opens for a signed-in member of the workspace.",
+ "type": "string"
+ },
+ "waitsOn": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "blocked": {
+ "type": "string"
+ },
+ "to": {
+ "enum": [
+ "do",
+ "decide",
+ "finish",
+ "retry"
+ ],
+ "type": "string"
+ },
+ "who": {
+ "enum": [
+ "assignee",
+ "reviewer",
+ "holder",
+ "anyone"
+ ],
+ "type": "string"
+ },
+ "you": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "who",
+ "to",
+ "you"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Whose turn it is: who names the field of this task that holds them (assignee, reviewer or holder; anyone when that field is empty), to says why (do; decide a review; finish work in progress; retry a failed task, a person's), you is true when it waits on you. blocked, only when it waits on you, is the code your sign-in would be refused with. null for a done or cancelled task."
+ },
+ "whenDone": {
+ "anyOf": [
+ {
+ "items": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assignee": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "by": {
+ "const": "then_start",
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "by",
+ "type",
+ "assignee",
+ "title"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assignee": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "by": {
+ "const": "trigger",
+ "type": "string"
+ },
+ "definition": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "trigger": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "by",
+ "type",
+ "assignee",
+ "trigger",
+ "definition"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assignee": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "alias": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "former": {
+ "const": true,
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "alias"
+ ],
+ "type": "object"
+ },
+ "agent": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "harness": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "harness"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "isCaller": {
+ "type": "boolean"
+ },
+ "mine": {
+ "type": "boolean"
+ },
+ "tokenrip": {
+ "const": true,
+ "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "account",
+ "agent",
+ "mine",
+ "isCaller"
+ ],
+ "type": "object"
+ },
+ "by": {
+ "const": "submitter",
+ "type": "string"
+ }
+ },
+ "required": [
+ "by",
+ "assignee"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What finishing this task will start, as things stand: by then_start, each follow-on with the title it starts with; by trigger, a trigger of the workspace listening for this task's type, with the definition it starts (definition.id, definition_get reads it); by submitter, when it is In review on an agent's submission and nothing else is named, a new task for that agent, which an approval hands back to. [] when nothing will start; null once the task is done, cancelled or failed."
+ },
+ "whenDoneTriggersTotal": {
+ "description": "Present only when whenDone names fewer of the triggers listening for this task's type than listen: how many listen in all. whenDone names at most 10; a receipt too large for one tool reply names none of them (cut) and keeps this count. task_get names the first ones; the workspace's trigger list, by this type, has them all.",
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "workspaceId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "workspaceId",
+ "revision",
+ "type",
+ "labels",
+ "title",
+ "status",
+ "holder",
+ "assignee",
+ "reviewer",
+ "createdBy",
+ "completedBy",
+ "parentId",
+ "recorded",
+ "latestRound",
+ "startedBy",
+ "result",
+ "completedById",
+ "completedAt",
+ "cancelledById",
+ "cancelledAt",
+ "cancelReason",
+ "failed",
+ "createdById",
+ "dueAt",
+ "createdAt",
+ "updatedAt",
+ "waitsOn",
+ "moves",
+ "lastMessageAt",
+ "url",
+ "body",
+ "payload",
+ "approvedRound",
+ "thenStart",
+ "whenDone",
+ "started",
+ "startedTotal",
+ "tokenrip",
+ "links",
+ "files",
+ "children",
+ "timeline",
+ "outputs",
+ "outputsTotal",
+ "input"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "task"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "additionalProperties": false,
+ "properties": {
+ "complete": {
+ "type": "boolean"
+ },
+ "content": {
+ "maxLength": 32000,
+ "type": "string"
+ },
+ "encoding": {
+ "const": "base64",
+ "type": "string"
+ },
+ "nextOffset": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "offset": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "sha256": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "totalBytes": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "encoding",
+ "content",
+ "offset",
+ "nextOffset",
+ "totalBytes",
+ "sha256",
+ "complete"
+ ],
+ "type": "object"
+ },
+ "taskId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "taskId",
+ "content"
+ ],
+ "type": "object"
+ }
+]