{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:vibedoro:export:10",
  "title": "Vibedoro personal export format 10",
  "$comment": "ExportDocument owns the field shape. Day plans show current saved facts. Actual focus totals and slices come from the booked ledger. Pending bookings occur only in active. Daily outcome completion totals exclude plan criteria and recurrence configurations.",
  "type": "object",
  "properties": {
    "format": {
      "const": 10
    },
    "schema": {
      "const": "urn:vibedoro:export:10"
    },
    "generated": {
      "$ref": "#/$defs/Generated"
    },
    "coverage": {
      "$ref": "#/$defs/Coverage"
    },
    "goals": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GoalEntry"
      }
    },
    "outcomes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OutcomeEntry"
      }
    },
    "repetitions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RepetitionEntry"
      }
    },
    "dayPlans": {
      "type": "array",
      "description": "Confirmed saved day plans. An empty array with dayPlans in coverage.unavailable means the archive could not be read.",
      "items": {
        "$ref": "#/$defs/DayPlanEntry"
      }
    },
    "focus": {
      "$ref": "#/$defs/FocusSection"
    },
    "messages": {
      "$ref": "#/$defs/MessagesSection"
    },
    "quota": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/QuotaEntry"
      }
    },
    "settings": {
      "anyOf": [
        {
          "$ref": "#/$defs/SettingsEmbed"
        },
        {
          "type": "null"
        }
      ]
    },
    "active": {
      "anyOf": [
        {
          "$ref": "#/$defs/ActiveEntry"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "format",
    "schema",
    "generated",
    "coverage",
    "goals",
    "outcomes",
    "repetitions",
    "dayPlans",
    "focus",
    "messages",
    "quota"
  ],
  "additionalProperties": false,
  "$defs": {
    "Generated": {
      "type": "object",
      "properties": {
        "at": {
          "type": "string",
          "format": "date-time"
        },
        "timeZone": {
          "type": "string"
        },
        "appVersion": {
          "type": "string"
        },
        "weekStartsOn": {
          "type": "string"
        }
      },
      "required": [
        "at",
        "timeZone",
        "appVersion",
        "weekStartsOn"
      ],
      "additionalProperties": false
    },
    "Coverage": {
      "type": "object",
      "properties": {
        "focusFrom": {
          "description": "First day with a positive allocation of booked focus minutes, in generated.timeZone.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "focusTo": {
          "description": "Last day with a positive allocation of booked focus minutes, in generated.timeZone.",
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "messagesFrom": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "messagesTo": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "unavailable": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "unavailable"
      ],
      "additionalProperties": false
    },
    "GoalEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "standing": {
          "type": "string"
        },
        "swatch": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "created": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "completed": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "archived": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "name",
        "standing"
      ],
      "additionalProperties": false
    },
    "OutcomeEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "day": {
          "type": "string",
          "format": "date"
        },
        "text": {
          "type": "string"
        },
        "goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "round": {
          "type": "integer"
        },
        "achieved": {
          "type": "boolean"
        },
        "created": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "repetition": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "day",
        "text",
        "round",
        "achieved"
      ],
      "additionalProperties": false
    },
    "RepetitionEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "anchor": {
          "type": "string",
          "format": "date"
        },
        "frequency": {
          "enum": [
            "never",
            "daily",
            "weekdays",
            "weekly",
            "monthly"
          ]
        },
        "lastOccurrence": {
          "type": "string",
          "format": "date"
        },
        "next": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ]
        },
        "paused": {
          "type": "boolean"
        },
        "blocked": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "text",
        "anchor",
        "frequency",
        "lastOccurrence",
        "paused",
        "blocked"
      ],
      "additionalProperties": false
    },
    "Span": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "additionalProperties": false
    },
    "DayPlanEntry": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date"
        },
        "timeZone": {
          "type": "string",
          "minLength": 1,
          "description": "Time zone saved with this plan. Block wall times are local to this zone."
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FocusItemSnapshot"
          }
        },
        "blocks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlanBlockEntry"
          }
        },
        "criteria": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlanCriterionEntry"
          }
        }
      },
      "required": [
        "day",
        "timeZone",
        "items",
        "blocks",
        "criteria"
      ],
      "additionalProperties": false
    },
    "PlanBlockEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "startMinute": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1439
        },
        "endMinute": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1440,
          "description": "1440 means the end of the plan day in its saved time zone."
        },
        "span": {
          "$ref": "#/$defs/Span",
          "description": "Resolved block endpoints with UTC offsets in the plan's saved time zone."
        },
        "itemIDs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 1,
          "maxItems": 2,
          "uniqueItems": true
        },
        "mode": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "collaborate",
                "deep"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "detail": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "startMinute",
        "endMinute",
        "span",
        "itemIDs"
      ],
      "additionalProperties": false,
      "if": {
        "properties": {
          "itemIDs": {
            "minItems": 2
          }
        }
      },
      "then": {
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "const": "collaborate"
          }
        }
      }
    },
    "PlanCriterionEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "text": {
          "type": "string",
          "minLength": 1
        },
        "achieved": {
          "type": "boolean",
          "description": "Current user-confirmed achievement state."
        },
        "source": {
          "type": "string",
          "enum": [
            "unrecorded",
            "planning",
            "review"
          ],
          "description": "Recording path, independent of achievement. Older entries lack source evidence."
        }
      },
      "required": [
        "id",
        "text",
        "achieved",
        "source"
      ],
      "additionalProperties": false
    },
    "ModeMinutes": {
      "type": "object",
      "properties": {
        "kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "minutes": {
          "type": "integer"
        }
      },
      "required": [
        "minutes"
      ],
      "additionalProperties": false
    },
    "GoalMinutesEntry": {
      "type": "object",
      "properties": {
        "goal": {
          "type": "string"
        },
        "minutes": {
          "type": "integer"
        }
      },
      "required": [
        "goal",
        "minutes"
      ],
      "additionalProperties": false
    },
    "OutcomeRef": {
      "type": "object",
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "text"
      ],
      "additionalProperties": false
    },
    "SessionEntry": {
      "type": "object",
      "properties": {
        "recordID": {
          "type": "string",
          "minLength": 1,
          "description": "Stable booked record identifier, shared by all daily slices of the same record."
        },
        "day": {
          "type": "string"
        },
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time"
        },
        "pieces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Span"
          }
        },
        "minutes": {
          "type": "integer"
        },
        "kind": {
          "type": "string"
        },
        "modes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ModeMinutes"
          }
        },
        "goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "outcome": {
          "anyOf": [
            {
              "$ref": "#/$defs/OutcomeRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "unbound": {
          "type": "boolean"
        },
        "target": {
          "type": "string",
          "enum": [
            "unbound",
            "goal",
            "outcome",
            "timeBlock"
          ]
        },
        "timeBlock": {
          "anyOf": [
            {
              "$ref": "#/$defs/TimeBlockRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FocusItemShare"
          },
          "maxItems": 2
        },
        "goals": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "maxItems": 2,
          "uniqueItems": true
        },
        "attributionIndex": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "recordID",
        "day",
        "start",
        "end",
        "pieces",
        "minutes",
        "kind",
        "modes",
        "unbound",
        "target",
        "items",
        "goals",
        "attributionIndex"
      ],
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "properties": {
              "unbound": {
                "const": true
              }
            }
          },
          "then": {
            "properties": {
              "goals": {
                "maxItems": 0
              }
            }
          },
          "else": {
            "properties": {
              "goals": {
                "minItems": 1
              }
            }
          }
        }
      ],
      "if": {
        "properties": {
          "target": {
            "const": "timeBlock"
          }
        }
      },
      "then": {
        "required": [
          "timeBlock"
        ],
        "properties": {
          "timeBlock": {
            "$ref": "#/$defs/TimeBlockRef"
          },
          "outcome": {
            "type": "null"
          },
          "goal": {
            "type": "null"
          }
        }
      },
      "else": {
        "properties": {
          "timeBlock": {
            "type": "null"
          },
          "items": {
            "maxItems": 0
          },
          "goals": {
            "maxItems": 1
          }
        }
      }
    },
    "DayEntry": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date"
        },
        "minutes": {
          "type": "integer"
        },
        "modes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ModeMinutes"
          }
        },
        "byGoal": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoalMinutesEntry"
          }
        },
        "unknownGoalMinutes": {
          "type": "integer"
        },
        "unboundMinutes": {
          "type": "integer"
        },
        "declared": {
          "type": "integer"
        },
        "achieved": {
          "type": "integer"
        },
        "byItem": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ItemMinutes"
          }
        }
      },
      "required": [
        "day",
        "minutes",
        "modes",
        "byGoal",
        "unknownGoalMinutes",
        "unboundMinutes",
        "declared",
        "achieved",
        "byItem"
      ],
      "additionalProperties": false
    },
    "WeekEntry": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "format": "date"
        },
        "minutes": {
          "type": "integer"
        },
        "modes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ModeMinutes"
          }
        },
        "byGoal": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoalMinutesEntry"
          }
        },
        "days": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "start",
        "minutes",
        "modes",
        "byGoal",
        "days"
      ],
      "additionalProperties": false
    },
    "GoalTotalEntry": {
      "type": "object",
      "properties": {
        "goal": {
          "type": "string"
        },
        "minutes": {
          "type": "integer"
        },
        "since": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "days": {
          "type": "integer"
        }
      },
      "required": [
        "goal",
        "minutes",
        "days"
      ],
      "additionalProperties": false
    },
    "FocusSection": {
      "type": "object",
      "properties": {
        "sessions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SessionEntry"
          }
        },
        "days": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DayEntry"
          }
        },
        "weeks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WeekEntry"
          }
        },
        "byGoal": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoalTotalEntry"
          }
        }
      },
      "required": [
        "sessions",
        "days",
        "weeks",
        "byGoal"
      ],
      "additionalProperties": false
    },
    "AgentCount": {
      "type": "object",
      "properties": {
        "agent": {
          "type": "string"
        },
        "count": {
          "type": "integer"
        }
      },
      "required": [
        "agent",
        "count"
      ],
      "additionalProperties": false
    },
    "ProjectEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "count": {
          "type": "integer"
        },
        "agents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentCount"
          }
        },
        "attribution": {
          "type": "string",
          "enum": [
            "project",
            "unassigned"
          ]
        },
        "availability": {
          "type": "string",
          "enum": [
            "known",
            "partial",
            "unavailable",
            "unsupported"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "count",
        "agents",
        "attribution",
        "availability"
      ],
      "additionalProperties": false
    },
    "MessagesSection": {
      "type": "object",
      "properties": {
        "projects": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectEntry"
          }
        },
        "total": {
          "type": "integer"
        },
        "scanning": {
          "type": "boolean"
        },
        "linksUnavailable": {
          "type": "boolean"
        },
        "missingSources": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "agents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MessageAgentEntry"
          }
        },
        "availability": {
          "type": "string",
          "enum": [
            "known",
            "partial",
            "unavailable",
            "unsupported"
          ]
        }
      },
      "required": [
        "projects",
        "total",
        "scanning",
        "linksUnavailable",
        "missingSources",
        "agents",
        "availability"
      ],
      "additionalProperties": false
    },
    "QuotaWindowEntry": {
      "type": "object",
      "properties": {
        "durationMinutes": {
          "type": "integer"
        },
        "limitID": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "durationMinutes"
      ],
      "additionalProperties": false
    },
    "QuotaResetEntry": {
      "type": "object",
      "properties": {
        "clock": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "weekday": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "QuotaEntry": {
      "type": "object",
      "properties": {
        "agent": {
          "type": "string"
        },
        "window": {
          "$ref": "#/$defs/QuotaWindowEntry"
        },
        "usedFraction": {
          "type": "number"
        },
        "reset": {
          "$ref": "#/$defs/QuotaResetEntry"
        }
      },
      "required": [
        "agent",
        "window",
        "usedFraction",
        "reset"
      ],
      "additionalProperties": false
    },
    "SettingsEmbed": {
      "type": "object",
      "required": [
        "format"
      ],
      "properties": {
        "format": {
          "type": "integer",
          "minimum": 1
        }
      },
      "additionalProperties": true
    },
    "ActiveEntry": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "running",
            "pendingBooking",
            "awaitingResume"
          ],
          "description": "The saved active focus is running, due and awaiting booking, or frozen at a recorded close boundary."
        },
        "startedAt": {
          "type": "string",
          "format": "date-time"
        },
        "kind": {
          "type": "string"
        },
        "length": {
          "type": "string"
        },
        "goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "outcome": {
          "anyOf": [
            {
              "$ref": "#/$defs/OutcomeRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "target": {
          "type": "string",
          "enum": [
            "unbound",
            "goal",
            "outcome",
            "timeBlock"
          ]
        },
        "timeBlock": {
          "anyOf": [
            {
              "$ref": "#/$defs/TimeBlockRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FocusItemSnapshot"
          },
          "maxItems": 2
        },
        "goals": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "maxItems": 2,
          "uniqueItems": true
        },
        "followsPlan": {
          "type": "boolean"
        },
        "attributions": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/ActiveAttribution"
          }
        }
      },
      "required": [
        "state",
        "startedAt",
        "kind",
        "length",
        "target",
        "items",
        "goals",
        "followsPlan",
        "attributions"
      ],
      "additionalProperties": false,
      "if": {
        "properties": {
          "target": {
            "const": "timeBlock"
          }
        }
      },
      "then": {
        "required": [
          "timeBlock"
        ],
        "properties": {
          "timeBlock": {
            "$ref": "#/$defs/TimeBlockRef"
          },
          "outcome": {
            "type": "null"
          },
          "goal": {
            "type": "null"
          }
        }
      },
      "else": {
        "properties": {
          "timeBlock": {
            "type": "null"
          },
          "items": {
            "maxItems": 0
          },
          "goals": {
            "maxItems": 1
          }
        }
      }
    },
    "MessageCoverageEntry": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "start",
        "end"
      ]
    },
    "MessageAgentEntry": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "agent": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "count": {
          "type": "integer",
          "minimum": 0
        },
        "coverage": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MessageCoverageEntry"
          }
        },
        "availability": {
          "type": "string",
          "enum": [
            "known",
            "partial",
            "unavailable",
            "unsupported"
          ]
        },
        "connection": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "connected",
                "disconnected",
                "unavailable",
                "unsupported"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "agent",
        "name",
        "count",
        "coverage",
        "availability"
      ]
    },
    "TimeBlockRef": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date"
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "day",
        "id",
        "title"
      ],
      "additionalProperties": false
    },
    "ItemRef": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "id",
        "title"
      ],
      "additionalProperties": false
    },
    "ItemMinutes": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date"
        },
        "item": {
          "$ref": "#/$defs/ItemRef"
        },
        "minutes": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "day",
        "item",
        "minutes"
      ],
      "additionalProperties": false
    },
    "FocusItemSnapshot": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "minLength": 1
        },
        "goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "title"
      ],
      "additionalProperties": false
    },
    "FocusItemShare": {
      "type": "object",
      "properties": {
        "day": {
          "type": "string",
          "format": "date"
        },
        "item": {
          "$ref": "#/$defs/FocusItemSnapshot"
        },
        "minutes": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "day",
        "item",
        "minutes"
      ],
      "additionalProperties": false
    },
    "ActiveAttribution": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "at": {
          "type": "string",
          "format": "date-time"
        },
        "target": {
          "type": "string",
          "enum": [
            "unbound",
            "goal",
            "outcome",
            "timeBlock"
          ]
        },
        "goal": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "goals": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "maxItems": 2,
          "uniqueItems": true
        },
        "outcome": {
          "anyOf": [
            {
              "$ref": "#/$defs/OutcomeRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "timeBlock": {
          "anyOf": [
            {
              "$ref": "#/$defs/TimeBlockRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FocusItemSnapshot"
          },
          "maxItems": 2
        }
      },
      "required": [
        "at",
        "target",
        "goals",
        "items"
      ]
    }
  }
}
