changedOutput schema / properties / task / anyOf
Previous value: -[
- {
- "anyOf": [
- {
- "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"
- }
- ]
- },
- "artifactsCut": {
- "additionalProperties": false,
- "description": "Present only when artifacts is in cut: latestRound.draft.artifacts and approvedRound.final.artifacts each keep their first 3; total counts each list and ids names the ones left out. task_get reads them whole.",
- "properties": {
- "draft": {
- "additionalProperties": false,
- "properties": {
- "ids": {
- "items": {
- "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"
- }
- ]
- },
- "type": "array"
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "total",
- "ids"
- ],
- "type": "object"
- },
- "final": {
- "additionalProperties": false,
- "properties": {
- "ids": {
- "items": {
- "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"
- }
- ]
- },
- "type": "array"
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "total",
- "ids"
- ],
- "type": "object"
- }
- },
- "required": [
- "draft",
- "final"
- ],
- "type": "object"
- },
- "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"
- }
- ]
- },
- "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"
- }
- ]
- },
- "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"
- }
- ]
- },
- "cut": {
- "description": "What was cut to fit this answer in one tool reply, in the order it is cut; [] when nothing was. thenStart, thenStart and whenDone left out (what starts when the task is done); result and cancelReason, each round text (the latest round's draft, edit, saved edit and comment; the approved round's final text), input (input.text, what a started task was started with) and the body are cut to their first 512 bytes, then to nothing; links, the task's and input.from's each to the first 20; titles, each link's and round artifact's title and input.from.task's to its first 64 bytes as sent; linkUrls, each link's url to its first 512 bytes as sent (each such link has urlCut); artifacts, each round's artifacts to its first 3 (artifactsCut names the rest); brief, input.from.brief, the brief a started task descends from, cut last of all to 512 bytes, then to nothing (input.from.briefCut true: read it whole before acting); instructions, their text left out (definition.instructions.bytes says how large); corrections, only in a compact answer: a correction's text cut to its bound as sent (no stored correction reaches it; read them with definition_get before acting); only in a compact or last-resort answer: title, purpose, names (an alias, a key's name or a harness) and fields (any other value) each cut to a fixed size as sent, and packet. task_get reads the task whole; definition_get, the instructions and the corrections.",
- "items": {
- "enum": [
- "thenStart",
- "result",
- "cancelReason",
- "rounds",
- "input",
- "links",
- "body",
- "titles",
- "linkUrls",
- "artifacts",
- "brief",
- "instructions",
- "corrections",
- "title",
- "purpose",
- "names",
- "fields",
- "packet"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "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."
- },
- "corrections": {
- "description": "The definition's corrections in force, oldest first, at most 20: points a person stated about how this kind of work is done, each { id, text, at }, which follow the instructions; where two disagree, the later one stands. [] when there are none. definition_get reads who stated each and why.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "at": {
- "description": "When it was recorded.",
- "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"
- },
- "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"
- },
- "text": {
- "description": "The correction, as the person stated it.",
- "type": "string"
- }
- },
- "required": [
- "id",
- "text",
- "at"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "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"
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The instructions, markdown, whole; null only when they are over 14000 bytes as sent and the answer was too large for them (instructions in cut): definition_get reads them whole."
- },
- "version": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "version",
- "bytes",
- "savedBy",
- "savedAt",
- "text"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The current instructions: version, text, size, who saved them and when; 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",
- "corrections"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The task definition of this task's type here, or null when the type has none live (definitionNote says why). Absent for a task with no type."
- },
- "definitionDefaults": {
- "additionalProperties": false,
- "description": "Present when this write gave the task a type whose task definition filled roles it lacked: the definition (id, type) and which roles it filled (assignee from its doer, reviewer from its reviewer). Roles you named are never replaced.",
- "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"
- },
- "filled": {
- "items": {
- "enum": [
- "assignee",
- "reviewer"
- ],
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "definition",
- "filled"
- ],
- "type": "object"
- },
- "definitionNote": {
- "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
- "enum": [
- "none",
- "archived"
- ],
- "type": "string"
- },
- "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"
- },
- "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"
- },
- "briefCut": {
- "const": true,
- "description": "Present only when brief was cut to fit this reply (to its first 512 bytes, then to nothing; brief in cut): read it whole with task_get on this task, or on task.id. Before acting on a cut brief, read it whole.",
- "type": "boolean"
- },
- "links": {
- "description": "That task's context links, as it has them now; at most 20 when the answer is cut (links in cut).",
- "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"
- }
- ]
- },
- "urlCut": {
- "const": true,
- "description": "Present only when this link's url was cut to its first 512 bytes as sent (linkUrls in cut): task_get reads it whole.",
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "role",
- "artifact",
- "url",
- "addedAt"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "linksTotal": {
- "description": "How many context links that task has; task_get lists them all.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "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",
- "linksTotal"
- ],
- "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"
- }
- ],
- "description": "The approved text of the task that started this one when an approval started it, else that task's result; null when it has none."
- }
- },
- "required": [
- "text",
- "from"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "What this task was started with, when Tokenrip started it (startedBy says by what); its files are among links (context links at the versions that were final); from, the brief it descends from and that task's context links. null: someone filed it. When the answer is too large, text is cut to 512 bytes, then to nothing (input in cut), from.links to the first 20 (links in cut) with their titles and urls cut as the task's own links' are, and only after every other cut from.brief (to 512 bytes, then to nothing; brief in cut, from.briefCut true); task_get reads it whole."
- },
- "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": {
- "description": "The task's context links (what the work uses): each file by id, title and version, or a URL; at most 20 when the answer is cut (links in cut).",
- "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"
- }
- ]
- },
- "urlCut": {
- "const": true,
- "description": "Present only when this link's url was cut to its first 512 bytes as sent (linkUrls in cut): task_get reads it whole.",
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "role",
- "artifact",
- "url",
- "addedAt"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "linksTotal": {
- "description": "How many context links the task has; task_get lists them all.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "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": {
- "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"
- },
- "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)."
- },
- "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."
- },
- "title": {
- "type": "string"
- },
- "type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "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"
- }
- },
- "required": [
- "id",
- "status",
- "type",
- "labels",
- "holder",
- "assignee",
- "reviewer",
- "createdBy",
- "completedBy",
- "parentId",
- "recorded",
- "latestRound",
- "result",
- "cancelledById",
- "cancelledAt",
- "cancelReason",
- "failed",
- "waitsOn",
- "moves",
- "lastMessageAt",
- "startedBy",
- "cut",
- "title",
- "revision",
- "body",
- "links",
- "linksTotal",
- "approvedRound",
- "input"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "The compact answer, only when the whole packet could not fit one tool reply however far it was cut (packet in cut), and the instructions are at most 14000 bytes as sent or the definition has corrections in force: the task's id, title, status, revision, holder, turn and what started it, and its definition with the corrections in force whole and the instructions whole when they are at most that (else their text is null, instructions in cut, or null when none are saved). startedBy rides as on the whole packet. Names, the titles and the purpose are cut to a fixed size as sent, each named in cut when it was. A task the start took stays taken; from next, a review is answered as it stands and nothing is started.",
- "properties": {
- "cut": {
- "description": "Everything left out: packet (every field of the whole packet not here), and each part cut before it.",
- "items": {
- "enum": [
- "thenStart",
- "result",
- "cancelReason",
- "rounds",
- "input",
- "links",
- "body",
- "titles",
- "linkUrls",
- "artifacts",
- "brief",
- "instructions",
- "corrections",
- "title",
- "purpose",
- "names",
- "fields",
- "packet"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "definition": {
- "additionalProperties": false,
- "description": "The task definition of this task's type, with its corrections in force whole, and its instructions whole when they fit.",
- "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."
- },
- "corrections": {
- "description": "The definition's corrections in force, oldest first, at most 20: points a person stated about how this kind of work is done, each { id, text, at }, which follow the instructions; where two disagree, the later one stands. [] when there are none. definition_get reads who stated each and why.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "at": {
- "description": "When it was recorded.",
- "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"
- },
- "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"
- },
- "text": {
- "description": "The correction, as the person stated it.",
- "type": "string"
- }
- },
- "required": [
- "id",
- "text",
- "at"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "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"
- },
- "text": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The instructions, markdown, whole (at most 14000 bytes as sent); null only when they are longer and the definition has corrections in force (instructions in cut): definition_get reads them whole."
- },
- "version": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "version",
- "bytes",
- "savedBy",
- "savedAt",
- "text"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The current instructions; null: none saved (only beside corrections in force)."
- },
- "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",
- "corrections"
- ],
- "type": "object"
- },
- "definitionNote": {
- "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
- "enum": [
- "none",
- "archived"
- ],
- "type": "string"
- },
- "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"
- },
- "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."
- },
- "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"
- },
- "readWith": {
- "description": "The reads that answer the rest whole: task_get for the task (id), definition_get for its definition (definition.id).",
- "items": {
- "enum": [
- "task_get",
- "definition_get"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "revision": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "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)."
- },
- "status": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "title": {
- "description": "The task's title, at most 512 bytes as sent (title in cut when it was cut).",
- "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."
- }
- },
- "required": [
- "id",
- "title",
- "status",
- "revision",
- "holder",
- "waitsOn",
- "moves",
- "lastMessageAt",
- "startedBy",
- "cut",
- "readWith",
- "definition"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "The last-resort answer, only when the whole packet could not fit one tool reply however far it was cut, with instructions over 14000 bytes as sent or none, and no corrections in force (packet in cut). startedBy rides as on the whole packet. Names, the titles and the purpose are cut to a fixed size as sent, each named in cut when it was. A task the start took stays taken; from next, a review is answered as it stands and nothing is started.",
- "properties": {
- "cut": {
- "description": "Everything left out: packet (every field of the whole packet not here), and each part cut before it.",
- "items": {
- "enum": [
- "thenStart",
- "result",
- "cancelReason",
- "rounds",
- "input",
- "links",
- "body",
- "titles",
- "linkUrls",
- "artifacts",
- "brief",
- "instructions",
- "corrections",
- "title",
- "purpose",
- "names",
- "fields",
- "packet"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "definition": {
- "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"
- },
- "type": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "type"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The task definition this task follows (definition_get reads it whole, its instructions and its corrections in force); null or absent as on the whole packet."
- },
- "definitionNote": {
- "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
- "enum": [
- "none",
- "archived"
- ],
- "type": "string"
- },
- "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"
- },
- "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."
- },
- "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"
- },
- "readWith": {
- "description": "The reads that answer the rest whole: task_get for the task (id), definition_get for its definition (definition.id).",
- "items": {
- "enum": [
- "task_get",
- "definition_get"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "revision": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "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)."
- },
- "status": {
- "enum": [
- "todo",
- "doing",
- "review",
- "done",
- "cancelled",
- "failed"
- ],
- "type": "string"
- },
- "title": {
- "description": "The task's title, at most 512 bytes as sent (title in cut when it was cut).",
- "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."
- }
- },
- "required": [
- "id",
- "title",
- "status",
- "revision",
- "holder",
- "waitsOn",
- "moves",
- "lastMessageAt",
- "startedBy",
- "cut",
- "readWith"
- ],
- "type": "object"
- }
- ]
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "anyOf": [
+ {
+ "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."
+ },
+ "artifactsCut": {
+ "additionalProperties": false,
+ "description": "Present only when artifacts is in cut: latestRound.draft.artifacts and approvedRound.final.artifacts each keep their first 3; total counts each list and ids names the ones left out. task_get reads them whole.",
+ "properties": {
+ "draft": {
+ "additionalProperties": false,
+ "properties": {
+ "ids": {
+ "items": {
+ "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"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "ids"
+ ],
+ "type": "object"
+ },
+ "final": {
+ "additionalProperties": false,
+ "properties": {
+ "ids": {
+ "items": {
+ "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"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "ids"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "draft",
+ "final"
+ ],
+ "type": "object"
+ },
+ "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"
+ }
+ ]
+ },
+ "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"
+ }
+ ]
+ },
+ "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"
+ }
+ ]
+ },
+ "cut": {
+ "description": "What was cut to fit this answer in one tool reply, in the order it is cut; [] when nothing was. thenStart, thenStart and whenDone left out (what starts when the task is done); result and cancelReason, each round text (the latest round's draft, edit, saved edit and comment; the approved round's final text), input (input.text, what a started task was started with) and the body are cut to their first 512 bytes, then to nothing; links, the task's and input.from's each to the first 20; titles, each link's and round artifact's title and input.from.task's to its first 64 bytes as sent; linkUrls, each link's url to its first 512 bytes as sent (each such link has urlCut); artifacts, each round's artifacts to its first 3 (artifactsCut names the rest); brief, input.from.brief, the brief a started task descends from, cut last of all to 512 bytes, then to nothing (input.from.briefCut true; task_get reads it whole); instructions, their text left out (definition.instructions.bytes says how large); corrections, only in a compact answer: a correction's text cut to its bound as sent (no stored correction reaches it; definition_get reads them whole); only in a compact or last-resort answer: title, purpose, names (an alias, a key's name or a harness) and fields (any other value) each cut to a fixed size as sent, and packet. task_get reads the task whole; definition_get, the instructions and the corrections.",
+ "items": {
+ "enum": [
+ "thenStart",
+ "result",
+ "cancelReason",
+ "rounds",
+ "input",
+ "links",
+ "body",
+ "titles",
+ "linkUrls",
+ "artifacts",
+ "brief",
+ "instructions",
+ "corrections",
+ "title",
+ "purpose",
+ "names",
+ "fields",
+ "packet"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "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."
+ },
+ "corrections": {
+ "description": "The definition's corrections in force, oldest first, at most 20: points a person stated about how this kind of work is done, each { id, text, at }, which follow the instructions; where two disagree, the later one stands. [] when there are none. definition_get reads who stated each and why.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "description": "When it was recorded.",
+ "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"
+ },
+ "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"
+ },
+ "text": {
+ "description": "The correction, as the person stated it.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "text",
+ "at"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "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"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The instructions, markdown, whole; null only when they are over 14000 bytes as sent and the answer was too large for them (instructions in cut): definition_get reads them whole."
+ },
+ "version": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "bytes",
+ "savedBy",
+ "savedAt",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The current instructions: version, text, size, who saved them and when; 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",
+ "corrections"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The task definition of this task's type here, or null when the type has none live (definitionNote says why). Absent for a task with no type."
+ },
+ "definitionDefaults": {
+ "additionalProperties": false,
+ "description": "Present when this write gave the task a type whose task definition filled roles it lacked: the definition (id, type) and which roles it filled (assignee from its doer, reviewer from its reviewer). Roles you named are never replaced.",
+ "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"
+ },
+ "filled": {
+ "items": {
+ "enum": [
+ "assignee",
+ "reviewer"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "definition",
+ "filled"
+ ],
+ "type": "object"
+ },
+ "definitionNote": {
+ "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
+ "enum": [
+ "none",
+ "archived"
+ ],
+ "type": "string"
+ },
+ "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"
+ },
+ "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"
+ },
+ "briefCut": {
+ "const": true,
+ "description": "Present only when brief was cut to fit this reply (to its first 512 bytes, then to nothing; brief in cut): read it whole with task_get on this task, or on task.id. Before acting on a cut brief, read it whole.",
+ "type": "boolean"
+ },
+ "links": {
+ "description": "That task's context links, as it has them now; at most 20 when the answer is cut (links in cut).",
+ "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"
+ }
+ ]
+ },
+ "urlCut": {
+ "const": true,
+ "description": "Present only when this link's url was cut to its first 512 bytes as sent (linkUrls in cut): task_get reads it whole.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "role",
+ "artifact",
+ "url",
+ "addedAt"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "linksTotal": {
+ "description": "How many context links that task has; task_get lists them all.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "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",
+ "linksTotal"
+ ],
+ "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"
+ }
+ ],
+ "description": "The approved text of the task that started this one when an approval started it, else that task's result; null when it has none."
+ }
+ },
+ "required": [
+ "text",
+ "from"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What this task was started with, when Tokenrip started it (startedBy says by what); its files are among links (context links at the versions that were final); from, the brief it descends from and that task's context links. null: someone filed it. When the answer is too large, text is cut to 512 bytes, then to nothing (input in cut), from.links to the first 20 (links in cut) with their titles and urls cut as the task's own links' are, and only after every other cut from.brief (to 512 bytes, then to nothing; brief in cut, from.briefCut true); task_get reads it whole."
+ },
+ "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 (its texts cut when rounds is in cut): the submission and, once closed, its decision; null when it was never submitted."
+ },
+ "links": {
+ "description": "The task's context links (what the work uses): each file by id, title and version, or a URL; at most 20 when the answer is cut (links in cut).",
+ "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"
+ }
+ ]
+ },
+ "urlCut": {
+ "const": true,
+ "description": "Present only when this link's url was cut to its first 512 bytes as sent (linkUrls in cut): task_get reads it whole.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "role",
+ "artifact",
+ "url",
+ "addedAt"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "linksTotal": {
+ "description": "How many context links the task has; task_get lists them all.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "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": {
+ "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"
+ },
+ "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)."
+ },
+ "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."
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "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"
+ }
+ },
+ "required": [
+ "id",
+ "status",
+ "type",
+ "labels",
+ "holder",
+ "assignee",
+ "reviewer",
+ "createdBy",
+ "completedBy",
+ "parentId",
+ "recorded",
+ "latestRound",
+ "result",
+ "cancelledById",
+ "cancelledAt",
+ "cancelReason",
+ "failed",
+ "waitsOn",
+ "moves",
+ "lastMessageAt",
+ "url",
+ "startedBy",
+ "cut",
+ "title",
+ "revision",
+ "body",
+ "links",
+ "linksTotal",
+ "approvedRound",
+ "input"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "The compact answer, only when the whole packet could not fit one tool reply however far it was cut (packet in cut), and the instructions are at most 14000 bytes as sent or the definition has corrections in force: the task's id, title, status, revision, holder, turn and what started it, and its definition with the corrections in force whole and the instructions whole when they are at most that (else their text is null, instructions in cut, or null when none are saved). startedBy rides as on the whole packet. Names, the titles and the purpose are cut to a fixed size as sent, each named in cut when it was. A task the start took stays taken; from next, a review is answered as it stands and nothing is started.",
+ "properties": {
+ "cut": {
+ "description": "Everything left out: packet (every field of the whole packet not here), and each part cut before it.",
+ "items": {
+ "enum": [
+ "thenStart",
+ "result",
+ "cancelReason",
+ "rounds",
+ "input",
+ "links",
+ "body",
+ "titles",
+ "linkUrls",
+ "artifacts",
+ "brief",
+ "instructions",
+ "corrections",
+ "title",
+ "purpose",
+ "names",
+ "fields",
+ "packet"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "definition": {
+ "additionalProperties": false,
+ "description": "The task definition of this task's type, with its corrections in force whole, and its instructions whole when they fit.",
+ "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."
+ },
+ "corrections": {
+ "description": "The definition's corrections in force, oldest first, at most 20: points a person stated about how this kind of work is done, each { id, text, at }, which follow the instructions; where two disagree, the later one stands. [] when there are none. definition_get reads who stated each and why.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "at": {
+ "description": "When it was recorded.",
+ "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"
+ },
+ "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"
+ },
+ "text": {
+ "description": "The correction, as the person stated it.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "text",
+ "at"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "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"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The instructions, markdown, whole (at most 14000 bytes as sent); null only when they are longer and the definition has corrections in force (instructions in cut): definition_get reads them whole."
+ },
+ "version": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "version",
+ "bytes",
+ "savedBy",
+ "savedAt",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The current instructions; null: none saved (only beside corrections in force)."
+ },
+ "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",
+ "corrections"
+ ],
+ "type": "object"
+ },
+ "definitionNote": {
+ "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
+ "enum": [
+ "none",
+ "archived"
+ ],
+ "type": "string"
+ },
+ "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"
+ },
+ "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."
+ },
+ "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"
+ },
+ "readWith": {
+ "description": "The reads that answer the rest whole: task_get for the task (id), definition_get for its definition (definition.id).",
+ "items": {
+ "enum": [
+ "task_get",
+ "definition_get"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "revision": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "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)."
+ },
+ "status": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "description": "The task's title, at most 512 bytes as sent (title in cut when it was cut).",
+ "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."
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "status",
+ "revision",
+ "holder",
+ "waitsOn",
+ "moves",
+ "lastMessageAt",
+ "url",
+ "startedBy",
+ "cut",
+ "readWith",
+ "definition"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "The last-resort answer, only when the whole packet could not fit one tool reply however far it was cut, with instructions over 14000 bytes as sent or none, and no corrections in force (packet in cut). startedBy rides as on the whole packet. Names, the titles and the purpose are cut to a fixed size as sent, each named in cut when it was. A task the start took stays taken; from next, a review is answered as it stands and nothing is started.",
+ "properties": {
+ "cut": {
+ "description": "Everything left out: packet (every field of the whole packet not here), and each part cut before it.",
+ "items": {
+ "enum": [
+ "thenStart",
+ "result",
+ "cancelReason",
+ "rounds",
+ "input",
+ "links",
+ "body",
+ "titles",
+ "linkUrls",
+ "artifacts",
+ "brief",
+ "instructions",
+ "corrections",
+ "title",
+ "purpose",
+ "names",
+ "fields",
+ "packet"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "definition": {
+ "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"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "type"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The task definition this task follows (definition_get reads it whole, its instructions and its corrections in force); null or absent as on the whole packet."
+ },
+ "definitionNote": {
+ "description": "Why definition is null: none, the type has no task definition here; archived, its definition is archived.",
+ "enum": [
+ "none",
+ "archived"
+ ],
+ "type": "string"
+ },
+ "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"
+ },
+ "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."
+ },
+ "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"
+ },
+ "readWith": {
+ "description": "The reads that answer the rest whole: task_get for the task (id), definition_get for its definition (definition.id).",
+ "items": {
+ "enum": [
+ "task_get",
+ "definition_get"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "revision": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "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)."
+ },
+ "status": {
+ "enum": [
+ "todo",
+ "doing",
+ "review",
+ "done",
+ "cancelled",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "description": "The task's title, at most 512 bytes as sent (title in cut when it was cut).",
+ "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."
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "status",
+ "revision",
+ "holder",
+ "waitsOn",
+ "moves",
+ "lastMessageAt",
+ "url",
+ "startedBy",
+ "cut",
+ "readWith"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+]