{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usemeridian-us/json-schema/usemeridian-us-goal-state-schema.json",
  "title": "GoalState",
  "description": "A goal-state row. Content is decoded back to its original form\n(dict if it was stored as JSON, str otherwise).\n\n``ambient_tasks`` (v0.4.2/3) carries the last few task descriptions\nso cold sessions read recent activity inline with the directive\nthey get from a single ``get_goal`` call — no extra round trip.\n\n``north_star`` and ``sprint`` (v0.5.2) are the structured goal\nhierarchy fields. Both are None when not yet set.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usemeridian-us-openapi.json#/components/schemas/GoalState",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "project_id": {
      "type": "string",
      "title": "Project Id"
    },
    "content": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "title": "Content"
    },
    "version": {
      "type": "integer",
      "title": "Version"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    },
    "ambient_tasks": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ambient Tasks"
    },
    "north_star": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "North Star"
    },
    "sprint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sprint"
    },
    "north_star_inherited": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "North Star Inherited"
    },
    "north_star_source_project_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "North Star Source Project Id"
    },
    "cache_blocks": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cache Blocks"
    },
    "coherence_warning": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Coherence Warning"
    },
    "field_ages": {
      "anyOf": [
        {
          "additionalProperties": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Field Ages"
    },
    "field_updated_at": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Field Updated At"
    },
    "decisions": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decisions"
    }
  },
  "type": "object",
  "required": [
    "id",
    "project_id",
    "content",
    "version",
    "created_at",
    "updated_at"
  ]
}